Perbandingan Algoritma Naive Bayes dan K-Nearest Neighbor untuk Prediksi Risiko Penyakit Stroke dengan Teknik Oversampling SMOTE
Journal of Digital Ecosystem for Natural Sustainability · 30.07.2026 · 6 (1) · 51-61
DOI: 10.63643/jodens.v6i1.389 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Digital Ecosystem for Natural Sustainability, online erschienen am 30.07.2026. Verfasst von Hilda Herasmus und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Themen: Schlaganfall
Abstract (Originalsprache)
Stroke is a leading cause of death and permanent disability in Indonesia, where prevalence rose from 8.3 per 1,000 population in 2013 to 10.9 per 1,000 in 2018, creating an urgent need for accurate early detection. This study develops and compares stroke risk prediction models based on Naive Bayes (NB) and K-Nearest Neighbor (KNN), each integrated with the Synthetic Minority Over-sampling Technique (SMOTE) to handle class imbalance. The dataset consists of 512 medical records from a hospital in Batam collected between 2020 and 2023, covering 12 demographic, clinical, and lifestyle predictors. SMOTE was applied only to the training data of an 80 to 20 split, yielding a balanced distribution of 258 samples per class. The KNN parameter K was tuned over eight odd values and 7 was found optimal. Evaluation on 103 test records shows that KNN consistently outperforms Naive Bayes, with accuracy of 91.3 against 81.6 percent, F1-Score of 89.2 against 79.9 percent, and AUC of 0.934 against 0.862. SMOTE raised recall of the Stroke class by 18.8 percentage points. Blood glucose, age, and systolic blood pressure were the three strongest predictors. The model is proposed as an Early Warning System module for hospital information systems.
Zitieren
APA
Herasmus, H., & Suryadi, A. (2026). Perbandingan Algoritma Naive Bayes dan K-Nearest Neighbor untuk Prediksi Risiko Penyakit Stroke dengan Teknik Oversampling SMOTE. Journal of Digital Ecosystem for Natural Sustainability, 6(1), 51-61. https://doi.org/10.63643/jodens.v6i1.389
Vancouver
Herasmus H, Suryadi A. Perbandingan Algoritma Naive Bayes dan K-Nearest Neighbor untuk Prediksi Risiko Penyakit Stroke dengan Teknik Oversampling SMOTE. Journal of Digital Ecosystem for Natural Sustainability. 2026;6(1):51-61. doi:10.63643/jodens.v6i1.389
BibTeX
@article{Herasmus2026,
author = {Herasmus, Hilda and Suryadi, Agus},
title = {Perbandingan Algoritma Naive Bayes dan K-Nearest Neighbor untuk Prediksi Risiko Penyakit Stroke dengan Teknik Oversampling SMOTE},
journal = {Journal of Digital Ecosystem for Natural Sustainability},
year = {2026},
volume = {6},
number = {1},
pages = {51--61},
doi = {10.63643/jodens.v6i1.389}
}
EUVIMED