Abstract
Traffic forecasting is a critical yet challenging task due to complex spatial-temporal dependencies. This paper introduces the Spatial-Temporal Graph Convolutional Gated Recurrent Network (STGCGRN), a framework designed to capture both physical road distances and latent social-economic relationships. By integrating a multi-head self-adaptive graph mechanism with an attention module for periodic rhythms, STGCGRN addresses temporal shifts and hidden spatial correlations. Experimental results on PeMS datasets demonstrate that STGCGRN achieves state-of-the-art performance, particularly by prioritizing individual node rhythms before spatial aggregation.
Introduction
Traffic forecasting is notoriously difficult because it involves two complex, overlapping dimensions: temporal and spatial dependencies. Temporally, traffic is driven by both short-term events and long-term periodicities, such as daily commutes and weekly cycles. Existing models often struggle with "temporal shifts," where periodic patterns (like rush hour) do not occur at the exact same time every day. Spatially, traditional models often rely on fixed distance-based maps, failing to account for "hidden" dependencies between geographically distant locations that share functional similarities, such as two commercial districts.
Furthermore, a significant challenge arises when modeling spatial relationships: if spatial dependencies are modeled before accounting for the unique periodic patterns of individual nodes, the "noise" from one node's schedule can interfere with its neighbors, thereby degrading forecast accuracy.
Methodology
The proposed STGCGRN framework utilizes a sequence-to-sequence (Encoder-Decoder) architecture to address these challenges. Its core innovations are centered on periodic data construction and a novel spatial-temporal modeling unit.
Periodic Data Construction and Attention
The model processes three distinct temporal inputs: recent data, daily periodic data, and weekly periodic data. To handle temporal shifts, an attention module with sliding windows is employed. This allows the decoder to dynamically "search" for the most relevant historical moments across days and weeks to inform current predictions, rather than relying on a rigid time-step alignment.
Double Graph Convolution Gated Recurrent Unit (DGCGRU)
The DGCGRU serves as the primary spatial modeling component, replacing standard linear operations within a GRU cell with two types of graph convolutions:
- Distance-based Convolution: Utilizes a predefined adjacency matrix based on physical road distances.
- Multi-head Self-adaptive Convolution: Employs a multi-head mechanism to learn multiple latent adjacency matrices. This enables the model to discover various hidden relationships between nodes simultaneously, much like the multi-head attention in Transformers.
Strategic Architecture
A key design choice in STGCGRN is placing the DGCGRU layer after the attention module. This ensures that the model captures each node's individual periodic rhythm before aggregating information from neighboring nodes, preventing mutual interference between distinct local patterns.
Experimental Evaluation
The model was evaluated on four large-scale public datasets from the Caltrans Performance Measurement System (PeMS) in California: PEMS03, PEMS04, PEMS07, and PEMS08. Data was aggregated into 5-minute intervals, with the objective of predicting traffic conditions for the subsequent 60-minute window.
Key Results
STGCGRN consistently outperformed baseline models, including DCRNN, STGCN, and Graph WaveNet, across all datasets. On the PEMS08 dataset, STGCGRN achieved a Mean Absolute Error (MAE) of 12.54, compared to 15.07 for Graph WaveNet. Similar improvements were observed in Root Mean Square Error (RMSE) and Mean Absolute Percentage Error (MAPE). Ablation studies confirmed that the multi-head mechanism is most effective with 8 heads, indicating that traffic nodes share multiple layers of hidden relationships.
Discussion and Insights
- The Primacy of Periodicity: Ablation studies revealed that removing periodic information caused the most significant drop in performance, identifying long-term temporal patterns as the "anchor" for accurate forecasting.
- Influence of Hidden Links: The self-adaptive graph proved more influential than the distance-based graph, suggesting that functional similarity is often a better predictor of traffic correlation than physical proximity.
- The Interference Hypothesis: Performance gains from the
STGCGRNover its reversed architecture (STGCGRN_rev) confirm that identifying individual node rhythms before spatial aggregation is crucial for minimizing noise.
Conclusion and Future Work
While STGCGRN demonstrates superior accuracy, its computational complexity—stemming from multi-head self-adaptive graphs within recurrent units—presents a challenge for real-time deployment on massive networks. Future work will focus on optimizing these components and integrating external variables such as weather and road incidents to further enhance robustness.
Summary updated