journal article·2025-08-13Open access

Transformer-Based Traffic Flow Prediction Considering Spatio-Temporal Correlations of Bridge Networks

Yadi Tian, Wanheng Li, Xiaojing Wang, Xin Yan, Yang Xu

Applied Sciences· Volume 15· Issue 16

Abstract

With the widespread implementation of bridge structural health monitoring (SHM) systems, monitored bridge networks have gradually formed. Understanding vehicle loads and considering spatio-temporal correlations within bridge networks is critical for structural condition assessment and maintenance decision making. This study aims to predict traffic flows by investigating traffic flow correlations within a bridge network using multi-bridge data, thereby supporting bridge network-level SHM. A transformer-based traffic flow prediction model considering spatio-temporal correlations of bridge networks (ST-TransNet) is proposed. It integrates external factors (processed via fully connected networks) and multi-period traffic flows of input bridges (captured by self-attention encoders) to generate traffic flow predictions through a self-attention decoder. Validated using weigh-in-motion data from an 8-bridge network, the proposed ST-TransNet reduces prediction root mean square error (RMSE) to 12.76 vehicles/10 min, outperforming a series of baselines—SVR, CNN, BiLSTM, CNN&BiLSTM, ST-ResNet, transformer, and STGCN—with significant relative reductions of 40.5%, 36.9%, 36.6%, 37.3%, 35.6%, 31.1%, and 22.8%, respectively. Ablation studies confirm the contribution of each component of the external factors and multi-period traffic flows, particularly the recent traffic flow data. The proposed ST-TransNet effectively captures underlying the spatio-temporal correlations of traffic flow within bridge networks, offering valuable insights for enhancing bridge assessment and maintenance.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic Prediction and Management Techniques · Infrastructure Maintenance and Monitoring · Traffic and Road Safety

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Research Institute of Highway Ministry of Transport, Beijing 100088, China

China-Road Transportation Verification & Inspection Hi-Tech Co., Ltd., Beijing 100088, China

Key Lab of Smart Prevention and Mitigation of Civil Engineering Disasters of the Ministry of Industry and Information Technology, Harbin 150090, China

School of Civil Engineering, Harbin Institute of Technology, Harbin 150090, China

Funding

National Key R&D Plan Program of the Ministry of Science and Technology of China · Key R&D Plan Program of the Ningxia Hui Autonomous Region

References (46)

