Preprint / Version 1

Comparative Study of Parametric and Non-Parametric Models in Crop Recommendation

##article.authors##

  • Krishna Kumar Ramakrishnan Moreau Catholic High School

DOI:

https://doi.org/10.58445/rars.3021

Keywords:

artificial intelligence (AI), crop recommendation systems, parametric models, non-parametric models

Abstract

Agriculture is facing mounting challenges from population growth, food insecurity, soil degradation, and climate variability, making traditional practices insufficient to sustain production. AI and machine learning (ML) have recently been applied to agriculture, offering opportunities to improve crop selection and land use through data-driven recommendations. Previous studies have explored crop recommendation systems, but their findings have often been inconsistent due to differences in datasets and methods. This study addresses that gap by benchmarking parametric and non-parametric models on the same dataset to evaluate their performance in a multi-class crop recommendation task. Using an agricultural dataset of 8,000 entries across 11 crop types, data preprocessing included one-hot encoding, label encoding, and median imputation. A neural network implemented in TensorFlow was compared against K-Nearest Neighbors (KNN) and Random Forest models. Results showed that the neural network achieved 80–83% accuracy, while the non-parametric models remained near 9–10%, close to random guessing. These findings suggest that parametric models are better suited for capturing the complex, non-linear patterns in agricultural data. Despite limitations such as overfitting and reliance on a single dataset, the study highlights the potential of AI to provide more accurate and sustainable crop recommendations, ultimately supporting global food security.

References

Shankar. (2025, January 28). Crop and soil dataset. Kaggle. https://www.kaggle.com/datasets/shankarpriya2913/crop-and-soil-dataset

Waikar, V., Thorat, S., Ghute, A., Rajput, P., & Shinde, M. (n.d.). Crop Prediction based on Soil

Classification using Machine Learning with Classifier Ensembling. In International Research

Journal of Engineering and Technology. Retrieved August 24, 2025, from

https://www.irjet.net/archives/V7/i5/IRJET-V7I5931.pdf

scikit-learn. (2019). sklearn.neighbors.KNeighborsClassifier — scikit-learn 0.22.1 documentation. Scikit-Learn.org. https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html

Hardesty, L. (2017, April 14). Explained: Neural networks. MIT News; Massachusetts Institute of Technology. https://news.mit.edu/2017/explained-neural-networks-deep-learning-0414

Kumar, R. (2024, May 20). Batch Normalization: Theory and TensorFlow Implementation. Datacamp.com; DataCamp. https://www.datacamp.com/tutorial/batch-normalization-tensorflow

Shields, R. (2024). ​The Use of Ai (Artificial Intelligence) in Agriculture & Farming. Www.agrirs.co.uk. https://www.agrirs.co.uk/blog/2024/02/the-use-of-ai-artificial-intelligence-in-agriculture-and-farming?source=google.com

Downloads

Posted

2025-09-06