Skip to content

KRISHI.AI: an explainable machine learning framework for data-driven crop recommendation

Sep 2026 · Scientific Reports · 0 citations
Smart Agriculture and AI

TL;DR

By integrating high-accuracy prediction with human-focused explainability in a single lightweight framework, KRISHI.AI advances accessible and trustworthy decision support for technology-driven agriculture, with particular relevance to agricultural decision-support applications serving India's smallholder farming community.

Abstract

Accurate crop selection is a fundamental determinant of farm productivity under varying soil characteristics and climatic conditions. Most current AI-based advisory systems are confined to predictive outputs or generic recommendations, providing little transparency into the reasoning behind a particular crop suggestion. This paper presents KRISHI.AI (derived from the Hindi word “krishi,”meaning“ agriculture,” and“ AI”for“ artificial intelligence), an agriculture-focused explainable artificial intelligence framework for data-driven crop recommendation. The framework recommends suitable crops from seven agronomic and environmental inputs, namely nitrogen (N), phosphorus (P), potassium (K), soil pH, temperature, humidity, and rainfall. It integrates a LightGBM-based multiclass prediction model with SHAP-based feature attribution and agronomically constrained counterfactual “what-if” analysis to explain why a crop is recommended and how feasible changes in the input conditions may alter the recommendation. The system uses a gradient-boosted tree ensemble (LightGBM) to produce high-confidence crop recommendations across 22 crop classes, achieving 99.39% test accuracy and a macro-averaged F1-score of 0.9900. These predictions are supplemented by SHAP (SHapley Additive exPlanations)-based feature-attribution visualizations and counterfactual “what-if” analysis to explain how input factors influence recommendations and how manipulating field conditions modifies crop suitability. Quantitative evaluation of the counterfactual module across 100 test instances exhibits a validity rate of 94.60%, a mean L1 feature-change distance of 0.18, and a mean of 2.10 features modified per scenario-confirming the practical credibility and sparsity of the generated explanations. These capabilities are delivered through an interactive Streamlit web dashboard that provides intuitive real-time feedback, enabling farmers and agricultural practitioners to explore scenario-based decisions without technical expertise. By integrating high-accuracy prediction with human-focused explainability in a single lightweight framework (4.3 MB model, 187 ms response latency), KRISHI.AI advances accessible and trustworthy decision support for technology-driven agriculture, with particular relevance to agricultural decision-support applications serving India’s smallholder farming community. The 189.3 ms value corresponds to the dedicated ablation profiling configuration, whereas 187 ms represents the representative end-to-end latency of the deployed pipeline reported in the main computational profiling experiment. The reported accuracy should be understood as a benchmark performance rather than as evidence of field-ready predictive reliability, because the uniformly balanced dataset does not capture the measurement noise, missing values, spatial heterogeneity, and seasonal variability present in real-world agricultural environments. However, the explainability pipeline and architectural contributions provide a reproducible basis for transparent agricultural AI.

Read PDF

Similar papers

Conference Open access 2025

Explainable AI for Crop Recommendation, Yield Forecasting and Rainfall Prediction in Smart Agriculture

: Climate change and resource shortages threatening global food security; we urgently need to shift toward sustainable, precision farming. While AI and machine learning have done wonders for forecasting rain and crop yields, their opaque, "black-box" nature makes farmers and policymakers hesitant to trust them. To fix...

C. Meghana, C. M. Reddy, B. H. Reddy et al. · 0 citations
#explainable ai Open access Sep 2026

Smart crop recommendation: fusing nutrient and climate data with Krill Herd Optimization and explainable AI

A crop recommendation framework in which Multi-Layer Perceptron, XGBoost, and Tab Transformer are first evaluated as baseline prediction models, followed by the proposed Krill Herd Optimization-based explainable framework integrated with Explainable Artificial Intelligence (XAI).

P. Latha, P. Kumaresan · 0 citations
#explainable ai Open access Sep 2026

An Integrated AI-Based Crop Prediction and Advisory Platform for Precision Agriculture

SmartCrop AI is proposed as a practical digital platform that brings machine-learning based crop and yield prediction, soil-suitability assessment, an AI advisory component, simulated IoT data, mandi-price information and farmer-oriented reporting.

Anurag Gadhave, R. Chaube, Ravina Khadtare et al. · 0 citations
Open access Aug 2026

Architecting Crop Recommendation Systems: A Conceptual Model of Hybrid and Machine Learning Approaches

Machine learning in agriculture is an evolving field, with crop recommendation systems receiving significant research interest. A systematized synthesis of 51 journal and conference papers published between 2024 and 2026 identifies current trends, datasets, methodologies, and research gaps in the domain to support the...

Aisha Khalid, Rosli Ismail · 0 citations
Sep 2026

Explainable Machine Learning for Crop Yield Forecasting within an Agentic AI Decision Support System

Accurate crop-yield forecasting is essential for agricultural planning, resource allocation, and risk management under increasingly variable climatic and soil conditions. However, many machine-learning-based forecasting approaches emphasize predictive accuracy without adequately explaining the factors responsible for i...

Dhaval Makwana · 0 citations
Open access Sep 2026

A Hybrid Model for Crop Yield Prediction Using Recurrent Neural Networks and Explainable Artificial Intelligence

Accurate maize yield prediction is essential for ensuring food security and supporting agricultural planning in Kenya. However, the changes in climate and severe weather are posing more challenges to the stability of yield and food security. While advanced machine learning models, such as Long Short–Term Memory (LSTM)...

Stephen Gitau Ndung'u, Consolata Gakii · 0 citations

Related blog posts

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