Pedestrian Flow Prediction Method Based on LSTM

Authors

  • Yuqi Yang
  • Shilin Yang
  • Hanmeng Wang
  • Changhao Wang

DOI:

https://doi.org/10.54691/38s92x70

Keywords:

Pedestrian Flow; Prediction; LSTM Neural Network; Feature Engineering; Model Optimization; Public Security.

Abstract

With the acceleration of urbanization in China, the urban population density has risen sharply, leading to increasingly severe social security and traffic congestion problems. To address these issues, this study proposes a dynamic and accurate regional pedestrian flow prediction model based on the LSTM neural network, which fuses temporal, statistical and semantic features. Meanwhile, the prediction results are applied to assist relevant departments in pedestrian flow management. Experimental results show that the model achieves a mean squared error (MSE) as low as 29.2530 and a mean absolute error (MAE) of 3.5059, outperforming traditional prediction methods significantly. Additionally, the integration of the SmoothL1Loss function and early stopping mechanism has notably improved the robustness of the model. Error analysis indicates that 83.5% of the prediction errors are controlled within ±20 people, which fully meets the requirements of public safety early warning and traffic congestion prediction. This model provides data support for relevant departments to manage urban pedestrian flow efficiently and accurately, effectively helping the government reduce management and control costs and improve the efficiency of emergency response.

Downloads

Download data is not yet available.

References

[1] Shiyao Yue, Analysis of Large-scale Spontaneous Gathering Stampede Accidents: A Case Study of the Itaewon Stampede [J]. City and Disaster Reduction, 2023, (03): 17-21.

[2] ZHANG Yankong, LU Jiapin, ZHANG Shuaichao, et al. A short-term risk prediction method for urban traffic accidents based on road network. CAAI Transactions on Intelligent Systems, 2020, 15(4): 663-671.

[3] Jian Du, Haiyi Yang, Yang Li, et al., Identification of Highway Safety Risks and Influencing Factors Based on an Interpretable Machine Learning Framework, Journal of Transport Information and Safety, Volume 41, Issue 5, 2023, 24-34.

[4] HE Qingling, LIU Jing, LI Shan, CHENG Rui. Highway Traffic Accident Duration Prediction Based on SO-BiLSTM[J]. Journal of Chongqing Jiaotong University(Natural Science), 2024, 43(10): 97-105.

[5] Yi Xin, Gang Li, Youwei Deng, et al., Classification and Risk Level Prediction Method of Road Traffic Accidents Integrating PCA-LPP and DBSCAN, Journal of Transport Information and Safety, Volume 41, Issue 4, 2023, 44-54.

[6] Huapu Lu, Analysis of Urban Traffic Congestion Mechanism and Countermeasure System, Comprehensive Transportation, Issue 03, 2014, 10-19.

[7] Tencent News, [Heavyweight! "Xi'an Urban Traffic Report" Released: Three Major Areas Most Congested!], Tencent Net, October 16, 2023,https://news.qq.com/ rain/a/ 2023 1016A055Y000.

[8] National Bureau of Statistics of the People's Republic of China, Statistical Communiqué of the People's Republic of China on the 2023 National Economic and Social Development, Official Website of the National Bureau of Statistics, February 28, 2024, http://www. stats.gov. cn/sj/zxfb/ 202402/ t20240228_1947915.html.

[9] Lixin Yan, Xinhui Hu, Qingmei Liu, et al., Severity Prediction and Causative Analysis of Road Traffic Accidents, Journal of East China Jiaotong University, Volume 41, Issue 5, 2024, 65-73.

[10] Ziheng Wang, Jianlei Zhang,A task allocation algorithm for a swarm of unmanned aerial vehicles based on bionic wolf pack method,Knowledge-Based Systems,Volume 250,2022,109072,ISSN 0950-7051.

[11] Q. Peng, H. Wu, N. Li and F. Wang,A Dynamic Task Allocation Method for Unmanned Aerial Vehicle Swarm Based on Wolf Pack Labor Division Model,in IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 8, no. 6, pp. 4075-4089, Dec. 2024.

[12] Ziheng Wang, Jianlei Zhang,A task allocation algorithm for a swarm of unmanned aerial vehicles based on bionic wolf pack method,Knowledge-Based Systems,Volume 250,2022,109072,ISSN 0950-7051.

[13] Alhijawi, B., Awajan, A. Genetic algorithms: theory, genetic operators, solutions, and applications. Evol. Intel. 17, 1245–1256 (2024).

[14] A. Lambora, K. Gupta and K. Chopra,Genetic Algorithm- A Literature Review,2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon), Faridabad, India, 2019, pp. 380-384.

[15] Yuliang Cong, Wenxi Sun, Ke Xue, et al., Research on Task Offloading Strategy of Internet of Vehicles Based on Improved Hybrid Genetic Algorithm, Journal on Communications, Volume 43, Issue 10, 2022, 77-85.

[16] Katoch, S., Chauhan, S.S. & Kumar, V. A review on genetic algorithm: past, present, and future. Multimed Tools Appl 80, 8091–8126 (2021).

[17] M. R. Rezaee, N. A. W. A. Hamid, M. Hussin and Z. A. Zukarnain, "Comprehensive Review of Drones Collision Avoidance Schemes: Challenges and Open Issues," in IEEE Transactions on Intelligent Transportation Systems, vol. 25, no. 7, pp. 6397-6426, July 2024.

[18] Cortes C, Vapnik V .Support-Vector Networks[J].Machine Learning, 1995, 20(3):273-297.DOI: 10. 1023/ A:1022627411411.

[19] Friedman H J .Greedy Function Approximation: A Gradient Boosting Machine[J].The Annals of Statistics,2001,29(5):1189-1232.

[20] Chen T, Guestrin C .XGBoost: A Scalable Tree Boosting System[J].ACM, 2016.DOI: 10. 1145 /2939 672.2939785.

[21] Meng Q .LightGBM: A Highly Efficient Gradient Boosting Decision Tree[C]//Neural Information Processing Systems.Curran Associates Inc. 2017.

[22] Hochreiter S , Schmidhuber J .Long Short-Term Memory[J].Neural Computation, 1997, 9(8):1735-1780.DOI:10.1162/neco.1997.9.8.1735.

[23] Cho K , Van Merrienboer B , Gulcehre C ,et al.Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation[J].Computer Science, 2014.DOI:10. 3115/ v1/D14-1179.

[24] Lecun Y, Boser B, Denker J, et al.Backpropagation Applied to Handwritten Zip Code Recognition [J]. Neural Computation, 1989, 1(4):541-551.DOI:10.1162/neco.1989.1.4.541.

Downloads

Published

2026-04-21

Issue

Section

Articles

How to Cite

Yang, Y., Yang, S., Wang, H., & Wang, C. (2026). Pedestrian Flow Prediction Method Based on LSTM. Scientific Journal of Technology, 8(4), 275-285. https://doi.org/10.54691/38s92x70