CAMLLA-YOLOv8n: Cow Behavior Recognition Based on Improved YOLOv8n

被引:1
|
作者
Jia, Qingxiang [1 ]
Yang, Jucheng [1 ]
Han, Shujie [2 ,3 ]
Du, Zihan [1 ]
Liu, Jianzheng [1 ]
机构
[1] Tianjin Univ Sci & Technol, Coll Artificial Intelligence, Tianjin 300453, Peoples R China
[2] Jeonbuk Natl Univ, Dept Elect Engn, Jeonju 54896, South Korea
[3] Jeonbuk Natl Univ, Core Inst Intelligent Robots, Jeonju 54907, South Korea
来源
ANIMALS | 2024年 / 14卷 / 20期
关键词
cow behavior recognition; YOLOv8n; CAMLLA-YOLOv8n; attention mechanism; Holstein cows; DAIRY-COWS;
D O I
10.3390/ani14203033
中图分类号
S8 [畜牧、 动物医学、狩猎、蚕、蜂];
学科分类号
0905 ;
摘要
Cow behavior carries important health information. The timely and accurate detection of standing, grazing, lying, estrus, licking, fighting, and other behaviors is crucial for individual cow monitoring and understanding of their health status. In this study, a model called CAMLLA-YOLOv8n is proposed for Holstein cow behavior recognition. We use a hybrid data augmentation method to provide the model with rich Holstein cow behavior features and improve the YOLOV8n model to optimize the Holstein cow behavior detection results under challenging conditions. Specifically, we integrate the Coordinate Attention mechanism into the C2f module to form the C2f-CA module, which strengthens the expression of inter-channel feature information, enabling the model to more accurately identify and understand the spatial relationship between different Holstein cows' positions, thereby improving the sensitivity to key areas and the ability to filter background interference. Secondly, the MLLAttention mechanism is introduced in the P3, P4, and P5 layers of the Neck part of the model to better cope with the challenges of Holstein cow behavior recognition caused by large-scale changes. In addition, we also innovatively improve the SPPF module to form the SPPF-GPE module, which optimizes small target recognition by combining global average pooling and global maximum pooling processing and enhances the model's ability to capture the key parts of Holstein cow behavior in the environment. Given the limitations of traditional IoU loss in cow behavior detection, we replace CIoU loss with Shape-IoU loss, focusing on the shape and scale features of the Bounding Box, thereby improving the matching degree between the Prediction Box and the Ground Truth Box. In order to verify the effectiveness of the proposed CAMLLA-YOLOv8n algorithm, we conducted experiments on a self-constructed dataset containing 23,073 Holstein cow behavior instances. The experimental results show that, compared with models such as YOLOv3-tiny, YOLOv5n, YOLOv5s, YOLOv7-tiny, YOLOv8n, and YOLOv8s, the improved CAMLLA-YOLOv8n model achieved increases in Precision of 8.79%, 7.16%, 6.06%, 2.86%, 2.18%, and 2.69%, respectively, when detecting the states of Holstein cows grazing, standing, lying, licking, estrus, fighting, and empty bedding. Finally, although the Params and FLOPs of the CAMLLA-YOLOv8n model increased slightly compared with the YOLOv8n model, it achieved significant improvements of 2.18%, 1.62%, 1.84%, and 1.77% in the four key performance indicators of Precision, Recall, mAP@0.5, and mAP@0.5:0.95, respectively. This model, named CAMLLA-YOLOv8n, effectively meets the need for the accurate and rapid identification of Holstein cow behavior in actual agricultural environments. This research is significant for improving the economic benefits of farms and promoting the transformation of animal husbandry towards digitalization and intelligence.
引用
收藏
页数:27
相关论文
共 50 条
  • [1] YOLOv8n_BT: Research on Classroom Learning Behavior Recognition Algorithm Based on Improved YOLOv8n
    Liu, Qingtang
    Jiang, Ruyi
    Xu, Qi
    Wang, Deng
    Sang, Zhiqiang
    Jiang, Xinyu
    Wu, Linjing
    IEEE ACCESS, 2024, 12 : 36391 - 36403
  • [2] E-YOLO: Recognition of estrus cow based on improved YOLOv8n model
    Wang, Zheng
    Hua, Zhixin
    Wen, Yuchen
    Zhang, Shujin
    Xu, Xingshi
    Song, Huaibo
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 238
  • [3] SMEA-YOLOv8n: A Sheep Facial Expression Recognition Method Based on an Improved YOLOv8n Model
    Yu, Wenbo
    Yang, Xiang
    Liu, Yongqi
    Xuan, Chuanzhong
    Xie, Ruoya
    Wang, Chuanjiu
    ANIMALS, 2024, 14 (23):
  • [4] Recognition Model for Tea Grading and Counting Based on the Improved YOLOv8n
    Xia, Yuxin
    Wang, Zejun
    Cao, Zhiyong
    Chen, Yaping
    Li, Limei
    Chen, Lijiao
    Zhang, Shihao
    Wang, Chun
    Li, Hongxu
    Wang, Baijuan
    AGRONOMY-BASEL, 2024, 14 (06):
  • [5] YOLOv8n-CA: Improved YOLOv8n Model for Tomato Fruit Recognition at Different Stages of Ripeness
    Gao, Xin
    Ding, Jieyuan
    Zhang, Ruihong
    Xi, Xiaobo
    AGRONOMY-BASEL, 2025, 15 (01):
  • [6] RDB-YOLOv8n: Insulator defect detection based on improved lightweight YOLOv8n model
    Jiang, Yong
    Wang, Shuai
    Cao, Weifeng
    Liang, Wanyong
    Shi, Jun
    Zhou, Lintao
    JOURNAL OF REAL-TIME IMAGE PROCESSING, 2024, 21 (05)
  • [7] Research on Bubble Detection Based on Improved YOLOv8n
    Chen, Tingting
    Zeng, Qingzhu
    IEEE ACCESS, 2024, 12 : 9659 - 9668
  • [8] DSW-YOLOv8n: A New Underwater Target Detection Algorithm Based on Improved YOLOv8n
    Liu, Qiang
    Huang, Wei
    Duan, Xiaoqiu
    Wei, Jianghao
    Hu, Tao
    Yu, Jie
    Huang, Jiahuan
    ELECTRONICS, 2023, 12 (18)
  • [9] Improved YOLOv8n for Lightweight Ship Detection
    Gao, Zhiguang
    Yu, Xiaoyan
    Rong, Xianwei
    Wang, Wenqi
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2024, 12 (10)
  • [10] A Small Target Strawberry Recognition Method Based on Improved YOLOv8n Model
    Luo, Qiang
    Wu, Chenbo
    Wu, Guangjie
    Li, Weiyi
    IEEE ACCESS, 2024, 12 : 14987 - 14995