Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 251000073-732.doi: 10.11896/jsjkx.251000073

• Big Data & Data Science • Previous Articles     Next Articles

Research on Crowd Flow Classification Algorithm in Key Places During Specific Time Periods

LU Fengling, WANG Baohui   

  1. College of Software,Beihang University,Beijing 100191,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:LU Fengling,born in 1990,master.Her main research interests include classification algorithms,artificial intelligence,and related fields.
    WANG Baohui,born in 1973,professor, master’s supervisor.His main research interests include software architecture,big data,and artificial intelligence,etc.

Abstract: Crowd density fluctuations in key venues during specific periods can easily trigger safety risks,necessitating accurate crowd state classification.However,mobile signaling data(MSD) is commonly plagued by sparse sampling,weak spatial semantics,and extreme scarcity of critical events such as “departure”,which severely limit the performance of existing methods.To address these challenges,this paper proposes a multi-stream fusion-based improved Transformer algorithm for crowd state classification,aiming to enhance prediction accuracy and emergency response capability.Firstly,to mitigate the insufficient semantic representation of location information,it introduces a Skip-gram-based location semantic encoding method that captures contextual relationships among locations to enrich feature representation.Secondly,to improve temporal feature extraction and prediction accuracy,it designs a GAT-Transformer hybrid architecture with multi-level feature fusion:a graph attention network(GAT) constructs a dynamic spatio-temporal interaction graph-replacing conventional dense attention-to effectively model local dependencies and social interactions,while a temporal convolutional network(TCN) branch is incorporated to strengthen short-term temporal pattern recognition.Thirdly,to tackle severe class imbalance,it develops a multi-level sample balancing strategy combining data resampling and loss function optimization.Evaluated on real-world MSD collected from the Beijing National Stadium(“Bird’sNest”) during major events,the proposed method achieves an accuracy of 85.88%,an F1-score of 84.15%,and a ROC-AUC of 93.46%,outperforming an optimized LSTM baseline by 3.72 and 4.39 percentage points in accuracy and F1-score,respectively.Furthermore,transfer experiments on the public Geolife GPS trajectory dataset demonstrate strong generalization:the model attains an F1-score of 0.964 5 in “stay-move” state classification.PCA visualization and geographic distance correlation analysis further validate the effectiveness of the learned embedding space.These results confirm the model’s robust capability in distinguishing departure and stay behaviors,providing reliable support for real-time decision-making in crowd management and emergency evacuation scenarios.

Key words: Mobile phone signaling data, Crowd state classification, Graph attention network, Multi-layer sample balancing, Transformer

CLC Number: 

  • TP301
