Spatiotemporal Moving Crowd Tracking via Integral Optical Flow

Abstract

This paper presents a novel approach for tracking moving crowds. Departing from conventional methods that focus on individual pedestrians, our method conceptualizes a moving crowd as a single, dynamically evolving entity. This entity can split into smaller sub-crowds or merge with others to form larger aggregations, making the approach particularly suitable for highly crowded scenarios. The proposed framework operates in two primary stages. First, moving crowds are detected using an integral optical flow technique, which accumulates optical flow vectors across consecutive video frames. Second, crowd identities are maintained via an ID management mechanism underpinned by a contribution matrix. This matrix records the contribution degree of detected crowds in the previous frame to those identified in the subsequent frame. The method is evaluated on manually annotated clips from three publicly available videos. The evaluation yields an average Multiple Object Tracking Accuracy (MOTA) of 0.361. Furthermore, the method demonstrates high performance in capturing crowd dynamics, with average precision and recall for crowd merging reaching 0.942 and 0.811, respectively, and for crowd splitting reaching 0.905 and 0.952, respectively. Additionally, the study defines internal motion patterns, referred to as "groups", within the moving crowds. These groups are identified based on local motion feature similarity and can be tracked in a manner analogous to the crowds themselves. Finally, several parameters are proposed, which hold potential for enabling more in-depth analysis of crowd movement behaviors.

Author Biographies

Huafeng Chen, 1. Zhejiang Shuren University 2. International Science and Technology Cooperation Base of Zhejiang Province: Remote Sensing Image Processing and Application

Born in 1982. Professor of Zhejiang Shuren University. Graduated from Zhejiang University in 2003. In 2009 he got his PhD in the field of Earth Exploration and Information Technology at the Institute of Space Information and Technique, Zhejiang University. His scientific interests include remote sensing image processing, GIS applications, image and video processing, multiagent system. He has published more than 40 academic papers.

Shiping Ye, 1. Zhejiang Shuren University 2. International Science and Technology Cooperation Base of Zhejiang Province: Remote Sensing Image Processing and Application

Born in 1967. Graduated from Zhejiang University in 1988. He received his Master’s degree in Computer Science and Technology from Zhejiang University in 2003. Professor and Vice President of Zhejiang Shuren University. His scientific interests include the application of computer graphics and images, GIS. Author of more than 70 scientific articles. He has taken part in four research projects and was awarded second prize of Zhejiang Provincial Scientific and Technological Achievement. Two of his teaching research programs won the first prize and second prize of Zhejiang Provincial Teaching Achievement.

Rykhard Bohush, Polotsk State University

Graduated from Polotsk State University in 1997. In 2002, he received his Candidate of Sciences degree, and in 2022, he received his Doctor of Sciences degree. Head of Computer Systems and Networks Department of Polotsk State University. His scientific interests include image and video processing, intelligent systems, and machine learning.

Sergey Ablameyko, 1. Belarusian State University 2. United Institute for Informatics Problems, National Academy of Sciences of Belarus

Born in 1956, DipMath in 1978, PhD in 1984, DSc in 1990, Prof. in 1992. Professor of Belarusian State University. His scientific interests are: image analysis, pattern recognition, digital geometry, knowledge-based systems, geographical information systems, medical imaging. He is in Editorial Board of Pattern Recognition and Image Analysis and many other international and national journals. He is a Fellow of IAPR, Fellow of Belarusian Engineering Academy, Academician of National Academy of Sciences of Belarus, Academician of the European Academy, and others. He was a First Vice President of International Association for Pattern Recogni tion IAPR (2006–2008), President of Belarusian Association for Image Analysis and Recognition.

References

Elbishlawi, S., Abdelpakey, M.H., Eltantawy, A., Shehata, M.S. and Mohamed, M.M., Deep learning-based crowd scene analysis survey, J Imaging, 2020, vol. 6, no. 9, p. 95. https://doi.org/10.3390/jimaging6090095

Bendali-Braham, M., et al. (2021), Recent trends in crowd analysis: a review, machine learning with applications, Elsevier ltd., 4(October 2020), p. 100023. https://doi.org/10.1016/j.mlwa.2021.100023

Chaudhary, D., Kumar, S. and Dhaka, V.S., Video based human crowd analysis using machine learning: a survey, Computer Methods in Biomechanics and Biomedical Engineering: Imaging & Visualization, 2022, vol. 10, p. 2, 113-131, https://doi.org/10.1080/21681163.2021.1986859

Kumar, A. and Arunnehru, J., Crowd behavior monitoring and analysis in surveillance applications: a survey, Turkish J Comput Math Educ, 2021, vol. 12, no. 7, p. 2322-2336.

