Weiling Lu, Yuting Meng, Shan Wu, Hangjun Wang
Timely and accurate termite detection is essential for effective termite control. To address the challenges posed by the small size of termite individuals and the susceptibility of target features to background texture interference under complex backgrounds, this study proposes ESD-YOLO, a fine-grained feature-enhanced object detection model. Using YOLO11n as the baseline, ESD-YOLO redesigns the feature extraction, deep feature aggregation, and multi-scale feature fusion stages to improve the representation of small-scale termite targets under complex backgrounds. Specifically, the Efficient Multi-scale Attention (EMA) mechanism is incorporated into the C3k2 module to enhance feature discriminability between termite individuals and the background. A Spatial Pyramid Pooling-Fast with Dual Global Pooling (SPPF-DGP) module is employed to supplement deep features with global contextual information and salient response information. In addition, the DySample dynamic upsampling module is introduced to improve spatial alignment during multi-scale feature fusion and enhance boundary representation for small targets. Experimental results show that ESD-YOLO achieves Precision, Recall, mAP@0.5, and mAP@0.5:0.95 values of 95.39%, 96.33%, 97.85%, and 65.92%, respectively, with 2.67 M parameters and 6.68 G FLOPs. Compared with Faster R-CNN, RetinaNet, RT-DETR, and several YOLO-series models, ESD-YOLO demonstrates strong small-target detection and localization performance under the controlled complex-background conditions established in this study, providing a methodological reference for automated termite detection in practical settings.