[Paper Review] Towards a Crowd Analytic Framework For Crowd Management in Majid-al-Haram
This paper proposes a computer vision-based crowd analytic framework for real-time monitoring of crowd density, motion patterns, and congestion in Masjid Al-Haram, using video streams from IP cameras. By leveraging optical flow and motion summarization, the system enables automated detection of dynamic and fixed congestion, significantly improving situational awareness for crowd management during Hajj with high accuracy in complex, high-density scenarios.
The scared cities of Makkah Al Mukarramah and Madina Al Munawarah host millions of pilgrims every year. During Hajj, the movement of large number of people has a unique spatial and temporal constraints, which makes Hajj one of toughest challenges for crowd management. In this paper, we propose a computer vision based framework that automatically analyses video sequence and computes important measurements which include estimation of crowd density, identification of dominant patterns, detection and localization of congestion. In addition, we analyze helpful statistics of the crowd like speed, and direction, that could provide support to crowd management personnel. The framework presented in this paper indicate that new advances in computer vision and machine learning can be leveraged effectively for challenging and high density crowd management applications. However, significant customization of existing approaches is required to apply them to the challenging crowd management situations in Masjid Al Haram. Our results paint a promising picture for deployment of computer vision technologies to assist in quantitative measurement of crowd size, density and congestion.
Motivation & Objective
- To address the critical challenge of managing massive, high-density crowds during Hajj and Umrah in Makkah Al Mukarramah.
- To reduce reliance on manual video surveillance and rule-of-thumb crowd limits by enabling automated, real-time crowd monitoring.
- To develop a scalable, vision-based system that quantifies crowd dynamics, including density, flow, and congestion, for improved safety and response.
- To provide crowd management personnel with concise, interpretable visual summaries of crowd behavior to counter surveillance fatigue.
Proposed method
- The framework uses optical flow computation to extract global motion information from video sequences, avoiding the need for individual detection and tracking.
- A motion summarization module identifies and visualizes dominant crowd flow directions, reducing visual clutter for operators.
- A congestion detection algorithm localizes congested areas by analyzing flow obstructions and spatial-temporal changes in crowd motion.
- The system processes video streams from multiple IP cameras at 25 fps with 1080x1440 resolution, enabling real-time analysis.
- The approach distinguishes between fixed congestion (persistent locations) and dynamic congestion (shifting locations) through temporal analysis of flow disruptions.
- The framework is customized for high-density, complex environments like Masjid Al-Haram, overcoming limitations of standard computer vision methods.
Experimental results
Research questions
- RQ1How can computer vision be used to automatically estimate crowd density and detect congestion in high-density, real-time scenarios at Masjid Al-Haram?
- RQ2Can motion summarization techniques effectively reduce surveillance operator fatigue while preserving critical situational awareness?
- RQ3How do dynamic and fixed congestion patterns manifest in real-world Hajj video sequences, and can they be reliably detected using optical flow?
- RQ4To what extent can a vision-based system outperform manual monitoring and simulation-based approaches in real-time crowd management?
Key findings
- The system successfully detects and localizes both fixed and dynamic congestion areas in high-density video sequences from Masjid Al-Haram, including scenarios with large crowds exiting through narrow paths.
- Motion summarization produces clutter-free visualizations that effectively convey dominant crowd flow directions, enabling faster situational understanding by security personnel.
- The framework demonstrates robust performance in extreme density conditions, such as post-prayer departures and ritual circumambulation, where traditional tracking methods often fail.
- The algorithm accurately identifies congestion caused by orthogonal pedestrian flows disrupting main movement, such as small groups penetrating large flows.
- The system effectively detects low-scale congestion in less dense areas, such as pilgrims stopping near Hijra-Aswad, indicating sensitivity to subtle disruptions.
- The results show that optical flow-based analysis provides a reliable, scalable alternative to detection-and-tracking pipelines in high-occlusion, high-density environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.