Machine Learning-Based Dual Agricultural Decision Support System: An Integrated Approach for Crop and Fertilizer Recommendations
DOI:
https://doi.org/10.24925/turjaf.v14i1.262-273.8336Keywords:
Machine learning, agricultural decision support, crop recommendation, fertilizer management, precision agriculture, SHAP analysisAbstract
This study proposes a comprehensive dual-module agricultural decision support system that integrates machine learning algorithms for both crop and fertilizer recommendations. The system addresses critical challenges in modern agriculture by providing evidence-based recommendations to optimize productivity while maintaining sustainability. Four machine learning algorithms (Random Forest, Support Vector Machine, XGBoost, and K-Nearest Neighbors) were implemented and evaluated using comprehensive agricultural datasets containing 2,200 crop samples and 3,100 fertilizer samples. The crop recommendation module achieved 99.32% accuracy using Random Forest, while the fertilizer recommendation module attained 98.75% accuracy. The system incorporates advanced techniques including SMOTE for handling class imbalance, GridSearchCV for hyperparameter optimization, and SHAP analysis for model interpretability. Comparative analysis with existing literature demonstrates competitive performance while offering enhanced explainability and dual functionality. The developed framework provides a foundation for region-specific implementations and represents a practical contribution to intelligent agricultural decision support systems.
References
Arrighi, L., de Moraes, I. A., Zullich, M., Simonato, M., Barbin, D. F., & Barbon Junior, S. (2025). Explainable Artificial Intelligence techniques for interpretation of food datasets: a review. arXiv preprint. https://arxiv.org/html/2504.10527v1
Breiman, L. (2001). Random Forests. Machine Learning 45, 5–32. https://doi.org/10.1023/A:1010933404324
Bülbül, H., & Güler, E. (2025). Akıllı Tarım Tavsiye Sistemi [Smart Agricultural Recommendation System]. Undergraduate thesis, Department of Information Systems Engineering, Faculty of Computer and Information Sciences, Sakarya University.
Cartolano, A., Cuzzocrea, A., & Pilato, G. (2024). Analyzing and assessing explainable AI models for smart agriculture environments. Multimedia Tools and Applications, 83, 37225–37246. https://doi.org/10.1007/s11042-023-17978-z
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321-357. https://doi.org/10.1613/jair.953
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785-794). https://doi.org/10.1145/2939672.2939785
Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273-297. https://doi.org/10.1007/BF00994018
Cover, T., & Hart, P. (1967). Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1), 21-27. https://doi.org/10.1109/TIT.1967.1053964
Demir, B., Dokuz, Y., & Şen, B. (2025). Comparative Analysis of Machine Learning Algorithms for Irrigation Status Prediction. Turkish Journal of Agriculture - Food Science and Technology, 13(2), 497-503. https://doi.org/10.24925/turjaf.v13i2.497-503.7497
Essenfelder, A. H., Toreti, A., & Seguini, L. (2025). Expert-driven explainable artificial intelligence models can detect multiple climate hazards relevant for agriculture. Communications Earth & Environment, 6, 207. https://doi.org/10.1038/s43247-024-01987-3
Food and Agriculture Organization of the United Nations. (2023). The State of Food Security and Nutrition in the World 2023. FAO.
Hossain, M. A., & Siddique, M. N. A. (2020). Online Fertilizer Recommendation System (OFRS): A step towards precision agriculture and optimized fertilizer usage by smallholder farmers in Bangladesh. European Journal of Environment and Earth Sciences, 1(4), 1–9. https://doi.org/10.24018/ejgeo.2020.1.4.47
Hossin, M., & Sulaiman, M. N. (2015). A review on evaluation metrics for data classification evaluations. International Journal of Data Mining & Knowledge Management Process, 5(2), 1-11. https://doi.org/10.5121/ijdkp.2015.5201
Ikhlaq, U., & Kechadi, T. (2023, April 28–30). Machine learning-based nutrient application's timeline recommendation for smart agriculture: A large-scale data mining approach. In Proceedings of the International Conference on Intelligent Systems and New Applications (ICISNA'23) (pp. 42–47). Liverpool, United Kingdom.
Khaliq, A., et al. (2025). AI-Driven Smart Agriculture: An Integrated Approach for Soil Analysis, Irrigation, and Crop-Fertilizer Recommendations. IEEE Access, 13, 141124-141138. https://doi.org/10.1109/ACCESS.2025.3594162
Liu, J.-J., Wu, H., & Riaz, I. (2025). Advanced Technologies for Smart Fertilizer Management in Agriculture: A Review. IEEE Access, 13, 139766-139786. https://doi.org/10.1109/ACCESS.2025.3594361
Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30, 4765-4774. https://doi.org/10.48550/arXiv.1705.07874
Mohan, R. N. V. J., Rayanoothala, P. S., & Sree, R. P. (2025). Next-gen agriculture: integrating AI and XAI for precision crop yield predictions. Frontiers in Plant Science, 15, 1451607. https://doi.org/10.3389/fpls.2024.1451607
Musanase, R., Niyitegeka, D., & Tuyishimire, E. (2023). Data-driven analysis and machine learning-based crop and fertilizer recommendation system for sustainable agriculture. Agriculture, 13(11), 2141. https://doi.org/10.3390/agriculture13112141
Nalluri, V. (2024). Crop recommendation dataset (Version 1) [Data set]. Kaggle. https://www.kaggle.com/datasets/varshitanalluri/crop-recommendation-dataset/data (Accessed: 1 April 2025)
Nishchalchandel. (2025). Fertilizer recommendation (Version 1) [Data set]. Kaggle. https://www.kaggle.com/datasets/nishchalchandel/fertilizer-recommendation/data (Accessed: 1 April 2025)
Patel, K., & Patel, H. B. (2023). Multi-criteria Agriculture Recommendation System using Machine Learning for Crop and Fertilizers Prediction. Current Agriculture Research Journal, 11(1), 137-149. https://doi.org/10.12944/CARJ.11.1.12
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., ... & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825-2830.
Prity, F. S., Hasan, M. M., Saif, S. H., Hossain, M. M., Bhuiyan, S. H., Islam, M. A., & Lavlu, M. T. H. (2024). Enhancing Agricultural Productivity: A Machine Learning Approach to Crop Recommendations. Human-Centric Intelligent Systems, 4, 497–510. https://doi.org/10.1007/s44230-024-00081-3
Senapaty, M. K., Ray, A., & Padhy, N. (2023). IoT-Enabled Soil Nutrient Analysis and Crop Recommendation Model for Precision Agriculture. Computers, 12(3), 61. https://doi.org/10.3390/computers12030061
Shastri, S., Kumar, S., Mansotra, V., & Salgotra, R. (2025). Advancing crop recommendation system with supervised machine learning and explainable artificial intelligence. Scientific Reports, 15, 25498. https://doi.org/10.1038/s41598-025-07003-8
Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427-437. https://doi.org/10.1016/j.ipm.2009.03.002
Tanaka, T. S. T., Heuvelink, G. B. M., Mieno, T., & Bullock, D. S. (2024). Can machine learning models provide accurate fertilizer recommendations? Precision Agriculture, 25, 1839–1856. https://doi.org/10.1007/s11119-024-10136-x
Thorat, B., Ranadive, I., Rajpurohit, N., Mehare, Y., & Singh, R. (2025). Fertilizer Prediction Using Machine Learning. International Journal for Research in Applied Science and Engineering Technology, 13(4). https://doi.org/10.22214/ijraset.2025.70432
United Nations Convention to Combat Desertification. (2022). Global Land Outlook, Second Edition. UNCCD.
Venkateswara, S. M., & Padmanaban, J. (2025). Interpretable deep learning models for independent fertilizer and crop recommendation. Scientific Reports, 15, 41721. https://doi.org/10.1038/s41598-025-26910-4
Downloads
Published
Issue
Section
License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.






