Hidden Variables in Real-Time Person Detection: Loss-Function Screening, Annotation Geometry, and Operating-Point Selection in YOLOX-Based Single-Class Detectors
Person detection underpins a growing range of commercial systems, from retail analytics to safety monitoring, yet the experimental practices used to configure such detectors are rarely examined. This paper presents an end-to-end empirical study of single-class person detection built on YOLOX and trained on the person subset of COCO 2017 (64,115 images; 262,465 instances), stress-testing three routine practices: (i) short-run screening of bounding-box regression losses, (ii) evaluation under a fixed confidence threshold, and (iii) implicit reliance on a single annotation geometry. All three are found to be unreliable in ways that are easy to miss with a single-number comparison. Nine regression losses screened for 15 epochs on a 1000-image subset differ by only 1.06 AP, and their ranking shows no significant association with an independent benchmark (Spearman’s ρ=−0.23, p=0.55, n=9), providing no evidence that short-run screening predicts external performance. Under full 100–120-epoch schedules, the DIoU configuration reaches +1.4 AP over IoU within a fixed annotation regime—under a 20-epoch-longer schedule; so, the margin is not attributable to the loss alone—whereas switching the training and evaluation boxes from original COCO to segmentation-derived tight boxes shifts AP by up to 3 points, confounding naive cross-run comparisons; a separate SIoU+focal configuration diverges. Threshold sweeps against an off-the-shelf YOLO11m show that the better detector flips with the operating point: YOLO11m peaks at F1 = 0.870 at low thresholds, while the fine-tuned YOLOX-M retains F1 = 0.827 versus 0.751 at the common τ=0.5. Finally, hardware benchmarking (0.9 M–33.7 M parameters, 2.5–252 FPS measured directly on our hardware) and a containerized RTSP pipeline translate the findings into deployment guidance. Reporting operating-point curves, annotation geometry, and screening protocols, we argue, is as important as the loss function itself.
Authors
- Marko M. Živanović (ORCID: https://orcid.org/0009-0005-9264-3314)
- Hana Z. Stefanovic (ORCID: https://orcid.org/0000-0003-0890-4410)
- Ana Savić (ORCID: https://orcid.org/0000-0002-8099-1136)
- Olga Ristić (ORCID: https://orcid.org/0000-0002-1723-0940)
- Vanja Luković (ORCID: https://orcid.org/0000-0002-1887-6102)
- Božidar Janković (ORCID: https://orcid.org/0009-0009-7753-1997)
Institutions
- Serbian Academy of Sciences and Arts (RS)
- University of Kragujevac (RS)
- Ministry of Interior (HU)
- Ministry of Interior of the Republic of Serbia (RS)
- Technical College of Applied Sciences (RS)
Publication Details
- Journal
- Electronics
- Published
- 2026-10-12
- DOI
- https://doi.org/10.3390/electronics15204670
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00