Abstract
Traffic forecasting is a critical component of intelligent transportation systems, yet it remains challenging due to the complex spatial-temporal dependencies inherent in traffic data. This paper introduces ASTGCRN, a novel framework that integrates adaptive graph convolutions with global attention mechanisms. By combining Gated Recurrent Units (GRUs) with learned graph structures and Transformer-style attention layers, the model captures both fine-grained local fluctuations and long-term global patterns. Experimental results across five real-world traffic datasets and one non-traffic dataset demonstrate that ASTGCRN outperforms 19 state-of-the-art baselines in accuracy and computational efficiency.
1. Introduction
Predicting traffic flow and speed is a quintessential spatial-temporal problem. Traffic conditions at a specific sensor location are influenced by both immediate neighboring roads (spatial) and historical trends (temporal). Existing research typically falls into two categories: RNN-based models, which excel at local sequential changes but suffer from vanishing memory over long horizons, and CNN/Attention-based models, which capture global dependencies but often overlook fine-grained local dynamics.
Furthermore, most existing models rely on static adjacency matrices—pre-defined maps based on physical distance. However, traffic relationships are dynamic; road connectivity can be effectively altered by accidents, weather, or varying commute patterns. To address these limitations, we propose the Attention-based Spatial-Temporal Graph Convolutional Recurrent Network (ASTGCRN).
2. Methodology
The ASTGCRN framework utilizes a dual-component architecture designed to harmonize local and global feature extraction.
2.1 The GCRN Module: Local Spatial-Temporal Modeling
Instead of relying on a fixed road map, the GCRN module employs Adaptive Graph Convolutions. The model learns unique "node embeddings"—high-dimensional signatures for each sensor location—to automatically discover hidden spatial correlations. These convolutions are integrated directly into a Gated Recurrent Unit (GRU). This allows the network to capture local temporal sequences while simultaneously accounting for the evolving spatial influences of the surrounding network.
2.2 Global Temporal Attention
To overcome the inherent "short-sightedness" of recurrent architectures, a global attention layer is appended to the GCRN. The authors explored three distinct variants to optimize this global capture:
- A-ASTGCRN: Utilizes standard Multi-Head Self-Attention.
- T-ASTGCRN: Incorporates a full Transformer-style module with positional encoding to maintain temporal order.
- I-ASTGCRN: Employs an "Informer" module with "ProbSparse" attention to minimize the computational footprint for exceptionally long sequences.
3. Experimental Setup
3.1 Datasets
The model was rigorously evaluated on five high-quality traffic datasets from the Caltrans Performance Measure System (PeMS): PEMSD3, PEMSD4, PEMSD7, PEMSD8, and PEMSD7(M). To test the framework's generalizability beyond traffic, the authors also introduced DND-US, a dataset tracking weekly natural death rates across 53 US states over a six-year period.
3.2 Baselines
ASTGCRN was compared against 19 state-of-the-art baselines, including advanced models like ASTGNN and STG-NCDE.
4. Results and Discussion
4.1 Predictive Performance
ASTGCRN variants consistently outperformed all baselines across every PeMS dataset. The Transformer-based version (T-ASTGCRN) emerged as the strongest performer, improving average Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE) by 0.11, 0.30, and 0.28 respectively over the previous state-of-the-art.
4.2 Key Insights
- Adaptive Graphs vs. Static Maps: The success of adaptive convolutions suggests that learned, hidden correlations (e.g., similar commuting behaviors between non-adjacent roads) provide more predictive power than simple physical proximity.
- The Hybrid Advantage: The integration of GRUs for local dynamics and Attention for global patterns creates a synergy that neither architecture achieves in isolation.
- The Role of Position: The superior performance of the T-ASTGCRN variant highlights the importance of positional encoding, which helps the model retain the specific chronological order of historical data points.
- Computational Efficiency: Despite its architectural complexity, ASTGCRN is significantly faster than competitors like ASTGNN, sometimes by one to two orders of magnitude, making it a viable candidate for real-time deployment.
5. Conclusion and Future Work
ASTGCRN represents a significant advancement in spatial-temporal forecasting by successfully merging recurrent and attention-based paradigms. While the model shows exceptional accuracy and efficiency, the authors note that the attention mechanism is slightly less effective for immediate "next-step" predictions compared to pure recurrent models. Additionally, the model's performance is sensitive to hyperparameters such as node embedding dimensions and weight decay. Future research will focus on refining the Transformer and Informer components to further enhance the robustness of general spatial-temporal forecasting.
Summary updated