Predicting congregational and crowd spread-out flow using YOLOv4 and DeepSORT

As urban areas expand, the importance of crowd control and population management increases significantly. Major events are organized and structured to guarantee participant safety and mitigate disruptions and emergencies. Analyzing the essential dynamics of congregational and crowd-dispersed flow presents significant challenges. This study employed a case analysis of religious events in Saudi Arabia, where the crowd varies annually between 1.5 million and 4 million participants in congregational rituals (Hajj and Umrah). The study employed a methodology for addressing prediction challenges and implemented two distinct algorithms: YOLOv4 and Deepsort. YOLOv4 focuses on object detection in images, while DeepSORT is utilized for tracking detected objects across frames. We derived the image dataset from a compilation of pilgrims' image recordings, captured from various angles and locations during Hajj in 2019. The dataset underwent training utilizing YOLOv4 and Deepsort methodologies. Using YOLOv4 and DeepSORT to predict congregational and crowd spread-out flow led to the development of a high-performing system that can handle the complex problems that come with managing crowds during Hajj and Umrah. The research shows that it is possible to find and follow people in busy and changing environments. For YOLOv4, the metrics are 95.30% accuracy, 94.80% precision, 95.60% recall, and an F1-score of 95.20%. For DeepSORT, the metrics are 91.50% accuracy and 92.30% recall. These results highlight the potential of this approach to revolutionize crowd management strategies for one of the largest religious gatherings in the world. The model identified individuals and counted those entering or exiting a specific location, comparing these numbers to the venue's capacity. It subsequently classified the crowd into three categories: low, medium, and high.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-03-17
DOI
https://doi.org/10.1038/s41598-026-44719-7
Primary Topic
Evacuation and Crowd Dynamics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting congregational and crowd spread-out flow using YOLOv4 and DeepSORT

Nahla Aljojo, Araek Tashkandi, Ammar H. Almutawa, Ahmed Alamri et al.
Scientific Reports
Evacuation and Crowd Dynamics
article

Predicting congregational and crowd spread-out flow using YOLOv4 and DeepSORT

Nahla Aljojo, Araek Tashkandi, Ammar H. Almutawa, Ahmed Alamri, Hanin Ardah, Safa Habibullah
article en

Abstract

As urban areas expand, the importance of crowd control and population management increases significantly. Major events are organized and structured to guarantee participant safety and mitigate disruptions and emergencies. Analyzing the essential dynamics of congregational and crowd-dispersed flow presents significant challenges. This study employed a case analysis of religious events in Saudi Arabia, where the crowd varies annually between 1.5 million and 4 million participants in congregational rituals (Hajj and Umrah). The study employed a methodology for addressing prediction challenges and implemented two distinct algorithms: YOLOv4 and Deepsort. YOLOv4 focuses on object detection in images, while DeepSORT is utilized for tracking detected objects across frames. We derived the image dataset from a compilation of pilgrims' image recordings, captured from various angles and locations during Hajj in 2019. The dataset underwent training utilizing YOLOv4 and Deepsort methodologies. Using YOLOv4 and DeepSORT to predict congregational and crowd spread-out flow led to the development of a high-performing system that can handle the complex problems that come with managing crowds during Hajj and Umrah. The research shows that it is possible to find and follow people in busy and changing environments. For YOLOv4, the metrics are 95.30% accuracy, 94.80% precision, 95.60% recall, and an F1-score of 95.20%. For DeepSORT, the metrics are 91.50% accuracy and 92.30% recall. These results highlight the potential of this approach to revolutionize crowd management strategies for one of the largest religious gatherings in the world. The model identified individuals and counted those entering or exiting a specific location, comparing these numbers to the venue's capacity. It subsequently classified the crowd into three categories: low, medium, and high.

Scientific Reports
Princess Nourah bint Abdulrahman University (SA), University of Jeddah (SA)
Openalex Percentile: Top 18%
Evacuation and Crowd Dynamics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.