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.
Edge Artificial Intelligence and Tiny Machine Learning are increasingly discussed as approaches for moving selected analytical functions from remote cloud infrastructure to low-power devices located closer to agricultural data sources. Their potential relevance to precision agriculture lies in supporting local sensing, classification, monitoring, and decision-assistance functions where continuous connectivity, high-performance computing, or extensive data transmission may be impractical. This framework-oriented review examines Edge AI and TinyML through four connected dimensions: low-power intelligence, embedded farm systems, agricultural deployment constraints, and farm-scale applications and implementation barriers. The review distinguishes on-device inference and near-sensor intelligence from conventional agricultural Internet of Things sensing, generic wireless sensor networks, cloud-based artificial intelligence, and non-embedded machine-learning applications. It organizes the reviewed evidence around embedded hardware, model compression, memory, latency, energy use, sensor quality, connectivity, environmental exposure, calibration, maintenance, usability, affordability, local validation, cybersecurity, privacy, and human oversight. The synthesis indicates that compact inference can reduce reliance on continuous cloud access in appropriately designed systems, but miniaturized models alone do not establish accuracy, robustness, affordability, usability, sustainability, or deployment readiness. Farm-scale usefulness remains conditional on the quality of sensing systems, hardware-aware model design, environmental testing, lifecycle maintenance, locally relevant validation, and clear responsibility for system oversight. The main contribution is a framework that connects technical design choices with deployment conditions, implementation boundaries, and a research and practice agenda for evaluating low-power agricultural intelligence without converting prototype feasibility into unsupported operational claims.