Amrish, Arya, S. and Kumar, S., Convolutional neural network for human crowd analysis: a review, Multimedia Tools & Applications, 2024, vol. 83, no. 22, p. 62307-62331.

Chen, J.W., Su, W. and Wang, Z.F., Crowd counting with crowd attention convolutional neural network, Neurocomputing, 2020, vol. 382, p. 210-220.

Guo, H.P., Wang, R. and Sun, Y.E., Dual convolutional neural network for crowd counting, Multimedia Tools & Applications, 2024, vol. 83, no. 9, p. 26687-26709.

Alzahrani, A.J. and Khan, S.D., Characterization of different crowd behaviors using novel deep learning framework, Tuikish Journal of Electrical Engineering & Computer Sciences, 2021, vol. 29, no. 1, p. 169-185.

Sharma, V., Mir, R. N. and Singh, C., Scale-aware CNN for crowd density estimation and crowd behavior analysis, Computers & Electrical Engineering, 2023, vol. 106, p.108569.

Nayan, N., Sahu, S.S. and Kumar, S., Detecting anomalous crowd behavior using correlation analysis of optical flow, Signal Image and Video Processing, 2019, vol. 13, no. 6, p. 1233-1241.

Wang, X.F., He, Z.S., Sun, R., You, L., Hu, J. and Zhang, J., A Crowd Behavior Identification Method Combining the Streakline with the High-Accurate Variational Optical Flow Model, IEEE Access, 2019, vol. 7, p. 114572-114581, https://doi.org/10.1109/ACCESS.2019.2929200

Altalbi, A.A.H., Shaker, S.H. and Ali, A.E., Localization of Strangeness for Real Time Video in Crowd Activity Using Optical Flow and Entropy, International Journal of Online and Biomedical Engineering, 2023, vol. 19, no. 7, p. 52-68.

Lalit, R. and Purwar, R.K., Crowd Abnormality Detection Using Optical Flow and GLCM-Based Texture Features, Journal of Information Technology Research, 2022, vol. 15., no. 1, p. 175-189.

Zhang, L., Cao, L., Zhao, Z.M., Wang, D.F. and Fu, C., A Crowd Movement Analysis Method Based on Radar Particle Flow[J]. Sensors, 2024, vol. 24, no. 6, p. 1899, https://doi.org/10.3390/s24061899

Bhuiyan, M.R., Abdullah, J., Hashim, N., Farid, F.A. and Uddin, J., Hajj pilgrimage abnormal crowd movement monitoring using optical flow and FCNN, Journal of Big Data, 2023, vol. 10, https://doi.org/10.1186/s40537-023-00779-4

Chen, H., Nedzvedz, O., Ye, S. and Ablameyko, S., Crowd Abnormal Behaviour Identification Based on Integral Optical Flow in Video Surveillance Systems, Informatica, 2018, vol. 29, no. 2, p. 211-232.

Chen, H., Pashkevich, A., Ye, S., Bohush, R. and Ablameyko, S., Crowd Movement Type Estimation in Video by Integral Optical Flow and Convolution Neural Network, Pattern Recognition and Image Analysis, 2024, vol. 34, no. 2, p. 266-274.

Farnebäck, G., Two-frame motion estimation based on polynomial expansion, Proc. 13th Scandinavian Conference on Image Analysis, Halmstad, 2003, pp. 363-370.

Luo, W.H., Xing, J.L. and Milan, A., et al. Multiple object tracking: A literature review, Artificial Intelligence, 2021, vol. 293, https://doi.org/10.1016/j.artint.2020.103448

Authors

  • Huafeng Chen 1. Zhejiang Shuren University 2. International Science and Technology Cooperation Base of Zhejiang Province: Remote Sensing Image Processing and Application
  • Rui Tao Hangzhou Weizheng Intellectual Property Agency Co., Ltd
  • Hanjie Gu Zhejiang Shuren University
  • Shiping Ye 1. Zhejiang Shuren University 2. International Science and Technology Cooperation Base of Zhejiang Province: Remote Sensing Image Processing and Application
  • Rykhard Bohush Polotsk State University
  • Ping Xu Zhejiang Shuren University
  • Sergey Ablameyko 1. Belarusian State University 2. United Institute for Informatics Problems, National Academy of Sciences of Belarus

DOI:

https://doi.org/10.31449/inf.v49i26.8021

Downloads

Published

12/18/2025

How to Cite

Chen, H., Tao, R., Gu, H., Ye, S., Bohush, R., Xu, P., & Ablameyko, S. (2025). Spatiotemporal Moving Crowd Tracking via Integral Optical Flow. Informatica, 49(26). https://doi.org/10.31449/inf.v49i26.8021