arXiv:2606.05611cs.CV2026-06

用摄像头自动估算母猪体脂和肌肉厚度,精度远超传统方法。

What's Under the Skin? Estimating Swine Body Condition

论文配图:What's Under the Skin? Estimating Swine Body Condition
图 1 · 摘自论文原文
  • 分两阶段处理深度图像:先标准化画面,再用切片注意力捕捉背部结构
  • 在319头母猪上实现2.43毫米背膘误差,整体误差仅3.87毫米
  • 无需接触、可连续监控,适合规模化养猪场部署

母猪体况是影响泌乳性能和仔猪成活率的重要指标。但生产中常用的视觉评分和卡尺测量与真实组织成分相关性差。超声波可直接测量皮下背膘厚度和腰肌深度,但操作繁琐且难以规模化。本文提出PigFormer,一种端到端的两阶段系统,利用天花板安装的RGB-D相机获取原始深度图,预测第1肋处皮下背膘厚度、腰肌深度和总组织厚度。第一阶段通过SAM3到MaskDINO的分割蒸馏,去除地面并归一化方向,生成标准高度图;第二阶段采用切片注意力编码器,将高度图视为一系列横截面序列,捕捉整个背部的空间关系。在来自两个设施共319头母猪和后备母猪的数据集上,PigFormer实现2.43毫米背膘平均绝对误差(MAE)和3.87毫米总体平均绝对误差,优于ResNet-18和ViT-small等单阶段基线模型。该方法为商业化养猪场提供了连续、自动化、非接触式体况监测的可行路径。代码已公开于https://github.com/iambashar/Pigformer。

原文摘要 · Abstract (English)

Sow body condition is an important indicator for growers as it has a large impact on lactation performance and piglet survival. However, body condition measures used during production, such as visual scoring and calipers, correlate poorly with underlying tissue composition. Ultrasound scans can provide direct measurements of subcutaneous backfat thickness and loin muscle depth, but their operation is labor intensive and not scalable for production. We present PigFormer, an end-to-end two-stage system that takes raw depth frames from a ceiling-mounted RGB-D camera and predicts subcutaneous backfat thickness, loin muscle depth, and total tissue thickness at the last rib. Stage 1 is a geometric front-end that converts raw depth into a standardized height map via SAM3-to-MaskDINO segmentation distillation, ground-plane removal, and orientation normalization. Stage 2 is a Slice Attention Encoder that treats each height map as a sequence of cross-sectional slices and captures spatial relationships along the full dorsal surface. On a multi-site dataset of 319 sow and gilt instances from two facilities, PigFormer achieves 2.43 mm backfat MAE and 3.87 mm overall MAE. It outperforms strong single-stage ResNet-18 and ViT-small baselines. PigFormer offers a practical path toward continuous, automated, non-contact body condition monitoring in commercial swine production. Code is available at https://github.com/iambashar/Pigformer.

动物健康计算机视觉智能养殖

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。