COMPARATIVE ANALYSIS OF DECISION TREE AND RANDOM FOREST ALGORITHMS FOR PREDICTING DIABETES MELLITUS
DOI:
https://doi.org/10.37824/sij.v8i1.2025.783Keywords:
Diabetes, Decision Tree, Random Forest, SMOTE, ClassificationAbstract
Diabetes mellitus (DM) is a chronic disease with an increasing number of sufferers and a risk of serious complications. Early detection is very important to prevent these risks. This study uses a public dataset from Kaggle to compare the performance of Decision Tree and Random Forest algorithms in predicting diabetes status. The dataset includes demographic and medical information such as age, hypertension, cardiac history, BMI, HbA1c, and blood glucose levels. Unbalanced data was handled using the SMOTE method, and then tested with 80:20, 70:30, and 60:40 data sharing schemes. The evaluation results showed that Random Forest excelled in all schemes, with the best performance in the 60:40 scheme (96.02% accuracy, 76.13% F1-score). This research shows that Random Forest is effective to support machine learning-based diabetes early detection system.
References
[1] D. Pramadhana, “Klasifikasi Penyakit Diabetes Menggunakan Metode CFS dan ROS dengan Algoritma J48 Berbasis Adaboost,” Edumatic J. Pendidik. Inform., vol. 5, no. 1, pp. 89–98, 2021, doi: 10.29408/edumatic.v5i1.3336.
[2] A. W. Mucholladin, F. A. Bachtiar, and M. T. Furqon, “Klasifikasi Penyakit Diabetes menggunakan Metode Support Vector Machine,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 5, no. 2, pp. 622–633, 2021, [Online]. Available: http://j-ptiik.ub.ac.id
[3] S. T. Siridion and B. Siregar, “ANALISIS KLASIFIKASI DIAGNOSA PENYAKIT DIABETES MELITUS BERDASARKAN KOMPARASI ALGORITMA SUPERVISED LEARNING Universitas Matana , Banten , Indonesia Email : sherly.taurin@student.matanauniversity.ac.id Analisi,” vol. 2, no. 3, pp. 1006–1014, 2024.
[4] E. Retnoningsih and R. Pramudita, “Mengenal Machine Learning Dengan Teknik Supervised Dan Unsupervised Learning Menggunakan Python,” Bina Insa. Ict J., vol. 7, no. 2, p. 156, 2020, doi: 10.51211/biict.v7i2.1422.

