基于交叉注意力和自适应损失的奶牛识别方法
DOI:
CSTR:
作者:
作者单位:

1.河海大学信息科学与工程学院 常州 213200; 2.河海大学人工智能与自动化学院 常州 213200

作者简介:

通讯作者:

中图分类号:

TP391.41;TN911.73

基金项目:

国家自然科学基金(62371181)项目资助


Cross-attention and adaptive loss based cow identification method
Author:
Affiliation:

1.College of Information Science and Engineering, Hohai University, Changzhou 213200, China; 2.College of Artificial Intelligence and Automation, Hohai University, Changzhou 213200, China

Fund Project:

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

    唯一性的身份认证对于奶牛养殖场农业保险的实施极为重要,但目前没有准确且可靠的奶牛识别方法,存在骗保事件,保险覆盖比较困难,针对此问题本文提出交叉注意力机制与自适应损失函数,并基于YOLOv7模型框架对养殖场复杂环境中的奶牛进行检测。通过交叉注意力机制提取图像不同方向上的关联信息,融合图像的深层和浅层特征,用于适应养殖场不良光照条件和拍摄角度带来的尺度变化。针对数据集中不同样本图像的质量不一的问题,通过自适应损失函数调节简单样本和困难样本的权重,使模型在训练过程中更加关注困难样本,增加了检测模型的鲁棒性和泛化性能。实验结果表明,提出的交叉注意力机制和自适应损失函数模型在奶牛检测和识别任务准确率达到了94.63%,相较于YOLOv7原模型提高了11.42%。

    Abstract:

    Uniqueness-based identity authentication is crucial for the implementation of agricultural insurance in dairy farms. However, there is currently no accurate and reliable method for cow identification, leading to incidents of insurance fraud and difficulties in coverage. To address this issue, this paper proposes a cross-attention mechanism and an adaptive loss function, built upon the YOLOv7 model framework, to detect cows in the complex environments of dairy farms. The cross-attention mechanism extracts correlation information from different directions in the images, integrating both deep and shallow features to adapt to scale variations caused by poor lighting conditions and shooting angles in farm settings. To tackle the inconsistency in image quality across the dataset, the adaptive loss function adjusts the weights of easy and hard samples, enabling the model to focus more on challenging samples during training, thereby enhancing the robustness and generalization performance of the detection model. Experimental results indicate that the proposed cross-attention mechanism and adaptive loss function model achieved an accuracy rate of 94.63% in the task of dairy cow detection and recognition, which is an improvement of 11.42% compared to the original YOLOv7 model.

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

王雨蝶,陈零壹,韩雷,苏新,陆晓春.基于交叉注意力和自适应损失的奶牛识别方法[J].电子测量技术,2026,49(5):209-218

复制
分享
相关视频

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

重要通知公告

①《电子测量技术》期刊收款账户变更公告