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

被引:0
|
作者
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
相关论文
共 50 条
  • [1] Multi-scale behavior recognition method for dairy cows based on improved YOLOV5s network
    Qiang B.
    Ronghua G.
    Chunjiang Z.
    Qifeng L.
    Rong W.
    Shuqin L.
    Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering, 2022, 38 (12): : 163 - 172
  • [2] Multi-scale Forest Flame Detection Based on Improved and Optimized YOLOv5
    Zhou, Mengdong
    Liu, Shuai
    Li, Jianjun
    FIRE TECHNOLOGY, 2023, 59 (06) : 3689 - 3708
  • [3] Multi-scale Forest Flame Detection Based on Improved and Optimized YOLOv5
    Mengdong Zhou
    Shuai Liu
    Jianjun Li
    Fire Technology, 2023, 59 : 3689 - 3708
  • [4] Multi-scale ship target detection using SAR images based on improved Yolov5
    Yasir, Muhammad
    Shanwei, Liu
    Mingming, Xu
    Hui, Sheng
    Hossain, Md Sakaouth
    Colak, Arife Tugsan Isiacik
    Wang, Dawei
    Jianhua, Wan
    Dang, Kinh Bac
    FRONTIERS IN MARINE SCIENCE, 2023, 9
  • [5] Research on Multi-Scale Pest Detection and Identification Method in Granary Based on Improved YOLOv5
    Chu, Jinyu
    Li, Yane
    Feng, Hailin
    Weng, Xiang
    Ruan, Yaoping
    AGRICULTURE-BASEL, 2023, 13 (02):
  • [6] A Multi-Scale Traffic Object Detection Algorithm for Road Scenes Based on Improved YOLOv5
    Li, Ang
    Sun, Shijie
    Zhang, Zhaoyang
    Feng, Mingtao
    Wu, Chengzhong
    Li, Wang
    ELECTRONICS, 2023, 12 (04)
  • [7] Classroom Behavior Detection Based on Improved YOLOv5 Algorithm Combining Multi-Scale Feature Fusion and Attention Mechanism
    Tang, Longyu
    Xie, Tao
    Yang, Yunong
    Wang, Hong
    APPLIED SCIENCES-BASEL, 2022, 12 (13):
  • [8] MCF-YOLOv5: A Small Target Detection Algorithm Based on Multi-Scale Feature Fusion Improved YOLOv5
    Gao, Song
    Gao, Mingwang
    Wei, Zhihui
    INFORMATION, 2024, 15 (05)
  • [9] Enhanced Multi-scale Target Detection Method Based on YOLOv5
    Hui K.
    Yang W.
    Liu H.
    Zhang Z.
    Zheng J.
    Bai X.
    Binggong Xuebao/Acta Armamentarii, 2023, 44 (09): : 2600 - 2610
  • [10] Dangerous Driving Behavior Recognition Based on Improved YoloV5 and Openpose
    Yang, N.
    Zhao, J.
    IAENG International Journal of Computer Science, 2022, 49 (04)