Dense-stream YOLOv8n: a lightweight framework for real-time crowd monitoring in smart libraries

Crowd monitoring in the context of smart libraries is of great significance for resource optimization and service improvement. However, existing models struggle to achieve real-time performance and accuracy in high-density, enclosed environments.This study addresses these limitations in the following way: Firstly, pedestrian flow videos from the side view angle were collected at different time periods on the second floor of the library. The videos were frame-extracted into images and manually annotated, resulting in a high-quality dataset consisting of 5350 images (3745 for the training set, 1070 for the test set, and 535 for the validation set). Then, a lightweight convolutional data augmentation module DensityNet was designed to enhance the model's feature extraction ability in crowded and occluded scenes. Subsequently, model pruning and knowledge distillation techniques were combined to reduce model complexity and enhance real-time detection, making it suitable for the computing requirements of edge devices. Finally, a region detection algorithm was designed to better adapt to the demand for crowd monitoring in high-density and view limited dynamic environments by extending the detection trigger time, providing an accurate and contactless solution for crowd flow monitoring in smart libraries. The experimental results show that the improved YOLOv8n model has an average accuracy in high-density scenes? [email protected] ?Reaching 0.99, close to 0.991 of the original model, while [email protected] At 0.95, it reached 0.861, an increase of 0.014 compared to the model before pruning; In terms of real-time performance, the frame rate (FPS) has significantly increased to 254, the computational load has decreased to 4.0 GFLOP, and the parameter count has been reduced to 2.04M, meeting the real-time detection needs of peak pedestrian flow environments in smart libraries. The model proposed by this research institute can be integrated into an intelligent library management system to achieve efficient crowd monitoring and resource optimization.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-04-04
DOI
https://doi.org/10.1038/s41598-025-94659-x
Citations
6
Primary Topic
Video Surveillance and Tracking Methods
Type
article
Field-Weighted Citation Impact
7.66

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Dense-stream YOLOv8n: a lightweight framework for real-time crowd monitoring in smart libraries

Leiyue Yao, Jun Xu, Taorong Qiu, Zhihao Chen
6 citations
Scientific Reports
Video Surveillance and Tracking Methods
7.66
article

Dense-stream YOLOv8n: a lightweight framework for real-time crowd monitoring in smart libraries

Leiyue Yao, Jun Xu, Taorong Qiu, Zhihao Chen
article en
6 citations

Abstract

Crowd monitoring in the context of smart libraries is of great significance for resource optimization and service improvement. However, existing models struggle to achieve real-time performance and accuracy in high-density, enclosed environments.This study addresses these limitations in the following way: Firstly, pedestrian flow videos from the side view angle were collected at different time periods on the second floor of the library. The videos were frame-extracted into images and manually annotated, resulting in a high-quality dataset consisting of 5350 images (3745 for the training set, 1070 for the test set, and 535 for the validation set). Then, a lightweight convolutional data augmentation module DensityNet was designed to enhance the model's feature extraction ability in crowded and occluded scenes. Subsequently, model pruning and knowledge distillation techniques were combined to reduce model complexity and enhance real-time detection, making it suitable for the computing requirements of edge devices. Finally, a region detection algorithm was designed to better adapt to the demand for crowd monitoring in high-density and view limited dynamic environments by extending the detection trigger time, providing an accurate and contactless solution for crowd flow monitoring in smart libraries. The experimental results show that the improved YOLOv8n model has an average accuracy in high-density scenes? [email protected] ?Reaching 0.99, close to 0.991 of the original model, while [email protected] At 0.95, it reached 0.861, an increase of 0.014 compared to the model before pruning; In terms of real-time performance, the frame rate (FPS) has significantly increased to 254, the computational load has decreased to 4.0 GFLOP, and the parameter count has been reduced to 2.04M, meeting the real-time detection needs of peak pedestrian flow environments in smart libraries. The model proposed by this research institute can be integrated into an intelligent library management system to achieve efficient crowd monitoring and resource optimization.

Scientific ReportsVol. 15(1)
Jiangxi University of Traditional Chinese Medicine (CN), Nanchang University (CN)
National Natural Science Foundation of China
Decent work and economic growth
Openalex Percentile: Top 3%
Video Surveillance and Tracking Methods
7.66
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.