Klasifikasi Penyakit Jantung Menggunakan Random Forest
DOI:
https://doi.org/10.29407/dxbyba25Keywords:
Klasifikasi, Penyakit Jantung, Random Forest, Machine Learning, Data Klinis, StreamlitAbstract
Penyakit jantung merupakan salah satu penyebab utama kematian di dunia sehingga diperlukan metode deteksi dini yang akurat dan efisien. Penelitian ini bertujuan untuk mengklasifikasikan risiko penyakit jantung menggunakan algoritma Random Forest berdasarkan data klinis pasien. Dataset yang digunakan adalah Heart Failure Clinical Records Dataset yang berisi atribut medis seperti usia, tekanan darah, fraksi ejeksi, kadar serum kreatinin, serta riwayat penyakit penyerta. Tahapan penelitian meliputi pengumpulan data, praprosessing data, pembagian data menjadi data latih dan data uji, pelatihan model Random Forest, evaluasi model, serta implementasi sistem dalam bentuk aplikasi berbasis web menggunakan Streamlit. Proses praprosessing dilakukan untuk meningkatkan kualitas data melalui penanganan nilai hilang, pembersihan data, encoding variabel kategorikal, normalisasi, dan balancing dataset. Hasil evaluasi menunjukkan bahwa model Random Forest memiliki performa yang baik dengan nilai accuracy, precision, recall, dan F1-score yang seimbang, serta mampu meminimalkan kesalahan false negative yang sangat penting dalam konteks kesehatan. Implementasi model ke dalam aplikasi Streamlit memungkinkan pengguna melakukan prediksi risiko penyakit jantung secara interaktif dan real-time. Dengan demikian, penelitian ini menunjukkan bahwa algoritma Random Forest efektif dan layak digunakan sebagai sistem pendukung keputusan dalam deteksi dini penyakit jantung.
Downloads
References
C. The and O. N. E. Killer, “WORLD HEART REPORT 2023 CONFRONTING THE WORLD ’ S NUMBER,” 2023.
[2] D. Saavedra, B. Garcia, and A. Lage, “T Cell Subpopulations in Healthy elderly and Lung Cancer Patients : insights from Cuban Studies,” vol. 8, no. February, pp. 1–6, 2017, doi: 10.3389/fimmu.2017.00146.
[3] L. Breiman, “No Title,” pp. 1–33, 2001.
[4] S. Mohan, C. Thirumalai, and G. Srivastava, “Effective Heart Disease Prediction Using Hybrid Machine Learning Techniques,” IEEE Access, vol. 7, pp. 81542–81554, 2019, doi: 10.1109/ACCESS.2019.2923707.
[5] P. A. Newman-casey, J. Musser, L. M. Niziol, K. Shedden, and D. Burke, “Designing and validating a low-cost real time locating system to continuously assess patient wait times,” J. Biomed. Inform., vol. 106, no. April, p. 103428, 2020, doi: 10.1016/j.jbi.2020.103428.
[6] I. Kavakiotis, O. Tsave, A. Salifoglou, N. Maglaveras, I. Vlahavas, and I. Chouvarda, “Machine Learning and Data Mining Methods in Diabetes Research,” Comput. Struct. Biotechnol. J., vol. 15, pp. 104–116, 2017, doi: 10.1016/j.csbj.2016.12.005.
[7] P. A. Newman-casey, J. Musser, L. M. Niziol, K. Shedden, and D. Burke, “Designing and validating a low-cost real time locating system to continuously assess patient wait times,” J. Biomed. Inform., vol. 106, no. October 2019, p. 103428, 2020, doi: 10.1016/j.jbi.2020.103428.
[8] N. G. Ramadhan and A. Romadhony, “Preprocessing Handling to Enhance Detection of Type 2 Diabetes Mellitus based on Random Forest,” vol. 12, no. 7, pp. 223–228, 2021.
[9] A. Liaw, M. Wiener, and M. A. Liaw, “Package ‘ randomForest ,’” 2025, doi: 10.1023/A.
[10] “EVALUATION : FROM PRECISION , RECALL AND F-MEASURE TO ROC , INFORMEDNESS , MARKEDNESS & CORRELATION,” pp. 37–63.
[11] M. Arief et al., “IMPLEMENTASI SISTEM DETEKSI SERANGAN SLOWLORIS PADA ARSITEKTUR JARINGAN SOFTWARE-DEFINED NETWORK,” vol. 1, no. 1, pp. 1–10, 2017.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Alip Alip Agil Saputra, Fajar Ardilah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License





