SHD-YOLO12: An Efficient Real-Time Detection Using Enhanced YOLO Architecture
Computers, Materials & Continua · (SCIE) · 2026.11Link
Keovichear Ouk, Pheakdey Nguonphan, Sokha Heng, Bunchhun Chhim, Sovila Srun, Makara Mao, Min Hong
Abstract
Monitoring occupancy and crowd density in indoor university spaces depends heavily on accurate person detection. However, occlusion and unfavorable camera placement often make full-body detection unreliable, and head detection offers a more practical alternative. Head detection is also a challenging small object detection problem, since heads are naturally small relative to the body and often appear overlapping, partially visible, or under uneven indoor lighting. This paper proposes Surveillant Head Detection using You Only Look Once 12 (SHD-YOLO12), a customized YOLO12 architecture for human head detection in indoor surveillance. SHD-YOLO12 integrates a Generalized Feature Pyramid Network (GFPN) style bidirectional fusion neck with Efficient Multi-Scale Attention (EMA), implemented through two custom modules, A2C2f_EMA in the backbone and C2f_EMA in the neck, to preserve fine spatial detail for small, densely packed heads. We create a surveillance head dataset from indoor university buildings and use tiling with brightness and exposure jitter to boost robustness against small and partially visible heads. SHD-YOLO12 outperforms twelve YOLO variants across nano and small models, achieving a mean Average Precision of 96.40% at IoU 0.50 (mAP@0.50) and 77.40% across IoU thresholds from 0.50 to 0.95 (mAP@0.50:0.95), representing 1.2 percentage points above the strongest baseline. SHD-YOLO12 converges faster and more stably during training than the baselines, at the cost of higher total training time, which is acceptable for surveillance deployments where detection accuracy is prioritized over training speed.