Global-Aware Enhanced Spatial-Temporal Graph Recurrent Networks: A New Framework For Traffic Flow Prediction

Haiyang Liu, Chunjiang Zhu, Detian ZhangarXiv 2024

Abstract

Traffic flow prediction is a cornerstone of Intelligent Transport Systems (ITS), yet it remains challenging due to the complex dynamic dependencies in both space and time. While combining graph convolution networks (GCNs) with recurrent neural networks (RNNs) is a common strategy, standard approaches often assume a fixed road network structure and suffer from the limited global perception of RNNs. This paper introduces the Global-Aware Enhanced Spatial-Temporal Graph Recurrent Network (GA-STGRN), a novel framework that integrates sequence-aware graph learning with a global awareness layer. By utilizing non-fixed graphs and Transformer-like architectures, the framework significantly improves prediction accuracy and training efficiency across multiple real-world datasets.

Introduction

Accurate traffic flow prediction is essential for alleviating congestion and improving transport efficiency. Current state-of-the-art models, known as Spatial-Temporal Graph Neural Networks (STGNNs), typically face two major hurdles:

  1. Fixed Graph Assumptions: Most models assume the underlying road graph is static or uniform across all time steps. In reality, traffic events like accidents or rush hours dynamically alter the effective relationships between sensors.
  2. Local vs. Global Constraints: Models relying on RNNs (like GRUs) are effective at capturing local temporal sequences but struggle with long-range dependencies and global spatial features due to their iterative nature.

Methodology

The GA-STGRN framework addresses these limitations through two core innovations: the Sequence-aware Graph Convolution Network (SGCN) and the Global Awareness Layer ($GST^2$).

Sequence-aware Graph Learning

Unlike traditional models that use a single adjacency matrix, the SGCN module utilizes node embeddings combined with time-indexed position embeddings. This allows the model to learn "non-fixed" graphs that evolve at every time step, capturing the volatile nature of road relationships.

Comparison between fixed and non-fixed graphs over time.

Global Awareness Layer ($GST^2$)

To overcome the "tunnel vision" of standard recurrent networks, the authors introduced a global awareness layer following the recurrent network. This layer uses three distinct Global Spatial-Temporal Transformer-like architectures:

  • Parallel ($PGST^2$): Simultaneous calculation of spatial and temporal attention.
  • Serial ($SGST^2$): Sequential calculation, starting with temporal attention.
  • Fused ($FGST^2$): A novel Spatial-Temporal Fusion Attention (STFA) mechanism that captures both dimensions simultaneously.
Comparison of the original STGRN framework with the proposed Global-Aware Enhanced STGRN framework.

Experimental Evaluation

The framework was evaluated on four standard real-world traffic datasets from the Caltrans Performance Measure System (PeMS): PEMSD3, PEMSD4, PEMSD7, and PEMSD8. The task involved using the past 60 minutes of data to predict the next 60 minutes.

Key Results

  • Superior Accuracy: GA-STGRN consistently outperformed 20 baseline methods, including AGCRN and Graph WaveNet. On the PEMSD3 dataset, the model achieved a 2.83% improvement in Mean Absolute Error (MAE) over previous state-of-the-art models.
  • Enhanced Efficiency: A significant finding was that the $GST^2$ layers allowed the model to converge up to 6 times faster than standard STGRNs (5 epochs vs. 30 epochs), as global attention helps identify relevant features earlier in training.
  • Robustness: Visualization of prediction curves demonstrated that the framework is particularly effective at capturing "peaks" and high-flow fluctuations where other models typically under-predict.

Discussion and Conclusion

The GA-STGRN framework demonstrates that moving away from static graph assumptions and incorporating global attention mechanisms are vital for high-fidelity traffic forecasting. While the model introduces some memory overhead (requiring approximately 10GB of VRAM for larger datasets), its competitive inference times and superior accuracy make it a viable candidate for real-time ITS applications. Future research may explore the application of this global-aware framework to other spatial-temporal domains, such as weather forecasting or energy grid management.

Summary updated

BibTeX
@misc{liu2024global,
  author = {Haiyang Liu and Chunjiang Zhu and Detian Zhang},
  title = {{Global-Aware Enhanced Spatial-Temporal Graph Recurrent Networks: A New Framework For Traffic Flow Prediction}},
  year = {2024},
  eprint = {2401.04135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04135},
}
Figure