基于改进YOLO 11-Jetson Orin NX的猪只体尺自动测量方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

科技创新2030—生物育种重大项目(2022ZD0401802)、湖北省支持种业高质量发展资金项目(HBZY2023B006-03)和武汉市生物育种重大专项(2022021302024853)


Automatic Pig Body Size Measurement Method Based on Improved YOLO 11 and Jetson Orin NX
Author:
Affiliation:

Fund Project:

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

    针对传统猪只体尺测量强度大、效率低、现有体尺测量边缘计算方法缺乏等问题,提出一种适用于Jetson Orin NX边缘平台的猪只体尺自动测量方法。基于时间序列化猪只数据构建了姿态检测数据集10,413幅与关键点数据集9,555幅,并以栏位划分数据集;为使模型轻量化的同时保证模型性能,构建了基于改进YOLO 11n算法的姿态检测与关键点检测模型;通过降低网络宽度系数压缩模型体积,采用DySample动态上采样,减少计算冗余并增强跨尺度特征交互,使模型在低参数量的情况下实现高效特征提取与融合,提升压缩后的模型性能;通过pt-ONNX-engine三阶段权重转换流程重构网络结构,优化模型推理速度并完成Jetson Orin NX边缘部署;结合SGBM算法获取测点三维坐标测得体尺信息。结果表明,改进YOLO 11nds模型在精度、推理速度及模型参数量方面表现优异,在姿态检测任务中,准确率为99.17%,F1分数为94.26%,推理速度为156.25 f/s,参数量为8.2×10?,在关键点检测任务中,OKS为97.50%,PCK为97.06%,推理速度为169.49 f/s,参数量为8.7×10?。在2个任务上优化后推理速度分别提高265.47%、362.71%。选取2024年1月28日与3月9日视频数据进行自动测量,与人工测量结果相比,2组体长、体宽、臀宽、体高、臀高平均相对误差分别为1.58%、1.70%、2.17%、2.00%、2.93%与1.90%、2.18%、2.90%、3.10%、2.80%。本文方法在准确性与实时性方面均表现较优,能够高效运行于Jetson Orin NX,为猪只体尺自动化测量提供可靠方案。

    Abstract:

    Aiming to address the high labor intensity, low efficiency of traditional pig body size measurement, and the lack of edge computing methods for automated measurement, an automatic pig body size measurement approach tailored for the Jetson Orin NX edge platform was proposed. A time-series dataset comprising 10,413 posture images and 9,555 keypoint images was constructed and partitioned by enclosure. To achieve a lightweight yet high-performing model, an improved YOLO 11nds-based architecture was developed for posture and keypoint detection. The network width coefficient was reduced to compress model size, and DySample dynamic upsampling was incorporated to reduce computational redundancy and enhance cross-scale feature interactions, enabling efficient feature extraction and fusion with fewer parameters. A three-stage weight conversion process from pt to ONNX to engine was employed to reconstruct the network structure, optimize inference speed, and deploy the model on Jetson Orin NX. The SGBM algorithm was integrated to obtain 3D coordinates of key measurement points for body size estimation. Experimental results demonstrated that the improved YOLO 11nds model achieved superior accuracy, inference speed, and parameter efficiency. For posture detection, it reached 99.17% of accuracy, an F1 score of 94.26%, an inference speed of 156.25 f/s, and 8.2×10? parameters. For keypoint detection, it achieved 97.50% OKS, 97.06% PCK, 169.49 f/s, and 8.7×10? parameters. Optimizations improved inference speeds by 265.47% and 362.71% for the two tasks. Automatic measurements using videos from January 28 and March 9, 2024, showed mean relative errors of 1.58%, 1.70%, 2.17%, 2.00%, and 2.93%, and 1.90%, 2.18%, 2.90%, 3.10%, and 2.80% for body length, body width, rump width, body height, and rump height compared with that of manual measurements. This method demonstrated high accuracy and real-time performance, efficiently operating on Jetson Orin NX and providing a reliable solution for automated pig body size measurement.

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

黎煊,王起繁,刘小磊,王海燕,罗俊,徐迪红.基于改进YOLO 11-Jetson Orin NX的猪只体尺自动测量方法[J].农业机械学报,2026,57(6):271-280. LI Xuan, WANG Qifan, LIU Xiaolei, WANG Haiyan, LUO Jun, XU Dihong. Automatic Pig Body Size Measurement Method Based on Improved YOLO 11 and Jetson Orin NX[J]. Transactions of the Chinese Society for Agricultural Machinery,2026,57(6):271-280.

复制
分享
相关视频

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