PIG WEIGHT ESTIMATION FROM RGB IMAGES USING CONVOLUTIONAL NEURAL NETWORKS AND THE PIGRGB-WEIGHT DATASET
Abstract
Pig weight estimation is a fundamental task in precision livestock farming, supporting feeding management, growth monitoring, and decision-making in production systems. Traditional methods based on physical weighing scales present operational limitations, such as high costs, labor requirements, and animal stress. In this context, this study proposes a convolutional neural network-based approach to estimate pig weight from RGB images using the public PigRGB-Weight dataset. The ResNet18 architecture was employed with transfer learning and adapted for a regression task. Images were subjected to preprocessing and data augmentation techniques to enhance model generalization. The model was trained for 50 epochs using the Adam optimizer and evaluated with the Mean Absolute Error (MAE) metric. The results demonstrated consistent performance, achieving an MAE of approximately 6.51 kg on the validation set. Prediction analysis indicated high accuracy in most samples, even under varying imaging conditions. The findings suggest that deep learning applied to RGB images has strong potential for automated monitoring in pig farming, providing a non-invasive, scalable, and cost-effective solution.
Author Biographies
Univel.
Faculdade Donaduzzi.
Faculdade Donaduzzi.
Faculdade Donaduzzi.
Faculdade Donaduzzi.
Faculdade Donaduzzi.
References
CHEN, Yan et al. A Novel Approach of Pig Weight Estimation Using High-Precision Segmentation and 2D Image Feature Extraction. Animals, v. 15, n. 20, p. 2975, 2025. Disponível em: https://doi.org/10.3390/ani15202975 Acesso em: 13 fev. 2026. DOI: https://doi.org/10.3390/ani15202975
JI, Xintong et al. A Machine Learning-Based Method for Pig Weight Estimation and the PIGRGB-Weight Dataset. Agriculture, v. 15, n. 8, p. 814, 2025. Disponível em: https://www.mdpi.com/2077-0472/15/8/814 Acesso em: 13 fev. 2026. DOI: https://doi.org/10.3390/agriculture15080814
JIANG, Sheng et al. Pig weight estimation method based on a framework combining mask R-CNN and ensemble regression model. Animals, v. 14, n. 14, p. 2122, 2024. Disponível em: https://doi.org/10.3390/ani14142122 Acesso em: 13 fev. 2026. DOI: https://doi.org/10.3390/ani14142122
MA, Weihong et al. Pig weight estimation using a movable top-mounted depth camera with improved EfficientNetV2. Smart Agricultural Technology, p. 101198, 2025. Disponível em: https://doi.org/10.1016/j.atech.2025.101198 Acesso em: 13 fev. 2026. DOI: https://doi.org/10.1016/j.atech.2025.101198
HE, Kaiming et al. Deep Residual Learning for Image Recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Las Vegas, 2016. p. 770–778. DOI: https://doi.org/10.1109/CVPR.2016.90 Acesso em: 13 fev. 2026. DOI: https://doi.org/10.1109/CVPR.2016.90
