Author
Listed:
- Zheying Zong
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China
The Innovation Team of Higher Education Institutions in Inner Mongolia Autonomous Region, Hohhot 010018, China
Inner Mongolia Engineering Research Center of Intelligent Equipment for the Entire Process of Forage and Feed Production, Hohhot 010018, China
Full Mechanization Research Base of Dairy Farming Engineering and Equipment, Ministry of Agriculture and Rural Affairs of the People’s Republic of China, Hohhot 010018, China)
- Zeyu Ban
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Chunguang Wang
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Shuai Wang
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Wenbo Yuan
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Chunhui Zhang
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Lide Su
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
- Ze Yuan
(College of Electromechanical Engineering, Inner Mongolia Agricultural University, Hohhot 010018, China)
Abstract
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.
Suggested Citation
Zheying Zong & Zeyu Ban & Chunguang Wang & Shuai Wang & Wenbo Yuan & Chunhui Zhang & Lide Su & Ze Yuan, 2025.
"A Study on Multi-Scale Behavior Recognition of Dairy Cows in Complex Background Based on Improved YOLOv5,"
Agriculture, MDPI, vol. 15(2), pages 1-20, January.
Handle:
RePEc:gam:jagris:v:15:y:2025:i:2:p:213-:d:1570602
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:15:y:2025:i:2:p:213-:d:1570602. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.