Automated Measurement of Sheep Body Dimensions via Fusion of YOLOv12n-Seg-SSM and 3D Point Clouds

Read full text
Authors: Xiaona Zhao, Xifeng Liu, Zihao Gao, Xinran Liang, Yanjun Yuan, Yangfan Bai, Zhimin Zhang, Fuzhong Li, Wuping Zhang
Cited by: 1
References: 37

Abstract

Accurate measurement of sheep body dimensions is fundamental for growth monitoring and breeding management. To address the limited segmentation accuracy and the trade-off between lightweight design and precision in existing non-contact measurement methods, this study proposes an improved model, YOLOv12n-Seg-SSM, for the automatic measurement of body height, body length, and chest circumference from side-view images of sheep. The model employs a synergistic strategy that combines semantic segmentation with 3D point cloud geometric fitting. It incorporates the SegLinearSimAM feature enhancement module, the SEAttention channel optimization module, and the ENMPDIoU loss function to improve measurement robustness under complex backgrounds and occlusions. After segmentation, valid RGB-D point clouds are generated through depth completion and point cloud filtering, enabling 3D computation of key body measurements. Experimental results demonstrate that the improved model outperforms the baseline YOLOv12n-Seg: the mAP@0.5 for segmentation reaches 94.20%, the mAP@0.5 for detection reaches 95.00% (improvements of 0.5 and 1.3 percentage points, respectively), and the recall increases to 99.00%. In validation tests on 43 Hu sheep, the R2 values for chest circumference, body height, and body length were 0.925, 0.888 and 0.819, respectively, with measurement errors within 5%. The model requires only 10.71 MB of memory and 9.9 GFLOPs of computation, enabling real-time operation on edge devices. This study demonstrates that the proposed method achieves non-contact automatic measurement of sheep body dimensions, providing a practical solution for on-site growth monitoring and intelligent management in livestock farms.

Fields of Study & Subjects

Animal Behavior and Welfare Studies Effects of Environmental Stressors on Livestock Genetic and phenotypic traits in livestock

Publication details

Journal / source
Agriculture
Publisher
MDPI AG
Volume
16
Issue
2
Pages
272–272
Publication date
21 January 2026
Language
EN