Submitted:
15 April 2026
Posted:
17 April 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Study Framework

2.2. Data Sources and Preprocessing
2.3. Pedestrian Level-of-Service Formulation
| LOS | Threshold (ŷ) | Ped/hr | Percentile | Interpretation |
| 0 (A) | ≤ 2.9957 | ≤ ~35 | 0–20% | Very low pedestrian activity. Free-flow, high comfort. |
| 1 (B) | 2.9957–4.2627 | ~35–120 | 20–40% | Low activity. Comfortable walking, occasional interactions. |
| 2 (C) | 4.2627–5.1059 | ~120–300 | 40–60% | Moderate activity. slight speed reductions. |
| 3 (D) | 5.1059–5.7930 | ~300–600 | 60–80% | High activity. Frequent interactions, operational stress. |
| 4 (E) | 5.7930–6.5737 | ~600–1,200 | 80–90% | Very high activity. Congested, constrained movement. |
| 5 (F+) | > 6.5737 | > ~1,200 | 90–100% | Extreme crowding. Saturation, safety and comfort risks. |
2.4. Feature Engineering and Sequence Construction
2.5. Model Architecture and Training Protocol
2.6. Experimental Design and Model Evaluation
2.6.1. Experimental Design
2.6.2. Evaluation Metrics
2.7. Explainability Analysis
- Relative importance of input features influencing ordinal LOS classification;
- Interaction between temporal, spatial, and contextual signals within the model; and
- Stability of these explanatory patterns when models trained in Melbourne are transferred to Dublin and Zurich.
3. Experiments and Results
3.1. In-Domain Performance
3.2. Ablation Without Lag Features
3.3. Cross-City Transfer
| Setting | City | MAE ↓ | Accuracy ↑ | Acc±1 ↑ | ||
| In-domain | Melbourne | 0.2208 | 0.7908 | 0.9911 | - | - |
| In-domain | Dublin | 0.2576 | 0.7675 | 0.9828 | 1.00 | 1.00 |
| E1 Zero-shot | Dublin | 0.8059 | 0.3880 | 0.8447 | 0.32 | 0.51 |
| E2 Fine-tune 5% | Dublin | 0.2948 | 0.7354 | 0.9806 | 0.8 | 0.96 |
| E3 Fine-tune 80% | Dublin | 0.2383 | 0.7813 | 0.9865 | 1.08 | 1.02 |
| E4 DANN 5% | Dublin | 0.343 | 0.819 | 0.9174 | 0.75 | 1.07 |
| In-domain | Zurich | 0.0852 | 0.9441 | 0.9903 | 1.00 | 1.00 |
| E1 Zero-shot | Zurich | 2.7729 | 0.0128 | 0.0201 | 0.03 | 0.01 |
| E2 Fine-tune 5% | Zurich | 0.0985 | 0.9368 | 0.9883 | 0.87 | 0.99 |
| E3 Fine-tune 80% | Zurich | 0.0929 | 0.9378 | 0.9900 | 0.92 | 0.99 |
| E4 DANN 5% | Zurich | 0.9549 | 0.4237 | 0.8322 | 0.09 | 0.45 |

