Precise categorization of avocado ripeness plays a vital role in strengthening post-harvest operations and curbing waste throughout agricultural supply networks. The present study centers on constructing a resilient ensemble classification framework employing spectral readings from 120 kilograms of Buccaneer avocados procured from the Royal Project in Chiang Mai, Thailand. The specimens were assessed via near-infrared (NIR) spectroscopy at 18 wavelengths. Five distinct machine learning models—Random Forest, Decision Tree, XGBoost, Gradient Boosting, and Gaussian Mixture Model—were separately trained and subsequently fused into a unified ensemble. Four distinct algorithms were deployed to fine-tune the weighting of each model: Bayesian optimisation, differential evolution, particle swarm optimisation, and grid search. Evaluation metrics covering accuracy, precision, recall, F1-score, confusion matrices, and ROC curves were applied. Grid Search yielded the strongest classification outcomes, securing an accuracy of 82.5% alongside an F1-score of 85.3%, emphasizing the value of weight-refined ensemble learning relative to standalone classifiers. This investigation delivers a scalable and transparent pipeline for non-destructive ripeness identification. The outcomes, notwithstanding constraints related to overfitting and dependency on spectral data integrity, pave the way for eventual real-time field deployment in agriculture.
Agricultural production is affected by plant diseases, affecting both quality and quantity. Yet, forecasting these diseases demonstrates its value for crop quality and reducing the chance of yield losses. The process of detecting plant diseases—whether by the naked eye or through conventional methods—is generally painstaking, time-consuming, and subject to substantial margins of error. This work presents a comprehensive exploration of diverse CNN architectures paired with distinct optimization algorithms, applied to olive disease identification via classification methods, and identifies the optimal model for an efficient disease detector. The exploration presents a collection of 5571 olive leaf images, gathered by hand in field settings across different regions of Morocco, and additionally includes a healthy class to identify olive diseases. Moreover, a primary aim of this research was to explore the interplay between CNN architectures and optimization algorithms as measured by accuracy and additional performance indicators. The peak score in the trained models reached 100%, while the peak score in experiments without data augmentation was 92.59%. A further emphasis of this exploration is the effect of optimization algorithms on neural network functioning. Based on the experiments, the MobileNet architecture with Rmsprop outperformed the other pairings in both detection performance and efficiency.