Work

Machine learning in farming: advancing crop choices with precision

Year: 2025
Type: preprint
Abstract: Crop recommendation technologies which incorporate plant environment-related data help farmers optimize yields, conserve resources and reduce the negative environmental impact of agriculture. Benefits also include better soil health, efficient water management, financial savings and enhanced food security. Therefore, choosing the right algorithm ensures performance, accuracy, and adaptability for sustainable agriculture. This study evaluates the performance of five machine learning algorithms—Gaussian Naïve Bayes (GNB), Random Forest (RF), Extreme Gradient Boosting (XGBoost), Multi-Layer Perceptron (MLP), and Convolutional Neural Network (CNN)—for precision agriculture in recommending field crops. Using a balanced dataset of 2,200 instances across 22 crops, the algorithms analyze four soil properties (nitrogen, phosphorus, potassium, and pH) and three environmental factors (temperature, humidity, and rainfall) to optimize crop selection. The results highlight GNB as the most effective model, achieving an accuracy of 99.54% and precision of 99.58%, while CNN showed comparatively lower efficacy, emphasizing the importance of algorithm selection for this application. The dataset and scripts used for this study can be downloaded from https://github.com/Enowtakang/CropRecommendation-1
Source: TechRxiv
Language: English
Subfield: Plant Science
Open Access status: green
OpenAlex ID: W4408553594
Cites: 96
Cited by:
Related to: 10