基于SSA-GRU深度学习优化模型的短时公交客流预测
Short-Term Bus Passenger Flow Forecasting Based on SSA-GRU Deep Learning
摘要: 短时公交客流预测是实时动态调整公交发车频率,实现公交精准动态调度的重要决策基础之一。为挖掘公交客流的时序特征,提升短时公交客流预测精度,建立了一种基于麻雀搜索算法(Sparrow Search Algorithm, SSA)优化门控循环单元(Gated Recurrent Unit, GRU)的短时公交客流预测模型。该模型基于历史客流数据的时序分布特征,利用SSA寻优算法对GRU中的隐含层节点个数、学习率和训练次数进行寻优,然后依据参数寻优结果重构模型超参数,利用门控循环神经网络基进行短时客流预测。为验证优化模型的预测性能,选取某城市1号线站点客流数据进行实验;结果表明,相比于GRU门控循环神经网络,SSA-GRU模型的平均相对百分误差(MAPE)降低了37.9%、平均绝对误差(MAE)降低了42.1%,均方根误差(RMSE)降低了40.7%,组合模型的预测精度高于GRU模型且能够有效进行短时公交客流预测。
Abstract: Short-term bus passenger flow prediction is one of the important decision bases for real-time dy-namic bus frequency adjustment and accurate dynamic bus scheduling. In order to mine the time series characteristics of bus passenger flow and improve the prediction accuracy of short-term bus passenger flow, a short-term bus passenger flow prediction model based on Gated Recurrent Unit (GRU) optimized by Sparrow Search Algorithm (SSA) was established. This model was based on the historical passenger flow data of time series distribution. Firstly, SSA optimization algorithm was used to optimize the hyper parameters of GRU, such as hidden layer nodes, learning rate and train-ing times. Then, based on the parameter optimization results, short-term passenger flow prediction was carried out by using gated recurrent neural network. To verify the predictive performance of the optimized model, the passenger flow data of Line 1 station in a city were selected for experi-ment. The results show that compared with the GRU gated recurrent neural network model, the Mean Absolute Error (MAE) of the SSA-GRU model is reduced by 42.1%, the Root Mean Square Error (RMSE) is reduced by 40.7%, and the Mean Relative Percentage Error (MAPE) is reduced by 37.9%. The combined model can effectively predict short-term bus passenger flow. The results show that compared with the GRU gated recurrent neural network model, the Mean Absolute Error (MAE) of the SSA-GRU model is reduced by 42.1%, the Root Mean Square Error (RMSE) is reduced by 40.7%, and the Mean Relative Percentage Error (MAPE) is reduced by 37.9%. The combined model can ef-fectively predict short-term bus ridership, and the prediction accuracy is higher than that of the GRU model.
文章引用:汤先超, 张萌萌. 基于SSA-GRU深度学习优化模型的短时公交客流预测[J]. 计算机科学与应用, 2023, 13(12): 2198-2208. https://doi.org/10.12677/CSA.2023.1312220

参考文献

[1] Ran, X., Shan, Z., Shi, Y., et al. (2019) Short-Term Travel Time Prediction: A Spatiotemporal Deep Learning Approach. International Journal of Information Technology & Decision Making, 18, 1087-1111. [Google Scholar] [CrossRef
[2] 李高盛, 彭玲. 基于LSTM的城市公交车站短时客流量预测研究[J]. 公路交通科技, 2019, 36(2): 128-135.
[3] 龚兰兰, 凌兴宏. 长短时记忆网络公交短时客流预测实验设计[J]. 现代电子技术, 2021, 44(22): 97-100.
[4] Hao, S.Y., Lee, D.H. and De, Z. (2019) Sequence to Sequence Leaning with Attention Mechanism for Short-Term Passenger Flow Prediction in Large-Scale Metro System. Transpor-tation Research Part C: Emerging Technologies, 107, 287-300. [Google Scholar] [CrossRef
[5] Liu, L. and Chen, R.C. (2017) A Novel Passenger Flow Prediction Model Using Deep Learning Methods. Transportation Research Part C: Emerging Technologies, 84, 74-91. [Google Scholar] [CrossRef
[6] Wan, H., Guo, S., Yin, K., et al. (2020) CTS-LSTM: LSTM-Based Neural Networks for Correlated Time Series Prediction. Knowledge-Based Systems, 191, 105239. [Google Scholar] [CrossRef
[7] Ouyang, Q., Lv, Y., et al. (2020) An LSTM-Based Method Considering History and Real-time Data for Passenger Flow Prediction. Applied Sciences, 10, 3788. [Google Scholar] [CrossRef
[8] 温惠英, 罗晨伟. 基于深度学习的地铁短时客流量预测[J]. 广西大学学报(自然科学版), 2020, 45(2): 389-397.
[9] 侯晓云, 邵丽萍, 李静, 等. 基于深度学习的城市轨道交通短时客流起讫点预测[J]. 城市轨道交通研究, 2020, 23(1): 55-58+115.
[10] 李梅. 基于深度学习的短时公交客流预测研究[D]: [硕士学位论文]. 北京: 北京交通大学, 2019.
[11] 梁强升, 许心越, 刘利强. 面向数据驱动的城市轨道交通短时客流预测模型[J]. 中国铁道科学, 2020, 41(4): 153-162.
[12] 蔡昌俊. 城市轨道交通进出站短时客流预测模型研究[J]. 城市轨道交通研究, 2021, 24(9): 14-19+24. [Google Scholar] [CrossRef
[13] 李聪聪. 基于组合深度学习模型的公交站点短时客流预测[D]: [硕士学位论文]. 长安: 长安大学, 2021.
[14] 罗嘉诚. 基于CNN-GRU模型的地铁短时客流预测研究[D]: [硕士学位论文]. 广州: 广东工业大学, 2022.
[15] 石敏莲, 刘志钢, 胡华, 等. 基于PCA-LSTM模型的城市轨道交通短时客流预测[J]. 智能计算机与应用, 2020, 10(3): 155-159.
[16] 赵阳阳, 夏亮, 江欣国. 基于经验模态分解与长短时记忆神经网络的短时地铁客流预测模型[J]. 交通运输工程学报, 2020, 20(4): 194-204.
[17] Ma, X., Zhang, J., Du, B., et al. (2018) Parallel Architecture of Convolutional Bi-Directional LSTM Neural Networks for Net-work-Wide Metro Ridership Prediction. IEEE Transactions on Intelligent Transportation Systems, 20, 2278-2288. [Google Scholar] [CrossRef
[18] Chung, J., Gulcehre, C., Cho, K.H., et al. (2014) Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv:1412.3555v1. [Google Scholar] [CrossRef
[19] Xue, J. and Shen, B. (2020) A Novel Swarm Intelligence Optimi-zation Approach: Sparrow Search Algorithm. Systems Science & Control Engineering, 8, 22-34. [Google Scholar] [CrossRef