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.
Quantifying fruit mass and volume manually is a laborious, repetitive task that can hinder production scheduling. This investigation developed a computer vision framework to predict the volume and mass of baobab fruits from single-view photographs captured with affordable, widely accessible cameras, including smartphones. The baobab fruits were sourced from two experimental sites situated within the savanna ecological zone. Following image capture, the fruits were detected and segmented with an accuracy exceeding 97%. The segmented outputs were converted to binary format, from which two-dimensional (2D) attributes—namely the segmented area, centroid, bounding box, equivalent diameter, and major diameter—were derived. Volume estimations were generated from the 2D attributes by employing random forest, linear, polynomial, and radial support vector machine regressors. Every model achieved strong goodness-of-fit, yet the random forest regressor performed best, with an R2 of 99.8%. The linkage between mass and volume conformed to a quadratic expression (mass = 38.23 + 0.25 × volume + 4.49e−05 × volume2) and achieved an R2 of 92%. Correlations were substantiated through graphical plots and statistical evaluations, with credible intervals for the point estimates derived from the posterior distributions of their respective samples. This finding spotlights the potential to deploy artificial intelligence techniques in a less restrictive environment to support ecological studies and agricultural oversight. Commercial firms that manufacture baobab powder and seed oil ought to adopt these models to streamline production planning. Acquiring deeper insight into how climatic gradients shape the morphological properties of baobab fruits would help refine the model.
A large segment of India’s rural population depends on agriculture for its livelihood, yet difficulties with manual processes and disease management persist. To address these problems, this study presents an automated framework for detecting leaf damage and identifying plant diseases using advanced deep learning methods. The introduced technique unfolds in six steps: first, YOLOv8 is harnessed to pinpoint regions of interest from drone-acquired images; second, DeepLabV3+ is applied for background stripping to aid disease categorization; third, a CNN model is deployed for reliable disease sorting, registering strong training and validation accuracy figures (96.97% and 92.89%, respectively); fourth, UNet-based semantic segmentation is utilized for meticulous pixel-scale damage identification, with an assessment accuracy of 99%; fifth, disease severity is gauged; and sixth, customized remedial measures are put forward according to the disease category and the extent of damage. Experimental trials using the Plant Village dataset confirm the technique’s ability to detect various defects across crops, including apple, tomato, and corn. This mechanized strategy carries significant potential to boost agricultural output and strengthen disease management both within India and globally.