Introduction
Modern traffic forecasting models are predominantly deterministic, providing single-point estimates for future traffic flow. While useful, these models fail to account for the inherent chaos of urban environments—influenced by weather, accidents, and social events. In safety-critical applications like emergency routing or infrastructure planning, understanding the uncertainty of a prediction is as vital as the prediction itself.
Existing approaches to uncertainty quantification typically fall into two categories: Bayesian methods (e.g., MC Dropout), which are efficient but prone to modal collapse, and Deep Ensembles, which offer high accuracy but require prohibitive computational resources. This paper introduces DeepSTUQ (Deep Spatio-Temporal Uncertainty Quantification), a unified framework designed to provide reliable uncertainty estimates with the efficiency of a single-model architecture.
Methodology
DeepSTUQ decomposes uncertainty into two primary components: aleatoric (data noise) and epistemic (model knowledge). The architecture utilizes a Graph Convolutional Network (GCN) module to capture spatial dependencies and a Gated Recurrent Unit (GRU) module for temporal patterns.
Aleatoric and Epistemic Uncertainty
To capture aleatoric uncertainty, the model employs a dual-head decoder. One head predicts the mean ($\mu_{t+1}$), representing the forecast, while the second predicts the variance ($\sigma_{t+1}$), representing the expected noise level.
Epistemic uncertainty is addressed through a combination of Monte Carlo (MC) Dropout and a novel Adaptive Weight Averaging (AWA) technique. During inference, neurons are randomly deactivated to simulate different model perspectives. To ensure calibration, a post-processing step called Temperature Scaling is applied, adjusting the variance to ensure that prediction intervals accurately reflect ground-truth coverage.
Adaptive Weight Averaging (AWA)
A key contribution of this work is the AWA mechanism, which acts as a "poor man’s ensemble." Instead of training and storing multiple independent models, AWA uses a cyclic learning rate during a specific re-training phase. This allows the model to navigate the loss landscape and identify multiple local minima ($W_1, W_2, W_3$). These weights are then averaged into a single, robust set of weights ($W_{SWA}$).
This approach achieves the diversity benefits of an ensemble—capturing a wider range of possible traffic patterns—without the linear increase in memory and training time associated with traditional deep ensembles.
Experimental Results
The framework was evaluated on four standard public traffic benchmarks: PEMS03, PEMS04, PEMS07, and PEMS08.
- Point Prediction Accuracy: DeepSTUQ outperformed state-of-the-art deterministic models. On the PEMS03 dataset, it achieved a Mean Absolute Error (MAE) of 15.13, compared to 16.05 for the AGCRN baseline.
- Uncertainty Reliability: The model's Prediction Interval Coverage Probability (PICP) consistently reached the 95% target, indicating that its confidence intervals are highly trustworthy for real-world decision-making.
- Efficiency: By leveraging AWA and MC Dropout within a single architecture, DeepSTUQ maintains a low computational footprint while matching the uncertainty quantification performance of heavy ensemble methods.
Conclusion
DeepSTUQ provides a scalable and accurate solution for spatio-temporal uncertainty quantification in traffic forecasting. By successfully integrating aleatoric and epistemic uncertainty through weight averaging and dual-head decoding, the model offers a robust tool for urban planning. Future work will explore the integration of external variables, such as weather and holidays, and the use of non-Gaussian probability distributions to further refine prediction intervals.
Summary updated