用SAM3自动标注训练轻量版YOLO,实现猪场实时精准检测
SAM3-Assisted Training of Lightweight YOLO Models for Precision Pig Farming

- 用SAM3生成零样本伪标签,自动标注训练YOLOv8
- YOLOv8m在猪场数据集上达79.4% mAP,推理速度提升200倍
- 低遮挡场景下检测精度接近人工标注水平,适合农业边缘部署
基于深度学习的目标检测已革新精准畜牧养殖,但高性能基础模型(如SAM 3)计算开销大,难以部署于边缘设备;而轻量模型(如YOLO)又需大量人工标注。本文提出一种全自动化知识蒸馏流程,利用分割一切模型3(SAM 3)生成零样本伪标签,用于训练高效YOLOv8检测器。将SAM 3作为离线自动标注工具,彻底消除人工标注瓶颈,使模型可在资源受限硬件上实现实时推理。在PigLife数据集上系统评估该方法,对比了SAM 3监督模型与人工标注基线。结果表明,无需人工干预的SAM 3训练的YOLOv8m达到79.4% mAP,推理延迟相比教师模型降低约200倍。分层分析显示,在低遮挡场景下,自动化流程检测率与人工基准相当(AP_{50} > 99%)。这表明基础模型可作为低成本监督者,推动智能农业边缘计算的规模化应用。
原文摘要 · Abstract (English)
Deep learning-based object detection has revolutionized Precision Livestock Farming (PLF), yet a critical barrier remains: high-performance Foundation Models (such as SAM 3) are too computationally intensive for edge deployment, while lightweight models (like YOLO) require prohibitive manual annotation efforts. This work proposes a fully automated knowledge distillation pipeline that leverages the Segment Anything Model 3 (SAM 3) to generate zero-shot pseudo-labels for training efficient YOLOv8 detectors. By treating SAM 3 as an offline auto-annotator, we eliminate the manual labeling bottleneck, producing models capable of real-time inference on resource-constrained hardware. We systematically evaluate this approach on the PigLife dataset, comparing SAM 3-supervised models against human-annotated baselines. Results demonstrate that a SAM 3-trained YOLOv8m achieves a mean Average Precision (mAP) of 79.4% without human intervention, while reducing inference latency by approximately 200$\times$ compared to the teacher model. Furthermore, stratified analysis reveals that in low-occlusion scenarios, the automated pipeline achieves detection rates comparable to human benchmarks ($AP_{50} > 99\%$). These findings indicate that foundation models can serve as effective, zero-annotation-cost supervisors, enabling scalable edge computing solutions for smart agriculture.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。