Dynamic Correlation Adjacency-Matrix-Based Graph Neural Networks for Traffic Flow Prediction
Abstract
:1. Introduction
- We propose a novel method for constructing an adjacency matrix using a correlation coefficient for graph convolution.
- We constructed the adjacency matrix using input data accordingly and used a dynamic correlation convolution module to capture spatial and temporal dependencies with an improved GCN and TCN.
- We made new datasets based on raw traffic data, and experimental results on both original and public datasets show that our model outperforms the baseline methods.
2. Related Work
2.1. Multivariate Time Series Prediction
2.2. Graph Adjacency Matrix for Traffic Forecasting
3. Preliminary
3.1. Correlation Matrix in Multiple Regression Analysis
3.2. Problem Definition
4. Dynamic Correlation Graph Convolutional Neural Networks
4.1. Method Overview
4.2. Construction of Multiple Regression Dynamic Correlation Adjacency Matrix
4.3. Graph Convolutional Neural Networks for Traffic Forecasting
4.3.1. Dynamic Graph Convolution Module
4.3.2. Gated Temporal Convolution Module
4.3.3. Layer Model and Overall Structure
5. Experiment
5.1. Generating Datasets
5.1.1. Calculation of Features from Traffic Stream
5.1.2. Calculation of Adjacency Matrix
5.2. Experimental Studies
5.2.1. Experimental Setting
5.2.2. Baseline Models
- DCRNN [22]: diffusion convolution recurrent neural network, which integrates graph convolution into an encoder–decoder gated recurrent unit.
- STGCN [23]: spatio-temporal graph convolutional network, which integrates graph convolution into a 1D convolution unit.
- ASTGCN [24]: attention-based spatial temporal graph convolutional network, which introduces spatial and temporal attention mechanisms into a model.
- GWN [25]: Graph WaveNet, which combines an adaptive adjacency matrix and 1D dilated convolution, which can handle long sequences.
- STSGCN [33]: spatial–temporal synchronous graph convolutional network, which uses localized spatial–temporal graphs to model localized correlations independently.
- MTGNN [26]: multivariate time series graph neural network, which uses graph learning, graph convolution, and temporal convolution modules to extract uni-directed relations in an end-to-end framework.
- AGCRN [27]: adaptive graph convolutional recurrent network, which uses node adaptive parameter learning module to capture node-specific patterns, and data-adaptive graph generation module to infer the inter-dependencies among different series.
- STFGNN [34]: spatial–temporal fusion graph neural network, which generates a “temporal graph” to compensate for correlations that spatial graphs may not reflect, and uses the fusion operation of various spatial and temporal graphs to learn hidden spatial–temporal dependencies.
- ST-Norm [36]: spatial and temporal normalization, which separately refine the high-frequency component and the local component underlying the raw data. Both modules can be integrated into other architectures.
- STGODE [37]: spatial–temporal graph ordinary differential equation network, which captures spatial–temporal dynamics through a tensor-based ordinary differential equation.
5.2.3. Main Results
5.2.4. Component Analysis
- Without PA: the model without a predefined matrix uses a dynamic correlation matrix in the DGCM.
- Without DC: the model without a dynamic correlation matrix uses a predefined matrix instead in the DGCM.
- Without GC: the model without graph convolution uses a linear layer instead.
- Without TC: the model without gated temporal convolution uses a linear layer instead.
- Without SP: the model without special connections, such as residual connection.
- Final: the final model with all components.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Fang, X.; Huang, J.; Wang, F.; Zeng, L.; Liang, H.; Wang, H. ConSTGAT: Contextual Spatial-Temporal Graph Attention Network for Travel Time Estimation at Baidu Maps; KDD ’20; Association for Computing Machinery: New York, NY, USA, 2020; pp. 2697–2705. [Google Scholar] [CrossRef]
- Shao, K.; Wang, K.; Chen, L.; Zhou, Z. Estimation of Urban Travel Time with Sparse Traffic Surveillance Data; HPCCT & BDAI ’20; Association for Computing Machinery: New York, NY, USA, 2020; pp. 218–223. [Google Scholar] [CrossRef]
- Shen, Y.; Jin, C.; Hua, J.; Huang, D. TTPNet: A Neural Network for Travel Time Prediction Based on Tensor Decomposition and Graph Embedding. IEEE Trans. Knowl. Data Eng. 2022, 34, 4514–4526. [Google Scholar] [CrossRef]
- Zhang, C.; Yu, J.J.Q.; Liu, Y. Spatial-Temporal Graph Attention Networks: A Deep Learning Approach for Traffic Forecasting. IEEE Access 2019, 7, 166246–166256. [Google Scholar] [CrossRef]
- Guo, J.; Song, C.; Wang, H. A Multi-step Traffic Speed Forecasting Model Based on Graph Convolutional LSTM. In Proceedings of the 2019 Chinese Automation Congress (CAC), Hangzhou, China, 22–24 November 2019; pp. 2466–2471. [Google Scholar] [CrossRef]
- Geng, X.; He, X.; Xu, L.; Yu, J. Graph Correlated Attention Recurrent Neural Network for Multivariate Time Series Forecasting. Inf. Sci. 2022, 606, 126–142. [Google Scholar] [CrossRef]
- Lu, Z.; Lv, W.; Xie, Z.; Du, B.; Huang, R. Leveraging Graph Neural Network with LSTM For Traffic Speed Prediction. In Proceedings of the 2019 IEEE SmartWorld, Ubiquitous Intelligence & Computing, Advanced & Trusted Computing, Scalable Computing & Communications, Cloud & Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI), Leicester, UK, 19–23 August 2019; pp. 74–81. [Google Scholar] [CrossRef]
- Zhang, T.; Jin, J.; Yang, H.; Guo, H.; Ma, X. Link speed prediction for signalized urban traffic network using a hybrid deep learning approach. In Proceedings of the 2019 IEEE Intelligent Transportation Systems Conference (ITSC), Auckland, New Zealand, 27–30 October 2019; pp. 2195–2200. [Google Scholar] [CrossRef]
- Qin, K.; Xu, Y.; Kang, C.; Kwan, M.P. A graph convolutional network model for evaluating potential congestion spots based on local urban built environments. Trans. GIS 2020, 24, 1382–1401. [Google Scholar] [CrossRef]
- Mohanty, S.; Pozdnukhov, A.; Cassidy, M. Region-wide congestion prediction and control using deep learning. Transp. Res. Part C: Emerg. Technol. 2020, 116, 102624. [Google Scholar] [CrossRef]
- Chen, K.; Chen, F.; Lai, B.; Jin, Z.; Liu, Y.; Li, K.; Wei, L.; Wang, P.; Tang, Y.; Huang, J.; et al. Dynamic Spatio-Temporal Graph-Based CNNs for Traffic Flow Prediction. IEEE Access 2020, 8, 185136–185145. [Google Scholar] [CrossRef]
- Peng, H.; Wang, H.; Du, B.; Bhuiyan, M.Z.A.; Ma, H.; Liu, J.; Wang, L.; Yang, Z.; Du, L.; Wang, S.; et al. Spatial temporal incidence dynamic graph neural networks for traffic flow forecasting. Inf. Sci. 2020, 521, 277–290. [Google Scholar] [CrossRef]
- Wang, S.; Miao, H.; Chen, H.; Huang, Z. Multi-Task Adversarial Spatial-Temporal Networks for Crowd Flow Prediction. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, Online, 19–23 October 2020; CIKM ’20. Association for Computing Machinery: New York, NY, USA, 2020; pp. 1555–1564. [Google Scholar] [CrossRef]
- Qiu, H.; Zheng, Q.; Msahli, M.; Memmi, G.; Qiu, M.; Lu, J. Topological Graph Convolutional Network-Based Urban Traffic Flow and Density Prediction. IEEE Trans. Intell. Transp. Syst. 2021, 22, 4560–4569. [Google Scholar] [CrossRef]
- Sun, J.; Zhang, J.; Li, Q.; Yi, X.; Liang, Y.; Zheng, Y. Predicting Citywide Crowd Flows in Irregular Regions Using Multi-View Graph Convolutional Networks. IEEE Trans. Knowl. Data Eng. 2022, 34, 2348–2359. [Google Scholar] [CrossRef]
- Zhou, Q.; Gu, J.J.; Ling, C.; Li, W.B.; Zhuang, Y.; Wang, J. Exploiting Multiple Correlations Among Urban Regions for Crowd Flow Prediction. J. Comput. Sci. Technol. 2020, 35, 338–352. [Google Scholar] [CrossRef]
- Kong, X.; Xing, W.; Wei, X.; Bao, P.; Zhang, J.; Lu, W. STGAT: Spatial-Temporal Graph Attention Networks for Traffic Flow Forecasting. IEEE Access 2020, 8, 134363–134372. [Google Scholar] [CrossRef]
- Fukuda, S.; Uchida, H.; Fujii, H.; Yamada, T. Short-term prediction of traffic flow under incident conditions using graph convolutional recurrent neural network and traffic simulation. IET Intell. Transp. Syst. 2020, 14, 936–946. [Google Scholar] [CrossRef]
- Zhang, T.; Guo, G. Graph Attention LSTM: A Spatiotemporal Approach for Traffic Flow Forecasting. IEEE Intell. Transp. Syst. Mag. 2022, 14, 190–196. [Google Scholar] [CrossRef]
- Boukerche, A.; Wang, J. A performance modeling and analysis of a novel vehicular traffic flow prediction system using a hybrid machine learning-based model. Ad Hoc Netw. 2020, 106, 102224. [Google Scholar] [CrossRef]
- Tang, C.; Sun, J.; Sun, Y.; Peng, M.; Gan, N. A General Traffic Flow Prediction Approach Based on Spatial-Temporal Graph Attention. IEEE Access 2020, 8, 153731–153741. [Google Scholar] [CrossRef]
- Li, Y.; Yu, R.; Shahabi, C.; Liu, Y. Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting. In Proceedings of the International Conference on Learning Representations (ICLR ’18), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Yu, B.; Yin, H.; Zhu, Z. Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, Stockholm, Sweden, 13–19 July 2018; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2018; pp. 3634–3640. [Google Scholar]
- 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 Thirty-Third AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; AAAI Press: Palo Alto, CA, USA, 2019; pp. 922–929. [Google Scholar]
- Wu, Z.; Pan, S.; Long, G.; Jiang, J.; Zhang, C. Graph WaveNet for Deep Spatial-Temporal Graph Modeling. Proceedings of Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI, Macao China, 10–16 August 2019; pp. 1907–1913. [Google Scholar]
- Wu, Z.; Pan, S.; Long, G.; Jiang, J.; Chang, X.; Zhang, C. Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks. In Proceedings of the KDD ’20: The 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Virtual Event, CA, USA, 23–27 August 2020; pp. 753–763. [Google Scholar]
- Bai, L.; Yao, L.; Li, C.; Wang, X.; Wang, C. Adaptive Graph Convolutional Recurrent Network for Traffic Forecasting. In Proceedings of the Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems, NeurIPS, Virtual, 6–12 December 2020. [Google Scholar]
- 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]
- Zivot, E.; Wang, J. Vector autoregressive models for multivariate time series. In Modeling Financial Time Series with S-PLUS®; Springer: New York, NY, USA, 2006; pp. 385–429. [Google Scholar]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Chung, J.; Gulcehre, C.; Cho, K.; Bengio, Y. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv 2014, arXiv:1412.3555. [Google Scholar]
- Shuman, D.I.; Narang, S.K.; Frossard, P.; Ortega, A.; Vandergheynst, P. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine 2013, 30, 83–98. [Google Scholar] [CrossRef] [Green Version]
- 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 Thirty-Fourth AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; AAAI Press: Palo Alto, CA, USA, 2020; pp. 914–921. [Google Scholar]
- Li, M.; Zhu, Z. Spatial-Temporal Fusion Graph Neural Networks for Traffic Flow Forecasting. In Proceedings of the Thirty-Fifth AAAI Conference on Artificial Intelligence, Online, 2–9 February 2021; AAAI Press: Palo Alto, CA, USA, 2021; pp. 4189–4196. [Google Scholar]
- Zhang, Q.; Chang, J.; Meng, G.; Xiang, S.; Pan, C. Spatio-Temporal Graph Structure Learning for Traffic Forecasting. In Proceedings of the Thirty-Fourth AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; AAAI Press: Palo Alto, CA, USA, 2020; pp. 1177–1185. [Google Scholar]
- Deng, J.; Chen, X.; Jiang, R.; Song, X.; Tsang, I.W. ST-Norm: Spatial and Temporal Normalization for Multi-variate Time Series Forecasting. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Virtual, 14–18 August 2021; pp. 269–278. [Google Scholar]
- Fang, Z.; Long, Q.; Song, G.; Xie, K. Spatial-Temporal Graph ODE Networks for Traffic Flow Forecasting. In Proceedings of the KDD ’21: The 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Virtual Event, Singapore, 14–18 August 2021; ACM: New York, NY, USA, 2021; pp. 364–373. [Google Scholar]
- Choi, J.; Choi, H.; Hwang, J.; Park, N. Graph Neural Controlled Differential Equations for Traffic Forecasting. In Proceedings of the Thirty-Sixth AAAI Conference on Artificial Intelligence, Online, 22 February–1 March 2022; AAAI Press: Palo Alto, CA, USA, 2022; pp. 6367–6374. [Google Scholar]
Model | Method | Equation |
---|---|---|
- | Global Adjacency Matrix | |
AGCRN | Undirected Adjacency Matrix | |
GWN | Directed Adjacency Matrix | |
MTGNN | Uni-directed Adjacency Matrix | |
SLCNN | Structure Learning Adjacency Matrix | |
MTGNN | Dynamic Adjacency Matrix |
Dataset | Time Slices | Space Vertices | Feature | Time Span | Number of Days | Source |
---|---|---|---|---|---|---|
HBD2 | 8928 | 159 | Volume | 1 January 2021–31 January 2021 | 31 | Original |
HBD5 | 8928 | 213 | Volume | 1 January 2021–31 January 2021 | 31 | Original |
PEMS03 | 26208 | 358 | Volume | 1 September 2018–30 November 2018 | 91 | STSGCN |
PEMS04 | 16992 | 307 | Volume, Density, Speed | 1 January 2018–28 February 2018 | 59 | ASTGCN |
PEMS07 | 28224 | 883 | Volume | 1 May 2017–31 August 2017 | approximately 123 | STSGCN |
PEMS08 | 17856 | 170 | Volume, Density, Speed | 7 July 2016–31 August 2016 | 62 | ASTGCN |
Model | HBD2 (159) | HBD5 (213) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | 30 | 60 | 15 | 30 | 60 | |||||||
MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | |
STGCN | 4.9870 | 7.1400 | 5.2850 | 7.9950 | 6.1800 | 10.2320 | 4.3160 | 6.6310 | 4.6250 | 7.2320 | 5.3260 | 8.4350 |
GWN * | 4.7039 | 6.9059 | 4.8391 | 7.2365 | 5.0874 | 7.8387 | 4.4142 | 6.5950 | 4.5325 | 6.8892 | 4.7487 | 7.3685 |
GWN | 4.6813 | 6.8511 | 4.8089 | 7.1535 | 5.0429 | 7.6974 | 4.4265 | 6.5593 | 4.5687 | 6.8731 | 4.7967 | 7.3375 |
MTGNN * | 4.8073 | 7.0080 | 4.9065 | 7.2461 | 5.1076 | 7.7167 | 4.4166 | 6.5704 | 4.5198 | 6.7981 | 4.6964 | 7.1670 |
AGCRN * | 6.3733 | 11.5733 | 6.5017 | 11.8567 | 6.6717 | 12.1825 | 4.3233 | 6.6133 | 4.3833 | 6.7717 | 4.5167 | 7.0683 |
STSGCN | 5.8982 | 8.7210 | 5.9318 | 8.7839 | 6.0038 | 8.9148 | 6.0371 | 8.9229 | 6.0644 | 8.9839 | 6.1335 | 9.1175 |
STFGNN | 4.9325 | 7.2288 | 4.9877 | 7.3545 | 5.0805 | 7.5689 | 5.3253 | 8.1867 | 5.3429 | 8.2264 | 5.3857 | 8.3056 |
ST-Norm * | 4.8563 | 6.9447 | 4.9343 | 7.1255 | 5.1332 | 7.5475 | 4.3227 | 6.4130 | 4.4518 | 6.6590 | 4.7009 | 7.0890 |
DCGCN * | 4.7465 | 6.9822 | 4.8633 | 7.2755 | 5.0765 | 7.7819 | 4.3930 | 6.5613 | 4.5147 | 6.8348 | 4.7323 | 7.2662 |
DCGCN | 4.6937 | 6.9157 | 4.8217 | 7.2329 | 5.0547 | 7.7841 | 4.3619 | 6.4932 | 4.4890 | 6.7795 | 4.6909 | 7.1848 |
Model | PEMS03 | PEMS04 | PEMS07 | PEMS08 | ||||
---|---|---|---|---|---|---|---|---|
MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | |
DCRNN | 18.18 | 30.31 | 24.70 | 38.12 | 25.30 | 38.58 | 17.86 | 27.83 |
STGCN | 17.49 | 30.12 | 22.70 | 35.55 | 25.38 | 38.78 | 18.02 | 27.83 |
ASTGCN | 17.69 | 29.66 | 22.93 | 35.22 | 28.05 | 42.57 | 18.61 | 28.16 |
GWN | 19.85 | 32.94 | 25.45 | 39.70 | 26.85 | 42.78 | 19.13 | 31.05 |
STSGCN | 17.48 | 29.21 | 21.19 | 33.65 | 24.26 | 39.03 | 17.13 | 26.80 |
LSGCN | 17.94 | 29.85 | 21.53 | 33.86 | 27.31 | 41.46 | 17.73 | 26.76 |
STFGNN | 16.77 | 28.34 | 19.83 | 31.88 | 22.07 | 35.80 | 16.64 | 26.22 |
STGODE | 16.50 | 27.84 | 20.84 | 32.82 | 22.59 | 37.54 | 16.81 | 25.97 |
AGCRN | 15.98 | 28.25 | 19.83 | 32.26 | 22.37 | 36.55 | 15.95 | 25.22 |
DCGCN * | 15.41 | 26.03 | 19.81 | 31.11 | 24.51 | 37.75 | 16.49 | 25.46 |
DCGCN | 15.29 | 25.98 | 20.28 | 31.65 | 22.06 | 34.66 | 15.68 | 24.39 |
Model | Training Loss | Validation Loss | Test MAE |
---|---|---|---|
without PA | 15.1482 | 15.4286 | 16.4865 |
without DC | 17.2296 | 16.885 | 16.7511 |
without GC | 19.3766 | 19.4391 | 19 |
without TC | 16.1691 | 17.6542 | 20.4214 |
without SP | 14.8499 | 15.0907 | 17.4012 |
Final | 15.0424 | 15.2778 | 15.9937 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 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
Gu, J.; Jia, Z.; Cai, T.; Song, X.; Mahmood, A. Dynamic Correlation Adjacency-Matrix-Based Graph Neural Networks for Traffic Flow Prediction. Sensors 2023, 23, 2897. https://doi.org/10.3390/s23062897
Gu J, Jia Z, Cai T, Song X, Mahmood A. Dynamic Correlation Adjacency-Matrix-Based Graph Neural Networks for Traffic Flow Prediction. Sensors. 2023; 23(6):2897. https://doi.org/10.3390/s23062897
Chicago/Turabian StyleGu, Junhua, Zhihao Jia, Taotao Cai, Xiangyu Song, and Adnan Mahmood. 2023. "Dynamic Correlation Adjacency-Matrix-Based Graph Neural Networks for Traffic Flow Prediction" Sensors 23, no. 6: 2897. https://doi.org/10.3390/s23062897
APA StyleGu, J., Jia, Z., Cai, T., Song, X., & Mahmood, A. (2023). Dynamic Correlation Adjacency-Matrix-Based Graph Neural Networks for Traffic Flow Prediction. Sensors, 23(6), 2897. https://doi.org/10.3390/s23062897