A Cloud-Based Spatio-Temporal GNN-Transformer Hybrid Model for Traffic Flow Forecasting with External Feature Integration

Authors

  • Zhuo Zheng Nanchang University, Nanchang, Jiangxi, China
  • Lingran Meng Civil Engineering , University of Washington, Seattle, WA, USA
  • Ziyu Lin Google LLC, Seattle, Washington, CA, USA

DOI:

https://doi.org/10.66238/fsrma90

Keywords:

Traffic flow forecasting, Spatio-Temporal Graph Neural Network, Transformer, Cloud computing, Intelligent transportation system (ITS, External feature fusion

Abstract

Accurate traffic flow forecasting is essential for the development of intelligent transportation systems (ITS), supporting tasks such as traffic signal optimization, congestion management, and route planning. Traditional models often fail to effectively capture complex spatial-temporal dependencies in large-scale road networks, especially under the influence of external factors such as weather, holidays, and traffic accidents. To address this challenge, this paper proposes a cloud-based hybrid model that integrates Spatio-Temporal Graph Neural Networks (ST-GNN) with a Transformer architecture for traffic flow prediction. The model leverages the strengths of GNNs in modeling spatial correlations across road networks and the Transformers’ ability to capture long-term temporal dependencies. External contextual features are incorporated via feature fusion to enhance predictive accuracy. The proposed model is deployed on a cloud computing platform to achieve scalability and real-time adaptability. Experimental evaluation of the dataset shows that our model outperforms baseline methods (LSTM, TCN, GCN, pure Transformer) with an RMSE of only 17.92 and a MAE of only 10.53.These findings suggest that the hybrid GNN–Transformer approach provides an effective and scalable solution for cloud-based ITS applications, offering methodological advancements for traffic flow forecasting and practical implications for congestion mitigation.

References

Zhao P. Sustainable urban expansion and transportation in a growing megacity: Consequences of urban sprawl for mobility on the urban fringe of Beijing[J]. Habitat International, 2010, 34(2): 236-243.

Li H, Zhao Y, Mao Z, et al. Graph neural networks in intelligent transportation systems: Advances, applications and trends[J]. arXiv preprint arXiv:2401.00713, 2024.

Mcmurray S. Semantic Aware Environment Spatial-Temporal Graph Transformer: A Single-Agent Multi-Class Trajectory Prediction Framework[J]. 2024.

Zhang Y, Peng S, Zhou Y. Spatial–temporal graph transformer network for traffic network flow prediction using parallel training based on cloud computing[J]. Applied Soft Computing, 2025: 113422.

Kumar S V. Traffic flow prediction using Kalman filtering technique[J]. Procedia Engineering, 2017, 187: 582-587.

Xu D, Wang Y, Jia L, et al. Real-time road traffic state prediction based on ARIMA and Kalman filter[J]. Frontiers of Information Technology & Electronic Engineering, 2017, 18(2): 287-302.

Polson N G, Sokolov V O. Deep learning for short-term traffic flow prediction[J]. Transportation Research Part C: Emerging Technologies, 2017, 79: 1-17.

Wu Y, Tan H, Qin L, et al. A hybrid deep learning based traffic flow prediction method and its understanding[J]. Transportation Research Part C: Emerging Technologies, 2018, 90: 166-180.

Redhu P, Kumar K. Short-term traffic flow prediction based on optimized deep learning neural network: PSO-Bi-LSTM[J]. Physica A: Statistical Mechanics and its Applications, 2023, 625: 129001.

Harrou F, Zeroual A, Kadri F, et al. Enhancing road traffic flow prediction with improved deep learning using wavelet transforms[J]. Results in Engineering, 2024, 23: 102342.

Navarro-Espinoza, A.; López-Bonilla, O.R.; García-Guerrero, E.E.; Tlelo-Cuautle, E.; López-Mancilla, D.; Hernández-Mejía, C.; Inzunza-González, E. Traffic Flow Prediction for Smart Traffic Lights Using Machine Learning Algorithms. Technologies 2022, 10, 5.

Toor, M. J., Shabbir, S., Rauf, A., Nisar, A., Safdar, S., & Zaib-Un-Nisa. (n.d.). The role of structured-communication-technique in developing pragmatic language capability among ASD-children. https://doi.org/10.63878/cjssr.v3i2.785

Toor, M. J., Mehmood, H., Yasmeen, A., Honey, Q., Waseem, M., & Wasif, M. (n.d.). Exploring the effect of verbal encouraging phrases (VEP) on Chinese language learners’ academic achievement at university level.

Toor, M. J., Arafat, M., Ayoub, M., Ali, M., & Alessi Longa, F. E. (n.d.). From coherent self to fragmented persona: Digital identity fragmentation and academic self-concept among Generation Z, with comparative insights from Generation Alpha. https://doi.org/10.63878/cjssr.v4i2.2318

Katsitadze, N., Kharadze, N., & Pirtskhalaishvili, D. (2025). The impact of social media on students’ effective time management. Baltic Journal of Economic Studies, 11(1), 200–210. https://doi.org/10.30525/2256-0742/2025-11-1-200-210

Toor, M. J., Zafar, S., Omer, F., Sarwar, M., & Hussain, A. K. (n.d.). Teachers’ perspectives on effectiveness of translanguaging in enhancing English language learning at secondary school level.

Downloads

Published

2026-06-10