Bayesian Spatio-Temporal Graph Convolutional Network for Traffic Forecasting

Jun Fu, Wei Zhou, Zhibo ChenarXiv 2020

Abstract

Traffic forecasting is a cornerstone of Intelligent Transportation Systems (ITS), yet it remains challenging due to complex spatio-temporal dependencies and the inherent noise in real-world data. Traditional Graph Convolutional Network (GCN) models often rely on static, predefined road topologies and fail to account for the uncertainty of urban movement. This paper presents the Bayesian Spatio-Temporal Graph Convolutional Network (BSTGCN), an end-to-end framework that learns probabilistic, data-driven graph structures. By integrating Bayesian inference with a specialized spatio-temporal context module, BSTGCN captures both physical and "virtual" road relationships while maintaining robustness against data noise. Experimental results on the SZ-taxi and Los-loop datasets demonstrate that BSTGCN consistently outperforms state-of-the-art baselines in accuracy and long-term stability.

Introduction

Accurate traffic forecasting is essential for urban planning and traffic management. While GCNs have significantly advanced the field by modeling spatial dependencies, they typically suffer from two major limitations. First, they rely on static topologies based on physical road connections, ignoring dynamic or functional relationships between distant areas (e.g., two business districts). Second, they lack a mechanism to handle uncertainty, treating road relationships as deterministic despite the noisy nature of traffic data.

To address these issues, the proposed BSTGCN framework treats the road network as a probabilistic graph that evolves with actual traffic data, allowing for a more nuanced representation of urban dynamics.

Methodology

The BSTGCN architecture consists of four integrated modules designed to transform raw traffic data into accurate future predictions.

The BSTGCN architecture, featuring the Bayesian inference module and the spatio-temporal context module.

1. Projection Module

This module transforms 1D traffic speed data into a 64-dimensional high-dimensional feature space. This expansion allows the network to capture subtle nuances in traffic patterns that are not apparent in raw scalar values.

2. Spatio-temporal Context Module

At the heart of the temporal processing is a tailored Gate Recurrent Unit (GRU). Unlike standard GRUs that utilize fully connected layers, this version incorporates GCNs to process inputs. This design enables the model to learn spatial and temporal features simultaneously, preserving the graph structure throughout the sequence processing.

3. Bayesian Inference Module

This core innovation replaces fixed adjacency matrices with a generative model. It combines the physical road topology ($A_{\hat{g}}$) with a trainable parameter ($\phi$) learned from traffic data. By employing Monte Carlo dropout, the module introduces uncertainty during training, which serves as a powerful regularizer and improves generalization.

4. Decoder Module

Finally, the decoder converts the high-dimensional latent features back into predicted traffic speeds for the target time horizons.

Experiments and Results

The model was evaluated using two real-world datasets: SZ-taxi (156 roads in Shenzhen) and Los-loop (207 sensors in Los Angeles). The task involved using 60 minutes of historical data to predict traffic speeds for the subsequent 15, 30, 45, and 60 minutes.

Performance Comparison

BSTGCN consistently outperformed traditional statistical models (ARIMA), standard deep learning (GRU), and existing graph-based models like T-GCN and A3T-GCN. On the Los-loop dataset for a 60-minute prediction horizon, BSTGCN achieved an $R^2$ improvement of 3.85% over T-GCN and 2.61% over A3T-GCN.

Traffic speed prediction results comparing BSTGCN against ground truth and baseline models across different time intervals.

As shown in the visualization, BSTGCN tracks the ground truth more closely than baselines, especially during periods of rapid change. Furthermore, the model exhibits impressive resilience over longer horizons, maintaining higher accuracy ($ACC$) and lower error ($RMSE$) as the prediction window increases.

Key Insights

  • Data-Driven Connectivity: The learned graphs are often denser than physical maps, indicating that traffic on a given road is influenced by a broader set of factors than just immediate neighbors.
  • Asymmetry and Negative Dependencies: The model successfully identifies asymmetric relationships (where Road A affects Road B but not vice versa) and negative correlations (where congestion in one area correlates with speed increases elsewhere due to detours).
  • Robustness through Uncertainty: Treating the graph structure as a probabilistic sample makes the model significantly more robust to sensor noise compared to deterministic approaches.

Conclusion

BSTGCN represents a significant step forward in traffic forecasting by moving from static to probabilistic graph representations. While the model excels at capturing general trends and complex dependencies, future work will focus on improving its ability to predict sudden, anomalous events like accidents. Additionally, the researchers plan to explore automated hyperparameter optimization via Neural Architecture Search (NAS) and apply the framework to other domains such as ride-hailing demand forecasting.

Summary updated

BibTeX
@misc{fu2020bayesian,
  author = {Jun Fu and Wei Zhou and Zhibo Chen},
  title = {{Bayesian Spatio-Temporal Graph Convolutional Network for Traffic Forecasting}},
  year = {2020},
  eprint = {2010.07498},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.07498},
}
Figure