基于改进YOLO v10的牛只种类与行为识别

    Cattle species and behavior identification based on improved YOLO v10

    • 摘要:
      目的 实现精准养殖中牛只活动状态的实时监控,助力养殖户及时识别牛只异常行为,并为牛只的饲料分配、疾病监测及繁殖管理提供支持。
      方法 本研究将 YOLO v10 模型改进为LDCM-YOLO v10n,并基于此对牛只种类及行为进行检测。具体改进如下:首先,在 YOLO v10 的 Backbone 端采用 C2f-LSKA 结构,以增强模型的特征提取能力;其次,引入 DySample 上采样算子,旨在有效捕捉图像的细微变化与密集语义信息,规避传统上采样方法中存在的图像模糊及感受野受限问题;同时,将 YOLO v10 中的 PSA 替换为 CloFormer 注意力机制,从而更精准地区分牛只特征与背景噪声,并提升小目标识别精度;此外,加入多尺度空洞注意力机制(Multi-scale dilated attention mechanism, MSDA),以增强感受野范围内各尺度的聚合语义信息,同时有效减少自注意力机制的冗余;最后,采用 Inner-IoU 损失函数,解决普通 IoU 损失函数无法根据目标尺度灵活调整损失计算的问题。
      结果 在牛只行为数据集上, LDCM-YOLO v10n 模型的 mAP@0.50 较 YOLO v3、YOLO v5、YOLO v6、YOLO v8n、YOLO v9 及 YOLO v10n 模型分别提升 15.4、10.7、12.0、8.4、7.9 和 5.1 个百分点;在牛只种类数据集上,LDCM-YOLO v10n模型的 mAP@0.50较上述模型分别提升 32.4、11.9、10.4、9.5、9.0 和 6.4 个百分点。
      结论  LDCM-YOLO v10n 模型在牛只行为与种类检测中表现优异,为精准养殖提供了强有力的技术支撑。

       

      Abstract:
      Objective To achieve real-time monitoring of cattle activity status in precision breeding, help farmers promptly identify cattle abnormal behaviors, and provide support for cattle feed allocation, disease monitoring, and breeding management.
      Method This study modified the YOLO v10 model into LDCM-YOLO v10n, and based on this, conducted detection on cattle species and behaviors. The specific improvements were as follows: First, the C2f-LSKA structure was adopted in the Backbone of YOLO v10 to enhance the feature extraction capability of the model. Second, the DySample upsampling operator was introduced to effectively capture subtle changes in images and dense semantic information, avoiding the problems of image blurring and limited receptive field in traditional upsampling methods. Meanwhile, the PSA of YOLO v10 was replaced with the CloFormer attention mechanism to better distinguish cattle features from background noise and accurately identify small targets. In addition, the multi-scale dilated attention mechanism (MSDA) was added to enhance the aggregated semantic information at various scales within the receptive field and effectively reduce the redundancy of the self-attention mechanism. Finally, the Inner-IoU loss function was used to address the issue that the ordinary IoU loss function could not flexibly adjust loss calculation according to the target scale.
      Result On the cattle behavior dataset, the mAP@0.50 of the LDCM-YOLO v10n model increased by 15.4, 10.7, 12.0, 8.4, 7.9 and 5.1 percentage points compared with YOLO v3, YOLO v5, YOLO v6, YOLO v8n, YOLO v9 and YOLO v10n model, respectively. Meanwhile, on the cattle species dataset, the mAP@0.50 of the LDCM-YOLO v10n model increased by 32.4, 11.9, 10.4, 9.5, 9.0 and 6.4 percentage points compared with the aforementioned models, respectively.
      Conclusion The LDCM-YOLO v10n model demonstrates excellent performance in cattle behavior and species detection, providing a strong technical support for precision breeding.

       

    /

    返回文章
    返回