3.4. Comparative Summary of Experiments
3.5. Explainability Analysis
4. Discussion
4.1. Transferability of Ordinal Urban Indicators
4.2. Insights from Ablation and Explainability Analyses
4.3. Implications for Urban Planning and Public Space Management
4.4. Limitations and Future Work
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Appendix A
| Group | Feature Name | Description | Type |
| Lagged Demand (Short-Term) | lag1 | Pedestrian count lagged by 1 hour | Continuous |
| Lagged Demand (Diurnal) | lag_24 | Pedestrian count lagged by 24 hours | Continuous |
| Lagged Demand (Weekly) | lag_168 | Pedestrian count lagged by 168 hours (1 week) | Continuous |
| Temporal Encoding | hour_cos | Cosine encoding of hour of day (24-hour cycle) | Continuous |
| hour_sin | Sine encoding of hour of day | Continuous | |
| Time-of-Day Context | time_of_day | Categorical time-of-day period (e.g., night, peak) | Categorical |
| Traffic Interaction | peak_traffic_proxy | Proxy indicator for peak traffic conditions | Binary / Continuous |
| lag1_x_peak | Interaction between lagged demand and peak traffic | Continuous | |
| Calendar Indicators | is_weekend | Weekend indicator | Binary |
| day_of_week | Day of week (1–7) | Integer | |
| holiday_flag | Public holiday indicator | Binary | |
| month_num | Month of year (1–12) | Integer | |
| Weather Context | temp | Air temperature | Continuous |
| precip | Precipitation intensity | Continuous | |
| wind | Wind speed | Continuous | |
| Seasonality | Season | Meteorological season | Categorical |
| Vegetation Context | sensor_ndvi_mean | Mean NDVI around sensor | Continuous |
| sensor_canopy_pct | Tree canopy cover (%) within buffer | Continuous | |
| sensor_canopy_valid_frac | Fraction of valid canopy pixels | Continuous | |
| canopy_is_valid | Canopy data validity indicator | Binary | |
| ndvi_x_canopy | Interaction between NDVI and canopy cover | Continuous | |
| Topographic Context | topographic_position | Relative topographic position index | Continuous |
| terrain_complexity | Local terrain variability index | Continuous | |
| Network Structure | n_edges | Number of connected street edges | Integer |
| Network Centrality | betweenness | Betweenness centrality of sensor node | Continuous |
| closeness | Closeness centrality of sensor node | Continuous | |
| Urban Geometry & Context | dist_to_city_center | Distance from sensor to city center | Continuous |
| bearing_to_center | Bearing from sensor to city center | Continuous |
Appendix B: Notation Table
| Symbol | Description |
| (c) | raw pedestrian count |
| (y) | log-transformed count |
| (τ_k) | quantile thresholds |
| (X) | input tensor |
| (T) | temporal window (168 hours) |
| (N) | number of sensors |
| (F) | number of features |
| (d_{model}) | embedding dimension |
| (θ_k) | ordinal thresholds |
References
- Jiang, W.; Luo, J.; He, M.; Gu, W. Graph Neural Network for Traffic Forecasting: The Research Progress. ISPRS Int. J. Geoinf. 2023, 12.
- Zhou, H.; Ren, D.; Xia, H.; Fan, M.; Yang, X.; Huang, H. AST-GNN: An Attention-Based Spatio-Temporal Graph Neural Network for Interaction-Aware Pedestrian Trajectory Prediction. Neurocomputing 2021, 445, 298–308. [CrossRef]
- Li, R.; Qiao, T.; Katsigiannis, S.; Zhu, Z.; Shum, H.P.H. Unified Spatial–Temporal Edge-Enhanced Graph Networks for Pedestrian Trajectory Prediction. IEEE Transactions on Circuits and Systems for Video Technology 2025, 35, 7047–7060. [CrossRef]
- Lee, J.; Kang, Y. PGTFT: A Lightweight Graph-Attention Temporal Fusion Transformer for Predicting Pedestrian Congestion in Shadow Areas. ISPRS Int. J. Geoinf. 2025, 14. [CrossRef]
- Xie, Y.; Niu, J.; Zhang, Y.; Ren, F. Multisize Patched Spatial-Temporal Transformer Network for Short- and Long-Term Crowd Flow Prediction. IEEE Transactions on Intelligent Transportation Systems 2022, 23, 21548–21568. [CrossRef]
- Yuan, Y.; Ding, J.; Han, C.; Sheng, Z.; Jin, D.; Li, Y. UniFlow: A Foundation Model for Unified Urban Spatio-Temporal Flow Prediction. 2025.
- Asadi-Shekari, Z.; Moeinaddini, M.; Shah, M.Z. Disabled Pedestrian Level of Service Method for Evaluating and Promoting Inclusive Walking Facilities on Urban Streets. J. Transp. Eng. 2013, 139, 181–192. [CrossRef]
- Raad, N.; Burke, M.I. What Are the Most Important Factors for Pedestrian Level-of-Service Estimation? A Systematic Review of the Literature. Transp. Res. Rec. 2018, 2672, 101–117. [CrossRef]
- Nag, D.; Goswami, A.K.; Gupta, A.; Sen, J. Assessing Urban Sidewalk Networks Based on Three Constructs: A Synthesis of Pedestrian Level of Service Literature. Transp. Rev. 2020, 40, 204–240. [CrossRef]
- Marisamynathan, S.; Vedagiri, P. Pedestrian Perception-Based Level-of-Service Model at Signalized Intersection Crosswalks. Journal of Modern Transportation 2019, 27, 266–281. [CrossRef]
- Talavera-Garcia, R.; Pérez-Campaña, R. Applying a Pedestrian Level of Service in the Context of Social Distancing: The Case of the City of Madrid. Int. J. Environ. Res. Public Health 2021, 18. [CrossRef]
- Paul, D.; Moridpour, S.; Venkatesan, S.; Withanagamage, N. Evaluating the Pedestrian Level of Service for Varying Trip Purposes Using Machine Learning Algorithms. Sci. Rep. 2024, 14. [CrossRef]
- Sharifi, M.S.; Christensen, K.; Chen, A.; Song, Z. Exploring Effects of Environment Density on Heterogeneous Populations’ Level of Service Perceptions. Transp. Res. Part A Policy Pract. 2019, 124, 115–127. [CrossRef]
- Wang, L.; Geng, X.; Ma, X.; Liu, F.; Yang, Q. Cross-City Transfer Learning for Deep Spatio-Temporal Prediction; 2019;
- Fang, Z.; Wu, D.; Pan, L.; Chen, L.; Gao, Y. When Transfer Learning Meets Cross-City Urban Flow Prediction: Spatio-Temporal Adaptation Matters; 2022;
- Zhang, K.; Shang, W.L.; De Vos, J.; Zhang, Y.; Cao, M. Illuminating the Path to More Equitable Access to Urban Parks. Sci. Rep. 2025, 15. [CrossRef]
- Lu, B.; Gan, X.; Zhang, W.; Yao, H.; Fu, L.; Wang, X. Spatio-Temporal Graph Few-Shot Learning with Cross-City Knowledge Transfer. In Proceedings of the Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery, August 14 2022; pp. 1162–1172.
- Tenzer, M.; Rasheed, Z.; Shafique, K. The Geospatial Generalization Problem: When Mobility Isn’t Mobile. In Proceedings of the GIS: Proceedings of the ACM International Symposium on Advances in Geographic Information Systems; Association for Computing Machinery, November 13 2023.
- Koushik, A.; Manoj, M.; Nezamuddin, N. SHapley Additive ExPlanations for Explaining Artificial Neural Network Based Mode Choice Models. Transportation in Developing Economies 2024, 10. [CrossRef]
- Agarwal, C.; Johnson, N.; Pawelczyk, M.; Krishna, S.; Saxena, E.; Zitnik, M.; Lakkaraju, H. Rethinking Stability for Attribution-Based Explanations. 2022.
- Alamelh, A. ExplAIn-City: Explainable Spatio-Temporal Deep Learning for Urban Resilience and Risk Governance. IEEE Access 2025, 13, 181989–182004. [CrossRef]
- Landis, B.W.; Vattikuti, V.R.; Ottenberg, R.M.; McLeod, D.S.; Guttenplan, M. Modeling the Roadside Walking Environment: Pedestrian Level of Service. Transp. Res. Rec. 2001, 1773, 82–88. [CrossRef]
- Dixon, L.B. Bicycle and Pedestrian Level-of-Service Performance Measures and Standards for Congestion Management Systems. Transp. Res. Rec. 1996, 1538, 1–9. [CrossRef]



