- Article
Accurate and repeatable pig body length measurement is important for phenotypic assessment and genetic evaluation. However, posture variation can reduce the reliability of measurements obtained from three-dimensional point clouds. This study proposes an Enhanced Keypoint Detection and Posture-Aware Correction (EKD-PAC) framework for automated pig body length measurement. The framework employs a Point Transformer encoder–decoder network enhanced with Efficient Channel Attention to extract multiscale geometric features from dorsal point clouds, while joint semantic segmentation and boundary prediction are used to identify candidate regions for body length keypoints. Contour constraints are further applied to refine the detected keypoints and fit the dorsal midline for body length calculation. Based on the detected keypoints, posture-related geometric features were used to correct measurement deviations. For keypoint candidate region detection, EKD-PAC achieved a pointwise classification accuracy of 97.05% and a mean intersection over union (mIoU) of 77.40%. Final keypoint localization achieved a mean absolute error (MAE) of 11.24 mm, demonstrating the ability of EKD-PAC to capture anatomically meaningful keypoints from point clouds with different postures. Compared with manual measurements, the posture-corrected body length estimates achieved an MAE of 30.5 mm and a mean relative error (MRE) of 2.40%, demonstrating the effectiveness of the proposed framework.
1 December 2026





![Geographical overview of, Xinjiang, northwestern China, showing reported locations of Triplophysa yarkandensis (red dots) based on previously published literature. The map highlights major river systems associated with the species, including the Tarim, Yarkand, Aksu, Hotan, Kashgar, Qarqan, and Kizil rivers, and Taitema Lake, together with regional topography, elevation, and river networks [16,25–28].](https://cdn.statically.io/img/mdpi-res.com/animals/animals-16-03820/article_deploy/html/images/animals-16-03820-g003-550.jpg)


![Schematic cross-domain cascade and Five Domains overlap in Pugs. Dashed ellipses indicate the Five Domains of Welfare [57]; nodes positioned within overlapping zones represent conditions that simultaneously compromise more than one domain. Extreme skull foreshortening is the single structural root cause common to all cascades. Illustration by Cristina L. Wilkins.](https://cdn.statically.io/img/mdpi-res.com/animals/animals-16-02867/article_deploy/html/images/animals-16-02867-g001-550.jpg)