[1] ELNAGAR A.Prediction of moving objects in dynamic environments using Kalman filters[C]//Proceedings 2001 IEEE International Symposium on Computational Intelligence in Robotics and Automation.Piscataway:IEEE,2001:414-419.
[2] KLUGE S,STACHNIS C,FRANKEN E,et al.Probabilistictrajectory prediction for autonomous vehicles in urban environments[C]//2006 IEEE Intelligent Vehicles Symposium.IEEE,2006:506-511.
[3] LEE J G,HAN J,WHANG K Y.Trajectory clustering:a partition-and-group framework[C]//Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data.New York:ACM,2007:593-604.
[4] HELBING D,MOLNAR P.Social force model for pedestriandynamics[J].Physical Review E,1995,51(5):4282-4286.
[5] MORRIS B T,TRIVEDI M M.Trajectory learning for activity understanding:Unsupervised,multilevel,andlong-term adaptive approach[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2011,33(11):2287-2301.
[6] GOLDHAMMER M,DOLL K,BRUNSMANN U,et al.Pedestrian's trajectory forecast in public traffic with artificial neural networks[C]//2014 22nd International Conference on Pattern Recognition.Piscataway:IEEE,2014:4110-4115.
[7] ALAHI A,GOEL K,RAMANATHAN V,et al.Social LSTM:Human trajectory prediction in crowded spaces[C]//Procee-dings of the IEEE Conference on Computer Vision and Pattern Recognition.Piscataway:IEEE,2016:961-971.
[8] GIULIARI F,HASAN I,CRISTANI M,et al.Transformer networks for trajectory forecasting[C]//2020 25th International Conference on Pattern Recognition(ICPR).Piscataway:IEEE,2021:10335-10342.
[9] MOHAMED A,QIAN K,ELHOSEINY M,et al.Social-STGCNN:A social spatio-temporal graph convolutional neural network for human trajectory prediction[C]//IEEE/CVF Confe-rence on Computer Vision and Pattern Recognition.Piscataway:IEEE,2020:14424-14432.
[10] ZHANG J,ZHENG Y,QI D.Deep spatio-temporal residual networks for citywide crowd flows prediction[C]//Proceedings of the AAAI Conference on Artificial Intelligence.Palo Alto:AAAI Press,2017,31(1):1650-1659.
[11] LI W L,ZHANG Y N,WANG M X.Pedestrian trajectory prediction based on field of view mechanism[J].Application Research of Computers,2023,40(1):80-85.
[12] ALKHOULY A,MOHAMMED A,HEFNY H.Improving the performance of deep neural networks using two proposed activation functions[J].IEEE Access,2021,9:82249-82271.
[13] LIU Y.Research on different types of noise gain in convolutionalneural networks under ReLU activation function[D].Nanjing:Nanjing University of Posts and Telecommunications,2023.
[14] TRAUTMAN P,KRAUSE A.Unfreezing the robot:Navigation in dense,interacting crowds[C]//2010 IEEE/RSJ International Conference on Intelligent Robots and Systems.Piscataway:IEEE,2010:797-803.
[15] GIANNOTTI F,NANNI M,PINELLI F,et al.Trajectory pattern mining[C]//Proceedings of the 13th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining.New York:ACM,2007:330-339.
[16] YANG W Y,ZHANG X,CHEN H,et al.Pedestrian trajectory prediction model for autonomous vehicles based on social force model[J].Journal of Highway and Transportation Research and Development,2020,37(8):127-135.
[17] PELLEGRINI S,ESS A,SCHINDLER K,et al.You’ll neverwalk alone:Modeling social behavior for multi-target tracking[C]//2009 IEEE 12th International Conference on Computer Vision.Piscataway:IEEE,2009:261-268.
[18] LI L H,ZHOU B,REN W W,et al.Survey of pedestrian trajectory prediction methods[J].Chinese Journal of Intelligent Science and Technology,2021,3(4):399-411.
[19] MONREALE A,PINELLI F,TRASARTI R,et al.Wherenext:a location predictor on trajectory pattern mining[C]//Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining.New York:ACM,2009:637-646.
[20] WIEST J,HÖFFKEN M,KREÖEL U,et al.Probabilistic trajec-tory prediction with Gaussian mixture models[C]//2012 IEEE Intelligent Vehicles Symposium.Piscataway:IEEE,2012:141-146.
[21] ZAREZADE A,JAFARZADEH S,RABIEE H R.Spatio-temporal modeling of check-ins in location-based social networks[J].:arXiv:1611.07710,2016.
[22] HUANG W,LI S,LIU X,et al.Predicting human mobility with activity changes[J].International Journal of Geographical Information Science,2015,29(9):1569-1587.
[23] YAO D,ZHANG C,HUANG J,et al.SERM:A recurrent model for next location prediction in semantic trajectories[C]//Proceedings of the 2017 ACM on Conference on Information and Knowledge Management.New York:ACM,2017:2411-2414.
[24] PRAKASH A,CHITTA K,GEIGER A.Multi-modal fusiontransformer for end-to-end autonomous driving[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.Piscataway:IEEE,2021:7073-7083.
[1] XU Jianjun, BI Ying, CHEN Mingming, LIANG Jing. Survey of Molecular Pre-training Models and Their Applications in Drug Discovery [J]. Computer Science, 2026, 53(9): 110-123.
[2] LU Shan, LIU Yuelong, ZHAO Zhiqi, GU Jie. Social Networks and Stock Price Synchronicity:Explainable Predictive Model Based on GraphAttention Network [J]. Computer Science, 2026, 53(8): 85-93.
[3] CAI Yi, WANG Xiaobin, CHEN Ruili, XU Jinfeng. Handwriting Gender Recognition Method Based on Multi-scale Directional Attention Transformer [J]. Computer Science, 2026, 53(8): 156-164.
[4] REN Yanzhang, GAO Tai, LI Ying, WANG Bin. Gated Bidirectional Mamba Multimodal Feature Fusion Framework for Drug-Target InteractionPrediction [J]. Computer Science, 2026, 53(8): 326-335.
[5] JI Wendi, WANG Yongquan. Autoregressive Sequence Reconstruction for Unsupervised Anomaly Detection in Medical Insurance [J]. Computer Science, 2026, 53(7): 298-307.
[6] XIAO Yanxue, DENG Li, REN Zhengwei, WU Mengxin. iDSRformer:Node Load Prediction Model for High-performance Computing Cluster [J]. Computer Science, 2026, 53(7): 251-261.
[7] YANG Geer, WANG Xin, SUN Wei, WANG Xinge, HU Zhongrui, MENG Wenjun, ZHANG Junqiang, WU Xinghui, LIU Jinshan, YAN Yuming. Survey on Positional Encoding Algorithms in Deep Learning [J]. Computer Science, 2026, 53(6A): 250300107-16.
[8] LU Biyao, XU Youran, LIU Ying, LIU Jindong, LIU Jian, YIN Wenfei, JIANG Ye. Bilinear Attention Network-based Drug-target Interaction Prediction [J]. Computer Science, 2026, 53(6A): 250800090-7.
[9] LIU Jikang, HUANG Lei, ZHANG Ke, NIE Jie, WEI Zhiqiang. Object Detection Method Based on Dynamic Feature Fusion [J]. Computer Science, 2026, 53(6): 263-269.
[10] LI Tengjia, MA Chun’ai. Multi-scale Transformer Oil Price Prediction Framework with AEMD and Trend Cross-attention [J]. Computer Science, 2026, 53(5): 157-163.
[11] YANG Hongju, ZHANG Ziyang, LI Yao. Frequency Driven Multi-scale Image Super-resolution Method [J]. Computer Science, 2026, 53(5): 218-227.
[12] GUO Jingchen, YANG Kuiwu, DING Mengdi, WEI Jianghong. Survey of Adversarial Sample Attacks for Vision Transformer [J]. Computer Science, 2026, 53(5): 404-418.
[13] XIN Yichen, LI Shichong, CHEN Bin, CHENG Zhangtao, LI Ye, ZHOU Fan. Enhancing Temporal Knowledge Graph Reasoning Method with Graph Information Bottleneck and Transformer [J]. Computer Science, 2026, 53(4): 393-405.
[14] LI Zequn, DING Fei. Fatigue Driving Detection Based on Dual-branch Fusion and Segmented Domain AdaptationTransfer Learning [J]. Computer Science, 2026, 53(3): 78-87.
[15] CHEN Han, XU Zefeng, JIANG Jiu, FAN Fan, ZHANG Junjian, HE Chu, WANG Wenwei. Large Language Model and Deep Network Based Cognitive Assessment Automatic Diagnosis [J]. Computer Science, 2026, 53(3): 41-51.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!