Measurement Science and TechnologyMinimum bounding box

PIG-YOLO: a lightweight oriented bounding box detection method for edge-deployable pig posture detection

Xinyu Hu, Lilu Huang, Xuhui Ye

Institute of Modern Physics

Key points

From the paper's conclusion
  • Thus, the proposed model maintained high detection accuracy while achieving lightweight deployment.

Abstract

Abstract Accurate and efficient detection of pig posture information plays a key role in improving pig health management. To address the problems of low detection accuracy and high computational redundancy of existing methods in complex environments, this study proposes PIG-YOLO, a lightweight object detection model improved from YOLOv11m-OBB, and develops a pig posture detection method for continuous monitoring scenarios. The model uses MobileNetV3-large as the backbone network, introduces the shuffle attention mechanism, and incorporates a bidirectional feature pyramid network into the neck to enhance feature extraction. The experimental dataset was collected from a closed nursery pig house and supplemented with public videos. Through data augmentation, an oriented bounding box detection dataset containing eight pig posture categories was constructed. The results show that PIG-YOLO achieved mAP50 and mAP50-95 values of 81.0% and 66.8%, respectively, representing improvements of 5.5% and 5.9% over the baseline model. The model size was reduced to 17 MB, a decrease of 59.8%; the number of parameters was reduced to 8.258 M, a decrease of 77.7%; and the computational cost was reduced to 15.9 GFLOPs, a decrease of 60.4%. Thus, the proposed model maintained high detection accuracy while achieving lightweight deployment. Furthermore, the model was validated on a Jetson Nano edge device and showed good statistical consistency during 24 h continuous monitoring, accurately reflecting the main posture distribution and diurnal variation patterns of pigs. Heatmap visualization analysis showed that GradCAMPlusPlus most accurately represented the regions of interest attended to by the model, indicating the effectiveness of PIG-YOLO in feature extraction. The proposed method provides a feasible solution for precision monitoring in pig farming and has strong practical value.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

PIG-YOLO: a lightweight oriented bounding box detection method for edge-deployable pig posture detection — Science Skim