Submitted:
23 November 2023
Posted:
23 November 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Knowledge graph and spatiotemporal attention mechanism are combined in this paper to predict the vehicle location at the next moment. POI is integrated with historical trajectory, and the POI weights that affect the prediction are visualized additionally. Regions that have a great impact on the prediction is explored, and the interpretability of model is enhanced.
- A global traffic knowledge graph is constructed to learn and represent POI semantic information. POI nodes are considered as the entity, and the connection between POI is considered as the relationship. The representation vector of each node is obtained by Translate Embedding (TransE) algorithm and is considered as the feature vector for vehicle location prediction.
- A spatiotemporal attention mechanism is designed to allocate weights for spatial and temporal features, thus enhancing the interpretability and accuracy of model. The weight distribution of spatial features is achieved through GAT to obtain the corresponding graph representation vector. LSTM combined with multi-head attention mechanism is used to allocate weights of trajectory points at different timestamps to improve the prediction accuracy.
2. Related Work
2.1. Vehicle Trajectory Location Prediction
2.2. Knowledge Graph
2.3. Attention mechanism
3. Problem Statement
4. Methodology
4.1. Overall Framework
- Data conversion layer:
- Global POI knowledge extraction layer:
- Local dynamic graph generation module:
- Trajectory prediction layer:
4.2. Data Conversion Layer
4.2.1. Road Network
4.2.2. Trajectory Data Conversion
4.2.3. POI Data Conversion
4.3. Global POI Knowledge Extraction Layer
4.4. Local dynamic graph generation module
4.5. Trajectory prediction layer
5. Experiments
5.1. Datasets
5.2. Experimental settings
5.2.1. Benchmark models
5.2.2. Evaluation Metrics
5.3. Result analysis
5.3.1. Accuracy Experiment
5.3.2. Robustness experiment
5.3.3. Ablation Experiment
5.3.4. POI weights visualization
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Guo, L. Research and Application of Location Prediction Algorithm Based on Deep Learning. Doctoral Thesis, Lanzhou University, Lanzhou, China, 2018. [Google Scholar]
- Havyarimana, V.; Hanyurwimfura, D.; Nsengiyumva, P.; Xiao, Z. A novel hybrid approach based-SRG model for vehicle position prediction in multi-GPS outage conditions. Inf. Fusion 2018, 41, 1–8. [Google Scholar] [CrossRef]
- Wu, Y.; Hu, Q.; Wu, X. Motor vehicle trajectory prediction model in the context of the Internet of Vehicles, J. Southeast Univ. (Nat. Sci. Ed.) 2022, 52, 1199–1208. [Google Scholar] [CrossRef]
- Li, L.; Xu, Z. Review of the research on the motion planning methods of intelligent networked vehicles, J. China Highw. Transp. 2019, 32, 20–33. [Google Scholar] [CrossRef]
- Wang, K.; Wang, Y.; Deng, X.; et al. Review of the impact of uncertainty on vehicle trajectory prediction, Automot. Technol. 2022, 7, 1–14. [Google Scholar]
- Wang, L. Trajectory Destination Prediction Based on Traffic Knowledge Map. Doctoral Thesis, Dalian University of Technology, Dalian, China, 2021. [Google Scholar]
- Guo, H.; Meng, Q.; Zhao, X.; et al. Map-enhanced generative adversarial trajectory prediction method for automated vehicles, Inf. Sci. 2023, 622, 1033–1049. [Google Scholar] [CrossRef]
- Xu, H.; Yu, J.; Yuan, S.; et al. Research on taxi parking location selection algorithm based on POI, High-Tech. Commun. 2021, 31, 1154–1163. [Google Scholar]
- Velickovic, P.; Cucurull, G.; Casanova, A.; Romero, A.; Lio’, P.; Bengio, Y. Graph Attention Networks. arXiv 2017, arXiv:1710.10903. [Google Scholar] [CrossRef]
- Li, L.; Ping, Z.; Zhu, J.; et al. Space-time information fusion vehicle trajectory prediction for group driving scenarios, J. Transp. Eng. 2022, 22, 104–114. [Google Scholar]
- Su, J.; Jin, Z.; Ren, J.; Yang, J.; Liu, Y. GDFormer: A Graph Diffusing Attention based approach for Traffic Flow Prediction. Pattern Recognit. Lett. 2022, 156, 126–132. [Google Scholar] [CrossRef]
- Ali, A.; Zhu, Y.; Zakarya, M. Exploiting dynamic spatio-temporal correlations for citywide traffic flow prediction using attention based neural networks. Inf. Sci. 2021, 577, 852–870. [Google Scholar] [CrossRef]
- Fan, H. Research and Implementation of Vehicle Motion Tracking Technology based On Internet of Vehicles. Doctoral Thesis, Beijing University of Posts and Telecommunications, Beijing, China, 2017. [Google Scholar]
- Hui, F.; Wei, C.; Shangguan, W.; Ando, R.; Fang, S. Deep encoder-decoder-NN: A deep learning-based autonomous vehicle trajectory prediction and correction model. Phys. A Stat. Mech. Its Appl. 2022. [Google Scholar] [CrossRef]
- Kalatian, A.; Farooq, B. A context-aware pedestrian trajectory prediction framework for automated vehicles, Transp. Res. Part C: Emerg. Technol. 2022, 134. [Google Scholar] [CrossRef]
- An, J.; Liu, W.; Liu, Q.; Guo, L.; Ren, P.; Li, T. DGInet: Dynamic graph and interaction-aware convolutional network for vehicle trajectory prediction. Neural Netw. 2022, 151, 336–348. [Google Scholar] [CrossRef] [PubMed]
- Yang, D.; He, T.; Wang, H.; et al. Research progress in graph embedding learning for knowledge map. J. Softw. 2022, 33, 21. [Google Scholar] [CrossRef]
- Xia, Y.; Lan, M.; Chen, X.; et al. Overview of interpretable knowledge map reasoning methods. J. Netw. Inf. Secur. 2022, 8, 1–25. [Google Scholar]
- Zhang, Z.; Qian, Y.; Xing, Y.; et al. Overview of TransE-based representation learning methods, Comput. Appl. Res. 2021, 3, 656–663. [Google Scholar]
- Chen, W.; Wen, Y.; Zhang, X.; et al. An improved TransE-based knowledge map representation method. Computer Engineering 2020, 46, 8. [Google Scholar]
- Zheng, D.; Song, X.; Ma, C.; Tan, Z.; Ye, Z.; Dong, J.; Xiong, H.; Zhang, Z.; Karypis, G. DGL-KE: Training Knowledge Graph Embeddings at Scale. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval. 2020.
- Ji, Q.; Jin, J. Reasoning Traffic Pattern Knowledge Graph in Predicting Real-Time Traffic Congestion Propagation. IFAC-Pap. 2020, 53, 578–581. [Google Scholar] [CrossRef]
- Wang, X.; Lyu, S.; Wang, X.; Wu, X.; Chen, H. Temporal knowledge graph embedding via sparse transfer matrix. Inf. Sci. 2022, 623, 56–69. [Google Scholar] [CrossRef]
- Wang, C.; Tian, R.; Hu, J.; Ma, Z. A trend graph attention network for traffic prediction. Inf. Sci. 2023, 623, 275–292. [Google Scholar] [CrossRef]
- Wang, B.; Wang, J. St-Mgat:Spatio-Temporal Multi-Head Graph Attention Network for Traffic Flow Prediction. SSRN Electron. J. 2022. [Google Scholar] [CrossRef]
- Wang, T.; Ni, S.; Qin, T.; Cao, D. TransGAT: A dynamic graph attention residual networks for traffic flow forecasting. Sustain. Comput. Informatics Syst. 2022, 36, 100779. [Google Scholar] [CrossRef]
- Cai, K.; Shen, Z.; Luo, X.; Li, Y. Temporal attention aware dual-graph convolution network for air traffic flow prediction. J. Air Transp. Manag. 2023, 106. [Google Scholar] [CrossRef]
- Yan, X.; Gan, X.; Wang, R.; Qin, T. Self-attention eidetic 3D-LSTM: Video prediction models for traffic flow forecasting. Neurocomputing 2022, 509, 167–176. [Google Scholar] [CrossRef]
- Chen, L.; Shi, P.; Li, G.; Qi, T. Traffic flow prediction using multi-view graph convolution and masked attention mechanism. Comput. Commun. 2022, 194, 446–457. [Google Scholar] [CrossRef]
- Wang, K.; Ma, C.; Qiao, Y.; Lu, X.; Hao, W.; Dong, S. A hybrid deep learning model with 1DCNN-LSTM-Attention networks for short-term traffic flow prediction. Phys. A-Stat. Mech. Its Appl. 2021, 583, 126293. [Google Scholar] [CrossRef]
- Lou, Y.; Zhang, C.; Zheng, Y.; Xie, X.; Wang, W.; Huang, Y. Map-matching for low-sampling-rate GPS trajectories. In Proceedings of the 17th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems. 2009.
- Cai, Y. Research on Vehicle Trajectory Prediction Based on RNN-LSTM Network. Doctoral Thesis, Jilin University, Jilin, China, 2021. [Google Scholar]
- Zhang, H.; Huang, C.; Xuan, Y.; et al. Real time prediction of air combat flight trajectory using gated cycle unit. Syst. Eng. Electron. Technol. 2020, 42, 7. [Google Scholar] [CrossRef]
- Guo, Y.; Zhang, R.; Chen, Y. Vehicle trajectory prediction based on potential characteristics of observation data and bidirectional short-term and long-term memory network. Automot. Technol. 2022, 3. [Google Scholar] [CrossRef]
- Liu, C.; Liang, J. Vehicle trajectory prediction based on attention mechanism. J. Zhejiang Univ. (Eng. Ed.) 2020, 54, 8. [Google Scholar] [CrossRef]
- Guan, D. Research on Modeling and Prediction of Vehicle Moving Trajectory in the Internet of Vehicles. Doctoral Thesis, Beijing University of Posts and Telecommunications, Beijing, China, 2020. [Google Scholar]










