Analisis Perbandingan Decision Tree dan Random Forest Untuk Prediksi Penyakit Berdasarkan Gejala Pasien

Sunarto Taliki, Serwin Serwin, Haditsah Annur, Mohamad Rayhan A Ismail

Abstract


Basic principles of public health form a crucial foundation in efforts to protect and improve public health, with a primary focus on disease prevention. In the era of transformation, a science capable of prediction is needed, such as the use of decision tree and random forest algorithms, which have the ability to generate accurate predictions through data processing by forming decision trees. This research utilizes a public dataset on "Peduli Sehat," collected from https://www.kaggle.com/datasets/krismonosadi/peduli-sehat-dataset, consisting of 4,921 records. The research problem is to determine which algorithm provides the best performance based on a dataset of 130 disease symptoms. Therefore, this study aims to explore data mining techniques using a comparative performance approach between the decision tree algorithm and the random forest algorithm in making predictions. Data analysis was conducted using a 70:30 validation split test to identify the best performance for disease prediction. The research results show that the decision tree algorithm achieved a performance of 94.17% accuracy, 95.04% precision, and 94.55% recall, while the random forest algorithm performance was 44.65% accuracy, 45.88% precision, and 46.67% recall. Therefore, this study proves that the decision tree algorithm is more effective for datasets with many symptom features but linear patterns compared to the random forest algorithm. Additionally, the results obtained can provide scientific contributions, particularly in the field of machine learning, and serve as a reference for scientific development in the health sector.


Keywords


Prediction; Disease; Comparison; Decision Tree; Random For-est

Full Text:

PDF

References


S. Matondang, “Sistem Pakar Diagnosis Penyakit Umum Menggunakan Metode Forward Chaining,” Remik Ris. dan E-Jurnal Manaj. Inform. Komput., vol. 7, pp. 1712–1723, 2023.

A. L. Kartika, M. Orisa, D. Rudhistiar, T. Informatika, D. Shafer, and P. Umum, “Aplikasi Sistem Pakar Deteksi Penyakit Umum Berbasis Android,” vol. 7, no. 5, pp. 3068–3074, 2023.

M. J. Suwardy, “Pengembangan Aplikasi Panduan Perawatan dan Gejala Pengidap Penyakit Umum Ringan Menggunakan Adobe Flash,” vol. 3, no. 1, pp. 62–67, 2024.

A. M. Multazam and E. Andayanie, Kesehatan Masyarakat. 2024.

M. Muhrizal, A. Haditsah, W. Yunus, and S. S. Panna, “Prediksi jumlah produksi kopra menggunakan metode regresi linear berganda pada umkm mandiri desa lion,” vol. 4, no. 2, pp. 141–149, 2025.

M. A. Salwa, “Optimasi Model Algoritma Klasifikasi Data Mining Menggunakan Metode Feature Selection Untuk Prediksi Penyakit Stroke,” vol. 26, no. 1, pp. 11–20, 2025.

E. Sabna and O. Dewi, “Prediksi Penyakit Stroke menggunakan Algoritma Decision Tree dan Naïve Bayes,” vol. 4, no. 3, pp. 1294–1299, 2025.

U. Maltuf and Z. Fatah, “Penerapan Algoritma Decision Tree Untuk Klasifikasi Komsumsi Energi Listrik Rumah Tangga Dengan Penggunaan Rapid Miner,” J. Ilmia Multidisplin Ilmu, vol. 2, no. 1, pp. 38–45, 2025.

Y. Nuryamin and F. Risyda, “Analisis Prediksi Penyakit Diabetes Menggunakan Metode Decision Tree C4 . 5 Dan Naive Bayes,” vol. 5, pp. 234–242, 2025.

J. Kuswanto and L. Hakim, “Penerapan Algoritma Random Forest untuk memprediksi Performa Akademik Mahasiswa,” vol. 5, no. 1, pp. 262–270, 2025.

M. A. Kurniawan, G. Z. Syauqi, M. Safriyanti, F. U. Azmie, and A. Setiawan, “Prediksi Pendapatan Penjualan di Indomaret Menggunakan Algoritma Random Forest Regression,” vol. 9675, pp. 93–99, 2025.

L. Nafi and Z. Fatah, “Implementasi Algoritma Decision Tree Untuk Pendeteksian Penyakit Jantung,” Jusifor J. Sist. Inf. dan Inform., vol. 3, no. 2, pp. 160–165, 2024.

D. Septhya, K. Rahayu, S. Rabbani, and V. Fitria, “Implementation of Decision Tree Algorithm and Support Vector Machine for Lung Cancer Classification Implementasi Algoritma Decision Tree dan Support Vector Machine untuk Klasifikasi Penyakit Kanker Paru,” vol. 3, no. April, pp. 15–19, 2023.

A. Y. Permana, H. N. Fazri, and M. F. N. Athoilah, “Penerapan Data Mining Dalam Analisis Prediksi Kanker Paru Menggunakan Algoritma Random Forest,” vol. 3, no. 2, 2023.

S. A. Putri, N. Selayanti, and M. Kristanaya, “Penerapan Machine Learning Algoritma Random Forest Untuk Prediksi Penyakit Jantung,” vol. 2024, no. Senada, 2024.




DOI: https://doi.org/10.37905/jjeee.v8i2.37934

Refbacks

  • There are currently no refbacks.


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

Published by:
Electrical Engineering Department
Faculty of Engineering
State University of Gorontalo
Jalan B.J.Habibie Desa Moutong Kecamatan Tilongkabila Kabupaten Bone Bolango
Telp. 0435-821175; 081340032063
Email: [email protected]/[email protected]

Creative Commons License

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