TL;DR
This paper shifts the perspective on foundation model errors from "performance limitations" to "valuable urban signals." By analyzing the residuals of trajectory models like UniTraj and TrajFM in Niterói, Brazil, the authors demonstrate that these errors cluster into spatial "hotspots" that correlate with specific urban features like low population density and poor transit accessibility.
What Problem Does This Paper Address?
Foundation models (FMs) for mobility are designed to learn universal patterns across different cities. However, when these models are transferred to a new environment, they inevitably produce errors (residuals). Traditionally, researchers view these residuals as a sign that the model hasn't generalized well enough.
The authors of this paper ask a different question: What if these errors aren't just noise, but a signal? They hypothesize that systematic prediction failures occur in areas where local urban conditions—such as complex road networks, socioeconomic factors, or transit irregularities—deviate from the "global" patterns the model learned during pretraining. By identifying where these models fail, we might actually identify where urban transit is most irregular or underserved.
Methods
The researchers employed a multi-step analytical pipeline:
- Foundation Model Evaluation: They used two state-of-the-art models: UniTraj for spatial trajectory reconstruction (imputing missing segments of a bus path) and TrajFM for travel-time estimation.
- Masked Imputation: For UniTraj, they used a masked-segment approach where the model attempts to fill in a hidden portion of a bus trajectory based on the surrounding context. The distance between the predicted and actual path serves as the "irregularity signal."

- Spatial Aggregation: Data was aggregated into H3 hexagonal cells (resolution-9) to allow for spatial analysis.
- Meta-Modeling with XAI: To explain why the models failed, they trained an XGBoost regressor to predict the model residuals using 39 urban context features (e.g., transit demand, road geometry, "15-minute city" accessibility, and socioeconomic status).
- SHAP Analysis: They applied SHAP (SHapley Additive exPlanations) values to determine which feature families (like population density or fare composition) were the primary drivers of high residuals in specific parts of the city.
Datasets
The study utilized the NetMob26 dataset focused on Niterói, Brazil. This rich, multi-source dataset includes:
- GPS traces from buses.
- Ticketing data (including fare types like "free-pass" vs. cash).
- Weather and road network data.
- Socioeconomic data from census records.
- Point-of-Interest (POI) data, which the authors used to calculate "15-minute city" indicators (accessibility to education, shops, etc., within a 15-minute walk).
Key Insights and Ideas
- Errors are Predictable: The UniTraj spatial residuals were highly predictable ($R^2 \approx 0.55$), meaning the model's failures are strongly tied to the physical and social structure of the city rather than being random.
- Spatial "Hotspots": High residuals aren't scattered randomly; they cluster along structurally complex transit corridors and peripheral areas.
- Density vs. Deprivation: Interestingly, "joint hotspots" (where both spatial and temporal models failed) were primarily associated with low population density rather than low income. This suggests the models struggle more with the urban structure of peripheral areas than with the socioeconomic status of the residents.
- Model-Specific Failures: UniTraj (spatial) errors were more linked to road geometry and accessibility, while TrajFM (temporal) errors were more associated with passenger demand and timing context.
Key Results
- Performance: Both foundation models outperformed locally trained baselines. UniTraj achieved a mean spatial error of 421m (vs. 664m for the baseline), and TrajFM achieved a Mean Absolute Error (MAE) of 5.12 minutes (vs. 5.94 minutes for the baseline).
- Joint Hotspots: The researchers identified 39 "joint hotspot" cells where both models struggled significantly.

- SHAP Drivers: SHAP analysis revealed that passenger composition (e.g., the share of free-pass riders) and educational accessibility were top predictors for these hotspots.

Limitations and Future Work
The authors are careful to note that high residuals are candidate proxy signals for transit irregularity, not definitive proof of service disruption. A model might fail simply because a specific neighborhood has a unique layout not seen in the training data.
Future work aims to:
- Validate these hotspots against actual transit agency records of delays and disruptions.
- Test the models using "spatially blocked" cross-validation to better understand how well the error-prediction generalizes across different parts of the city.
- Refine the interpretation of residuals to distinguish between "model ignorance" and "true urban irregularity."
Summary updated