AI-Driven Approach to Crop Recommendation: Tackling Class Imbalance and Feature Selection in Precision Agriculture
Agricultural yields have significantly decreased over the years due to soil degradation and weather variability. Inefficient utilization of these farming resources has worsened the situation. To address this challenge, this study developed an AI-driven crop recommendation framework based on structured soil and climate data. The dataset comprises key features such as temperature, humidity, and rainfall, as well as soil pH, nitrogen, phosphorus, and potassium, collected from the Wannune axis of Tarka Local Government Area in Benue State, Nigeria. To handle the data imbalance in the dataset, the Synthetic Minority Over-Sampling Technique (SMOTE) was applied. Recursive Feature Elimination (RFE) was employed to optimize feature selection. Five tree-based models, including Random Forest, Decision Tree, Naïve Bayes, Logistic Regression, and Extreme Gradient Boost (XGBoost), were evaluated. The XGBoost model yielded the best performance, with an accuracy of 99.65%. The use of indigenous data bridges the gap between reliability and the relevance of localization in precision agriculture. Future work includes integrating dynamic environmental variables and conducting field validation to improve scalability and adoption
Authors
- Dekera Kenneth Kwaghtyo (ORCID: https://orcid.org/0000-0002-5912-541X)
- Terhile Peter Hule
- Aliyu Tetengi Ibrahim
- Joseph Tersoo Iorzua
- Anthonia Doofan Nongu
Institutions
- Ahmadu Bello University (NG)
- Federal University Lafia (NG)
- The Federal Polytechnic, Ado-Ekiti (NG)
- Federal Polytechnic Ede (NG)
Publication Details
- Journal
- Journal of Future Artificial Intelligence and Technologies
- Published
- 2025-07-19
- DOI
- https://doi.org/10.62411/faith.3048-3719-118
- Citations
- 3
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 5.25