AgroXAI: Explainable AI-Driven Crop Recommendation System for Agriculture 4.0
Ozlem Turgut, Ibrahim Kok, Suat Ozdemir
TL;DR
AgroXAI addresses the need for region-specific crop diversification in Agriculture 4.0 by integrating IoT-enabled edge computing with multiple ML classifiers and a suite of explainable AI methods. The system architecture places computation at the edge (physical/edge/fog/cloud layers) and uses RF, DT, KNN, SVM, LGBM, and MLP to classify suitable crops based on soil and weather features, while providing both global and local explanations via ELI5, SHAP, and LIME, plus counterfactuals for alternative crop recommendations. Results on a Kaggle agricultural dataset (2200 rows, 7 features, 22 crops) show RF achieving up to 99.24% accuracy, with SHAP/ELI5/LIME offering interpretable insights into feature importance such as Humidity and Rainfall, and counterfactuals enabling regionally feasible crop diversification. The work emphasizes explainability and regional trust, highlighting potential for sustainable, data-driven, region-aware agricultural decision-making and outlining considerations for security, privacy, and economic feasibility.
Abstract
Today, crop diversification in agriculture is a critical issue to meet the increasing demand for food and improve food safety and quality. This issue is considered to be the most important challenge for the next generation of agriculture due to the diminishing natural resources, the limited arable land, and unpredictable climatic conditions caused by climate change. In this paper, we employ emerging technologies such as the Internet of Things (IoT), machine learning (ML), and explainable artificial intelligence (XAI) to improve operational efficiency and productivity in the agricultural sector. Specifically, we propose an edge computing-based explainable crop recommendation system, AgroXAI, which suggests suitable crops for a region based on weather and soil conditions. In this system, we provide local and global explanations of ML model decisions with methods such as ELI5, LIME, SHAP, which we integrate into ML models. More importantly, we provide regional alternative crop recommendations with the counterfactual explainability method. In this way, we envision that our proposed AgroXAI system will be a platform that provides regional crop diversity in the next generation agriculture.
