The leg structure of swine is closely related to their robustness and longevity. Animals with sound legs generally have longer productive lifespans and higher reproductive efficiency, whereas leg defects can markedly impair performance and shorten service life. To address the high subjectivity, low efficiency, and poor consistency of traditional leg-structure evaluation by humans, this study developed an automatic scoring system for swine leg structure based on 3D point clouds. The hardware components of the system include the acquisition channel, a multi-view time-of-flight (ToF) depth camera array, an industrial computer, and a star-type synchronization hub. The core algorithm modules include point cloud preprocessing, leg segmentation, geometric feature extraction, and structure-based scoring. Body orientation was corrected using principal component analysis (PCA). An adaptive limb region segmentation method was proposed that combines iterative cropping with geometric verification. Two point cloud tasks were performed: key structural points were extracted via multi-scale curvature analysis, and angular and symmetry parameters of the fore- and hindlimbs were computed in the sagittal and coronal planes. Following a “classify first, then score” strategy, a nine-level linear scoring model was constructed. Field validation showed that the classification accuracy exceeded 90%, the scores were significantly negatively correlated with the degree of structural deviation, and multi-frame resampling yielded good repeatability. The processing time per animal ranged from 1.6 s to 3.0 s, which met the requirements for real-time applications. These results demonstrated that the proposed method could automatically identify and quantitatively evaluate swine leg structure, providing efficient and reliable technical support for objective selection and smart pig farming.
Han et al. (Sun,) studied this question.