计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 251000073-732.doi: 10.11896/jsjkx.251000073

• 大数据&数据科学 • 上一篇    下一篇

重点场所特定时段人流分类算法研究

路凤玲, 王宝会   

  1. 北京航空航天大学软件学院 北京 100191
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 王宝会(wangbh@buaa.edu.cn)
  • 作者简介:(zf2221316@buaa.edu.cn)

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
  • Published:2026-11-16 Online: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.

摘要: 重点场所特定时段的人流密度波动易引发安全风险,亟需精准的人流状态分类技术。然而,手机信令数据(MSD)普遍存在采样稀疏、空间语义弱化及离场等关键事件样本稀缺等问题,制约了现有方法的分类性能。为此,文中提出一种基于多流融合和改进Transformer的人流分类算法,以提升预测精度与应急响应能力。首先,针对位置信息语义表达不足的问题,提出了基于Skip-gram的位置语义编码方法,通过捕捉位置间的关联性增强特征表达能力。其次,为提升时序特征提取能力和预测精度,设计了GAT-Transformer混合架构模型,引入多层次特征融合技术,利用图注意力网络构建动态时空关联图,替代传统稠密注意力机制,有效捕捉局部依赖与社会交互影响,并引入TCN分支强化短期时序模式识别。然后,针对样本分布不均衡问题,构建了多层次样本平衡方案,通过数据重采样和损失函数优化,缓解类别失衡问题。在北京市奥运会场鸟巢区域的真实手机信令数据集上,所提方法实现了85.88%的准确率、84.15%的F1分数和93.46%的ROC-AUC,较优化后的LSTM基准模型分别提升了3.72个百分点和4.39个百分点。此外,在公开GPS轨迹数据集Geolife上的迁移实验表明,所提方法在“停留-移动”状态识别任务中F1分数达0.964 5,且通过PCA可视化与地理距离相关性分析进一步验证了所学嵌入空间的有效性,验证了其在离场与停留状态的识别能力,为人群拥堵应急疏散等实时决策提供了有效支撑。

关键词: 手机信令数据, 人流状态分类, 图注意力网络, 多层样本平衡, Transformer

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

中图分类号: 

  • 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.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!