Skip to content
Open access

Explainable machine learning for crop recommendation using statistical validation and SHAP interpretability in South Asian agricultural data

Aug 2026 · Discover Plants · Vol 3 · 0 citations · 60 references

TL;DR

A comprehensive, reproducible ML framework for crop recommendation that integrates comparative feature selection, multi-model benchmarking, statistical significance testing with Nadeau–Bengio correction, and SHAP-based explainability is presented.

Abstract

Agricultural decision-support systems powered by machine learning (ML) have emerged as critical tools for enhancing crop productivity and food security, particularly for smallholder farmers in developing regions. However, many existing models lack methodological rigor, statistical validation, and interpretability—key requirements for real-world deployment. This study presents a comprehensive, reproducible ML framework for crop recommendation that integrates comparative feature selection, multi-model benchmarking, statistical significance testing with Nadeau–Bengio correction, and SHAP-based explainability. Using a dataset of 10,000 agricultural records from South Asia comprising 36 original features reduced to 10 selected predictors, we evaluated seven base classifiers alongside two ensemble strategies. Random Forest achieved the highest fivefold cross-validated accuracy (79.8%, 95% CI [79.0–80.6%]) and Macro F1 (0.474, 95% CI [0.455–0.492]), with consistent performance under tenfold cross-validation (accuracy: 79.7%, 95% CI [79.1–80.4%]; Macro F1: 0.471, 95% CI [0.460–0.482]). The Friedman test confirmed significant differences among models (χ2 = 25.25, df = 7, p < 0.001). Nadeau–Bengio corrected post-hoc testing revealed that Random Forest significantly outperformed only SVM and Logistic Regression (p < 0.05), while differences with gradient-boosting models were statistically non-significant in fivefold CV, though tenfold analysis showed marginal significance against Gradient Boosting (p = 0.0243). SHAP analysis identified rainfall (mean |SHAP|= 0.0772), temperature (0.0613), soil pH (0.0300), and nitrogen content (0.0244) as the top predictive features. Regional analysis revealed crop-specific optimal conditions: Rice (pH 5.48–7.43, rainfall 2209 mm), Wheat (pH 6.39–7.79, rainfall 1470 mm), Maize (pH 5.13–6.89, rainfall 1048 mm), and Cotton (pH 5.07–6.63, rainfall 594 mm). All code, data, and artifacts are publicly available. While pronounced class imbalance inherently constrains minority-class prediction, this framework establishes methodological standards for reproducible, interpretable agricultural AI by prioritizing statistical validation with proper dependence correction, imbalance-aware evaluation, and agronomic explainability.

Read PDF

Similar papers

Open access Aug 2026

Machine Learning-Based Crop Yield Prediction Using FAO Global Agricultural Data: A Comparative Study of Linear Regression, Random Forest, and XGBoost

Three machine learning models Linear Regression, Random Forest, and XGBoost are developed and compared for predicting crop yield using the FAO global agricultural dataset to confirm that ensemble learning methods, particularly Random Forest, are well-suited for modelling complex agricultural yield patterns at global sc...

Abdulhafedh Alsarfi, A. Sable, Aymen M. Al-Hejri · 0 citations
Open access Oct 2026

A Statistically Rigorous Multi-classifier Benchmark for Crop Recommendation: K-fold Selection Criterion, Friedman-nemenyi Testing and Optuna TPE Optimisation

Background: Crop recommendation is one of the most critical challenges in precision agriculture, requiring accurate predictions and rigorous evaluation for reliable decisions. However, previous research has employed ad hoc model selection, lack of statistical validation and limited interpretability, thereby limiting re...

Ali Khavari, Shuchita Upadhyaya, Pardeep Kumar et al. · 0 citations
Open access Sep 2026

Evaluation of AI Predictability on Crop Yield using XAI - An Experimental Approach

This study explores the integration of explainable artificial intelligence (XAI) with machine learning models to enhance transparency in agricultural decision-support systems and provides transparent and reliable insights, supporting data-driven agricultural management and sustainable crop production strategies.

R. Varathan, P. Kumaresan · 0 citations
Open access Oct 2026

Cross Validation of Machine Learning Models for Paddy Yield Prediction

Crop-yield regression models support precision agricultural decision-making and regional food-security assessment. This study evaluates the generalisation performance of seven machine-learning algorithms—Linear Regression, Ridge Regression, Lasso Regression, K-Nearest Neighbours (KNN), Decision Tree, Random Forest and...

A. Rao, P. Bhat, S. Yamagar · 0 citations
Open access Oct 2026

Machine Learning for Crop Recommendation and Yield Forecasting: A Practical Framework for Sustainable Agriculture

Agriculture is increasingly influenced by changing weather, soil conditions, water availability, and input costs. Farmers often have to make crop-selection and production decisions with incomplete or delayed information. This paper presents a practical machine-learning framework that connects basic soil and weather obs...

S. V. J. Payal A. Thete, H. B. J. K. D. Jamkar · 0 citations
Open access Sep 2026

Benchmark study of ensemble machine learning with feature selection for rice yield prediction

The results demonstrate the effectiveness of combining ensemble learning and feature selection for improving prediction accuracy and model interpretability and verify that prediction accuracy, resilience, and interpretability are slightly improved when ensemble learning and feature selection are combined.

F. Adugna, Yonatan Motbaynor Tebabal, Esubalew Asmara Desta · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.