Introduction
Citywide traffic flow forecasting is a cornerstone of smart city infrastructure, essential for congestion management and public safety. However, traditional models often fail to capture the full complexity of urban movement due to two primary limitations: the "local-only" blind spot and temporal multi-periodicity.
Most existing frameworks assume traffic in a region is influenced only by its immediate neighbors, ignoring "spatial semantics"—the functional similarities between distant regions like two separate shopping districts. Furthermore, traffic patterns are multi-periodic, emerging across hourly, daily, and weekly resolutions that are difficult to integrate into a single cohesive prediction. To address these challenges, we propose the Spatial-Temporal Graph Diffusion Network (ST-GDN).
The ST-GDN Framework
ST-GDN employs a multi-layered approach to capture both local and global dependencies alongside complex temporal rhythms. The architecture moves beyond simple sequential modeling by integrating hierarchical graph structures and multi-scale attention.
The architecture consists of four key components:
- Temporal Hierarchy Modeling: Utilizes a multi-scale self-attention network to process data at different resolutions (hourly, daily, weekly), encoding the city's multi-level "heartbeat."
- Traffic Dependency Learning with Global Context: An attentive aggregation mechanism identifies functionally similar regions across the city (e.g., two residential zones), regardless of geographical distance.
- Region-wise Relation Learning (Graph Diffusion): Refines spatial representations by treating traffic flow as a diffusion process on a graph, accounting for both inflow and outflow dynamics.
- External Factor Fusion: Integrates non-traffic data like weather conditions (temperature, wind speed) and calendar events (holidays, weekends) to adjust for anomalies.
Experimental Evaluation
ST-GDN was evaluated on three large-scale, real-world datasets:
- BJ-Taxi: GPS data from 34,000+ taxis in Beijing.
- NYC-Taxi: Over 22 million taxi trajectories in New York City.
- NYC-Bike: Hourly bike-sharing data from NYC.
Results and Discussion
ST-GDN consistently outperformed state-of-the-art baselines, including ST-GCN, GMAN, and DCRNN. On the BJ-Taxi dataset, the model achieved an RMSE of 14.57 for inflow, surpassing the next best baseline, GMAN (15.07). The performance gap was even more pronounced in the NYC-Bike dataset, where ST-GDN reduced RMSE to 3.00 compared to baseline averages of 3.70–4.00.
Ablation studies (represented by variants like ST-GDN-d, -g, etc., in the figure above) confirm that each component—global context, temporal hierarchy, and diffusion—contributes significantly to the model's accuracy. A key innovation is the gating mechanism, which allows the model to dynamically weight different time resolutions, adapting to varying urban dynamics.
Conclusion
The ST-GDN framework demonstrates that global spatial semantics are as critical as local adjacency for accurate traffic forecasting. By effectively fusing multi-scale temporal patterns with global and local spatial dependencies, ST-GDN provides a robust solution for real-time urban planning. Future work will focus on deploying the system in cloud-based environments and exploring higher-order region dependencies to further refine global spatial context.
Summary updated