Evaluation of hybrid models based on image segmentation and inference for pig weight estimation.
Miguel Angel Valles-Coral, Kelvin Lleins Rojas-Córdova, Lloy Pinedo, Richard Injante, Pierre Vidaurre-Rojas, Jorge Saavedra-Ramírez, Fernando Ruiz-Saavedra, Williams Ramirez
Grupo de Investigación en Inteligencia Artificial, Facultad de Ingeniería de Sistemas e Informática, Universidad Nacional de San Martín, Tarapoto, Peru. · Grupo de Investigación Transformación Digital Empresarial, Facultad de Negocios, Universidad Privada Norbert Wiener, Lima, Peru.
Key points
From the paper's conclusion- The results demonstrated strong predictive performance, with the SVR model achieving the best results (RMSE = 2.68 kg, MAE = 1.81 kg, R2 = 0.85), showing statistically significant differences compared to the other models.
Abstract
INTRODUCTION: Accurate weight estimation in pig production is essential for optimizing management, feeding, and commercialization decisions; however, traditional weighing methods are invasive, time-consuming, and prone to operational errors. This study proposes a non-invasive computer vision-based approach to estimate pig weight under real farm conditions in San Martín, Peru. METHODS: A dataset of 3,800 lateral images paired with their corresponding ground-truth weights was collected. A computational pipeline was implemented, including geometric standardization, instance segmentation using YOLOv8n-seg, and feature extraction through EfficientNet-B0. The resulting embeddings were used as input for supervised regression models (SVR, XGBoost, and CatBoost), evaluated using repeated stratified cross-validation and an independent test set, with MAE, RMSE, and R² as performance metrics. Statistical comparisons were conducted using the Friedman test followed by Wilcoxon post hoc analysis with Holm correction. RESULTS: The results demonstrated strong predictive performance, with the SVR model achieving the best results (RMSE = 2.68 kg, MAE = 1.81 kg, R2 = 0.85), showing statistically significant differences compared to the other models. DISCUSSION: These findings indicate that combining computer vision techniques with models capable of capturing non-linear relationships effectively models the relationship between animal morphology and body weight, providing a low-cost, non-invasive solution applicable to real-world production systems and supporting the advancement of precision livestock farming.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Novel Approach of Pig Weight Estimation Using High-Precision Segmentation and 2D Image Feature ExtractionAnimals · 2025
- Beef Cattle Body Weight Estimation Based on Dual-View RGB Images.Animals : an open access journal from MDPI · 2026
- Prediction of body weight in buffaloes using conventional and multi-view image-based morphometric traitsCogent Food & Agriculture · 2026
- Identifying mounting behaviour in boars using deep learning-based instance segmentation and binary classification - a pilot study.Frontiers in bioinformatics · 2026
- Prediction of body weight in indigenous sheep using random forest regression, support vector regression, and classification and regression trees algorithmsVeterinary and Animal Science · 2025
- Semantically Guided 3D Reconstruction and Body Weight Estimation Method for Dairy CowsAgriculture · 2026