Traffic Flow Prediction System Based on Spatiotemporal Graph Neural Network
Main Article Content
Keywords
traffic flow prediction, graph neural networks, adaptive graph learning, spatiotemporal modeling, urban mobility, short-term forecasting, intelligent transportation systems
Abstract
Urban traffic congestion poses a persistent challenge to sustainable mobility, demanding intelligent forecasting systems capable of capturing both the complex spatial layout of road networks and the dynamic evolution of traffic patterns over time. Traditional statistical and deep learning methods often fail to jointly model these interdependent spatiotemporal characteristics, particularly when road topology is incomplete, outdated, or oversimplified. To address this gap, we propose a novel spatiotemporal graph neural network architecture specifically designed for short-term traffic flow prediction. Our framework introduces an adaptive graph learning module that dynamically infers meaningful connectivity relationships among traffic sensors—not relying on fixed geographic or distance-based assumptions—but instead leveraging real-time traffic correlations and node-level embeddings. This learned structure is then integrated into a hierarchical encoder that combines spectral graph convolution with dilated causal temporal convolutions, enabling effective modeling of both localized spatial interactions and multi-scale temporal dependencies across varying prediction horizons. A lightweight, shared-weight decoder supports flexible multi-step forecasting without sacrificing accuracy or efficiency. We rigorously evaluate our approach on two large-scale, real-world traffic datasets—PeMSD4 and PeMSD8—covering diverse urban environments and sensor densities. Experimental results demonstrate consistent and statistically significant improvements over state-of-the-art baselines, achieving more than a twelve percent reduction in mean absolute error for fifteen-minute forecasts. Ablation studies confirm the critical role of adaptive graph construction and hierarchical temporal modeling, while visualization of learned graphs reveals interpretable, physically plausible connectivity patterns aligned with actual road infrastructure and traffic behavior. The system shows strong deployment potential, balancing predictive performance with practical considerations such as inference speed and compatibility with edge-computing platforms used in modern traffic management centers.
References
- [1] S. Lan, Y. Ma, W. Huang, W. Wang, H. Yang, and P. Li, “Dstagnn: Dynamic spatial-temporal aware graph neural network for traffic flow forecasting,” in Proc. Int. Conf. Mach. Learn., 2022, pp. 11906–11917.
- [2] X. Wang, Y. Ma, Y. Wang, W. Jin, X. Wang, J. Tang, et al., “Traffic flow prediction via spatial temporal graph neural network,” in Proc. Web Conf. 2020, 2020, pp. 1082–1092.
- [3] Y. Huo, H. Zhang, Y. Tian, Z. Wang, J. Wu, and X. Yao, “A spatiotemporal graph neural network with graph adaptive and attention mechanisms for traffic flow prediction,” Electronics, vol. 13, no. 1, p. 212, 2024.
- [4] H. Peng, H. Wang, B. Du, M. Z. A. Bhuiyan, H. Ma, J. Liu, et al., “Spatial temporal incidence dynamic graph neural networks for traffic flow forecasting,” Inf. Sci., vol. 521, pp. 277–290, 2020.
- [5] W. Kong, Z. Guo, and Y. Liu, “Spatio-temporal pivotal graph neural networks for traffic flow forecasting,” in Proc. AAAI Conf. Artif. Intell., vol. 38, no. 8, 2024, pp. 8627–8635.
- [6] J. Chen, L. Zheng, Y. Hu, W. Wang, H. Zhang, and X. Hu, “Traffic flow matrix-based graph neural network with attention mechanism for traffic flow prediction,” Inf. Fusion, vol. 104, p. 102146, 2024.
- [7] M. Li and Z. Zhu, “Spatial-temporal fusion graph neural networks for traffic flow forecasting,” in Proc. AAAI Conf. Artif. Intell., vol. 35, no. 5, 2021, pp. 4189–4196.
- [8] Y. Li, W. Zhao, and H. Fan, “A spatio-temporal graph neural network approach for traffic flow prediction,” Mathematics, vol. 10, no. 10, p. 1754, 2022.
- [9] W. Jiang, Y. Xiao, Y. Liu, Q. Liu, and Z. Li, “Bi‐GRCN: a spatio‐temporal traffic flow prediction model based on graph neural network,” J. Adv. Transp., vol. 2022, no. 1, p. 5221362, 2022.
- [10] Z. Geng, J. Xu, R. Wu, C. Zhao, J. Wang, Y. Li, and C. Zhang, “STGAFormer: Spatial–temporal gated attention transformer based graph neural network for traffic flow forecasting,” Inf. Fusion, vol. 105, p. 102228, 2024.
