Abstract
Early detection of underground mine fires and personnel localization are important for warning and emergency rescue. Using a thermal-infrared dataset collected in an underground training roadway, we propose CSSRC-YOLO, a You Only Look Once (YOLO)-based detector incorporating a Class–Scale Selective Residual Compensation (CSSRC) module for small-fire and person detection. The model extends YOLO11s with a high-resolution second feature-pyramid level (P2) for detection while retaining the P3–P5 heads. Lightweight depthwise–pointwise pathways reduce the cost of P2 box regression and shared classification. A CSSRC module generates a fire-specific residual and a spatial gate from the shared P2 classification feature and applies the gated residual only to the fire-class logit; the person-class logit remains shared. On the thermal-infrared test set, CSSRC-YOLO achieves overall mean average precision (mAP) values of 0.9013 and 0.5855 for and , respectively. Fire-class and are 0.8157 and 0.4479, while person-class values are 0.9869 and 0.7231. Compared with YOLO11s, overall and improve by 3.16 and 2.14 percentage points, and fire-class and improve by 6.60 and 4.48 percentage points. The model contains 9.563 M parameters, requires 28.570 billion floating-point operations (GFLOPs) at 640 × 640 input, and achieves 64.66 frames per second (FPS). Ablation results indicate that the P2 branch provides the main improvement in fire , whereas CSSRC primarily enhances fire recall. In the seed-42 scale-specific evaluation, recall for fire targets smaller than 16 px was 42.04% with CSSRC-YOLO, compared with 35.03% with LightP2. Across the three-seed ablation experiments, CSSRC increased mean fire recall.