Metamorphic Testing of Learned Spatial Surrogates for Transit Accessibility
Organizations: Institute of Automotive Technology, Technical University of Munich Munich Institute of Robotics and Machine Intelligence (MIRMI) Garching, Germany
Abstract
Transit-network design requires evaluating many candidates, but detailed accessibility calculations are too slow to repeat inside an optimization loop. We therefore train a neural surrogate to approximate them. Given a candidate bus network and fixed information about rail service and nearby opportunities, it predicts the calculated spatial change in accessibility. We compare its predictions with routing-derived targets in geographically held-out regions and test specified qualitative relations under controlled input changes. Reference calculations on constructed networks assess the applicability of relations that have a routing-level counterpart. Models with positive predictive skill can still fail basic connectivity tests. One targeted intervention substantially increases pass rates for two connectivity relations while predictive skill also improves. Average prediction error is therefore insufficient when a learned model becomes an optimization objective. Predictive agreement and controlled behavioral tests should be reported separately.
Figures & tables
| Research question | Comparison | Held fixed | Evidence |
|---|---|---|---|
| Can predictive skill hide structural failures? | Held-out geographic prediction versus generated metamorphic tests | Same unaugmented model instances and output channels | Predictive skill and eight probe pass rates |
| Can targeted data reduce a known failure? | Incremental training-data additions in the triple-stream sequence, followed by a combined treatment in the dual-stream family | Architecture within each sequence and the common test suite | Predictive skill and probe pass rates across three initializations |
| Does separating the bus input from context change model behavior? | Four input architectures, from early fusion to separated streams | Training treatment, data split, evaluation suite, and approximately matched capacity | Intensity saturation and seven companion probes |
| How does predictive agreement vary by opportunity category? | All 105 reconstructed output channels of the selected dual-stream configuration | Three model instances and the same 818 geographically held-out tiles | Per-channel and target variation |
| Relation | Check | Kind | Reference probe | Controlled change | Pass |
|---|---|---|---|---|---|
| Isolated stop ( isl ) | analytic | leakage | connected isolated stop | bus edges removed | |
| Stub edge ( sel ) | analytic | leakage | full route endpoint stub | bus edge truncated | |
| Spatial localization ( sdl ) | routing | leakage | route zone equal-area far zone | evaluation region | |
| Opportunity reachability ( prs ) | routing | attenuation | near displaced focal | focal location; shared | |
| Rail-context sensitivity ( rcs ) | analytic | sensitivity | connected no bus edges | bus edges removed | |
| Weak activation ( wal ) | raster | amplitude | full bus input | bus amplitude |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Relation | Check | Pass/support | Pooled rate | 95% interval |
|---|---|---|---|---|
| Isolated stop ( isl ) | Analytic zero probe | 3919/3919 | 1.000 | [1.000, 1.000] |
| Stub edge ( sel ) | Analytic zero probe | 3854/3854 | 1.000 | [1.000, 1.000] |
| Rail context ( rcs ) | Analytic zero probe | 2853/2853 | 1.000 | [1.000, 1.000] |
| Overlap ( odr ) | Calculated | 3927/3927 | 1.000 | [1.000, 1.000] |
| Localization ( sdl ) | Calculated | 3913/3913 | 1.000 | [1.000, 1.000] |
| Interchange-only diagnostic | Calculated | 551/2853 | 0.193 | [0.155, 0.229] |
| Configuration | Coverage | Pass/support | Pass/eligible | Strict joint | Negative probe |
|---|---|---|---|---|---|
| Triple, none | 0.475 | 0.528 | 0.255 | 0.197 | 0.616 |
| Triple, geometric | 0.518 | 0.705 | 0.371 | 0.358 | 0.488 |
| Triple, + weak activation | 0.489 | 0.583 | 0.288 | 0.303 | 0.416 |
| Triple, + isolated stop | 0.564 | 0.609 | 0.351 | 0.446 | 0.267 |
| Triple, + stub edge | 0.563 | 0.636 | 0.362 | 0.412 | 0.360 |
| Dual, none | 0.314 | 0.165 | 0.047 | 0.106 | 0.109 |
| Family | Training | Skill | isl | rcs | wal | bis | sdl | odr | sel | prs |
|---|---|---|---|---|---|---|---|---|---|---|
| Triple-stream | none | .298 | .003 | .002 | .005 | .990 | .987 | .995 | .002 | .528 |
| geometric | .272 | .001 | .002 | .002 | .982 | .974 | .996 | .002 | .705 | |
| + weak activation | .428 | .002 | .001 | .737 | .983 | .935 | .994 | .003 | .583 | |
| + isolated-stop | .488 | .877 | .909 | .817 | .972 | .971 | .991 | .006 | .609 | |
| + stub-edge | .560 | .590 | .574 | .953 | .967 | .976 | .702 | .007 | .636 | |
| Dual-stream | none | .407 | .002 | .001 | .001 | .983 | .985 | .997 | .001 | .165 |
| Family | Width | Skill | isl | rcs | wal | bis | sdl | odr | sel | prs |
|---|---|---|---|---|---|---|---|---|---|---|
| U-Net | 128 | .509 | .988 | .978 | .790 | .383 | .948 | .997 | .003 | .582 |
| U-Net | 224 matched | .510 | .960 | .987 | .723 | .459 | .935 | .994 | .018 | .730 |
| ResU-Net | 128 | .526 | .932 | .985 | .660 | .394 | .968 | .997 | .046 | .527 |
| ResU-Net | 200 matched | .540 | .965 | .980 | .772 | .637 | .965 | .997 | .006 | .610 |
| Dual-stream | 128 | .548 | .843 | .915 | .946 | .991 | .992 | .994 | .004 | .416 |
| Dual-stream | 152 matched | .568 | .791 | .922 | .987 | .975 | .994 | .992 | .005 | .392 |
| Configuration | Munich MAE | Munich skill | MV MAE | MV skill |
|---|---|---|---|---|
| Triple, none | 9.816 | 0.790 | 1.611 | -0.059 |
| Triple, geometric | 9.710 | 0.803 | 1.677 | -0.113 |
| Triple, + weak activation | 9.574 | 0.819 | 1.358 | 0.145 |
| Triple, + isolated stop | 9.526 | 0.825 | 1.235 | 0.244 |
| Triple, + stub edge | 9.639 | 0.812 | 1.069 | 0.378 |
| Dual, none | 9.690 | 0.805 | 1.391 | 0.118 |
| Tile | Candidate | Reference, s | GPU, ms | CPU, ms |
|---|---|---|---|---|
| 1 | Single line | 128.88 [127.55–129.44] | 42.45 | 611.73 |
| 1 | Overlapping lines | 128.70 [128.61–129.56] | 53.87 | 631.88 |
| 2 | Single line | 113.13 [112.80–113.72] | 39.66 | 613.74 |
| 2 | Overlapping lines | 113.44 [113.13–116.97] | 48.24 | 627.87 |
| Family | Scenario pair or base | Invariant control |
|---|---|---|
| isl | isolated stop without opportunities; isolated and connected stops with opportunities | bus edges removed; stops and context fixed |
| prs | on-route, displaced and background-only opportunities | only focal POI changes |
| rcs | stop near rail, with and without bus edges | stops and context fixed |
| wal / bis | connected route at full amplitude | only bus amplitude changes during evaluation |
| odr | single route; near-overlapping route | only near-overlap edge mass differs |
| sdl | localized route with near and far evaluation zones | equal-area, non-overlapping masks |
| Setting | Value |
|---|---|
| Tile geometry | cells in EPSG:3857; 105 projected metres per cell |
| Input/target reduction | 32 PCA components; training-only fit |
| Loss and optimizer | Smooth L1; AdamW at with cosine schedule |
| Training duration | at most 1,000 epochs; best validation checkpoint |
| Regularization | dropout 0.1 |
| Initialization | three seeds for each controlled configuration |
Neural Surrogate Modeling
Neural surrogate modeling uses learned models to approximate costly simulations, enabling faster prediction, design, control, and inference.
See all 481 papers