EconPapers    
Economics at your fingertips  
 

A Machine Learning-Based Method for Pig Weight Estimation and the PIGRGB-Weight Dataset

Xintong Ji, Qifeng Li, Kaijun Guo (), Weihong Ma (), Mingyu Li, Zhankang Xu, Simon X. Yang and Zhiyu Ren
Additional contact information
Xintong Ji: College of Animal Science and Technology, Beijing University of Agriculture, Beijing 100096, China
Qifeng Li: Information Technology Research Centre, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
Kaijun Guo: College of Animal Science and Technology, Beijing University of Agriculture, Beijing 100096, China
Weihong Ma: Information Technology Research Centre, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
Mingyu Li: Information Technology Research Centre, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
Zhankang Xu: Information Technology Research Centre, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
Simon X. Yang: Advanced Robotics and Intelligent Systems Laboratory, School of Engineering, University of Guelph, Guelph, ON N1G 2W1, Canada
Zhiyu Ren: Information Technology Research Centre, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China

Agriculture, 2025, vol. 15, issue 8, 1-23

Abstract: Traditional pig weighing methods are costly, require driving pigs onto electronic scales, and cannot collect real-time data without interference. Pig weight estimation using deep learning often demands significant computational resources and lacks real-time capabilities, highlighting the need for a more efficient method. To overcome these challenges, this study proposes a machine learning-based approach for real-time pig weight estimation by extracting image features. The method reduces computational demands while maintaining high accuracy. The SAM2-Pig model is employed for instant segmentation of pig RGB images to extract features such as relative projection area, body length, and body width, which are crucial for accurate weight prediction. Regression models, including the BPNN with Trainlm, are used to predict pig weight based on the extracted features, achieving the best performance in our experiments. This study demonstrates that machine learning methods using RGB image features provide accurate and adaptable results, offering a viable solution for real-time pig weight estimation. This study also publicly releases the PIGRGB-Weight dataset, consisting of 9579 RGB images of pigs in a free-moving state, annotated with weight information, enabling future research and model testing. The method demonstrates remarkable stability, low computational demand, and practical applicability, making it a lightweight and effective approach for estimating pig weight in real time.

Keywords: machine learning; pig weight estimation; pig dataset (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
https://www.mdpi.com/2077-0472/15/8/814/pdf (application/pdf)
https://www.mdpi.com/2077-0472/15/8/814/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:15:y:2025:i:8:p:814-:d:1630879

Access Statistics for this article

Agriculture is currently edited by Ms. Leda Xuan

More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-04-10
Handle: RePEc:gam:jagris:v:15:y:2025:i:8:p:814-:d:1630879