Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture
- 8 October 2025
- journal article
- Published by Turkish Journal of Engineering in Turkish Journal of Engineering
- Vol. 9 (4) , 801-810
Abstract
The use of machine learning (ML) in agriculture has paved new avenues to improve decision making, especially in crop choice. The current research offers a data-driven crop recommendation system using a machine learning approach based on key soil and environmental factors—i.e., nitrogen (N), phosphorus (P), potassium (K), pH, temperature, humidity, and rainfall. A dataset of 2,200 soil records was processed using exploratory data analysis (EDA), normalization, and model training with algorithms such as Random Forest, Logistic Regression, and Gradient Boosting. Of these, Random Forest provided the best test accuracy of 99.32%, with high predictive ability and interpretability via feature importance measures. Violin and boxplots showed distinct feature separability among crop types, particularly in variables such as rainfall, temperature, and NPK concentrations, confirming the model's classification effectiveness. The practicability of the system is in its possible incorporation in IoT-based soil monitoring devices and cell advisory apps, delivering real-time, location-specific crop advice. This strategy enables farmers to make informed decisions, minimizes fertilizer waste, and promotes sustainable farming practices. The suggested system not only showcases technical strength but also fits well within the overall vision of smart farming and precision agriculture.Keywords
This publication has 30 references indexed in Scilit:
- Incorporating soil information with machine learning for crop recommendation to improve agricultural outputScientific Reports, 2025
- Precision farming practices with data-driven analysis and machine learning-based crop and fertiliser recommendation systemE3S Web of Conferences, 2024
- Development of a Crop Recommendation System Through the Use of Various Machine Learning Algorithms2024
- Agricultural land suitability classification and crop suggestion using machine learning and spatial multicriteria decision analysis in semi-arid ecosystemEnvironment, Development and Sustainability, 2024
- Machine learning based recommendation of agricultural and horticultural crop farming in India under the regime of NPK, soil pH and three climatic variablesHeliyon, 2024
- Machine learning enabled IoT system for soil nutrients monitoring and crop recommendationJournal of Agriculture and Food Research, 2023
- Crop Recommendation Using Machine Learning Algorithms and Soil Attributes Data2023
- IoT Based Smart Soil Fertilizer Monitoring And ML Based Crop Recommendation System2023
- Estimation of crop water requirement for Bargi left bank canal command area-Jabalpur M.P. IndiaEnergy Nexus, 2022
- Crop Recommendation by Analysing the Soil Nutrients Using Machine Learning Techniques: A Study2021