基于改进YOLO v5-pose的群养生猪体尺自动测量方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

财政部和农业农村部:国家现代农业产业技术体系项目(CARS-35)


Automatic Measurement Method of Body Size of Group-raised Pigs Based on Improved YOLO v5-pose
Author:
Affiliation:

Fund Project:

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

    针对群养生猪体尺自动测量中体尺测点难以高效和精确提取的问题,提出一种基于改进YOLO v5-pose的群养生猪体尺自动测量方法。在YOLO v5-pose主干网络中融合卷积块注意力模块(Convolutional block attention module, CBAM),更好地捕捉到测点相关特征;将Neck层的C3传统模块替换为C3Ghost轻量模块,降低模型参数量和内存占用量;在模型Head层引入DyHead(Dynamic head)目标检测头,提升模型对测点位置的表征能力。结果表明,改进模型的测点检测平均精度均值为92.6%,参数量为6.890×106,内存占用量为14.1MB,与原始YOLO v5-pose模型相比,平均精度均值增加2.1个百分点,参数量和内存占用量分别减少2.380×105、0.4MB。与当前经典模型YOLO v7-pose、YOLO v8-pose、RTMPose(Real-time multi-person pose estimation based on mmpose)和CenterNet相比,该模型的召回率和平均精度均值更优且更轻量化。在2400幅群养生猪图像数据集上进行试验,结果表明,该方法测得体长、体宽、臀宽、体高和臀高的平均绝对误差分别为4.61、5.87、6.03、0.49、0.46cm,平均相对误差分别为2.69%、11.53%、12.29%、0.90%和0.76%。综上所述,本文方法提高了体尺测点检测精度,降低了模型复杂度,取得了更精确的体尺测量结果,为群养环境下生猪体尺自动测量提供了一种有效的技术手段。

    Abstract:

    Aiming at the problem that it is difficult to extract body measurement points efficiently and accurately in the automatic measurement of body size of group-raised pigs, an automatic measurement method of body size of group-raised pigs based on improved YOLO v5-pose was proposed. Firstly, the convolutional block attention module (CBAM) was integrated into the YOLO v5-pose backbone network to better capture the relevant features of the measurement points. Then the C3 traditional module of the Neck layer was replaced with the C3Ghost lightweight module to reduce the number of model parameters and memory usage. Finally, the dynamic head (DyHead) target detection head was introduced in the Head layer to enhance the model’s ability to represent the position of the measurement points. The results showed that the average accuracy of the improved model was 92.6%, the number of parameters was 6.890×106, and the memory usage was 14.1MB. Compared with the original YOLO v5-pose model, the average accuracy was increased by 2.1 percentage points, and the number of parameters and memory usage were decreased by 2.380×105 and 0.4MB, respectively. Compared with the current classic models YOLO v7-pose, YOLO v8-pose, real-time multi-person pose estimation based on mmpose (RTMPose) and CenterNet, this model had better recall rate and average precision and was more lightweight. Experiments were conducted on a dataset of 2400 group-raised pigs images. The results showed that the average absolute errors of the body length, body width, hip width, body height and hip height measured by this method were 4.61cm, 5.87cm, 6.03cm, 0.49cm and 0.46cm, respectively, and the average relative errors were 2.69%, 11.53%, 12.29%, 0.90% and 0.76%, respectively. In summary, the method improved the detection accuracy of body size measurement points, reduced the complexity of the model, and achieved more accurate body size measurement results, providing an effective technical means for the automatic measurement of body size of pigs in group-raising environments.

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

刘刚,曾雪婷,刘晓文,李涛,丁向东,米阳.基于改进YOLO v5-pose的群养生猪体尺自动测量方法[J].农业机械学报,2025,56(5):455-465. LIU Gang, ZENG Xueting, LIU Xiaowen, LI Tao, DING Xiangdong, MI Yang. Automatic Measurement Method of Body Size of Group-raised Pigs Based on Improved YOLO v5-pose[J]. Transactions of the Chinese Society for Agricultural Machinery,2025,56(5):455-465.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2024-03-14
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2025-05-10
  • 出版日期:
文章二维码