Data-driven crop recommendation from soil and climate parameters: a comparative machine-learning study

https://doi.org/10.55529/ijaap.52.71.80

Authors

  • Dr. T Rajendran Assistant Professor (Agrl. Economics), Department of Agricultural Economics, VOC Agricultural College and Research Institute, Tamil Nadu Agricultural University, Killikulam, India.

Keywords:

Precision Agriculture, Machine Learning, Crop Recommendation, Random Forest, Soil Nutrients, Classification.

Abstract

Choosing a crop that is best adapted to soils and climate is key to sustainable use of resources and maximization of yield, but often decisions on which crops to grow are based solely on experience. Machine learning provides a data-driven solution to correlate measurable field conditions with appropriate crops. Seven supervised classifiers (logistic regression, k-nearest neighbours, Gaussian naive Bayes, a decision tree, a support vector machine, random forest, and gradient boosting) are evaluated in this study on the publicly available dataset of crop recommendation with 2200 samples, corresponding to 22 different crops, and represented with 7 agronomic features: nitrogen, phosphorus, potassium content, temperature, relative humidity, soil pH, and rainfall. Following the standardization, models were compared with a held-out test set and 5-fold stratified cross validation. The best models were the ensemble models and the probabilistic ones, the former with a maximum of 99.45% accuracy in the test set and the latter with 99.59% accuracy in the cross-validated set. The rainfall, humidity and potassium were the most informative variables, as determined by feature importance analysis. The high accuracy was found to be due to the fact that most of the crops are grouped together nicely in the 2-dimensional principal component projection. The findings show that low cost soil and weather-based measurements can be used for accurate, automated crop recommendations which can help to facilitate precision-agriculture decision-making tools for smallholder and commercial farming.

Downloads

Download data is not yet available.

Published

2025-09-25

How to Cite

Dr. T Rajendran. (2025). Data-driven crop recommendation from soil and climate parameters: a comparative machine-learning study. International Journal of Agriculture and Animal Production, 5(2), 71–80. https://doi.org/10.55529/ijaap.52.71.80

Similar Articles

<< < 5 6 7 8 9 10 11 12 > >> 

You may also start an advanced similarity search for this article.