00
Days
00
Hrs
00
Min
00
Sec
Submit Your Paper

District-Level Crop Yield Prediction in India: A Random Forest Framework with SHAP-Enhanced Explainability and Spatial Residual Analysis.

Authors

Abdulmumini Imam Ibrahim

Department of Computer Science and Engineering, Integral University, 226026 Lucknow, India (IN)

Amina Muhammad Dawud

Department of Agronomy and Soil Science, Kashim Ibrahim University, PMB 1122 Maiduguri, Nigeria (IN)

Jidda Harun Abba

Department of Computer Science and Engineering, Integral University, 226026 Lucknow, India (IN)

Article Information

DOI: 10.51583/IJLTEMAS.2025.1412000021

Subject Category: Computer Science (Artificial Intelligence in Agriculture)

Volume/Issue: 14/12 | Page No: 242-250

Publication Timeline

Submitted: 2025-12-27

Published: 2025-12-27

Abstract

Precise assessment of district-level crop yields is crucial for food security planning and targeted agricultural interventions in India; however, conventional statistical methods fail to account for spatial variability and nonlinear connections among agronomic variables. This study developed a Random Forest-based framework for predicting crop yield across Indian districts using multi-year data on crop type, season, production, and cultivated area, complemented by open-source agronomic datasets. Yield was log-transformed to stabilise variance, and the model was trained with an 80:20 train–test split and hyperparameter tuning via grid search and cross-validation, while permutation importance and SHAP analyses were applied to interpret feature contributions and district-level residual patterns. The Random Forest model achieved strong predictive performance on the test set, with , low RMSE and MAE, and close alignment between predicted and observed yields for most districts. Feature attribution indicated that production, cultivated area, and season were the most influential predictors, and spatial aggregation of residuals revealed clusters of systematic over- and under-prediction linked to data-poor or agro-ecologically complex regions. An explainable machine learning pipeline, resolved at the district level, can accurately forecast crop output variability in India, providing detailed insights that exceed those of conventional regression techniques and facilitate region-specific policy and management decisions.  The framework necessitates enhanced regional data quality and the incorporation of more comprehensive meteorological and soil information to better operational agriculture monitoring.

Keywords

Crop yield prediction, Machine learning, Deep learning, Multi-source data fusion, Explainable AI, Remote sensing.

Downloads

References

1. “Final estimates of production of major crops for the year 2022-23.” [Online]. Available: www.phdcci.in [Google Scholar] [Crossref]

2. “Ministry of Agriculture & Farmers Welfare Department of Agriculture and Farmers’ Welfare releases Final Estimates of major agricultural crops for 2023-24.” [Online]. Available: [Google Scholar] [Crossref]

3. https://www.pib.gov.in/PressReleasePage.aspx?PRID=2058534 [Google Scholar] [Crossref]

4. S. Saiful and N. B. Wibisono, “Crop Yield Prediction Using Random Forest Algorithm and XGBoost Machine Learning Model,” International Journal of Research and Innovation in Social Science, vol. IX, no. III, pp. 1983–1994, Apr. 2025, doi: 10.47772/IJRISS.2025.90300155. [Google Scholar] [Crossref]

5. R. Prathiba, D. Sri Harsha, D. Madhu, D. Chaitanya Venkata Ajay, and D. Harsha Vardhan Assistant Professor, “International Journal of Innovative Research in Science Engineering and Technology (IJIRSET) Crop Yield Prediction using Random Forest Algorithm”, doi: [Google Scholar] [Crossref]

6. 15680/IJIRSET.2025.1404465. [Google Scholar] [Crossref]

7. T. van Klompenburg, A. Kassahun, and C. Catal, “Crop yield prediction using machine learning: A systematic literature review,” Comput Electron Agric, vol. 177, p. 105709, Oct. 2020, doi: 10.1016/j.compag.2020.105709. [Google Scholar] [Crossref]

8. S. K. Sharma, D. P. Sharma, and K. Gaur, “Machine Learning Techniques for Crop Yield Forecasting in Semi-Arid (3A) Zone, Rajasthan (India),” Current Agriculture Research Journal, vol. 11, no. 3, pp. 895–914, Jan. 2024, doi: 10.12944/CARJ.11.3.19. [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles

© 2026 IJLTEMAS · RSIS International. All rights reserved. ISSN 2278-2540.