Quantifying Uncertainty in Deep Spatiotemporal Forecasting

Dongxia Wu, Liyao Gao, Xinyue Xiong, Matteo Chinazzi, Alessandro Vespignani, Yi-An Ma, Rose Yu

TL;DR

This paper presents the first systematic benchmark study of uncertainty quantification (UQ) methods for deep spatiotemporal forecasting. By unifying frequentist and Bayesian approaches under statistical decision theory, the authors reveal critical trade-offs: Bayesian methods excel at mean prediction accuracy, while frequentist methods provide superior confidence interval coverage.

What Problem Does This Paper Address?

Deep learning has revolutionized spatiotemporal forecasting in domains like traffic management, climate science, and public health. However, most state-of-the-art models only provide point estimates—a single predicted value without any measure of uncertainty.

In high-stakes scenarios (e.g., predicting the spread of an epidemic or severe air pollution), overconfident but incorrect predictions can lead to disastrous decisions. Quantifying uncertainty in spatiotemporal data is uniquely challenging because models must capture complex spatial and temporal dependencies, and errors (along with uncertainty) propagate rapidly over long forecasting horizons. This paper addresses the lack of a systematic framework and benchmark for UQ methods in deep spatiotemporal forecasting.

Methods

The authors unify frequentist and Bayesian UQ approaches under a single framework based on statistical decision theory. They adapt six distinct UQ methods to work with two standard spatiotemporal base architectures: ConvLSTM (for regular grid-based data) and DCRNN (for graph-based network data).

The evaluated UQ methods include:

  • Frequentist Approaches:
    • Bootstrap: Resampling data to train an ensemble of models.
  • Quantile Regression: Optimizing a pinball loss function to predict specific data quantiles.
  • Spline Quantile (SQ) Regression: Approximating the quantile function using piecewise linear splines.
  • Mean Interval Score (MIS) Regression: Directly optimizing the interval bounds using a loss function based on the Winkler loss metric.
  • Bayesian Approaches:
    • Monte Carlo (MC) Dropout: Applying random dropout during testing to simulate model uncertainty.
  • Stochastic Gradient MCMC (SG-MCMC): Specifically using Stochastic Gradient Thermostat (SGNHT) to sample from the parameter posterior distribution.

To evaluate the quality of the uncertainty intervals, the authors rely on the Mean Interval Score (MIS), a metric that rewards narrower intervals while heavily penalizing intervals that fail to cover the ground-truth data points.

Datasets

The benchmark evaluates these methods across three real-world spatiotemporal datasets:

  1. Air Quality PM2.5: Hourly weather and PM2.5 pollution data on a $21 \times 31$ grid in Beijing (from the KDD Cup 2018).
  2. METR-LA Road Network Traffic: Four months of vehicle speed data from 207 highway sensors in Los Angeles, modeled as a graph.
  3. COVID-19 Incident Deaths: Weekly reported deaths across 50 US states, combined with spatial air traffic mobility networks.

Key Insights and Ideas

  • The Accuracy vs. Coverage Trade-off: There is no single winner. Bayesian methods (specifically SG-MCMC) consistently yield the most accurate mean predictions (lowest Mean Absolute Error). Conversely, frequentist methods (Quantile and MIS regression) generate wider, more robust confidence intervals that better capture data variations (lowest MIS scores).
  • Sample Complexity Advantage for Bayes: When comparing sampling-based methods, SG-MCMC requires significantly fewer samples to achieve stable uncertainty estimates than the frequentist Bootstrap method, likely due to posterior contraction.
  • Deep Learning Needs Physics/Mechanistic Help: For highly volatile data with limited samples (like COVID-19 mortality), purely deep learning models fail due to distribution shifts. A hybrid approach—training the deep model on the residuals of a mechanistic epidemiological model (GLEAM)—drastically improves performance.

Key Results

The authors summarized the high-level trade-offs of each method in a handy reference table:

Table 1: Comparison of different deep uncertainty quantification methods for forecasting.

Quantitative experiments across all three datasets confirmed these characteristics:

  • Traffic & Air Quality: SG-MCMC achieved the lowest MAE (e.g., 2.32 vs 2.38 for the baseline point estimate on 15-min traffic), while MIS Regression achieved the best uncertainty calibration (lowest MIS score).
  • Visualizing the Intervals: As seen in the air quality forecasts, the frequentist Quantile method (green shade) provides wider coverage that successfully envelopes the ground truth, whereas the Bayesian SG-MCMC method (orange shade) tracks the mean closely but can occasionally be too narrow to cover sharp data spikes.
Figure 1: 12 hours ahead (Left) and 24 hours ahead (Right) Air quality PM 2.5 forecasting over 24 day time span on a ran- domly selected grid cell.
  • Sample Efficiency: Plotting the percentage decrease in MIS score against the number of Monte Carlo samples showed that SG-MCMC converges much faster than Bootstrap, making it more computationally efficient when parallel resources are constrained.
Figure 4: MIS of Bootstrap and SG-MCMC with increasing number of samples for COVID forecasting.

Limitations and Future Work

The authors note a few key limitations in current deep UQ methods:

  1. I.I.D. Assumption in Batches: Current training methods treat minibatches as independent and identically distributed (i.i.d.), effectively ignoring the explicit spatiotemporal structure of the data during the inference/sampling phase.
  2. Interval Disconnect: In some cases, the width of the confidence interval does not perfectly correlate with actual prediction accuracy due to limited sample sizes and highly chaotic data dynamics.

Future Directions: The authors suggest exploring hybrid approaches that combine Bayesian credible intervals with frequentist confidence intervals to get the best of both worlds (high accuracy and reliable coverage). They also call for developing new UQ inference algorithms that explicitly embed spatiotemporal graph structures directly into the sampling process.

Summary updated

BibTeX
@inproceedings{wu2021quantifying,
  author = {Dongxia Wu and Liyao Gao and Xinyue Xiong and Matteo Chinazzi and Alessandro Vespignani and Yi-An Ma and Rose Yu},
  title = {{Quantifying Uncertainty in Deep Spatiotemporal Forecasting}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467325},
}
Figure