基于K近邻算法和混合模型的短期交通流预测
Short-Term Traffic Flow Forecast Based on K near Neighbor Algorithm and Hybrid Model
摘要: 道路拥堵情况由于车辆数量的不断增加而一直存在,及时、准确地进行交通流预测仍是研究的重点。由于交通流数据是庞大的、复杂的,本研究使用KNN算法对数据进行挑选,选择与目标监测点相关性更高的数据,将其输入到CNN-GRU-ATT模型中,对交通流数据进行预测。模型中的CNN层提取特征,GRU层描述时间趋势,ATT层实现对关键信息的关注。实验发现:该模型与其他基线模型相比,模型精度更高,MAPE最高降低了28.33%;与未引入KNN算法相比,模型拟合优度有所提升,达到了97.79%。
Abstract: Road congestion has always existed due to the increasing number of vehicles, and traffic flow fore-casting in time and accurately is still the focus of research. Because traffic flow data is huge and complex, this study uses the KNN algorithm to select the data, select data with higher correlation with the target monitoring point, and enter it into the CNN-GRU-ATT model. Perform predictions. The CNN layer extracts feature in the model, the GRU layer describes time trends, and the ATT layer achieves attention to key information. The experiment found that compared with other baseline models, the model has higher accuracy, and MAPE has reduced up to 28.33%; compared with the KNN algorithm, the model fitting superiority has improved, reaching 97.79%.
文章引用:赵丽雅, 周文学. 基于K近邻算法和混合模型的短期交通流预测[J]. 应用数学进展, 2023, 12(10): 4330-4337. https://doi.org/10.12677/AAM.2023.1210426

参考文献

[1] 焦朋朋, 安玉, 白紫秀, 等. 基于XGBoost的短时交通流预测研究[J]. 重庆交通大学学报(自然科学版), 2022, 41(8): 17-23+66.
[2] 罗文慧, 董宝田, 王泽胜. 基于CNN-SVR混合深度学习模型的短时交通流预测[J]. 交通运输系统工程与信息, 2017, 17(5): 68-74.
[3] 姚洁, 邱劲. 基于SSA-BP算法的道路交通流量预测研究[J]. 西南大学学报(自然科学版), 2022, 44(10): 193-201. [Google Scholar] [CrossRef
[4] 赵明伟, 张文胜, 王克文, 等. 基于EMD-PSO-LSTM组合模型的城市轨道交通短时客流预测[J]. 铁道运输与经济, 2022, 44(7): 110-118. [Google Scholar] [CrossRef
[5] 杜秀丽, 范志宇, 吕亚娜, 等. 基于双向长短期记忆循环神经网络的网络流量预测[J]. 计算机应用与软件, 2022, 39(2): 144-149+156.
[6] Jin, F. and Zhao, B. (2019) Short-Term Traffic Flow Prediction Based on Road Network Topology. Journal of Beijing Institute of Technology, 28, 383-388. [Google Scholar] [CrossRef
[7] 李巧茹, 刘桂欣, 陈亮, 等. 自适应BAS优化RBF神经网络的短时交通流预测[J]. 哈尔滨工业大学学报, 2023, 55(3): 93-99.
[8] 张兴辉, 樊秀梅, 阿喜达, 等. 反向学习的灰狼算法优化及其在交通流预测中的应用[J]. 电子学报, 2021, 49(5): 879-886.
[9] 张文胜, 郝孜奇, 朱冀军, 等. 基于改进灰狼算法优化BP神经网络的短时交通流预测模型[J]. 交通运输系统工程与信息, 2020, 20(2): 196-203.
[10] Li, Y.F., Chen, M.N., Lu, X.D., et al. (2018) Research on Optimized GA-SVM Vehicle Speed Prediction Model Based on Driver-Vehicle-Road-Traffic System. Science China Technological Sciences, 61, 782-790. [Google Scholar] [CrossRef
[11] 蒋杰, 张江鑫. 改进ACO优化的BP神经网络短时交通流量预测[J]. 计算机仿真, 2021, 38(7): 97-101+180.
[12] 胡松, 成卫, 李艾. 一种改进鲸鱼算法及其在短时交通流预测中的应用研究[J]. 小型微型计算机系统, 2021, 42(8): 1627-1632.
[13] 蒲悦逸, 王文涵, 朱强, 等. 基于CNN-ResNet-LSTM模型的城市短时交通流量预测算法[J]. 北京邮电大学学报, 2020, 43(5): 9-14.
[14] Li, R., Huang, Y. and Wang, J. (2019) Long-Term Traffic Volume Prediction Based on K-means Gaussian Interval Type-2 Fuzzy Sets. IEEE/CAA Journal of Automatica Sinica, 6, 1344-1351. [Google Scholar] [CrossRef
[15] Zhuang, W. and Cao, Y. (2023) Short-Term Traffic Flow Predic-tion Based on a K-Nearest Neighbor and Bidirectional Long Short-Term Memory Model. Applied Sciences, 13, Article 2681. [Google Scholar] [CrossRef
[16] Li, Z., Wang, X. and Yang, K. (2023) An Effective Self-Attention-Based Hybrid Model for Short-Term Traffic Flow Prediction. Advances in Civil Engineering, 2023, Arti-cle ID: 9308576. [Google Scholar] [CrossRef
[17] Ma, F., Deng, S. and Mei, S. (2023) A Short-Term Highway Traffic Flow Forecasting Model Based on CNN-LSTM with an Attention Mechanism. Journal of Physics: Conference Series, 2491, Article ID: 012008. [Google Scholar] [CrossRef