Journal of Innovative and Creativity
Vol. 5 No. 3 (2025)

Implementasi dan Perbandingan Algoritma Random Forest dan Support Vector Machine untuk Prediksi Penyakit Jantung menggunakan Dataset Heart Disease UCI

Tarigan, Devanta Abraham (Unknown)
Sembiring, Zakaria (Unknown)
Tarigan, Efrata (Unknown)
Sebayang, Alexander (Unknown)



Article Info

Publish Date
26 Oct 2025

Abstract

Heart disease is a leading cause of death in Indonesia, with a national prevalence of 0.85% in 2025 and cardiovascular-related deaths reaching 651,481 annually. This study aims to implement and compare Random Forest (RF) and Support Vector Machine (SVM) algorithms for heart disease prediction using the UCI Heart Disease dataset (Cleveland subset, 303 instances). Methods include preprocessing (missing value imputation, one-hot encoding, scaling), model training, and evaluation using accuracy, precision, recall, F1-score, and 5-fold cross-validation. Results show RF achieving 86.89% test set accuracy and 89% recall for Presence, while SVM reaches 85.25%. In cross-validation, SVM is more stable with a mean accuracy of 81.84% compared to RF's 80.18%. Feature importance from RF highlights thal_7.0 (0.129), thalach (0.126), and ca (0.110) as key predictors. Conclusion: RF excels in reducing false negatives for early detection, while SVM is more generalizable. The novelty lies in the comprehensive comparison with feature interpretation in the Indonesian health context, supporting AI-based prediction systems for heart disease prevention.

Copyrights © 2025






Journal Info

Abbrev

joecy

Publisher

Subject

Education Languange, Linguistic, Communication & Media Mathematics Social Sciences Other

Description

Journal of Innovative and Creatifity (JOECY) publishes research articles in the field of education which report empirical research on topics that are significant across educational contexts, in terms of design and findings. The topic could be in curriculum, teaching learning, evaluation, quality ...