A Sparsity Analysis of Traffic Forecasting Architectures: How Much Missing Data is Too Much?
Organizations: Department of Electrical Engineering, Qatar University, Doha, Qatar · Department of Mathematics and Statistics, Qatar University, Doha, Qatar · College of Engineering and Technology, University of Doha for Science and Technology, Doha, Qatar · Department of Systems and Computer Engineering, Carleton University, Ontario, Canada
Abstract
Traffic forecasting models are typically evaluated under ideal conditions with complete data. This evaluation does not reflect the frequent sensor failures and communication outages common in real-world deployments. This paper presents a comprehensive analysis of multivariate traffic prediction models to evaluate their performance under varying levels of sensor data loss during inference. We benchmark several architectural paradigms, including graph neural networks, attention-based Transformers, and selective state-space models, across sparsity levels ranging from zero to complete sensor loss, using two widely used multi-channel traffic benchmarks. To ensure consistent comparison across traffic variables, we use normalized metrics and define a usability threshold to identify when predictions become unreliable. Our results show a clear trade-off between baseline accuracy and robustness: models with the highest accuracy under full-data conditions often degrade most sharply as data becomes sparse, while less accurate models maintain more stable performance. These findings show that model selection should be based on the expected reliability of the sensor network rather than peak accuracy alone. This work provides a practical framework for assessing traffic forecasting models and highlights the importance of robustness in real-world applications.
Figures & tables
| Dataset | PEMS04 | PEMS08 | |||||||
| Model | Metric | Flow | Occupancy | Speed | Avg | Flow | Occupancy | Speed | Avg |
| DCRNN | MAE | 0.246 0.001 | 0.400 0.001 | 0.605 0.004 | 0.417 0.001 | 0.278 0.003 | 0.449 0.005 | 0.585 0.009 | 0.438 0.003 |
| 1.98 0.006 | 1.22 0.003 | 3.00 0.022 | 1.91 0.005 | 2.63 0.027 | 1.23 0.014 | 2.69 0.042 | 1.91 0.014 | ||
| RMSE | 0.426 0.005 | 0.691 0.002 | 1.189 0.011 | 0.768 0.003 | 0.469 0.012 | 0.746 0.005 | 1.163 0.011 | 0.793 0.003 | |
| 2.12 0.025 | 1.12 0.004 | 2.67 0.024 | 1.83 0.006 | 2.75 0.072 | 1.16 0.008 | 2.23 0.021 | 1.78 0.007 | ||
| D2STGNN | MAE | 0.476 0.022 | 1.023 0.020 | 0.813 0.001 | 0.771 0.014 | 0.197 0.004 | 0.279 0.001 | 0.659 0.002 | 0.378 0.001 |
| Dataset | Sensors | Time Steps | Time Range | Interval | Features |
| PEMS04 | 307 | 16,992 | 1/18–2/18 | 5 min | Speed, Flow, Occupancy |
| PEMS08 | 170 | 17,856 | 7/16–8/16 | 5 min | Speed, Flow, Occupancy |
| Dataset | Channel | Mean ( ) | Std ( ) | Min | Max |
| PEMS04 | Flow | 208.85 | 157.33 | 0.00 | 919.00 |
| Occupancy | 0.0520 | 0.0488 | 0.00 | 0.7716 | |
| Speed | 63.44 | 8.25 | 3.00 | 85.20 | |
| PEMS08 | Flow | 230.24 | 145.89 | 0.00 | 1147.00 |
| Occupancy | 0.0646 | 0.0450 | 0.00 | 0.8955 | |
| Speed | 63.78 | 6.56 | 3.00 | 82.30 |
| Model | Modeling Approach |
| DCRNN | GNN + RNN |
| D2STGNN | Dynamic GNN |
| Trafformer | Transformer |
| Mamba4Traffic | State-Space Model |
| Dataset | Model | 0% | 10% | 20% | 30% | 40% | 50% | 60% | 70% | 80% | 90% | 100% |
| PEMS04 | DCRNN | 0.218 | 0.408 | 0.589 | 0.766 | 0.933 | 1.107 | 1.242 | 1.392 | 1.545 | 1.684 | 1.816 |
| D2STGNN | 0.159 | 0.666 | 1.347 | 2.177 | 2.685 | 3.078 | 3.342 | 3.609 | 3.794 | 3.956 | 4.097 | |
| Mamba4Traffic | 0.167 | 0.320 | 0.466 | 0.637 | 0.788 | 0.949 | 1.096 | 1.264 | 1.414 | 1.561 | 1.721 | |
| Trafformer | 0.229 | 0.412 | 0.529 | 0.680 | 0.857 | 0.951 | 1.060 | 1.161 | 1.218 | 1.283 | 1.335 | |
| PEMS08 | DCRNN | 0.229 | 0.433 | 0.644 | 0.785 | 0.934 | 1.051 | 1.133 | 1.201 | 1.289 | 1.361 | 1.433 |
| D2STGNN | 0.158 | 0.391 | 0.572 | 0.706 | 0.805 | 0.921 | 0.980 | 1.117 | 1.221 | 1.305 | 1.365 |
| Dataset | Model | H1 | H2 | H3 | H4 | H5 | H6 | H7 | H8 | H9 | H10 | H11 | H12 |
| PEMS04 | DCRNN | 0.407 | 0.409 | 0.408 | 0.407 | 0.407 | 0.406 | 0.407 | 0.407 | 0.408 | 0.409 | 0.411 | 0.413 |
| D2STGNN | 0.430 | 0.441 | 0.451 | 0.496 | 0.503 | 0.509 | 0.627 | 0.632 | 0.637 | 1.080 | 1.091 | 1.098 | |
| Mamba4Traffic | 0.291 | 0.305 | 0.315 | 0.318 | 0.323 | 0.325 | 0.327 | 0.327 | 0.327 | 0.327 | 0.325 | 0.326 | |
| Trafformer | 0.515 | 0.405 | 0.394 | 0.395 | 0.397 | 0.399 | 0.401 | 0.395 | 0.403 | 0.405 | 0.411 | 0.423 | |
| PEMS08 | DCRNN | 0.427 | 0.429 | 0.431 | 0.432 | 0.432 | 0.433 | 0.434 | 0.435 | 0.435 | 0.436 | 0.437 | 0.438 |
| D2STGNN | 0.409 | 0.417 | 0.422 | 0.400 | 0.401 | 0.401 | 0.381 | 0.380 | 0.380 | 0.365 | 0.365 | 0.366 |
Traffic Forecasting
Traffic forecasting predicts future flows, speeds, demand, travel times, and congestion from spatial, temporal, and contextual data.
See all 99 papers