Abstract
Traffic flow prediction is an essential part of the intelligent traffic management system, which can help managers plan and maintain traffic order and individuals choose better travel routes. Due to the complex spatio-temporal correlation of large-scale transportation networks, it is challenging to build accurate and efficient prediction models. To address this issue, this paper proposes a spatio-temporal grammar graph attention network with adaptive edge information for traffic flow prediction. The external structure of the prediction model uses a grammar graph structure based on three grammar rules to capture the interactive relationship between various traffic parameters. The internal structure uses a graph attention network with adaptive edge information for synchronous extraction of the spatio-temporal dependence of historical traffic information. The two real data sets simulation results show that the model’s prediction accuracy is better than the existing prediction methods in different scale traffic networks.
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig1_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig2_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig3_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig4_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig5_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig6_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig7_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10489-023-05020-6/MediaObjects/10489_2023_5020_Fig8_HTML.png)
Similar content being viewed by others
Data Availibility Statement
Data will be available on reasonable request.
References
Chen W, An J, Li R, Fu L, **e G, Bhuiyan M, Li K (2018) A novel fuzzy deep-learning approach to traffic flow prediction with uncertain spatial-temporal data features. Futur Gener Comput Syst 89(12):78–88
Sun B, Sun T, Zhang Y, Jiao P (2020) Urban traffic flow online prediction based on multi-component attention mechanism. IET Intel Transport Syst 14(6):1249–1258
Hou Q, Leng J, Ma G, Liu W, Cheng Y (2019) An adaptive hybrid model for short-term urban traffic flow prediction. Phys A 527:121065–121074
Wang W, Zhang H, Li T, Guo J, Huang W, Wei Y, Cao J (2020) An interpretable model for short term traffic flow prediction. Math Comput Simul 171:264–278
Emami A, Sarvi M, Bagloee SA (2020) Short-term traffic flow prediction based on faded memory Kalman filter fusing data from connected vehicles and Bluetooth sensors. Simul Model Pract Theory 102:102025–102041
Tang J, Chen X, Hu Z, Zong F, Han C, Li L (2019) Traffic flow prediction based on combination of support vector machine and data denoising schemes. Phys A 534:120642–120660
Rani P (2018) Improved Traffic Prediction by Applying KNN and Euclidean Distance ARIMA (Ke-Arima) Approach. International Journal of Computer Applications 182(3):23–29
Lu S, Zhang Q, Chen G, Seng D (2020) A combined method for short-term traffic flow prediction based on recurrent neural network. Alex Eng J 60:87–94
Zhang D, Kabuka MR (2018) Combining weather condition data to predict traffic flow: a GRU-based deep learning approach. IET Intel Transport Syst 12(7):578–585
Wang M, Yong C, **ao S, **n W, Zhu J (2018) Neural Network Meets DCN: Traffic-driven Topology Adaptation with Deep Learning. Proc ACM Measur Anal Comput Sys 2(2):1–25
By A, Yl B, Ks A (2020) Forecasting road traffic speeds by considering area-wide spatio-temporal dependencies based on a graph convolutional neural network (GCN). Transport Res Part C Emerg Technol 14:189–204
Chen X, Lu J, Zhao J, Qu Z, Yang Y, **an J (2020) Traffic flow prediction at varied time scales via ensemble empirical mode decomposition and artificial neural network. Sustainability 12:3678
Zhao L, Zhou Y, Lu H, Fujita H (2019) Parallel computing method of deep belief networks and its application to traffic flow prediction. Knowl-Based Syst 163:972–987
Zhang Y, Huang G (2018) Traffic flow prediction model based on deep belief network and genetic algorithm. IET Intel Transport Syst 12(6):533–541
Tian Y, Zhang K, Li J, Lin X, Yang B (2018) LSTM-based Traffic Flow Prediction with Missing Data. Neurocomputing 318(11):297–305
Yang B, Sun S, Li J, Lin X, Tian Y (2018) Traffic flow prediction using LSTM with feature enhancement. Neurocomputing 332:320–327
Gao Y, Zhao J, Qin Z, Feng Y, Jia B (2020) Traffic Speed Forecast in Adjacent Region between Highway and Urban Expressway: Based on MFD and GRU Model. J Adv Transp 3:1–18
Deng S, Jia S, Chen J (2019) Exploring spatial-temporal relations via deep convolutional neural networks for traffic flow prediction with incomplete data. Appl Soft Comput 78:712–721
Zhang W, Yu Y, Qi Y, Shu F, Wang Y (2019) Short-term traffic flow prediction based on spatio-temporal analysis and CNN deep learning. Transportmetrica 15(2):1688–1711
Yang G, Wang Y, Yu H, Ren Y, **e J (2018) Short-Term Traffic State Prediction Based on the Spatiotemporal Features of Critical Road Sections. Sensors 18(7):2287
Liu Q, Wang B, Zhu Y (2018) Short-term traffic speed forecasting based on attention convolutional neural network for arterials. Comput Aided Civ Infrastruct Eng 33(11):999–1016
Zhang Z, Jiao X (2021) A deep network with analogous self-attention for short-term traffic flow prediction. IET Intel Transport Syst 15:902–915
Huang X, Ye Y, Wang C, Yang X, **ong L (2021) A multi-mode traffic flow prediction method with clustering based attention convolution LSTM. Appl Intell 52:14773–14786
Velikovi P, Cucurull G, Casanova A, Romero A, Pietro L, Bengio Y. (2018) Graph Attention Networks. International Conference on Learning Representations(ICLR). p 1-12
Yu B, Yin H, Zhu Z. (2018) Spatio-temporal graph convolutional networks: a deep learning framework for traffic forecasting. International Joint Conference on Artificial Intelligence(IJCAI). p 3634-3640
Zhang C, Yu J, Liu Y (2019) Spatial-Temporal Graph Attention Networks: A Deep Learning Approach for Traffic Forecasting. IEEE Access 7:166246–166256
Zhao L, Song Y, Zhang C, Liu Y, Li H (2019) T-GCN: A temporal graph convolutional network for traffic prediction. IEEE Trans Intell Transp Syst 21(9):3848–3858
Guo S, Lin Y, Feng N, Song C, Wan H. (2019) Attention Based Spatial-Temporal Graph Convolutional Networks for Traffic Flow Forecasting. Association for the Advancement of Artificial Intelligence(AAAI) . p 922-929
Zheng C, Fan X, Wang C, Qi J. (2020) GMAN: A Graph Multi-Attention Network for Traffic Prediction. Association for the Advancement of Artificial Intelligenc(AAAI). p 1234-1241
Kong X, Zhang J, Wei X, **ng W, Lu W (2021) Adaptive spatial-temporal graph attention networks for traffic flow forecasting. Appl Intell 52:4300–4316
Boukerche A, Wang J (2020) A performance modeling and analysis of a novel vehicular traffic flow prediction system using a hybrid machine learning-based model. Ad Hoc Netw 106:102224
Song C, Lin Y, Guo S, Wan H. (2020) Spatial-Temporal Synchronous Graph Convolutional Networks: A New Framework for Spatial-Temporal Network Data Forecasting. Association for the Advancement of Artificial Intelligenc(AAAI). p 914-921
Li W, Wang X, Zhang Y, Wu Q (2021) Traffic Flow Prediction over Muti-Sensor Data Correlation with Graph Convolution Network. Neurocomputing 427:56–63
Yin X, Wu G, Wei J, Shen Y, Yin B (2021) Multi-Stage Attention Spatial-Temporal Graph Networks for Traffic Prediction. Neurocomputing 428:42–53
Ta X, Liu Z, Hu X, Yu L, Sun L, Du B (2022) Adaptive spatio-temporal graph neural network for traffic forecasting. Knowl-Based Syst 242:108199
Liao L, Hu Z, Zheng Y, Bi S, Zou F, Qiu H, Zhang M (2022) An improved dynamic Chebyshev graph convolution network for traffic flow prediction with spatial-temporal attention. Appl Intell 52:16104–16116
Yang J, **e F, Yang J, Shi J, Zhao J, Rc Zhang (2023) Spatial-temporal correlated graph neural networks based on neighborhood feature selection for traffic data prediction. Appl Intell 53:4717–4732
Ni Q, Zhang M (2022) STGMN: A gated multi-graph convolutional network framework for traffic flow prediction. Appl Intell 52:15026–15039
Acknowledgements
This work is supported by the National Natural Science Foundation of China under grant 61973265.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing Interest
The authors declare no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Zhang, Z., Jiao, X. A spatio-temporal grammar graph attention network with adaptive edge information for traffic flow prediction. Appl Intell 53, 28787–28803 (2023). https://doi.org/10.1007/s10489-023-05020-6
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10489-023-05020-6