APPLYING TREE BASED MODEL FOR CROP RECOMMENDATION SYSTEM BASED ON SOIL PARAMETERS AND WEATHER CONDITIONS
DOI:
https://doi.org/10.33480/jitk.v11i1.6476Keywords:
agricultural, decision tree, random forest, recommendation system, xgboostAbstract
The massive population in Indonesia needs to be supported by various sectors so that the population's needs are met. One of these sectors is agriculture. The problems are unpredictable climate change and weather and changes in land use from previously agricultural land to housing. In addition, plant quality is also influenced by soil quality and other abiotic factors, comprising rainfall, temperature, and humidity. Plant quality affects the increase in crop yields. A plant recommendation system based on plant parameters must help farmers determine the best plants according to agricultural land conditions. The recommended plants to be used include mango, cotton, rice, mungbeans, and apple. This work aims to create a plant recommendation system utilizing criteria related to plant requirements through a machine learning methodology. The stages in this study start with data collection, preprocessing, partitioning, modelling, performance evaluation, and a recommender system. This study’s results indicate that the Random Forest method achieved the best accuracy at 0.9981, followed by XGBoost at 0.9909 and Decision Tree at 0.9873. The system provided recommendations for plant types based on user input
Downloads
References
J. Cock, D. Jiménez, H. Dorado, and T. Oberthür, ‘Operations research and machine learning to manage risk and optimize production practices in agriculture: good and bad experience’, Curr Opin Environ Sustain, vol. 62, p. 101278, Jun. 2023, doi: 10.1016/j.cosust.2023.101278.
L. Qiao et al., ‘Soil quality both increases crop production and improves resilience to climate change’, Nat Clim Chang, vol. 12, no. 6, pp. 574–580, Jun. 2022, doi: 10.1038/s41558-022-01376-8.
S. P. Raja, B. Sawicka, Z. Stamenkovic, and G. Mariammal, ‘Crop Prediction Based on Characteristics of the Agricultural Environment Using Various Feature Selection Techniques and Classifiers’, IEEE Access, vol. 10, pp. 23625–23641, 2022, doi: 10.1109/ACCESS.2022.3154350.
E. Elbasi et al., ‘Artificial Intelligence Technology in the Agricultural Sector: A Systematic Literature Review’, IEEE Access, vol. 11, pp. 171–202, 2023, doi: 10.1109/ACCESS.2022.3232485.
S. O. Abioye et al., ‘Artificial intelligence in the construction industry: A review of present status, opportunities and future challenges’, Journal of Building Engineering, vol. 44, p. 103299, Dec. 2021, doi: 10.1016/j.jobe.2021.103299.
F. S. Prity et al., ‘Enhancing Agricultural Productivity: A Machine Learning Approach to Crop Recommendations’, Human-Centric Intelligent Systems, vol. 4, no. 4, pp. 497–510, Sep. 2024, doi: 10.1007/s44230-024-00081-3.
S. M. PANDE, P. K. RAMESH, A. ANMOL, B. R. AISHWARYA, K. ROHILLA, and K. SHAURYA, ‘Crop Recommender System Using Machine Learning Approach’, in 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), IEEE, Apr. 2021, pp. 1066–1071. doi: 10.1109/ICCMC51019.2021.9418351.
R. Dash, D. K. Dash, and G. C. Biswal, ‘Classification of crop based on macronutrients and weather data using machine learning techniques’, Results in Engineering, vol. 9, p. 100203, Mar. 2021, doi: 10.1016/j.rineng.2021.100203.
F. Shahbazi, S. Shahbazi, M. Nadimi, and J. Paliwal, ‘Losses in agricultural produce: A review of causes and solutions, with a specific focus on grain crops’, J Stored Prod Res, vol. 111, p. 102547, May 2025, doi: 10.1016/j.jspr.2025.102547.
S. Rani, A. K. Mishra, A. Kataria, S. Mallik, and H. Qin, ‘Machine learning-based optimal crop selection system in smart agriculture’, Sci Rep, vol. 13, no. 1, p. 15997, Sep. 2023, doi: 10.1038/s41598-023-42356-y.
P. S. Kiran, G. Abhinaya, S. Sruti, and N. Padhy, ‘A Machine Learning-Enabled System for Crop Recommendation’, in The 3rd International Electronic Conference on Processes, Basel Switzerland: MDPI, Sep. 2024, p. 51. doi: 10.3390/engproc2024067051.
S. D. Shingade and R. P. Mudhalwadkar, ‘Sensor information‐based crop recommendation system using machine learning for the fertile regions of Maharashtra’, Concurr Comput, vol. 35, no. 23, Oct. 2023, doi: 10.1002/cpe.7774.
Y. Li et al., ‘A county-level soybean yield prediction framework coupled with XGBoost and multidimensional feature engineering’, International Journal of Applied Earth Observation and Geoinformation, vol. 118, p. 103269, Apr. 2023, doi: 10.1016/j.jag.2023.103269.
P. P. Šimović, C. Y. T. Chen, and E. W. Sun, ‘Classifying the Variety of Customers’ Online Engagement for Churn Prediction with a Mixed-Penalty Logistic Regression’, Comput Econ, vol. 61, no. 1, pp. 451–485, Jan. 2023, doi: 10.1007/s10614-022-10275-1.
A. Sharma, A. Jain, P. Gupta, and V. Chowdary, ‘Machine Learning Applications for Precision Agriculture: A Comprehensive Review’, IEEE Access, vol. 9, pp. 4843–4873, 2021, doi: 10.1109/ACCESS.2020.3048415.
D. H. Depari, Y. Widiastiwi, and M. M. Santoni, ‘Perbandingan Model Decision Tree, Naive Bayes dan Random Forest untuk Prediksi Klasifikasi Penyakit Jantung’, Informatik : Jurnal Ilmu Komputer, vol. 18, no. 3, p. 239, Dec. 2022, doi: 10.52958/iftk.v18i3.4694.
B. Charbuty and A. Abdulazeez, ‘Classification Based on Decision Tree Algorithm for Machine Learning’, Journal of Applied Science and Technology Trends, vol. 2, no. 01, pp. 20–28, Mar. 2021, doi: 10.38094/jastt20165.
A. Arifuddin, G. S. Buana, R. A. Vinarti, and A. Djunaidy, ‘Performance Comparison of Decision Tree and Support Vector Machine Algorithms for Heart Failure Prediction’, Procedia Comput Sci, vol. 234, pp. 628–636, 2024, doi: 10.1016/j.procs.2024.03.048.
L. B. V. de Amorim, G. D. C. Cavalcanti, and R. M. O. Cruz, ‘The choice of scaling technique matters for classification performance’, Appl Soft Comput, vol. 133, p. 109924, Jan. 2023, doi: 10.1016/j.asoc.2022.109924.
A. A. Khan, O. Chaudhari, and R. Chandra, ‘A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluation’, Expert Syst Appl, vol. 244, p. 122778, Jun. 2024, doi: 10.1016/j.eswa.2023.122778.
M. Yousefi D.B. et al., ‘Classification of oil palm female inflorescences anthesis stages using machine learning approaches’, Information Processing in Agriculture, vol. 8, no. 4, pp. 537–549, Dec. 2021, doi: 10.1016/j.inpa.2020.11.007.
M. Noorunnahar, A. H. Chowdhury, and F. A. Mila, ‘A tree based eXtreme Gradient Boosting (XGBoost) machine learning model to forecast the annual rice production in Bangladesh’, PLoS One, vol. 18, no. 3, p. e0283452, Mar. 2023, doi: 10.1371/journal.pone.0283452.
A. R. Al Musyaffa, Y. Pristyanto, and N. Mauliza, ‘Comparison Of Ensemble Methods For Decision Tree Models In Classifying E. Coli Bacteria’, JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 10, no. 3, pp. 514–522, Feb. 2025, doi: 10.33480/jitk.v10i3.5972.
H. Ali, I. Niazi, D. White, M. Akhter, and S. Madanian, ‘Comparison of Machine Learning Models for Predicting Interstitial Glucose Using Smart Watch and Food Log’, Electronics (Basel), vol. 13, no. 16, p. 3192, Aug. 2024, doi: 10.3390/electronics13163192.
D. Müller, I. Soto-Rey, and F. Kramer, ‘Towards a guideline for evaluation metrics in medical image segmentation’, BMC Res Notes, vol. 15, no. 1, p. 210, Dec. 2022, doi: 10.1186/s13104-022-06096-y.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Asrul Abdullah, Muhammad Iwan, Sinta Rama Dani

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.