| Algorithm 1: Global POI knowledge extraction layer | |
|---|---|
| Input entity, relation, and training sets , embedding dim | |
| 1: | normalize uniform for each |
| 2: | for each |
| 3: | uniform for each |
| 4: | loop |
| 5: | for each |
| 6: | sample //sample by size |
| 7: | //initialize the triplets |
| 8: | for do |
| 9: | sample //extract negative samples |
| 10: | //extract positive and negative samples randomly |
| 11: | end for |
| 12: | Update embeddings //L |
| 13: | end loop |
| Output representation vector of the current entity | |
| Algorithm 2: Local dynamic graph generation module | |
|---|---|
| Input normalized trajectory points , POI feature vectors | |
| 1: | for each trajectory point // generate local graphs |
| 2: | Target node vector and neighbor node vector // according to local graphs |
| 3: | |
| 4: | |
| 5: | weighted sum: |
| 6: | for do |
| 7: | |
| 8: | end for |
| Output graph representation vector for each trajectory point | |
| Algorithm 3: Trajectory prediction layer | |
|---|---|
| Input normalized trajectory points , graph representation vectors | |
| 1: | LSTM Module: |
| 2: | loop |
| 3: | |
| 4: | calculated by forget gate, input gate and output gate |
| 5: | cell state and hidden state are calculated by |
| 6: | Temporal attention mechanism: |
| 7: | , , |
| 8: | for do |
| 9: | |
| 10: | |
| 11: | end for |
| 12: | MLP: |
| 13: | |
| 14: | end loop |
| Output coordinate of the next location | |
| (a) | (b) | ||
|---|---|---|---|
| Model | Acuraccy (%) | Model | Acuraccy (%) |
| LSTM | 0.09 | LSTM | 0.10 |
| GRU | 0.07 | GRU | 0.08 |
| BiLSTM | 0.06 | BiLSTM | 0.07 |
| Attn-LSTM | 0.05 | Attn-LSTM | 0.14 |
| Attn-BiLSTM | 0.06 | Attn-BiLSTM | 0.09 |
| LDGST-LSTM | 0.30 | LDGST-LSTM | 0.75 |
| (c) | (d) | ||
| Model | Acuraccy (%) | Model | Acuraccy (%) |
| LSTM | 0.12 | LSTM | 0.10 |
| GRU | 0.12 | GRU | 0.07 |
| BiLSTM | 0.11 | BiLSTM | 0.05 |
| Attn-LSTM | 0.15 | Attn-LSTM | 0.09 |
| Attn-BiLSTM | 0.16 | Attn-BiLSTM | 0.05 |
| Model | Acuraccy (%) | LDGST-LSTM | 0.57 |
| (a) | ||||
|---|---|---|---|---|
| Model | MAE | MSE | RMSE | HISN |
| LSTM | 0.0207 | 0.0007 | 0.0234 | 2.4433 |
| GRU | 0.0218 | 0.0008 | 0.0243 | 2.8943 |
| BiLSTM | 0.0302 | 0.0012 | 0.0329 | 4.7287 |
| Attn-LSTM | 0.0234 | 0.0009 | 0.0258 | 3.7313 |
| Attn-BiLSTM | 0.0492 | 0.0035 | 0.0567 | 8.4362 |
| LDGST-LSTM | 0.0191 | 0.0005 | 0.0208 | 2.0591 |
| (b) | ||||
| Model | MAE | MSE | RMSE | HISN |
| LSTM | 0.0212 | 0.0009 | 0.0295 | 3.5067 |
| GRU | 0.0210 | 0.0009 | 0.0275 | 3.4957 |
| BiLSTM | 0.0305 | 0.0010 | 0.0305 | 3.1503 |
| Attn-LSTM | 0.0220 | 0.0008 | 0.0250 | 3.4728 |
| Attn-BiLSTM | 0.0345 | 0.0012 | 0.0355 | 3.7504 |
| LDGST-LSTM | 0.0197 | 0.000 | 0.0200 | 2.0348 |
| (c) | ||||
| Model | MAE | MSE | RMSE | HISN |
| LSTM | 0.0202 | 0.0007 | 0.0305 | 2.9507 |
| GRU | 0.0197 | 0.0006 | 0.0275 | 2.6054 |
| BiLSTM | 0.0255 | 0.0008 | 0.0335 | 3.0504 |
| Attn-LSTM | 0.0199 | 0.0006 | 0.0290 | 2.6595 |
| Attn-BiLSTM | 0.0301 | 0.0012 | 0.0403 | 3.7955 |
| LDGST-LSTM | 0.0185 | 0.0004 | 0.0232 | 2.0634 |
| (d) | ||||
| Model | MAE | MSE | RMSE | HISN |
| LSTM | 0.0205 | 0.0007 | 0.0275 | 2.5047 |
| GRU | 0.0227 | 0.0009 | 0.0294 | 2.8643 |
| BiLSTM | 0.0269 | 0.0011 | 0.0327 | 3.0457 |
| Attn-LSTM | 0.0235 | 0.0009 | 0.0310 | 3.0137 |
| Attn-BiLSTM | 0.0312 | 0.0014 | 0.0343 | 3.3189 |
| LDGST-LSTM | 0.0195 | 0.0005 | 0.0224 | 2.1042 |
| (a) | |||||
|---|---|---|---|---|---|
| Model | MAE | MSE | RMSE | HISN | Accuracy (%) |
| LDGST-LSTM | 0.0191 | 0.0005 | 0.0208 | 2.0591 | 0.25 |
| LDGAT-LSTM | 0.0212 | 0.0007 | 0.0239 | 2.4357 | 0.24 |
| LDCN-TAttnLSTM | 0.0225 | 0.0008 | 0.0244 | 2.6329 | 0.20 |
| LDGST-LSTM | 0.0195 | 0.0005 | 0.0224 | 2.1042 | 0.13 |
| (b) | |||||
| Model | MAE | MSE | RMSE | HISN | Accuracy (%) |
| LDGST-LSTM | 0.0197 | 0.0006 | 0.0200 | 2.0348 | 0.70 |
| LDGAT-LSTM | 0.0205 | 0.0007 | 0.0257 | 2.5473 | 0.50 |
| LDCN-TAttnLSTM | 0.0220 | 0.0008 | 0.0295 | 2.6904 | 0.45 |
| LDGST-LSTM | 0.0237 | 0.0010 | 0.0305 | 2.9754 | 0.40 |
| (c) | |||||
| Model | MAE | MSE | RMSE | HISN | Accuracy (%) |
| LDGST-LSTM | 0.0185 | 0.0004 | 0.0232 | 2.0634 | 0.70 |
| LDGAT-LSTM | 0.0253 | 0.0007 | 0.0301 | 2.8751 | 0.64 |
| LDCN-TAttnLSTM | 0.0248 | 0.0006 | 0.0284 | 2.5323 | 0.65 |
| LDGST-LSTM | 0.0297 | 0.0009 | 0.0328 | 2.9107 | 0.50 |
| (d) | |||||
| Model | MAE | MSE | RMSE | HISN | Accuracy (%) |
| LDGST-LSTM | 0.0195 | 0.0005 | 0.0224 | 2.1042 | 0.57 |
| LDGAT-LSTM | 0.0218 | 0.0007 | 0.0254 | 2.3490 | 0.55 |
| LDCN-TAttnLSTM | 0.0261 | 0.0009 | 0.0278 | 2.5983 | 0.40 |
| LDGST-LSTM | 0.0284 | 0.0009 | 0.0290 | 2.9841 | 0.30 |
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 (http://creativecommons.org/licenses/by/4.0/).