Graph Convolutional Network: Traffic Speed Prediction Fused with Traffic Flow Data
Abstract
:1. Introduction
- We present a novel deep leaning model called FSTGCN to forecast the traffic speed. In this model, we adopt the full convolutional structure to capture spatial dependencies and temporal features and integrate the data of traffic flow and speed together to forecast the future traffic speed.
- We design a dynamic adjacency matrix to extract dynamic spatial correlations effectively. We first encode the dynamics of every two locations by their covariance of the traffic flow data and then combine with the static spatial adjacency obtained from the distance.
- We conduct numerous experiments on real traffic datasets and verify the effectiveness of the model.
2. Preliminaries
3. Methodology
3.1. The Framework of FSTGCN Model
3.2. Fusing with Traffic Flow Data
3.2.1. Graph Convolution with Dynamic Adjacency Matrix
3.2.2. Fusing in the Modules
3.3. Model Training
4. Experiments
4.1. Dataset Description
4.2. Experimental Settings
- Mean Absolute Error (MAE):
- Root Mean Square Error (RMSE):
- Mean Absolute Percentage Error (MAPE):
4.3. Baselines
- Historical average (HA), which uses the average traffic information in the historical periods as the prediction.
- Vector auto-regressive (VAR), which is the multi-variable extension of the auto-regressive model which can model the correlation between nodes.
- Support vector regression (SVR), which is one type of machine learning method, and a linear kernel function was used in the experiments.
- Long short-term memory (LSTM), which is an extension of RNN and has an input gate, a forget gate and an output gate to deal with the long-term dependency and gradient vanishing and explosion problems.
- STGCN, which applies the full convolutional structure [32] to analyze the spatial–temporal dynamics. The model uses multiple ST-Conv blocks to predict traffic data.
- ASTGCN, an improved scheme [34] of STGCN, which uses an attention mechanism and three temporal modeling methods to capture dynamic spatial–temporal correlations.
4.4. Experiment Results and Analysis
5. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Vlahogianni, E.I.; Karlaftis, M.G.; Golias, J.C. Short-term traffic forecasting: Where we are and where we’re going. Transp. Res. Part C Emerg. Technol. 2014, 43, 3–19. [Google Scholar] [CrossRef]
- Chandra, S.R.; Al-Deek, H. Predictions of freeway traffic speeds and volumes using vector autoregressive models. J. Intell. Transp. Syst. Technol. Planning, Oper. 2009, 13, 53–72. [Google Scholar] [CrossRef]
- Williams, B.M.; Hoel, L.A. Modeling and Forecasting Vehicular Traffic Flow as a Seasonal ARIMA Process: Theoretical Basis and Empirical Results. J. Transp. Eng. 2003, 129, 664–672. [Google Scholar] [CrossRef] [Green Version]
- Kumar, S.V.; Vanajakshi, L. Short-term traffic flow prediction using seasonal ARIMA model with limited input data. Eur. Transp. Res. Rev. 2015, 7, 1–9. [Google Scholar] [CrossRef] [Green Version]
- Kumar, S.V. Traffic Flow Prediction using Kalman Filtering Technique. Procedia Eng. 2019, 187, 582–587. [Google Scholar] [CrossRef]
- Van Hinsbergen, C.P.I.J.; Schreiter, T.; Zuurbier, F.S.; Van Lint, J.W.C.; Van Zuylen, H.J. Localized extended kalman filter for scalable real-time traffic state estimation. IEEE Trans. Intell. Transp. Syst. 2012, 13, 385–394. [Google Scholar] [CrossRef]
- Qi, Y.; Ishak, S. A Hidden Markov Model for short term prediction of traffic conditions on freeways. Transp. Res. Part C Emerg. Technol. 2014, 43, 95–111. [Google Scholar] [CrossRef]
- Wang, J.; Deng, W.; Guo, Y. New Bayesian combination method for short-term traffic flow forecasting. Transp. Res. Part C Emerg. Technol. 2014, 43, 79–94. [Google Scholar] [CrossRef]
- Davis, B.G.A.; Nihan, N.L. Nonparametric regression and short-term freeway traffic forecasting. J. Transp. Eng. 1991, 117, 178–188. [Google Scholar] [CrossRef]
- Oh, S.; Byon, Y.J.; Yeo, H. Improvement of Search Strategy with K-Nearest Neighbors Approach for Traffic State Prediction. IEEE Trans. Intell. Transp. Syst. 2016, 17, 1146–1156. [Google Scholar] [CrossRef]
- Smola, A.J.; Olkopf, B.S.C.H. A tutorial on support vector regression. Stat. Comput 2004, 14, 199–222. [Google Scholar] [CrossRef] [Green Version]
- Zhang, Y.; Liu, Y. Traffic forecasting using least squares support vector machines. Transportmetrica 2009, 5, 193–213. [Google Scholar] [CrossRef]
- Jeong, Y.-S.; Byon, Y.-J.; Castro-Neto, M.M.; Easa, S.M. Supervised weighting-online learning algorithm for shortterm traffic flow prediction. IEEE Trans. Intell. Transp. Syst. 2013, 14, 1700–1707. [Google Scholar] [CrossRef]
- Asif, M.T.; Dauwels, J.; Goh, C.Y.; Oran, A.; Fathi, E.; Xu, M.; Dhanya, M.M.; Mitrovic, N.; Jaillet, P. Spatiotemporal patterns in large-scale traffic speed prediction. IEEE Trans. Intell. Transp. Syst. 2014, 15, 794–804. [Google Scholar] [CrossRef] [Green Version]
- Luo, X.; Li, D.; Zhang, S. Traffic Flow Prediction during the Holidays Based on DFT and SVR. J. Sens. 2019, 2019, 1–10. [Google Scholar] [CrossRef] [Green Version]
- Karlaftis, M.G.; Vlahogianni, E.I. Statistical methods versus neural networks in transportation research: Differences, similarities and some insights. Transp. Res. Part C Emerg. Technol. 2011, 19, 387–399. [Google Scholar] [CrossRef]
- van Lint, J.W.C.; Hoogendoorn, S.P.; van Zuylen, H.J. Freeway travel time prediction with state-space neural networks: Modeling statespace dynamics with recurrent neural networks. Transp. Res. Rec. 2002, 1811, 30–39. [Google Scholar] [CrossRef]
- Ma, X.; Tao, Z.; Wang, Y.; Yu, H.; Wang, Y. Long short-term memory neural network for traffic speed prediction using remote microwave sensor data. Transp. Res. Part C Emerg. Technol. 2015, 54, 187–197. [Google Scholar] [CrossRef]
- Huang, W.; Song, G.; Hong, H.; Xie, K. Deep architecture for trafficflow prediction: Deep belief networks with multitask learning. IEEE Trans. Intell. Transp. Syst. 2014, 5, 2191–2201. [Google Scholar] [CrossRef]
- Li, L.; Qin, L.; Qu, X.; Zhang, J.; Wang, Y.; Ran, B. Day-ahead traffic flow forecasting based on a deep belief network optimized by the multi-objective particle swarm algorithm. Knowledge-Based Syst. 2019, 172, 1–14. [Google Scholar] [CrossRef]
- Lv, Y.; Duan, Y.; Kang, W.; Li, Z.; Wang, F.Y. Traffic Flow Prediction With Big Data: A Deep Learning Approach. IEEE Trans. Intell. Transp. Syst. 2015, 16, 865–873. [Google Scholar] [CrossRef]
- Zeng, X.; Zhang, Y. Development of recurrent neural network considering temporal-spatial input dynamics for freeway travel time modeling. Comput. Civ. Infrastruct. Eng. 2013, 28, 359–371. [Google Scholar] [CrossRef]
- Gu, Y.; Lu, W.; Qin, L.; Li, M.; Shao, Z. Short-term prediction of lane-level traffic speeds: A fusion deep learning model. Transp. Res. Part C 2019, 106, 1–16. [Google Scholar] [CrossRef]
- Liu, D.; Tang, L.; Shen, G.; Han, X. Traffic speed prediction: An attention-based method. Sensors 2019, 19, 3836. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Wu, Y.; Tan, H. Short-term traffic flow forecasting with spatialtemporal correlation in a hybrid deep learning framework. arXiv 2004, arXiv:1612.01022. [Google Scholar]
- Du, S.; Li, T.; Gong, X.; Horng, S.-J. A Hybrid Method for Traffic Flow Forecasting Using Multimodal Deep Learning. Int. J. Comput. Intell. Syst. 2020, 13, 85. [Google Scholar] [CrossRef] [Green Version]
- Yu, H.; Wu, Z.; Wang, S.; Wang, Y.; Ma, X. Spatiotemporal recurrent convolutional networks for traffic prediction in transportation networks. Sensors 2017, 17, 1501. [Google Scholar] [CrossRef] [Green Version]
- Yao, H.; Tang, X.; Wei, H.; Zheng, G.; Yu, Y.; Li, Z. Modeling spatial-temporal dynamics for traffic prediction. arXiv 2018, arXiv:1803.01254. [Google Scholar]
- Bruna, J.; Zaremba, W.; Szlam, A.; Lecun, Y. Spectral networks and locally connected networks on graphs. In Proceedings of the International Conference on Learning Representations, Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
- Defferrard, M.; Bresson, X.; Vandergheynst, P. Convolutional neural networks on graphs with fast localized spectral filtering. In Proceedings of the Advances in Neural Information Processing Systems, Barcelona, Spain, 5–10 December 2016; pp. 3844–3852. [Google Scholar]
- Kipf, T.N.; Welling, M. Semi-supervised classification with graph convolutional networks. arXiv 2016, arXiv:1609.02907. [Google Scholar]
- Yu, B.; Yin, H.; Zhu, Z. Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2019; pp. 3634–3640. [Google Scholar]
- Zhao, L.; Song, Y.; Zhang, C.; Liu, Y.; Wang, P.; Lin, T.; Deng, M.; Li, H. T-GCN: A Temporal Graph Convolutional Network for Traffic Prediction. IEEE Trans. Intell. Transp. Syst. 2020, 21, 3848–3858. [Google Scholar] [CrossRef] [Green Version]
- Guo, S.; Lin, Y.; Feng, N.; Song, C.; Wan, H. Attention Based Spatial-Temporal Graph Convolutional Networks for Traffic Flow Forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January 2019; Volume 33, pp. 922–929. [Google Scholar]
- Chen, W.; Chen, L.; Xie, Y.; Cao, W.; Gao, Y.; Feng, X. Multi-Range Attentive Bicomponent Graph Convolutional Network for Traffic Forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence 34.4, New York, NY, USA, 7–12 February 2020; pp. 3529–3536. [Google Scholar]
- Song, C.; Lin, Y.; Guo, S.; Wan, H. Spatial-Temporal Synchronous Graph Convolutional Networks: A New Framework for Spatial-Temporal Network Data Forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence 34.1, New York, NY, USA, 7–12 February 2020; pp. 914–921. [Google Scholar]
- Huang, R.; Huang, C.; Liu, Y.; Dai, G.; Kong, W. LSGCN: Long Short-Term Traffic Prediction with Graph Convolutional Networks. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence and Seventeenth Pacific Rim International Conference on Artificial Intelligence IJCAI-PRICAI-20 2020, Yokohama, Japan, 7–15 January 2020. [Google Scholar]
- Li, Y.; Yu, R.; Shahabi, C.; Liu, Y. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In Proceedings of the 6th International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Greenshields, B.D. A study of traffic capacity. Highw. Res. Board 1935, 14, 448477. [Google Scholar]
Dataset | PeMSD4 | PeMSD8 |
---|---|---|
Timespan | 1/2018~2/2018 | 7/2016~8/2016 |
Time interval | 5 min | 5 min |
Nodes | 307 | 170 |
Node features | Flow, occupy, speed | Flow, occupy, speed |
Model | PeMSD4(15/30/45/60 min) | ||
MAE (km/h) | MAPE (%) | RMSE (km/h) | |
HA | 2.446 | 5.355 | 5.123 |
VAR | 2.166/2.731/2.963/3.072 | 4.163/5.401/5.943/6.221 | 3.651/4.725/5.185/5.404 |
SVR | 1.542/2.022/2.389/2.701 | 2.935/4.057/4.957/5.731 | 3.214/4.503/5.426/6.160 |
LSTM | 1.640/2.254/2.518/2.873 | 2.470/3.559/3.675/4.974 | 2.224/3.306/3.391/4.389 |
STGCN | 1.246/1.559/1.809/2.102 | 2.514/3.370/4.085/4.687 | 2.552/3.366/3.977/4.460 |
ASTGCN | 1.421/1.733/1.938/2.419 | 3.016/3.804/4.348/4.738 | 2.776/3.533/3.912/4.378 |
FSTGCN | 1.220/1.525/1.769/1.982 | 2.332/3.060/3.621/4.204 | 2.462/3.246/3.835/4.304 |
Model | PeMSD8(15/30/45/60 min) | ||
MAE (km/h) | MAPE (%) | RMSE (km/h) | |
HA | 1.963 | 4.535 | 4.656 |
VAR | 1.396/1.818/2.058/2.216 | 3.236/4.510/5.793/6.012 | 2.700/3.576/4.053/4.342 |
SVR | 1.258/1.636/1.910/2.141 | 2.315/3.118/3.728/4.251 | 2.693/3.718/4.415/4.969 |
LSTM | 1.344/1.844/2.096/2.300 | 2.334/3.442/4.252/4.678 | 2.317/3.441/3.517/4.191 |
STGCN | 1.059/1.328/1.529/1.752 | 2.168/2.845/3.336/3.855 | 2.280/3.016/3.522/4.082 |
ASTGCN | 1.221/1.533/1.738/1.865 | 2.721/3.504/4.140/4.578 | 2.476/3.233/3.612/3.92 |
FSTGCN | 1.041/1.297/1.485/1.643 | 2.088/2.704/3.134/3.483 | 2.273/3.011/3.512/3.914 |
Model | PeMSD4(15/30/45/60 min) | ||
MAE(km/h) | MAPE (%) | RMSE(km/h) | |
STGCN | 6.915/7.629/7.837/7.909 | 11.512/13.550/14.111/14.396 | 9.651/10.404/10.832/11.019 |
FSTGCN | 4.307/4.147/4.112/4.121 | 7.910/8.078/8.299/8.506 | 6.319/6.475/6.653/6.800 |
Model | PeMSD8(15/30/45/60min) | ||
MAE(km/h) | MAPE (%) | RMSE(km/h) | |
STGCN | 9.581/10.752/11.116/11.162 | 15.539/17.510/18.163/18.221 | 14.218/15.772/16.116/16.336 |
FSTGCN | 6.991/7.894/8.145/8.235 | 11.589/13.078/13.505/13.693 | 10.147/11.463/11.891/12.131 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, D.; Xu, X.; Xu, W.; Zhu, B. Graph Convolutional Network: Traffic Speed Prediction Fused with Traffic Flow Data. Sensors 2021, 21, 6402. https://doi.org/10.3390/s21196402
Liu D, Xu X, Xu W, Zhu B. Graph Convolutional Network: Traffic Speed Prediction Fused with Traffic Flow Data. Sensors. 2021; 21(19):6402. https://doi.org/10.3390/s21196402
Chicago/Turabian StyleLiu, Duanyang, Xinbo Xu, Wei Xu, and Bingqian Zhu. 2021. "Graph Convolutional Network: Traffic Speed Prediction Fused with Traffic Flow Data" Sensors 21, no. 19: 6402. https://doi.org/10.3390/s21196402