基于关键点和步行特征的猪只跛行检测方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

广东省重点领域研发计划项目(2023B0202140001)和国家重点研发计划项目(2021YFD2000802)


Pig Lameness Detecting Method Based on Key Points and Walking Features
Author:
Affiliation:

Fund Project:

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

    猪只跛行问题为猪场的生产和管理带来了挑战,因此准确检测猪只跛行情况至关重要。目前猪场主要依赖人工观察和记录,效率低耗时长,且可能存在主观误差。鉴于此,提出一种基于关键点和步行特征的猪只跛行检测方法。首先,定义并确定了猪只的关键点信息,关键点包括猪只的腿、膝盖、背部等重要部位。基于关键点,采用改进YOLO v8n-pose模型进行检测。该模型在YOLO v8n-pose的基础上,在颈部引入BiFPN双向特征金字塔网络进行多尺度特征融合,同时在骨干网络中引入RepGhost网络,以降低特征提取网络的参数量和浮点运算量。然后利用检测出的关键点坐标计算猪只的步长、膝盖弯曲程度和背部曲率等步行特征,并将这些特征输入到K最近邻算法进行跛行与非跛行的分类。实验结果表明,改进YOLO v8n-pose模型平均精度均值(mAP)达到92.4%,比原始YOLO v8n-pose模型提高4.2个百分点。与其他关键点检测模型(HRNet-w32、Lite-HRNet、ResNet50、ViPNAS和Hourglass)相比,mAP分别提高10.2、11.6、14.2、11.8、12.5个百分点。K近邻算法在猪只跛行测试集上的检测精度为81.7%,比BP算法、Decision Tree算法和SVM算法分别提高1.5、11.3、6.5个百分点。以上结果表明,本文提出的猪只跛行检测方法可行,能够为猪场检测提供技术支持。

    Abstract:

    The problem of lameness in pigs presents significant challenges to the production and management of pig farms, making accurate detection of pig lameness crucial. Currently, pig farms primarily rely on manual observation and recording, which is inefficient, time-consuming, and prone to subjective judgment errors. In light of this, a method for detecting pig lameness based on key points and walking characteristics was proposed. Firstly, key point information for pigs was defined and determined, including critical parts such as the legs, knees, and back. Based on these key points, an improved YOLO v8n-pose model was employed for detection. This model built upon the original YOLO v8n-pose by introducing a bidirectional feature pyramid network (BiFPN) at the neck for multi-scale feature fusion and incorporating a RepGhost network into the backbone to reduce the parameter count and computational complexity of the feature extraction network. Then using the coordinates of the detected key points, walking characteristics such as stride length, knee bending degree, and back curvature were calculated. These features were inputed into a K-nearest neighbors (KNN) algorithm to classify pigs as lame or non-lame. Experimental results showed that the improved YOLO v8n-pose model achieved a mean average precision (mAP) of 92.4%, which was 4.2 percentage points higher than the detection accuracy of the original YOLO v8n-pose model. Compared with other key point detection models (HRNet-w32, Lite-HRNet, ResNet50, ViPNAS, and Hourglass), the mAP was improved by 10.2, 11.6, 14.2, 11.8 and 12.5 percentage points, respectively. The KNN algorithm achieved a detection accuracy of 81.7% on the pig lameness test set, which was 1.5, 11.3 and 6.5 percentage points higher than that of the BP algorithm, Decision Tree algorithm, and SVM algorithm, respectively. These results demonstrated that the proposed method for detecting pig lameness was feasible and can provide technical support for pig farm detection.

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

杨秋妹,黄森鹏,肖德琴,惠向阳,黄一桂,李文刚.基于关键点和步行特征的猪只跛行检测方法[J].农业机械学报,2025,56(5):466-474. YANG Qiumei, HUANG Senpeng, XIAO Deqin, HUI Xiangyang, HUANG Yigui, LI Wen’gang. Pig Lameness Detecting Method Based on Key Points and Walking Features[J]. Transactions of the Chinese Society for Agricultural Machinery,2025,56(5):466-474.

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