DWEC-YOLO: A Multi-Behavior Detection Model for Group-Housed Pigs
In large-scale pig farming systems, high visual similarity among pigs, complex posture variations, and frequent interactions between individuals pose significant challenges to vision-based multi-behavior detection. To overcome these limitations, this study proposes an improved YOLO11-based pig behavior detection model, termed DWEC-YOLO, for recognizing normal behaviors (standing, lying, sitting, and feeding) and aggressive behaviors (fighting, ear biting, and tail biting). First, the C3k2-DySnake module is embedded within the backbone architecture, enabling more effective extraction of fine-grained visual details. Second, an EUCB-SC module is employed during feature aggregation and works jointly with the CoordAtt mechanism to strengthen multi-scale feature representations, thereby enhancing the network’s sensitivity toward critical interaction areas. In addition, Wise-ShapeIoU is adopted as the bounding-box regression loss to refine localization optimization and produce more accurate object predictions. Comprehensive experiments show that DWEC-YOLO surpasses several representative lightweight detectors, including YOLOv5n, YOLOv7-Tiny, YOLOv8n, YOLOv10n, and YOLOv12n, in detection effectiveness. Relative to the original YOLO11 architecture, DWEC-YOLO improves precision, recall, and [email protected] by 4.28, 4.46, and 2.65 percentage points, respectively, achieving 96.17%, 95.25%, and 97.57%. These outcomes demonstrate that DWEC-YOLO substantially enhances multi-behavior detection in group-housed environments, serving as a dependable tool for automated monitoring in smart livestock farming.
Authors
- Qiumei Yang (ORCID: https://orcid.org/0000-0002-9579-8363)
- Yingjie Kuang (ORCID: https://orcid.org/0009-0001-9115-4106)
- Jiehao Wu
- Yan Chen
Institutions
- South China Agricultural University (CN)
Publication Details
- Journal
- Animals
- Published
- 2026-10-05
- DOI
- https://doi.org/10.3390/ani16193125
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00