基于HG2-ECA-M-YOLO v8n的奶牛产前行为识别方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

河北省重点研发计划项目 (19227213D) 和河北省研究生课程思政示范项目 (YKCSZ2026023)


Prepartum Behavior Recognition in Dairy Cows Using HG2-ECA-M-YOLO v8n
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    奶牛产前行为的精准监测和及时干预,对保障奶牛健康、提升繁殖效率、提高养殖效益等具有重要价值。翘尾、塌陷等奶牛产前行为,存在目标偏小、特征重叠等问题,受复杂环境因素干扰,识别难度大、易出现混淆。为实现复杂牛舍环境下奶牛产前行为的快速准确识别,本研究提出了一种基于改进 YOLOv8n 的奶牛产前行为识别方法,主网络采用改进的 HGNetV2,在 Head 部分的 C2f 模块后引入轻量级 ECA (Efficient channel attention) 注意力模块,采用 MPDIoU Loss 替换 CIoU 损失函数。通过上述改进措施增强了对特定行为的聚焦能力、减少计算量并优化定位与分类,显著提升了模型在复杂牛舍环境中对翘尾和塌陷等行为的识别准确率、鲁棒性与检测速度。在自建数据集上开展对比实验,与基线模型相比,改进模型对 4 种产前行为识别的平均检测精度 mAP@0.5 达到 92.9%,提高了 1.6 个百分点;翘尾和塌陷行为的平均精度分别提高了 5.6、1.7 个百分点,降低了模型对两种行为的混淆程度;与 Faster R-CNN、SSD、EfficientDet、DETR、YOLO v5n、YOLO v7-tiny、YOLO v10n、YOLO 11s 和 YOLO 12s 等模型相比,改进模型的 mAP@0.5 分别提高了 9.6、10.5、10.9、6.5、3.0、2.8、1.0、1.0、1.1 个百分点。本研究所构建的模型展现出较强的鲁棒性,能够在复杂的养殖环境以及全天候条件下,实现对奶牛产前行为的精确识别。

    Abstract:

    Accurate monitoring and timely intervention of dairy cows' prepartum behavior are of great value for safeguarding the health of dairy cows, enhancing reproductive efficiency, and improving breeding productivity. However, prepartum behaviors such as tail warping and pelvic relaxation are characterized by small target sizes and overlapping features; they are also highly susceptible to interference from environmental factors, which often leads to misrecognition. To achieve rapid and accurate identification of dairy cows' prepartum behavior in complex barn environment, a prepartum behavior recognition method was proposed based on improved YOLO v8n. Firstly, an optimized HGNet V2 model was integrated to enhance the model's target recognition performance in complex barn scenarios. Secondly, a lightweight efficient channel attention (ECA) module was introduced after the C2f module in the model's head section. Finally, the MPDIoU Loss function was adopted to replace the CIoU loss function. Experimental results showed that compared with the baseline YOLO v8n model, the improved model achieved a mean average precision (mAP@ 0.5) of 92.9% for the recognition of the four prepartum behaviors-representing an increase of 1.6 percentage points. Specifically, the average precision (AP) for tail warping and pelvic relaxation behaviors was increased by 5.6 and 1.7 percentage points, respectively. When compared with other mainstream detection models, the improved model's mAP@ 0.5 was enhanced by 9.6, 10.5, 10.9, 6.5, 3.0, 2.8, 1.0, 1.0 and 1.1 percentage points, respectively. In conclusion, the model constructed exhibited strong robustness, enabling accurate identification of dairy cows' prepartum behaviors under dynamic and complex breeding environments as well as all-weather conditions.

    参考文献
    相似文献
    引证文献
引用本文

王娟,付鑫培,梁姿佳,张弛.基于HG2-ECA-M-YOLO v8n的奶牛产前行为识别方法[J].农业机械学报,2026,57(7):337-349. WANG Juan, FU Xinpei, LIANG Zijia, ZHANG Chi. Prepartum Behavior Recognition in Dairy Cows Using HG2-ECA-M-YOLO v8n[J]. Transactions of the Chinese Society for Agricultural Machinery,2026,57(7):337-349.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-08-12
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2026-04-01
  • 出版日期:
文章二维码