Home > Published Issues > 2026 > Volume 17, No. 1, 2026 >
JAIT 2026 Vol.17(1): 190-202
doi: 10.12720/jait.17.1.190-202

Smart Crop Recommendation for Precision Agriculture: A Comparative Analysis of Ensemble and Deep Learning Models Using Soil and Environmental Data

Kanda Sorn-In 1, Wirapong Chansanam 2, and Pathamakorn Netayawijit 3,*
1. Department of Technology and Engineering, Faculty of Interdisciplinary Studies, Khon Kaen University, Nong Khai Campus, Nong Khai 43000, Thailand
2. Department of Information Science, Faculty of Humanities and Social Sciences, Khon Kaen University, Khon Kaen 40002, Thailand
3. Department of Information Systems, Faculty of Business Administration and Information Technology, Rajamangala University of Technology Isan, Khon Kaen Campus, Khon Kaen 40000, Thailand
Email: kanda@kku.ac.th (K.S.); wirach@kku.ac.th (W.C.); pathamakorn.ne@rmuti.ac.th (P.N.)
*Corresponding author

Manuscript received August 18, 2025; revised September 25, 2025; accepted October 28, 2025; published January 20, 2026.

Abstract—Precision agriculture increasingly requires reliable, data-driven tools to assist farmers in selecting crops suited to local soil and climate conditions, thereby enhancing productivity and sustainability. This study presents a comprehensive comparative analysis of six advanced machine learning models for smart crop recommendation, leveraging soil and environmental data to identify optimal crops under specific growing conditions. The research addresses a multi-class classification problem using the Kaggle Crop Recommendation Dataset, which comprises 2200 observations across 22 crop types and seven key environmental parameters: nitrogen, phosphorus, potassium, temperature, humidity, pH, and rainfall. Results demonstrate exceptional performance from gradient boosting methods, with Extreme Gradient Boosting (XGBoost) and Light Gradient Boosting Machine (LightGBM) achieving 99.77% accuracy, followed by Random Forest at 96.36%. Deep learning approaches (Gated Recurrent Unit (GRU): 91.82%, Long Short-Term Memory (LSTM): 90.45%) and a hybrid Random Forest–LSTM model (88.41%) performed competitively but less effectively. Feature-importance analysis proved that soil nutrients (NPK) were dominant predictors, contributing approximately 60% to the overall importance in ensemble models. Statistical testing confirmed significant performance differences (p < 0.001), while computational analysis favored LightGBM, with the shortest training time (1.8 min) and lowest memory usage (198 MB). These findings provide evidence-based guidance for agricultural technology developers and practical insights for deploying robust crop recommendation systems across diverse farming contexts. Ethical considerations regarding data bias and equitable access to Artificial Intelligence (AI) tools are discussed, emphasizing inclusive and sustainable development practices.
 
Keywords—crop recommendation, precision agriculture, machine learning, ensemble learning, Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LightGBM), ethical AI

Cite: Kanda Sorn-In, Wirapong Chansanam, and Pathamakorn Netayawijit, "Smart Crop Recommendation for Precision Agriculture: A Comparative Analysis of Ensemble and Deep Learning Models Using Soil and Environmental Data," Journal of Advances in Information Technology, Vol. 17, No. 1, pp. 190-202, 2026. doi: 10.12720/jait.17.1.190-202

Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions