Revolutionizing Agriculture Through Smart Farming by Employing Advanced Machine Learning Techniques for Optimal Crop Selection
DOI:
https://doi.org/10.47852/bonviewJCCE52026049Keywords:
crop selection, machine learning (ML) models, prediction, random forest (RF) classifier, precision agricultureAbstract
Precision agriculture relies heavily on crop selection to improve sustainability and increase productivity. The increasing problems of soil erosion, climate change, and water shortages have made it crucial to optimize crop selection through cutting-edge methods to increase farm yields and enhance resource efficiency. This research attempts to develop machine learning (ML) models, such as logistic regression (LR), Gaussian naive Bayes (GNB), support vector classifier (SVC), K-nearest neighbors (KNN) classifier, decision tree (DT) classifier, extra tree (ET) classifier, random forest (RF) classifier, and bagging classifier, to optimize crop selection for precision agricultural systems. A large dataset comprising information on crop recommendations, weather patterns, and soil characteristics was used in this research. The data is preprocessed using the interquartile range (IQR) method to remove outliers and ensure that all features contribute equally to the model. Linear discriminant analysis (LDA) is used to extract the important features for feature extraction. The RF classifier was determined to be the most effective method for raising the precision of crop selection forecasts. This framework is designed to provide actionable insights for selecting optimal crops based on environmental conditions and resource availability. The suggested model is a valuable tool for crop selection optimization in precision agriculture, as preliminary results show that it outperforms traditional ML models in terms of F1-score, precision, accuracy, and recall at 99.88% (all measures). According to the research, modern ML algorithms can revolutionize agricultural practices and provide a sustainable solution to increase crop output while reducing resource wastage.
Received: 29 April 2025 | Revised: 13 August 2025 | Accepted: 19 August 2025
Conflicts of Interest
The authors declare that they have no conflicts of interest to this work.
Data Availability Statement
The Crop Recommendation datasets that support the findings of this study are openly available in Kaggle at https://www.kaggle.com/datasets/atharvaingle/crop-recommendation-dataset. The data that support the findings of this study are openly available in Kaggle at https://www.kaggle.com/datasets/shekharyada/crop-soilcsv.
Author Contribution Statement
Rajesh Natarajan: Conceptualization, Methodology, Validation, Writing – original draft, Writing – review & editing, Funding acquisition. Sujatha Krishna: Validation, Formal analysis, Writing – original draft, Writing – review & editing. Pradeepa Ganesan: Software, Formal analysis, Visualization. Amna Al Kaabi: Writing – review & editing, Supervision. Rajesh Kala: Resources, Data curation. Anthony Mendoza Madlambayan: Resources, Data curation, Visualization.
Metrics
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Authors

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
Funding data
-
Ministry of Higher Education, Research and Innovation
Grant numbers MoHERI/BFP/UTAS/2024