Welcome to Smart Agriculture 中文

Smart Agriculture

   

DC-YOLO: A Behavior Detection Model for Hu Sheep Addressing Occlusion and Illumination Variations

LI Xiaxi, JI Ronghua, CHANG Hongrui(), ZHANG Suoxiang   

  1. College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, China
  • Received:2026-01-16 Online:2026-04-15
  • Foundation items:国家重点研发计划(2022YFD1301104)
  • About author:

    李夏溪,硕士,研究方向为计算机视觉算法与应用。E-mail:

  • corresponding author:
    CHANG Hongrui, E-mail:

Abstract:

[Objective] In the livestock industry, animal behavior serves as a critical indicator for evaluating physiological health and providing environmental early warning. To address the challenges of severe multi-object occlusion, complex illumination, and class imbalance in intensive farming, an efficient model is developed for the 24/7 automatic detection of daily behaviors in housed Hu sheep, thereby facilitating precision management. The DCAttention-YOLO (DC-YOLO) model is proposed. [Methods] For severe multi-object occlusion, an adaptive Detail-Contextual Attention (DCAttention) mechanism was introduced to construct the DCAC3K2 module, and Bounding box similarity soft-NMS(BS-NMS) was adopted to prevent incorrect removal of occluded bounding boxes. For complex illumination, a Light-Encoder was pre-trained on illumination conditions and its parameters were transferred to DC-YOLO. For class imbalance, a Comprehensive Classification-quality Focal Loss (CQFL) was designed to adaptively increase loss weights for occluded and minority-class samples. The dataset, collected through 24/7 surveillance at Hu sheep farms, comprised 505 annotated images depicting 5 daily behaviors: drinking, eating, lying, licking, and standing. [Results and Discussions] DC-YOLO achieved mAP@50 of 91.4%, improving by 7.8 percentage points over YOLOv12. Moreover, DC-YOLO had 2.29 M parameters, an 8.74% reduction compared to YOLOv12. On CPU, the inference time of DC-YOLO was reduced to 115.5 ms and the frame rate increases to 8.50 f/s, corresponding to improvements of 33.2% and 48.9%, respectively. [Conclusions] Experimental results demonstrate that DC-YOLO effectively mitigates detection challenges caused by severe occlusion, complex illumination, and class imbalance while maintaining high inference efficiency. Consequently, it provides effective technical support for tracking and analyzing behaviors in intensive Hu sheep farming.

Key words: Intensive livestock farming, Behavior detection, Hu sheep behavior, Attention Mechanism, YOLO

CLC Number: