Skip to content

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

Sep 2026 · Scientific Reports
Smart Agriculture and AI

Abstract

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

#artificial intelligence Open access May 2023

Evaluating the Performance of Large Language Models on GAOKAO Benchmark

GAOKAO-Bench is introduced, an intuitive benchmark that employs questions from the Chinese GAOKAO examination as test samples, including both subjective and objective questions that contribute a robust evaluation benchmark for future large language models and offers valuable insights into the advantages and limitations of such models.

Xiaotian Zhang, Chun-yan Li, Yi Zong et al. · 216 citations · ⚡17
#artificial intelligence Open access Jul 2024

Gender, Race, and Intersectional Bias in Resume Screening via Language Model Retrieval

This work investigates the possibilities of using LLMs in a resume screening setting via a document retrieval framework that simulates job candidate selection and finds that the MTEs are biased, significantly favoring White-associated names in 85% of cases and female-associated names in only 11.1% of cases.

Kyra Wilson, Aylin Caliskan · 131 citations · ⚡8

PRISM: Self-Pruning Intrinsic Selection Method for Training-Free Multimodal Data Selection

Empirically, PRISM reduces the end-to-end time for data selection and model tuning to just 30% of conventional pipelines, and achieves this efficiency while simultaneously enhancing performance, surpassing models fine-tuned on the full dataset across eight multimodal and three language understanding benchmarks.

Jinhe Bi, Yifan Wang, Danqi Yan et al. · 73 citations · ⚡4
#artificial intelligence Conference Open access Apr 2020

ECCOLA - a Method for Implementing Ethically Aligned AI Systems

The method, ECCOLA, is presented, which aims at making the high-level AI ethics principles more practical, making it possible for developers to more easily implement them in practice.

Ville Vakkuri, Kai-Kristian Kemell, P. Abrahamsson · 64 citations · ⚡6
#computer vision Review Apr 2024

AI-powered Code Review with LLMs: Early Results

The goal is to not only refine the accuracy of the LLM-based tool but also to underscore its potential in streamlining the software development lifecycle through proactive code improvement and education.

Z. Rasheed, Malik Abdul Sami, Muhammad Waseem et al. · 62 citations · ⚡3

Let the Flows Tell: Solving Graph Combinatorial Optimization Problems with GFlowNets

This paper designs Markov decision processes (MDPs) for different combinatorial problems and proposes to train conditional GFlowNets to sample from the solution space and demonstrates that GFlowNet policies can efficiently find high-quality solutions.

Dinghuai Zhang, H. Dai, Esmeralda S. Whitammer et al. · 59 citations · ⚡8

Related blog posts

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