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.
: 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.· Proceedings of the 1st Inter...· 0 citations
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· Frontiers in Artificial Inte...· 0 citations
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.· International Journal of Cre...· 0 citations
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· International Journal on Adv...· 0 citations
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· Natural Resources for Human...· 0 citations
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· Journal of Global Innovation...· 0 citations
Related blog posts
MIT News · Artificial Intelligence· news.mit.eduSep 30, 2026
With $2.1 million funding from Google.org, the open-source Public Transit Intelligence Hub will unify public transit monitoring, operations, and passenger communication.