LI Zipeng,XU Dihong,LI Xuan,et al.YOLOv11 and SVR based detection of back posture and estimation of body size in breeding pigs[J].Journal of Huazhong Agricultural University,2025,44(05):142-151.
LI Zipeng,XU Dihong,LI Xuan,et al.YOLOv11 and SVR based detection of back posture and estimation of body size in breeding pigs[J].Journal of Huazhong Agricultural University,2025,44(05):142-151.DOI: 10.13300/j.cnki.hnlkxb.2025.05.015.
YOLOv11 and SVR based detection of back posture and estimation of body size in breeding pigs
A non-contact image data collection platform for pigs was designed to solve the problems of the response to stress, large errors, and low efficiency caused by the manual contact measurement of body size in breeding pigs. A method of detecting back posture and estimating body size in pigs was proposed based on YOLOv11 and support vector regression (SVR) algorithm. The YOLOv11 model was used to detect the back posture in pigs and the SVR algorithm was used to process the information of body size from the results of detection to estimate the body size in pigs. The results showed that the recall and average precision of the YOLOv11 model reached 94.6% and 96.0%, respectively, indicating that the model has a good robustness of detection. The mean absolute percentage errors between the estimated and measured value of body length, chest width, and hip width obtained through the SVR algorithm was 2.78%, 2.55%, and 2.88%, respectively, indicating that the algorithm has high accuracy in measuring the body size. It is indicated that the method of detecting back posture and estimating body size in pigs based on YOLOv11 and SVR algorithm has the characteristics of lightweight and high accuracy, providing an efficient and reliable tool for breeding selection in pig farms while reducing human error and the response to stress in pigs.
关键词
Keywords
references
FIOCCOLA A,NICOLARDI R V,POZZI T,et al.Estimation of normal lung weight index in healthy female domestic pigs[J/OL].Intensive care medicine experimental,2024,12(1):6[2024-11-26].https://doi.org/10.1186/s40635-023-00591-7.
XIE C Q,CANG Y J,LOU X Z,et al.A novel approach based on a modified mask R-CNN for the weight prediction of live pigs[J].Artificial intelligence in agriculture,2024,12:19-28.
LEI K D,TANG X F,LI X L,et al.Research and preliminary evaluation of key technologies for 3D reconstruction of pig bodies based on 3D point clouds[J/OL].Agriculture,2024,14(6):793[2024-11-26].https://doi.org/10.3390/agriculture14060793.
LEI K D,ZONG C,YANG T,et al.Detection and analysis of sow targets based on image vision[J/OL].Agriculture,2022,12(1):73[2024-11-26].https://doi.org/10.3390/agriculture12010073.
GUO H,WANG K,SU W,et al.3D scanning of live pigs system and its application in bodymeasurements[J].The international archives of the photogrammetry,remote sensing and spatial information sciences,2017,XLII-2/W7:211-217.
MA W H,QI X Y,SUN Y,et al.Computer vision-based measurement techniques for livestock body dimension and weight:a review[J/OL].Agriculture,2024,14(2):306[2024-11-26].https://doi.org/10.3390/agriculture14020306.
ACHOUR B,BELKADI M,FILALI I,et al.Image analysis for individual identification and feeding behaviour monitoring of dairy cows based on Convolutional Neural Networks (CNN)[J].Biosystems engineering,2020,198:31-49.
BEZEN R,EDAN Y,HALACHMI I.Computer vision system for measuring individual cow feed intake using RGB-D camera and deep learning algorithms[J/OL].Computers and electronics in agriculture,2020,172:105345[2024-11-26].https://doi.org/10.1016/j.compag.2020.105345.
LI Z Y,SONG L,DUAN Y C,et al.Basic motion behaviour recognition of dairy cows based on skeleton and hybrid convolution algorithms[J/OL].Computers and electronics in agriculture,2022,196:106889[2024-11-26].https://doi.org/10.1016/j.compag.2022.106889.
XUE H X,SUN Y W,CHEN J X,et al.CAT-CBAM-NET:an automatic scoring method for sow body condition based on CNN and transformer[J/OL].Sensors,2023,23(18):7919[2024-11-26]. https://doi.org/10.3390/s23187919.
滕光辉,申志杰,张建龙,等.基于Kinect传感器的无接触式母猪体况评分方法[J].农业工程学报,2018,34(13):211-217.TENG G H,SHEN Z J,ZHANG J L,et al.Non-contact sow body condition scoring method based on Kinect sensor[J].Transactions of the CSAE,2018,34(13):211-217 (in Chinese with English abstract) .
WHITTEMORE C T,SCHOFIELD C P.A case for size and shape scaling for understanding nutrient use in breeding sows and growing pigs[J].Livestock production science,2000,65(3):203-208.
LI Z G,WANG Y,ZHENG W C,et al.Effect of inlet-outlet configurations on the cross-transmission of airborne bacteria between animal production buildings[J/OL].Journal of hazardous materials,2022,429:128372[2024-11-26].https://doi.org/10.1016/j.jhazmat.2022.128372.
柏广宇,刘龙申,沈明霞,等.基于无线传感器网络的母猪体温实时监测节点研制[J].南京农业大学学报,2014,37(5):128-134. BAI G Y,LIU L S,SHEN M X,et al.Design of sow body temperature monitoring node based on wireless sensor network[J].Journal of Nanjing Agricultural University,2014,37(5):128-134 (in Chinese with English abstract) .
KAWASUE K,WIN K D,YOSHIDA K,et al.Black cattle body shape and temperature measurement using thermography and KINECT sensor[J].Artificial life and robotics,2017,22(4):464-470.
NIR O,PARMET Y,WERNER D,et al.3D Computer-vision system for automatically estimating heifer height and body mass[J].Biosystems engineering,2018,173:4-10.
CONDOTTA I C F S,BROWN-BRANDL T M,PITLA S K,et al.Evaluation of low-cost depth cameras for agricultural applications[J/OL].Computers and electronics in agriculture,2020,173:105394[2024-11-26].https://doi.org/10.1016/j.compag.2020.105394.
PEZZUOLO A,GUARINO M,SARTORI L,et al.On-barn pig weight estimation based on body measurements by a Kinect v1 depth camera[J].Computers and electronics in agriculture,2018,148:29-36.
初梦苑,司永胜,李前,等.家畜体尺自动测量技术研究进展[J].农业工程学报,2022,38(13):228-240. CHU M Y,SI Y S,LI Q,et al.Research advances in the automatic measurement technology for livestock body size[J].Transactions of the CSAE,2022,38(13):228-240 (in Chinese with English abstract) .
刘同海,滕光辉,付为森,等.基于机器视觉的猪体体尺测点提取算法与应用[J].农业工程学报,2013,29(2):161-168. LIU T H,TENG G H,FU W S,et al.Extraction algorithms and applications of pig body size measurement points based on computer vision[J].Transactions of the CSAE,2013,29(2):161-168 (in Chinese with English abstract) .
HU H,YU J C,YIN L,et al.An improved PointNet++ point cloud segmentation model applied to automatic measurement method of pig body size[J/OL].Computers and electronics in agriculture,2023,205:107560[2024-11-26].https://doi.org/10.1016/j.compag.2022.107560.
李哲.育肥猪非接触体尺测量研究[D].呼和浩特:内蒙古大学,2023.LI Z.Measurement of non-contact research body measure in ften pigs[D].Hohhot:Inner Mongolia University,2023 (in Chinese with English abstract) .
姚裔芃,徐晨,陈鸿基,等.基于关键点检测和多目标跟踪的猪只体尺估计[J].华南农业大学学报,2024,45(5):722-729. YAO Y P,XU C,CHEN H J,et al.Estimation of pig body measurements based on keypoint detection and multi-object tracking[J].Journal of South China Agricultural University,2024,45(5):722-729 (in Chinese with English abstract) .
LIU Y,ZHOU J,BIAN Y F,et al.Estimation of weight and body measurement model for pigs based on back point cloud data[J/OL].Animals,2024,14(7):1046[2024-11-26].https://doi.org/10.3390/ani14071046.
DANG Q,YIN J Q,WANG B,et al.Deep learning based 2D human pose estimation:a survey[J].Tsinghua science and technology,2019,24(6):663-676.
CHEN Y C,TIAN Y L,HE M Y.Monocular human pose estimation:a survey of deep learning-based methods[J/OL].Computer vision and image understanding,2020,192:102897[2024-11-26].https://doi.org/10.1016/j.cviu.2019.102897.
张宏鸣,李永恒, 周利香, 等.基于改进YOLOv3的肉牛多目标骨架提取方法[J].农业机械学报, 2022, 53(3): 285-293. ZHANG H M, LI Y H, ZHOU L X, et al.Multi-target skeleton extraction method of beef cattle based on improved YOLOv3[J].Transactions of the CSAM, 2022, 53(3): 285-293 (in Chinese with English abstract) .
张飞宇,王美丽,王正超.引入Transformer和尺度融合的动物骨骼关键点检测模型构建[J].农业工程学报,2021,37(23):179-185.ZHANG F Y,WANG M L,WANG Z C.Construction of the animal skeletons keypoint detection model based on transformer and scale fusion[J].Transactions of the CSAE,2021,37(23):179-185 (in Chinese with English abstract) .
WANG G,MA Y,HUANG J,et al.Instance segmentation of pigs in infrared images based on INPC model[J/OL].Infrared physics & technology,2024,141:105491[2024-11-26].https://doi.org/10.1016/j.infrared.2024.105491.
WANG G, MA Y, HUANG J, et al. Measurement of pig body temperature based on ear segmentation and multi-factor infrared temperature compensation[J/OL]. IEEE transactions on instrumentation and measurement, 2025,74:3538062[2024-11-26].https://doi.org/10.1109/TIM.2025.3538062.