Show source-provided references
1. Integrated structural health monitoring in bridge engineering10.1016/j.autcon.2022.104168 ↗
2. Deng, Z., Huang, M., Wan, N., and Zhang, J. (2023). The current development of structural health monitoring for bridges: A review. Buildings, 13.10.3390/buildings13061360 ↗
3. (2020, December 28). Ministry of Transport Guidance on Further Improving the Safety and Durability of Highway Bridges, Available online: https://xxgk.mot.gov.cn/2020/jigou/glj/202012/t20201228_3509089.html.
4. Research on a Big Data Platform for Bridge Cluster Monitoring Based on TDengine
5. Wei, B., Xu, Z., Wu, Y., and Wang, Y. (2024). Key Technology and Practice of Road Network Level Bridge Cluster Monitoring System. Guangdong Highw. Commun., 50.
6. Bridge network performance, maintenance and optimisation under uncertainty: Accomplishments and challenges10.1080/15732479.2011.563089 ↗
7. Integration of structural health monitoring and intelligent transportation systems for bridge condition assessment: Current status and future direction10.1109/TITS.2016.2520499 ↗
8. Quantitative analysis of the importance and correlation of urban bridges and roads in the study of road network vulnerability10.1186/s43251-023-00096-z ↗
9. Bridge and transport network resilience–a perspective
10. A stochastic computational framework for the joint transportation network fragility analysis and traffic flow distribution under extreme events10.1016/j.probengmech.2010.11.007 ↗
11. Mao, X., Jiang, X., Yuan, C., and Zhou, J. (2020). Modeling the optimal maintenance scheduling strategy for bridge networks. Appl. Sci., 10.10.3390/app10020498 ↗
12. Zhong, W., Ding, Y., Song, Y., Liu, S., Xu, M., and Wang, X. (2025). The Fatigue Life Prediction of Welded Joints in Orthotropic Steel Bridge Decks Considering Weld-Induced Residual Stress and Its Relaxation Under Vehicle Loads. Buildings, 15.10.3390/buildings15101644 ↗
13. Zhang, M., Wang, X., and Li, Y. (2024). Fatigue Reliability Assessment of Bridges Under Heavy Traffic Loading Scenario. Infrastructures, 9.10.3390/infrastructures9120238 ↗
14. Generalized bridge network performance analysis with correlation and time-variant reliability10.1016/j.strusafe.2011.02.002 ↗
15. Risk-based importance factors for bridge networks under highway traffic loads10.1080/15732479.2018.1496119 ↗
16. Intelligent simulation method of bridge traffic flow load combining machine vision and weigh-in-motion monitoring10.1109/TITS.2022.3140276 ↗
17. Reliability-based vehicle weight limit determination for urban bridge network subjected to stochastic traffic flow considering vehicle-bridge coupling10.1016/j.engstruct.2021.113166 ↗
18. Data-driven analytical load rating method of bridges using integrated bridge structural response and weigh-in-motion truck data10.1016/j.ymssp.2021.108128 ↗
19. Braz, F.J., Ferreira, J., Gonçalves, F., Weege, K., Almeida, J., Baldo, F., and Gonçalves, P. (2022). Road traffic forecast based on meteorological information through deep learning methods. Sensors, 22.10.3390/s22124485 ↗
20. Time series traffic flow prediction with hyper-parameter optimized ARIMA models for intelligent transportation system
21. Hybrid dual Kalman filtering model for short-term traffic flow forecasting10.1049/iet-its.2018.5385 ↗
22. Urban traffic flow prediction techniques: A review
23. Internet of things and optimized knn based intelligent transportation system for traffic flow prediction in smart cities10.1016/j.measen.2024.101297 ↗
24. Traffic flow forecasting by a least squares support vector machine with a fruit fly optimization algorithm10.1016/j.proeng.2016.01.234 ↗
25. Sun, S., Wu, H., and Xiang, L. (2020). City-Wide Traffic Flow Forecasting Using a Deep Convolutional Neural Network. Ital. Natl. Conf. Sens., 20.10.3390/s20020421 ↗
26. Predicting citywide crowd flows using deep spatio-temporal residual networks10.1016/j.artint.2018.03.002 ↗
27. Data-Driven Short-Term Forecasting for Urban Road Network Traffic Based on Data Processing and LSTM-RNN
28. A multi-head attention-based transformer model for traffic flow forecasting with a comparative analysis to recurrent neural networks10.1016/j.eswa.2022.117275 ↗
29. A parallel spatiotemporal deep learning network for highway traffic flow forecasting10.1177/1550147719832792 ↗
30. A hybrid method for traffic flow forecasting using multimodal deep learning10.2991/ijcis.d.200120.001 ↗
31. Predicting citywide road traffic flow using deep spatiotemporal neural networks10.1109/TITS.2020.2979634 ↗
32. A short-term highway traffic flow forecasting model based on CNN-LSTM with an attention mechanism10.1088/1742-6596/2491/1/012008 ↗
33. Long-term traffic flow forecasting using a hybrid CNN-BiLSTM model10.1016/j.engappai.2023.106041 ↗
34. Yu, B., Yin, H., and Zhu, Z. (2017). Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. arXiv.10.24963/ijcai.2018/505 ↗
35. Li, M., and Zhu, Z. (2021, January 27–28). Spatial-temporal fusion graph neural networks for traffic flow forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
36. Xu, M., Dai, W., Liu, C., Gao, X., Lin, W., Qi, G.-J., and Xiong, H. (2020). Spatial-temporal transformer networks for traffic flow forecasting. arXiv.
37. Guo, S., Lin, Y., Feng, N., Song, C., and Wan, H. (February, January 27). Attention based spatial-temporal graph convolutional networks for traffic flow forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
38. Jiang, T., Guo, M., Yang, L., Ma, Z., and Liu, H. (2024). Traffic Flow Prediction Based on Decomposed Spatio-Temporal Fusion Graph Convolutional Network. Intell. Transp. Smart Cities, 156–167.10.3233/ATDE240384 ↗
39. POI-based Double-deck Graph Convolution Network for Traffic Forecasting10.1561/116.20230081 ↗
40. Sun, Y., Shi, Y., Jia, K., Zhang, Z., and Qin, L. (2024). A dual-stream cross AGFormer-GPT network for traffic flow prediction based on large-scale road sensor data. Sensors, 24.10.3390/s24123905 ↗
41. Rahman, M.M., and Nower, N. (2023, January 10–12). Attention based deep hybrid networks for traffic flow prediction using google maps data. Proceedings of the 2023 8th International Conference on Machine Learning Technologies, Stockholm, Sweden.10.1145/3589883.3589894 ↗
42. Ji, J., Wang, J., Jiang, Z., Jiang, J., and Zhang, H. (March, January 22). STDEN: Towards physics-guided neural networks for traffic flow prediction. Proceedings of the AAAI Conference on Artificial Intelligence, Virtual.
43. Multilevel federated learning-based intelligent traffic flow forecasting for transportation network management10.1109/TNSM.2023.3280515 ↗
44. Hybrid graph convolution neural network and branch-and-bound optimization for traffic flow forecasting10.1016/j.future.2022.09.018 ↗
45. Zhang, M., and Zhao, W. (2024, January 6–8). Traffic Flow Prediction Based on Large Language Models and Future Development Directions. Proceedings of the ITM Web of Conferences, Nanjing, China.10.1051/itmconf/20257001008 ↗
46. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. Adv. Neural Inf. Process. Syst., 30.