基于多尺度特征和自适应混合多注意力机制的猪只日常行为识别方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

江苏现代农业产业单项技术研发项目(CX(23)3120)


Pig Behavior Recognition Based on Multi-scale Features and Adaptive Hybrid Multi-attention Mechanism
Author:
Affiliation:

Fund Project:

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

    猪只日常行为识别是智慧化养殖技术体系的核心支撑,对精准监测猪群健康状态与生产性能具有重要意义。针对现有识别模型在精度与效率间难以平衡的关键问题,本文提出一种基于多尺度特征和自适应混合多注意力机制的猪只日常行为识别模型AHMA – PBRNet。该模型首先采用改进的FasterNet 作为骨干网络,在保留强特征提取能力的基础上显著提升计算效率;其次设计频域注意力模块( FAM) 与自适应空间通道混合注意力机制(ASCAM),通过抑制图像噪声干扰与动态聚焦不同层次特征关键区域,实现对猪只行为本质特征的精准捕捉,有效强化模型学习能力;最后引入加权组合损失函数进一步优化检测精度。基于自主构建的高质量猪只行为数据集开展实验验证,结果表明:AHMA – PBRNet 对站立、坐立、趴卧、侧卧、采食、饮水和爬跨7 种猪只日常行为的识别精度分别达到97.3% 、91.8% 、97.0% 、88.8% 、98.6% 、92.9% 和99.5% ,整体识别精确率、召回率和平均精度均值分别达到92.7% 、90.4% 和95.1% ,而模型参数量仅为4.07×10?,浮点运算量为1.11×101?,综合性能优于当前主流模型。此外,基于该模型搭建的群养生猪行为识别交互平台,显著提升了识别过程的直观性与操作便捷性,为现代化智慧养猪产业发展提供了有力技术支撑。

    Abstract:

    Pig daily behavior recognition is a core support of the intelligent breeding technology system, which is of great significance for accurately monitoring the health status and production performance of pig herds. Aiming at the key problem that existing recognition models are difficult to balance accuracy and efficiency, a pig daily behavior recognition model AHMA – PBRNet was proposed based on multi-scale features and adaptive hybrid multi-attention. Firstly, the model adopted the improved FasterNet as the backbone network, which significantly improved the computational efficiency while retaining strong feature extraction capability. Secondly, it innovatively designed the frequency-domain attention module (FAM) and adaptive spatial channel mixed attention mechanism ( ASCAM). By suppressing image noise interference and dynamically focusing on key regions of features at different levels, it realized the accurate capture of the essential features of pig behaviors and effectively strengthened the learning ability of the model. Finally, a weighted combination loss function was introduced to further optimize the detection accuracy. Experimental verification based on the self-constructed high-quality pig behavior dataset showed that: AHMA – PBRNet achieved recognition accuracies of 97.3% , 91.8% , 97.0% , 88.8% , 98.6% , 92.9% and 99.5% for seven kinds of pig daily behaviors, including standing, sitting, lying prone, lying on side, eating, drinking and mounting respectively. The overall recognition accuracy, recall rate and mean average precision reached 92.7% , 90.4% and 95.1% respectively, while the model parameter quantity was only 4.07×10? and the computational quantity was 1.11×101?, with comprehensive performance superior to current mainstream models. In addition, the group-housed pig behavior recognition interactive platform built based on this model significantly improved the intuitiveness and operational convenience of the recognition process, providing strong technical support for the development of modern intelligent pig breeding industry.

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

孙立博,沈国栋,杨雨锟,秦文虎.基于多尺度特征和自适应混合多注意力机制的猪只日常行为识别方法[J].农业机械学报,2026,57(23):338-348. Sun Libo, Shen Guodong, Yang Yukun, Qin Wenhu. Pig Behavior Recognition Based on Multi-scale Features and Adaptive Hybrid Multi-attention Mechanism[J]. Transactions of the Chinese Society for Agricultural Machinery,2026,57(23):338-348.

复制
分享
相关视频

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