| Model | Val MAE ↓ | Val Acc ↑ | Val Acc±1 ↑ | Test MAE ↓ | Test Acc ↑ | Test Acc±1 ↑ |
| XGBoost | 0.2393 | 0.7854 | 0.9839 | 0.3280 | 0.7128 | 0.9718 |
| Temporal-only Transformer | 0.2363 | 0.7251 | 0.9839 | 0.2569 | 0.7627 | 0.9859 |
| Spatial-only Transformer | 0.3165 | 0.7125 | 0.9779 | 0.3498 | 0.6906 | 0.9697 |
| ST-Graph Transformer (Full) | 0.1932 | 0.8140 | 0.9943 | 0.2150 | 0.7969 | | 0.9909 |
| Experiment | MAE ↓ | Accuracy ↑ | Acc±1 ↑ |
| Melbourne (Full Model) | 0.2150 | 0.7969 | 0.9909 |
| Melbourne (No-Lag) | 0.3356 | 0.7028 | 0.9704 |
| Melbourne → Dublin (Fine-tune 5%) | 0.2948 | 0.7354 | 0.9806 |
| Melbourne → Dublin (No-Lag, Fine-tune 5%) | 1.0151 | 0.3664 | 0.7576 |
| Melbourne → Zurich (Fine-tune 5%) | 0.0985 | 0.9368 | 0.9883 |
| Melbourne → Zurich (No-Lag, Fine-tune 5%) | 0.1746 | 0.8776 | 0.9584 |
| City | Model | Spearman ρ (vs Melbourne) | Top-10 Overlap (%) |
| Dublin | E0 (In-domain) | 0.23 | 70% |
| Dublin | E2 (5% FT) | 0.38 | 70% |
| Dublin | E3 (80% FT) | 0.35 | 60% |
| Dublin | E4 (DANN) | 0.13 | 40% |
| Zurich | E0 (In-domain) | 0.15 | 40% |
| Zurich | E2 (5% FT) | 0.23 | 50% |
| Zurich | E3 (80% FT) | 0.21 | 40% |
| Zurich | E4 (DANN) | 0.18 | 50% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).