Research Article

Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture

Volume: 9 Number: 4 October 8, 2025
EN

Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture

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

References

  1. Motwani, A., Patil, P., Nagaria, V., Verma, S., & Ghane, S. (2022). Soil Analysis and Crop Recommendation using Machine Learning. International Conference for Advancement in Technology (ICONAT), 1–7. https://doi.org/10.1109/iconat53423.2022.9725901
  2. Afzal, H., Amjad, M., Raza, A., Munir, K., Villar, S. G., Lopez, L. a. D., & Ashraf, I. (2025). Incorporating soil information with machine learning for crop recommendation to improve agricultural output. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-88676-z
  3. Musanase, C., Vodacek, A., Hanyurwimfura, D., Uwitonze, A., & Kabandana, I. (2023). Data-Driven analysis and Machine Learning-Based crop and Fertilizer recommendation system for revolutionizing farming practices. Agriculture, 13(11), 2141. https://doi.org/10.3390/agriculture13112141
  4. Dey, B., Ferdous, J., & Ahmed, R. (2024). Machine learning based recommendation of agricultural and horticultural crop farming in India under the regime of NPK, soil pH and three climatic variables. Heliyon, 10(3), e25112. https://doi.org/10.1016/j.heliyon.2024.e25112
  5. Senapaty, M. K., Ray, A., & Padhy, N. (2024). A decision support system for crop recommendation using machine learning classification algorithms. Agriculture, 14(8), 1256. https://doi.org/10.3390/agriculture14081256
  6. Garg, D., & Alam, M. (2023). An effective crop recommendation method using machine learning techniques. International Journal of Advanced Technology and Engineering Exploration, 10(102). 498. https://doi.org/10.19101/ijatee.2022.10100456
  7. Islam, M. R., Oliullah, K., Kabir, M. M., Alom, M., & Mridha, M. (2023). Machine learning enabled IoT system for soil nutrients monitoring and crop recommendation. Journal of Agriculture and Food Research, 14, 100880. https://doi.org/10.1016/j.jafr.2023.100880
  8. Vandana, W. M., & Kavya, B. (2024). Soil Fertility Assessment and Crop Recommendation for Sustainable Farming using Machine Learning and Deep Learning. 4th International Conference on Data Engineering and Communication Systems (ICDECS), 1–3. https://doi.org/10.1109/icdecs59733.2023.10503113.

Details

Primary Language

English

Subjects

Computer Software

Journal Section

Research Article

Publication Date

October 8, 2025

Submission Date

May 1, 2025

Acceptance Date

June 26, 2025

Published in Issue

Year 2025 Volume: 9 Number: 4

APA
Upreti, K., Singh, J., & Alapatt, B. P. (2025). Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture. Turkish Journal of Engineering, 9(4), 801-810. https://doi.org/10.31127/tuje.1688064
AMA
1.Upreti K, Singh J, Alapatt BP. Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture. TUJE. 2025;9(4):801-810. doi:10.31127/tuje.1688064
Chicago
Upreti, Kamal, Jaspreet Singh, and Bosco Paul Alapatt. 2025. “Smart Farming With Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture”. Turkish Journal of Engineering 9 (4): 801-10. https://doi.org/10.31127/tuje.1688064.
EndNote
Upreti K, Singh J, Alapatt BP (October 1, 2025) Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture. Turkish Journal of Engineering 9 4 801–810.
IEEE
[1]K. Upreti, J. Singh, and B. P. Alapatt, “Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture”, TUJE, vol. 9, no. 4, pp. 801–810, Oct. 2025, doi: 10.31127/tuje.1688064.
ISNAD
Upreti, Kamal - Singh, Jaspreet - Alapatt, Bosco Paul. “Smart Farming With Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture”. Turkish Journal of Engineering 9/4 (October 1, 2025): 801-810. https://doi.org/10.31127/tuje.1688064.
JAMA
1.Upreti K, Singh J, Alapatt BP. Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture. TUJE. 2025;9:801–810.
MLA
Upreti, Kamal, et al. “Smart Farming With Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture”. Turkish Journal of Engineering, vol. 9, no. 4, Oct. 2025, pp. 801-10, doi:10.31127/tuje.1688064.
Vancouver
1.Kamal Upreti, Jaspreet Singh, Bosco Paul Alapatt. Smart Farming with Ensemble Learning: A Soil-Driven Crop Suggestion Model for Sustainable Agriculture. TUJE. 2025 Oct. 1;9(4):801-10. doi:10.31127/tuje.1688064
Flag Counter