Agro Intelligence Research Press Agro Intelligence Research Press

Search

Search results:
A Modified Mask R-CNN Framework for Accurate Live Pig Weight Prediction Using Image Features
Obtaining body mass in large-scale rearing and production environments is difficult, making non-contact assessment methods indispensable. This paper introduces an original pipeline for predicting pig body mass based on an adapted mask region convolutional neural network (mask R-CNN). The adaptation deploys ResNeSt as the backbone feature-extraction architecture, aiming to bolster the capacity to derive features from imagery. A feature pyramid network (FPN) was appended to this backbone to enable feature merging across multiple scales. Within the region proposal network (RPN), a channel attention mechanism (CAM) was installed alongside a spatial attention mechanism (SAM), enabling the dynamic combination of localized characteristics with their long-range interdependencies. This configuration captures holistic contextual knowledge, ultimately improving segmentation fidelity. The adapted architecture achieved precision (P) of 90.33%, recall (R) of 89.85%, and mean average precision (MAP) of 95.21%, thereby isolating pig areas in images with notable effectiveness. Five descriptive features drawn from the imagery were examined: back area, body length, body width, average depth, and eccentricity. Leveraging the pig depth images, five regression learning algorithms—ordinary least squares (OLS), AdaBoost, CatBoost, XGBoost, and random forest (RF)—were trained to forecast mass values. AdaBoost delivered the strongest predictive performance, evidenced by a coefficient of determination (R2) of 0.987, a mean absolute error (MAE) of 2.96 kg, a mean square error (MSE) of 12.87 kg², and a mean absolute percentage error (MAPE) of 8.45%. The experimental results confirm that machine learning models can reliably predict pig mass, providing a technical foundation for the informed management of pig production facilities.
Journal of Intelligent Agriculture and Food Systems
Original Research | Open access | 15 March 2024 | Article: 86