Measuring the Confidence of Traffic Forecasting Models: Techniques, Experimental Comparison and Guidelines towards Their Actionability

Ibai Laña, Ignacio Iñaki Olabarrieta, Javier Del Ser

TL;DR

This paper tackles the critical need for quantifying uncertainty in traffic forecasting models, moving beyond simple accuracy metrics. By comparing various uncertainty estimation techniques on real-world traffic data, they demonstrate that Conformal Prediction offers a robust and reliable way to provide actionable confidence intervals, crucial for intelligent transportation systems.

What Problem Does This Paper Address?

Traffic forecasting models have become increasingly sophisticated, but their outputs are often treated as definitive predictions. This overlooks a crucial aspect: uncertainty. Knowing how confident a model is in its prediction is just as important as the prediction itself, especially for practical applications like traffic management. Without this confidence information, it's hard to know when to trust a forecast, how to react to potential disruptions, or even when to stop trying to improve a model. While uncertainty estimation is gaining traction in other fields (like medicine and energy), it's largely absent in traffic forecasting. This paper aims to bridge this gap by reviewing existing techniques, comparing them empirically, and providing guidelines for their use in traffic forecasting.

Methods

The authors explore and compare several uncertainty estimation techniques, broadly categorized as:

  • Conformal Prediction (CP): A model-agnostic method that leverages a calibration set to produce statistically guaranteed confidence intervals.
  • Ensemble Methods: Aggregating predictions from multiple models to reduce variance and estimate uncertainty.
  • Quantile Regression: Directly modeling quantiles of the predictive distribution to estimate intervals.
  • Bayesian Inference Based Algorithms (e.g., Bayesian Neural Networks): Using probabilistic models to capture uncertainty in model parameters.
  • Model-Specific Methods: Techniques tailored to specific model architectures, such as evidential deep learning and Monte Carlo Dropout.

They also introduce and utilize metrics like Mean Interval Length (MIL) to measure interval width and Interval Coverage Percentage (ICP) to assess how well the intervals capture the true values, providing a standardized framework for comparison.

Datasets

The study utilizes a comprehensive dataset of 5-year historical traffic flow observations collected from over 3,800 locations in Madrid, Spain, provided by the Madrid City Council's Open Data portal. This data was augmented with meteorological information and calendar data (holidays, day of the week, etc.). For their experiments, they created 320 distinct datasets by varying:

  • Number of traffic sensors: 10 selected locations.
  • Input window length: Past measurements (w=1 or w=5, representing 15-minute intervals).
  • Forecasting horizon: Predictions for t+1, t+2, t+4, and t+8 (up to 2 hours ahead).
  • Inclusion of auxiliary data: With or without meteorological (m) and calendar (c) information.

Key Insights and Ideas

  • Beyond Accuracy: The paper strongly advocates for moving beyond simple predictive accuracy. Even models with high R² scores can produce highly uncertain forecasts, making them less actionable.
  • Conformal Prediction Shines: Conformal Prediction consistently demonstrated stable and reliable interval coverage (ICP), meaning its confidence intervals reliably captured the specified percentage of true values across various scenarios. This makes it a strong candidate for practical traffic forecasting.
  • Calibration is Crucial: The study highlights that calibration is essential for obtaining meaningful and trustworthy confidence intervals. Non-calibrated methods can be over- or under-confident, leading to intervals that are either too narrow or too wide to be useful.
  • Feature Impact on Uncertainty: While adding meteorological and calendar data didn't always significantly improve predictive performance, it could sometimes lead to narrower, more confident intervals, suggesting that feature selection should consider their impact on uncertainty, not just accuracy.
  • No One-Size-Fits-All: Different uncertainty estimation techniques have varying strengths and weaknesses, and their suitability can depend on the underlying model and data characteristics.

Key Results

  • Conformal Prediction's Stability: CP-based methods consistently achieved ICP values close to the target confidence level (e.g., 0.9), indicating reliable coverage.
  • MIL and ICP Trade-off: A narrower Mean Interval Length (MIL) generally implies higher confidence, but this can come at the cost of lower Interval Coverage Percentage (ICP) if not properly calibrated.
  • Deep Learning's Wider Intervals: Deep learning approaches, particularly evidential deep learning, tended to produce wider intervals, which, while covering more data, were not always well-calibrated.
  • Feature Contribution to Uncertainty: In some cases, removing meteorological features led to narrower confidence intervals, suggesting they contributed more to uncertainty than to predictive performance.
  • Calibration's Impact: Calibrated methods (like CP) showed a much better adherence to the target confidence level across different scenarios compared to non-calibrated methods, which exhibited over- or under-confidence.

Limitations and Future Work

  • Model-Agnostic vs. Model-Specific: While Conformal Prediction is model-agnostic, some techniques are tied to specific model types (e.g., deep neural networks), limiting their direct comparison.
  • Parameter Sensitivity: Some methods, like evidential deep learning, showed sensitivity to parameter choices, which could affect the reliability of their uncertainty estimates.
  • Future Directions: The authors suggest exploring other applications of uncertainty estimation, such as trend change detection, active learning for sensor placement, and incorporating new data sources (social media, traffic cameras) to improve forecast confidence. They also emphasize the need for a principled assessment of uncertainty as a key dimension in future research and benchmark studies.

Summary updated

Abstract

The estimation of the amount of uncertainty featured by predictive machine learning models has acquired a great momentum in recent years. Uncertainty estimation provides the user with augmented information about the model's confidence in its predicted outcome. Despite the inherent utility of this information for the trustworthiness of the user, there is a thin consensus around the different types of uncertainty that one can gauge in machine learning models and the suitability of different techniques that can be used to quantify the uncertainty of a specific model. This subject is mostly non existent within the traffic modeling domain, even though the measurement of the confidence associated to traffic forecasts can favor significantly their actionability in practical traffic management systems. This work aims to cover this lack of research by reviewing different techniques and metrics of uncertainty available in the literature, and by critically discussing how confidence levels computed for traffic forecasting models can be helpful for researchers and practitioners working in this research area. To shed light with empirical evidence, this critical discussion is further informed by experimental results produced by different uncertainty estimation techniques over real traffic data collected in Madrid (Spain), rendering a general overview of the benefits and caveats of every technique, how they can be compared to each other, and how the measured uncertainty decreases depending on the amount, quality and diversity of data used to produce the forecasts.
BibTeX
@article{lana2024measuring,
  author = {Ibai Laña and Ignacio Iñaki Olabarrieta and Javier Del Ser},
  title = {{Measuring the Confidence of Traffic Forecasting Models: Techniques, Experimental Comparison and Guidelines towards Their Actionability}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2024},
  url = {https://openreview.net/forum?id=LJSvRdjAim},
}
Figure