Posture standardization of pig point cloud based on skeleton extraction and transformation
DOI:
https://doi.org/10.25165/ijabe.v18i2.8644Keywords:
pig point cloud, body size measurement, posture transfer, skeleton extractionAbstract
Pig body measurement is an important evaluation criterion for breeding and production management. Automatic measurement algorithms for pig body sizes exhibit sensitivity to the point cloud posture, but non-standard pig postures may result in inaccurate joint point localization in body measurement, further affecting measurement accuracy and the commercial application of these algorithms. To address this challenge, this paper proposed a pig point cloud posture transformation method based on pig’s skeleton model to adjust non-standard postures before conducting body size measurements. The method utilized an improved L1-median skeleton model to extract the three-dimensional skeleton of the pig point cloud, capturing the skeleton joint points on the target pig’s head, body, and limbs. By binding the skeleton joint points with the local point cloud and using rotation matrices, non-standard postures were adjusted to standard ones, enabling accurate body size measurements. The experimental results demonstrated that the average relative errors between the transferred posture and the original standard posture were reduced to 0.89% in body length, 0.76% in body width (front), 1% in body width (back), 0.89% in body height (front), 1.7% in body height (back), 2.03% in thoracic circumference, 3.37% in abdominal circumference, and 1.89% in rump circumference. To conclude, the posture standardization transfer method can significantly reduce errors in important body size parameters such as body length, body height, and body width. The method displays a greater stability and robustness compared to existing posture normalization and regression adjustment methods, providing both guidance and insight for future research in intelligent agriculture. Key words: pig point cloud; body size measurement; posture transfer; skeleton extraction DOI: 10.25165/j.ijabe.20251802.8644 Citation: Zhu J M, Chen Z D, Yin L, Cai G Y, Yao X C, Zhang S M, et al. Posture standardization of pig point cloud based on skeleton extraction and transformation. Int J Agric & Biol Eng, 2025; 18(2): 63–74.References
Li G X, Liu X L, Ma Y F, Wang B B, Zheng L H, Wang M J. Body size measurement and live body weight estimation for pigs based on back surface point clouds. Biosystems Engineering, 2022; 218: 10–22.
Qiao Y L, Kong H, Clark C, Lomax S, Su D, Eiffert S, et al. Intelligent perception for cattle monitoring: A review for cattle identification, body condition score evaluation, and weight estimation. Computers and Electronics in Agriculture, 2019; 185: 106143.
Cominotte A, Fernandes A F A, Dorea J R R, Rosa G J M, Ladeira M M, van Cleef E H C B, et al. Automated computer vision system to predict body weight and average daily gain in beef cattle during growing and finishing phases. Livestock Science, 2020; 232: 103904.
Nir O, Parmet Y, Werner D, Adin G, Halachmi I. 3D Computer-vision system for automatically estimating heifer height and body mass. Biosystems Engineering, 2018; 173: 4–10.
Hemsworth P H. Key determinants of pig welfare: Implications of animal management and housing design on livestock welfare. Animal Production Science, 2018; 58(8): 1375–1386.
Statham P, Hannuna S, Jones S, Campbell N, Colborne G R, Browne W J, et al. Quantifying defence cascade responses as indicators of pig affect and welfare using computer vision methods. Scientific Reports, 2020; 10(1): 1–13.
Condotta I C F S, Brown-Brandl T M, Pitla S K, Stinn J P, Silva-Miranda K O. Evaluation of low-cost depth cameras for agricultural applications. Computers and Electronics in Agriculture, 2020; 173: 105394.
Pezzuolo A, Guarino M, Sartori L, González L A, Marinello F. On-barn pig weight estimation based on body measurements by a Kinect v1 depth camera. Computers and Electronics in Agriculture, 2018; 148: 29–36.
Ruchay A, Kober V, Dorofeev K, Kolpakov V, Miroshnikov S. Accurate body measurement of live cattle using three depth cameras and non-rigid 3-D shape recovery. Computers and Electronics in Agriculture, 2020; 179: 105821.
Wang X J, Dai B S, Wei X L, Shen W Z, Zhang Y G, Xiong B H. Vision-based measuring method for individual cow feed intake using depth images and a Siamese network. Int J Agric & Biol Eng, 2023; 16(3): 233–239.
Du A, Guo H, Lu J, Su Y, Ma Q, Ruchay A, et al. Automatic livestock body measurement based on keypoint detection with multiple depth cameras. Computers and Electronics in Agriculture, 2022; 198: 107059.
Guo H, Wang K, Su W, Zhu D H, Liu W L, Xing C, et al. 3D scanning of live pigs system and its application in body measurements. International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 2017; pp.211–217. doi: 10.5194/isprs-archives-XLII-2-W7-211-2017.
Kwon K, Mun D. Iterative offset-based method for reconstructing a mesh model from the point cloud of a pig. Computers and Electronics in Agriculture, 2022; 198: 106996.
Salau J, Haas J H, Junge W, Thaller G. A multi-Kinect cow scanning system: Calculating linear traits from manually marked recordings of Holstein-Friesian dairy cows. Biosystems Engineering, 2017; 157: 92–98.
Hu H, Yu J C, Yin L, Cai G Y, Zhang S M, Zhang H. An improved PointNet++ point cloud segmentation model applied to automatic measurement method of pig body size. Computers and Electronics in Agriculture, 2023; 205: 107560.
Yin L, Cai G Y, Tian X H, Sun A D, Shi S, Zhong H J, et al. Three dimensional point cloud reconstruction and body size measurement of pigs based on multi-view depth camera. Transactions of the CSAE, 2019; 35(23): 201–208.
Han H, Xue X L, Li Q F, Gao H F, Wang R, Jiang R X, et al. Pig-ear detection from the thermal infrared image based on improved YOLOv8n. Intell Robot, 2024; 4(1): 20–38.
Le Cozler Y, Allain C, Xavier C, Depuille L, Caillot A, Delouard J M, Delattre L, et al. Volume and surface area of Holstein dairy cows calculated from complete 3D shapes acquired using a high-precision scanning system: Interest for body weight estimation. Computers and Electronics in Agriculture, 2019; 165: 104977.
Nguyen A H, Holt J P, Knauer M T, Abner V A, Lobaton E J, Young S N. Towards rapid weight assessment of finishing pigs using a handheld, mobile RGB-D camera. Biosystems Engineering, 2023; 226: 155–168.
Liu D, He D J, Norton T. Automatic estimation of dairy cattle body condition score from depth image using ensemble model. Biosystems Engineering, 2020; 194: 16–27.
Martins B M, Mendes A L C, Silva L F, Moreira T R, Costa J H C, Rotta P P, et al. Estimating body weight, body condition score, and type traits in dairy cows using three dimensional cameras and manual body measurements. Livestock Science, 2020; 236: 104054.
Miller G A, Hyslop J J, Barclay D, Edwards A, Thomson W, Duthie C A. Using 3D imaging and machine learning to predict liveweight and carcass characteristics of live finishing beef cattle. Frontiers in Sustainable Food Systems, 2019; 3: 30.
Li Z, Mao T T, Liu T H, Teng G H. Comparison and optimization of pig mass estimation models based on machine vision. Transactions of the CSAE, 2015; 31(2): 155–161. (in Chinese)
Yin L, Zhu J M, Liu C X, Tian X H, Zhang S M. Point cloud-based pig body size measurement featured by standard and non-standard postures. Computers and Electronics in Agriculture, 2022; 199: 107135.
Li J W, Ma W H, Bai Q, Tulpan D, Gong M L, Sun Y, et al. A posture-based measurement adjustment method for improving the accuracy of beef cattle body size measurement based on point cloud data. Biosystems Engineering, 2023; 230: 171–190.
Luo X Y, Hu Y H, Gao Z C, Guo H, Su Y. Automated measurement of livestock body based on pose normalisation using statistical shape model. Biosystems Engineering, 2023; 227: 36–51.
Lu J, Guo H, Du A, Su Y, Ruchay A, Marinello F, et al. 2-D/3-D fusion-based robust pose normalisation of 3-D livestock from multiple RGB-D cameras. Biosystems Engineering, 2022; 223: 129–141.
Shi S, Yin L, Liang S H, Zhang H J, Tian X H, Liu C X, et al. Research on 3D surface reconstruction and body size measurement of pigs based on multi-view RGB-D cameras. Computers and Electronics in Agriculture, 2020; 175: 105543.
Huang H, Wu S H, Cohen-Or D, Gong M L, Zhang H, Li G Q, et al. L1-medial skeleton of point cloud. ACM Transactions on Graphics, 2013; 35(4): 65.
Fitzgibbon A, Pilu M, Fisher R B. Direct least square fitting of ellipses. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1999; 21(5): 476–480.
Downloads
Published
How to Cite
Issue
Section
License
IJABE is an international peer reviewed open access journal, adopting Creative Commons Copyright Notices as follows.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).