Claim Missing Document
Check
Articles

Found 1 Documents
Search

Analisis Perbandingan Model Machine Learning menggunakan Teknik Stratified K-Fold Cross Validation untuk Klasifikasi Penyakit Jantung Pratama, Avrilyan Putra Bintang; Prabowo, Wahyu Aji Eko
JURNAL RISET KOMPUTER (JURIKOM) Vol. 13 No. 2 (2026): April 2026
Publisher : Universitas Budi Darma

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.30865/jurikom.v13i2.9670

Abstract

Heart disease is one of the leading causes of death worldwide. Conventional approaches still have limitations, such as subjectivity in interpretation and relatively long analysis times. Therefore, this study proposes using machine learning to improve the accuracy of heart disease risk prediction by comparing the performance of Random Forest, Support Vector Machine (SVM), and K-Nearest Neighbor (KNN) algorithms. The research methodology includes data preprocessing, splitting the dataset into training and testing sets, and hyperparameter optimization using Stratified K-Fold Cross Validation with variations of K = 5, 10, 15, and 20. Model evaluation is conducted using accuracy, precision, recall, F1-score, and ROC-AUC metrics to comprehensively and objectively measure classification performance. The results show that the Random Forest algorithm achieves the best performance. At the optimal configuration of K = 15, the model attains an accuracy of 93.17%, a precision of 0.92, a recall of 0.95, an F1-score of 0.94, and an ROC-AUC of 0.97. In addition, this model minimizes classification errors, particularly False Negatives, making it more effective at identifying at-risk patients. The main contribution of this study is demonstrating that the combination of Random Forest and Stratified K-Fold Cross Validation can significantly improve classification performance and produce a model that is accurate, stable, and reliable for implementation in medical decision support systems.