Evaluation of hybrid models based on image segmentation and inference for pig weight estimation

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, R 2 = 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.

Authors

Institutions

Publication Details

Journal
Frontiers in Artificial Intelligence
Published
2026-09-14
DOI
https://doi.org/10.3389/frai.2026.1876396
Primary Topic
Animal Behavior and Welfare Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Evaluation of hybrid models based on image segmentation and inference for pig weight estimation

Miguel Angel Valles-Coral, Fernando Ruiz-Saavedra, Pierre Vidaurre-Rojas, Richard Injante et al.
Frontiers in Artificial Intelligence
Animal Behavior and Welfare Studies
article

Evaluation of hybrid models based on image segmentation and inference for pig weight estimation

Miguel Angel Valles-Coral, Fernando Ruiz-Saavedra, Pierre Vidaurre-Rojas, Richard Injante, Kelvin Lleins Rojas-Córdova, Williams Ramirez, Jorge Saavedra-Ramírez, Lloy Pinedo
article en

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, R 2 = 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.

Frontiers in Artificial IntelligenceVol. 9
Universidad Nacional de San Martín (PE), Universidad Norbert Wiener (PE), National University of Engineering (PE)
Zero hunger
Openalex Percentile: Top 10%
Animal Behavior and Welfare Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.