Abstract: Accurate traffic flow forecasting is a crucial research topic in transportation management. However, it is a challenging problem due to rapidly changing traffic conditions, high nonlinearity of traffic flow, and complex spatial and temporal correlations of road networks. Most existing studies either try to capture the spatial dependencies between roads using the same semantic graph over different time steps, or assume all sensors on the roads are equally likely to be connected regardless of the distance between them. However, we observe that the spatial dependencies between roads indeed change over time, and two distant roads are not likely to be helpful to each other when predicting the traffic flow, both of which limit the performance of existing studies. In this paper, we propose Temporal Graph Learning Recurrent Neural Network (TGLRN) to address these problems. More precisely, to effectively model the nature of time series, we leverage Recurrent Neural Networks (RNNs) to dynamically construct a graph at each time step, thereby capturing the time-evolving spatial dependencies between roads (i.e., microscopic view). Simultaneously, we provide the Adaptive Structure Information to the model, ensuring that close and consecutive sensors are considered to be more important for predicting the traffic flow (i.e., macroscopic view). Furthermore, to endow TGLRN with robustness, we introduce an edge sampling strategy when constructing the graph at each time step, which eventually leads to further improvements on the model performance. Experimental results on four commonly used real-world benchmark datasets show the effectiveness of TGLRN.
Introduction
Traffic forecasting is notoriously difficult because road networks exhibit complex, non-linear spatio-temporal dependencies. Most existing models suffer from two main flaws. First, they often rely on Static Spatial Assumptions, using a single, fixed "semantic" graph for all time steps. This ignores the reality that the influence one road has on another changes throughout the day—for instance, the relationship between two highway segments during rush hour differs significantly from their relationship at midnight. Second, many modern models fall into the "Complete Graph" Trap, allowing every sensor to connect to every other sensor. Geographically distant roads often have entirely different traffic trends; forcing the model to consider these distant relationships introduces noise and degrades performance.
The challenge is to build a model flexible enough to capture evolving relationships (microscopic) while being grounded in the physical reality that proximity matters (macroscopic).
Methodology: The TGLRN Architecture
TGLRN addresses these challenges through three novel components integrated into a unified spatio-temporal framework:
- Dynamic Node Embedding: Instead of static embeddings, TGLRN utilizes a Recurrent Neural Network (RNN) structure to generate node embeddings that evolve over time. These embeddings are used to calculate edge weights for a new graph at every time step, allowing the model to adapt to the "pulses" of urban traffic.
- Adaptive Structure Information (ASI): To prevent the model from being overwhelmed by noise from distant sensors, the authors introduce a "Hop Range Selector." This learned component determines the optimal neighborhood size for each sensor at each time step, effectively pruning the graph to focus only on relevant, "consecutively existing" sensors.
- Edge Sampling Strategy: During training, the model randomly samples a subset of edges, a form of graph structural perturbation. This acts as a regularizer, making the model more robust to noise and unpredictable events like accidents or roadwork.
The core architecture uses Spatio-Temporal Blocks consisting of Diffusion Convolution (to handle directed spatial flow) and 1D Temporal Convolution with Gated Tanh Units (GTU) to capture time-series patterns.
Experimental Evaluation
The model was evaluated on four widely used real-world highway traffic datasets from the Caltrans Performance Measurement System (PeMS): PeMS03, PeMS04, PeMS07, and PeMS08. These datasets range from 170 to 883 nodes and aggregate traffic flow into 5-minute intervals.
TGLRN consistently outperformed 12 baseline models, including state-of-the-art methods like DSTAGNN and AGCRN, across all four datasets. On the PeMS08 dataset, TGLRN achieved a Mean Absolute Error (MAE) of 15.28, compared to the previous best of 15.67 (DSTAGNN). Notably, as the forecasting window increases, TGLRN's performance degrades much more slowly than its competitors, indicating a superior grasp of long-term temporal dynamics.
Discussion and Conclusion
A key insight from this work is that proximity should be treated as a prior rather than a rigid constraint. Restricting the search space to geographically proximate or consecutive sensors (the macroscopic view) significantly filters out "spurious" correlations. Furthermore, the use of the Gumbel-Softmax trick allows the model to learn a sparse, meaningful adjacency matrix rather than a dense, noisy one.
While TGLRN is highly effective, it faces challenges regarding space complexity, as the Graph Construction Layer requires $O(T'N^2)$ space. Future work may involve geographical partitioning—dividing large urban areas into smaller sub-regions—to maintain scalability for city-wide deployments.
Summary updated