姚裔芃, 徐晨, 陈鸿基, 等. 基于关键点检测和多目标跟踪的猪只体尺估计[J]. 华南农业大学学报, 2024, 45(5): 722-729. DOI: 10.7671/j.issn.1001-411X.202404012
    引用本文: 姚裔芃, 徐晨, 陈鸿基, 等. 基于关键点检测和多目标跟踪的猪只体尺估计[J]. 华南农业大学学报, 2024, 45(5): 722-729. DOI: 10.7671/j.issn.1001-411X.202404012
    YAO Yipeng, XU Chen, CHEN Hongji, et al. Estimation of pig body measurements based on keypoint detection and multi-object tracking[J]. Journal of South China Agricultural University, 2024, 45(5): 722-729. DOI: 10.7671/j.issn.1001-411X.202404012
    Citation: YAO Yipeng, XU Chen, CHEN Hongji, et al. Estimation of pig body measurements based on keypoint detection and multi-object tracking[J]. Journal of South China Agricultural University, 2024, 45(5): 722-729. DOI: 10.7671/j.issn.1001-411X.202404012

    基于关键点检测和多目标跟踪的猪只体尺估计

    Estimation of pig body measurements based on keypoint detection and multi-object tracking

    • 摘要:
      目的 减少猪场人工测量猪只体尺的工作量,提高测量精度和工作效率。
      方法 本研究提出基于关键点检测和多目标跟踪的猪只体尺自动估计方法,该方法使用Yolov8-Pose模型识别各猪只关键点和目标检测框,利用ByteTrack算法对猪群实时跟踪,引入感兴趣区域规避图像畸变,提高识别速度,同时设计姿态和异常检测过滤算法减少因运动模糊、姿态不正等因素造成的误差。
      结果  5个猪栏中24头猪只体长、肩宽、臀宽的平均绝对误差均小于3 cm,平均绝对百分比误差分别维持在4%、6%和7%以内。数据处理速度提升为19.3帧/s。
      结论 本研究提出的基于关键点检测和多目标跟踪的猪只体尺估计方法为猪场生产场景提供了一个轻量化、易部署的自动体尺测量解决方案。

       

      Abstract:
      Objective To reduce the manual workload of measuring pig body measurements in pig farms and improve measurement accuracy and efficiency.
      Method An automatic pig body measurement estimation method based on keypoint detection and multi-object tracking was proposed. The method utilized Yolov8-Pose model to identify keypoints and bounding boxes of individual pigs. ByteTrack algorithm was employed for real-time tracking of the pig herd. Regions of interest were introduced to mitigate image distortion and improve recognition speed. Additionally, a posture and anomaly detection filter algorithm was designed to reduce errors caused by motion blur, posture abnormality and other factors.
      Result The mean absolute errors of the body length, shoulder width, and hip width of 24 pigs in five pigpens were less than 3 cm, the mean absolute percentage errors were maintained below 4%, 6% and 7% respectively. The data processing speed reached 19.3 frames/s.
      Conclusion The proposed method for pig body measurement estimation based on keypoint detection and multi-object tracking provides a lightweight and easily deployable solution for automatic body measurement in pig farming scenarios.

       

    /

    返回文章
    返回