TITLE:
Machine Learning-Based Crop Recommendation Using Tuned Classifiers and Ensemble Methods
AUTHORS:
Faiza Noushin Priya, Mirza Md. Hasibul Hasan, Mahfiza Akter, Shahria Badhon, Sraboni Ghosh Joya
KEYWORDS:
Crop Recommendation, Machine Learning, Ensemble Learning, Random Forest, Hyperparameter Tuning, Precision Agriculture
JOURNAL NAME:
Advances in Artificial Intelligence and Robotics Research,
Vol.2 No.4,
November
18,
2026
ABSTRACT: The choice of a suitable crop for a given situation is determined by soil and various climatic parameters. For choosing these crops, we commonly use machine learning models, but combining multiple models, called ensembling, and checking whether an ensemble model can beat one well-tuned model is still an important question. In this paper, this is directly checked. We compared two publicly available crop recommendation datasets, the Ingle dataset and the Garg dataset, and selected the balanced Ingle dataset, containing 22 crops and 2200 records, as the sole dataset. Five models were trained under identical conditions: Logistic Regression, KNN, Random Forest, XGBoost, and Feedforward Neural Network. Next, we fine-tuned the hyperparameters of the top three models using Grid Search and incorporated them into the soft voting, hard voting, and stacking ensembles. To avoid data leakage, we used train, validation, and test sets with a clean split that ensured at no point did we have the same observations split between the three sets. The final results indicate that a well-calibrated Random Forest model obtained the same weighted F1 score (0.9954) as the three ensemble models. This demonstrates that if a single model is tuned correctly, introducing additional models will not improve performance on this dataset. This therefore provides a cost-effective, lightweight, and easy-to-install answer without running redundant models side by side for precision farming and for automatic crop selection applications.