基于分段建模的肉牛体尺关键点检测轻量化策略

    A lightweight strategy for cattle body size key point detection based on segmented modeling

    • 摘要:
      目的 快速、高效、精准测量肉牛体尺,设计一种轻量化肉牛体尺自动测量策略。
      方法 基于自建牛只侧面图像数据集,以YOLO11n-pose为基础模型,引入RepGhost模块(重参数化技术)、CoT模块(上下文信息融合)以及SaE模块,提出基于分段建模的肉牛体尺关键点检测轻量化策略−RCS-YOLO(RepGhost-CoT-SaE-YOLO),基于RCS-YOLO获得牛只髻甲最高点、前蹄部地面点、胸基点、鬐甲后缘点、腹部最低点、腰椎点、十字部点、坐骨结节后缘点、肩部前缘点和左前蹄小腿两侧端点11个牛体尺关键点,根据关键点像素值与真实值的坐标转换算法和对应的体尺公式实现体高、体斜长、胸深、腹深、十字部高、尻长和管围7项体尺参数的自动测量。
      结果 在自建数据集上进行试验,相比原基础模型,RCS-YOLO在保证模型精度的同时,参数量、计算量和模型大小分别减少了45.8%、53.6%和43.1%,模型预测关键点与真实标注关键点之间的平均误差为8.2像素,模型测量与人工测量各项参数的整体平均相对误差为3.7%。
      结论  RCS-YOLO模型能够快速、高效、低成本地自动测量牛体尺数据,满足牛只育种所需数据测量的需求,适用于肉牛养殖场本地端的实际部署。

       

      Abstract:
      Objective To quickly, efficiently, and accurately measure beef cattle body size, and design a lightweight automatic measurement strategy for cattle body size.
      Method Based on a self-built dataset of cattle side-view images and using YOLO11n-pose as the baseline model, the RepGhost (reparameterization), CoT (context information fusion), and SaE modules were introduced. We proposed RCS-YOLO (RepGhost-CoT-SaE-YOLO), a lightweight strategy for cattle body size keypoint detection. Based on RCS-YOLO we obtained 11 key body size points, including the highest point of the withers, ground contact point of the front hoof, sternum base point, posterior edge point of the withers, the lowest point of the abdomen, lumbar vertebrae point, dorsal cross point, posterior edge point of the ischial tuberosity, anterior edge point of the shoulder, endpoints of the left front cannon bone. Using coordinate transformation algorithms between keypoint pixel values and actual values, along with specific body size formulas, we realized the automated measurement of seven body size parameters: Body height, body slanting length, chest depth, abdominal depth, withers height, rump length, and cannon circumference.
      Result Experiments on the self-built dataset showed that compared to the original baseline model, RCS-YOLO achieved 45.8% reduction in parameter size, 53.6% in computational cost, and 43.1% in model size while maintaining model accuracy. The average error between predicted and manually annotated keypoints was 8.2 pixels, and the overall average relative error of the model measurement and manual measurement for various parameters was 3.7%.
      Conclusion The RCS-YOLO model can rapidly, efficiently, and cost-effectively automate cattle body size data measurement. It meets the data requirements for cattle breeding and is well-suited for practical deployment in local beef cattle farm settings.

       

    /

    返回文章
    返回