journal article·2023-02-19Open access

Short-Term Traffic Flow Prediction Based on a K-Nearest Neighbor and Bidirectional Long Short-Term Memory Model

Weiqing Zhuang, Yongbo Cao

Applied Sciences· Volume 13· Issue 4

Abstract

In the previous research on traffic flow prediction models, most of the models mainly studied the time series of traffic flow, and the spatial correlation of traffic flow was not fully considered. To solve this problem, this paper proposes a method to predict the spatio-temporal characteristics of short-term traffic flow by combining the k-nearest neighbor algorithm and bidirectional long short-term memory network model. By selecting the real-time traffic flow data observed on high-speed roads in the United Kingdom, the K-nearest neighbor algorithm is used to spatially screen the station data to determine the points with high correlation and then input the BILSTM model for prediction. The experimental results show that compared with SVR, LSTM, GRU, KNN-LSTM, and CNN-LSTM models, the model proposed in this paper has better prediction accuracy, and its performance has been improved by 77%, 19%, 18%, 22%, and 13%, respectively. The proposed K-nearest neighbor-bidirectional long short-time memory model shows better prediction performance.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic Prediction and Management Techniques · Traffic control and management · Transportation Planning and Optimization

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

Affiliations

School of Internet Economics and Business, Fujian University of Technology, Fuzhou 350014, China

School of Transportation, Fujian University of Technology, Fuzhou 350118, China

Funding

National Social Science Foundation of China · Fujian Zhi-lian-yun Supply Chain Technology and Economy Integration Service Platform · Fujian–Kenya Silk Road Cloud Joint R&D Center · Fujian Social Sciences Federation Planning Project · General Program of the Fujian Natural Science Foundation · the 2022 Scientific and Technological Innovation Think Tank Project of the Fujian Association for Science and Technology

References (25)

Show source-provided references
1. Real-time adaptive prediction of short-term traffic flow based on ARIMA model
2. Modeling and Forecasting Vehicular Traffic Flow as a Seasonal ARIMA Process: Theoretical Basis and Empirical Results10.1061/(ASCE)0733-947X(2003)129:6(664) ↗
3. Modeling Seasonal Heteroscedasticity in Vehicular Traffic Condition Series Using a Seasonal Adjustment Approach10.1061/(ASCE)TE.1943-5436.0000656 ↗
4. Liu, S., Lin, Y., and Luo, C. (2021, January 23–26). A novel learning method for traffic flow forecasting by seasonal SVR with chaotic simulated annealing algorithm. Proceedings of the 2021 IEEE 6th International Conference on Computer and Communication Systems (ICCCS), Chengdu, China.10.1109/ICCCS52626.2021.9449161 ↗
5. Short-term traffic flow forecasting based on combination of k-nearest neighbor and support vector regression
6. Travel-Time Prediction With Support Vector Regression10.1109/TITS.2004.837813 ↗
7. Short-term traffic flow rate forecasting based on identifying similar traffic patterns10.1016/j.trc.2015.08.017 ↗
8. A Fast Learning Algorithm for Deep Belief Nets10.1162/neco.2006.18.7.1527 ↗
9. Deep Architecture for Traffic Flow Prediction: Deep Belief Networks With Multitask Learning10.1109/TITS.2014.2311123 ↗
10. Traffic Flow Prediction With Big Data: A Deep Learning Approach
11. Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014). Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv.10.3115/v1/D14-1179 ↗
12. Pascanu, R., Mikolov, T., and Bengio, Y. (2013, January 16–21). On the difficulty of training recurrent neural networks. Proceedings of the International Conference on Machine Learning, Atlanta, GA, USA.
13. Long short-term memory neural network for traffic speed prediction using remote microwave sensor data10.1016/j.trc.2015.03.014 ↗
14. Wang, J., Hu, F., and Li, L. (2017). International Conference on Neural Information Processing, Springer.
15. Traffic Flow Prediction Based on Combination Model of ARIMA and Wavelet Neural Network
16. Short-term traffic flow prediction based on CNN-SVR hybrid deep learning model
17. Luo, X., Li, D., Yang, Y., and Zhang, S. (2019). Spatio-temporal traffic flow prediction with KNN and LSTM. J. Adv. Transp., 2019.10.1155/2019/4145353 ↗
18. A Match-Then-Predict Method for Daily Traffic Flow Forecasting Based on Group Method of Data Handling10.1111/mice.12381 ↗
19. Daily Traffic Flow Forecasting Through a Contextual Convolutional Recurrent Neural Network Modeling Inter- and Intra-Day Traffic Patterns10.1109/TITS.2020.2973279 ↗
20. Daily long-term traffic flow forecasting based on a deep neural network10.1016/j.eswa.2018.12.031 ↗
21. Input data selection for daily traffic flow forecasting through contextual mining and intra-day pattern recognition10.1016/j.eswa.2021.114902 ↗
22. Traffic prediction using multivariate non-parametric regression10.1061/(ASCE)0733-947X(2003)129:2(161) ↗
23. A spatiotemporal correlative k-nearest neighbor model for short-term traffic multistep forecasting10.1016/j.trc.2015.11.002 ↗
24. Kang, D., Lv, Y., and Chen, Y. (2017, January 16–19). Short-term traffic flow prediction with LSTM recurrent neural network. Proceedings of the 2017 IEEE 20th international conference on intelligent transportation systems (ITSC), Yokohama, Japan.10.1109/ITSC.2017.8317872 ↗
25. A Hybrid Deep Learning Model With Attention-Based Conv-LSTM Networks for Short-Term Traffic Flow Prediction10.1109/TITS.2020.2997352 ↗