A Study on Multi-Scale Behavior Recognition of Dairy Cows in Complex Background Based on Improved YOLOv5

被引:1
作者
Zong, Zheying [1 ,2 ,3 ,4 ]
Ban, Zeyu [1 ]
Wang, Chunguang [1 ]
Wang, Shuai [1 ]
Yuan, Wenbo [1 ]
Zhang, Chunhui [1 ]
Su, Lide [1 ]
Yuan, Ze [1 ]
机构
[1] Inner Mongolia Agr Univ, Coll Electromech Engn, Hohhot 010018, Peoples R China
[2] Innovat Team Higher Educ Inst Inner Mongolia Auton, Hohhot 010018, Peoples R China
[3] Inner Mongolia Engn Res Ctr Intelligent Equipment, Hohhot 010018, Peoples R China
[4] Minist Agr & Rural Affairs Peoples Republ China, Full Mechanizat Res Base Dairy Farming Engn & Equi, Hohhot 010018, Peoples R China
来源
AGRICULTURE-BASEL | 2025年 / 15卷 / 02期
关键词
dairy cow; behavior recognition; improved YOLOv5; Shuffle Attention; deformable convolution; Dynamic Detection Head; CLASSIFICATION;
D O I
10.3390/agriculture15020213
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
The daily behaviors of dairy cows, including standing, drinking, eating, and lying down, are closely associated with their physical health. Efficient and accurate recognition of dairy cow behaviors is crucial for timely monitoring of their health status and enhancing the economic efficiency of farms. To address the challenges posed by complex scenarios and significant variations in target scales in dairy cow behavior recognition within group farming environments, this study proposes an enhanced recognition method based on YOLOv5. Four Shuffle Attention (SA) modules are integrated into the upsampling and downsampling processes of the YOLOv5 model's neck network to enhance deep feature extraction of small-scale cow targets and focus on feature information, while maintaining network complexity and real-time performance. The C3 module of the model was enhanced by incorporating Deformable convolution (DCNv3), which improves the accuracy of cow behavior characteristic identification. Finally, the original detection head was replaced with a Dynamic Detection Head (DyHead) to improve the efficiency and accuracy of cow behavior detection across different scales in complex environments. An experimental dataset comprising complex backgrounds, multiple behavior categories, and multi-scale targets was constructed for comprehensive validation. The experimental results demonstrate that the improved YOLOv5 model achieved a mean Average Precision (mAP) of 97.7%, representing a 3.7% improvement over the original YOLOv5 model. Moreover, it outperformed comparison models, including YOLOv4, YOLOv3, and Faster R-CNN, in complex background scenarios, multi-scale behavior detection, and behavior type discrimination. Ablation experiments further validate the effectiveness of the SA, DCNv3, and DyHead modules. The research findings offer a valuable reference for real-time monitoring of cow behavior in complex environments throughout the day.
引用
收藏
页数:19
相关论文
empty
未找到相关数据