Medical Decision Making Based on K-nearest Neighbor (Knn) Algorithm in Stroke Patient Classification
Keywords:
Stroke, K-Nearest Neighbor, KNN, RapidMiner, Data MiningAbstract
Stroke is a non-communicable disease and one of the leading causes of death and disability worldwide. Early detection of potential stroke risk is crucial to support effective prevention and management efforts. This study aims to develop a stroke risk classification system using the K-Nearest Neighbor (KNN) algorithm implemented through the RapidMiner platform. The dataset analyzed consists of 932 patient records with various medical and demographic attributes. The research process includes data preprocessing, variable transformation, normalization, and splitting the data into training and testing sets. Model evaluation shows an accuracy rate of 82.35%; however, the model has not performed well in identifying stroke cases due to data imbalance. These findings highlight the importance of addressing class imbalance in medical data and the need to consider alternative algorithms to improve detection of minority classes.
References
1. Abiodun OJ dan Wreford AI. 2023. Stroke prediction using SMOTE for data balancing, XGBoost and KNN ensemble algorithms. J. Appl. Phys. Sci. Int. 15(1): 42–53. https://doi.org/10.56557/JAPSI/2023/v15i18349
2. Asadi F dan Rahimi M. 2024. The most efficient machine learning algorithms in stroke prediction: A systematic review. Health Sci. Rep. 7: e70062. https://doi.org/10.1002/hsr2.70062
3. Lavanya, J. M., & Subbulakshmi, P. (2024). Unveiling the potential... Scientific Reports, 14, 20053. https://doi.org/10.1038/s41598-024-70354-1
4. Predicting stroke occurrences: a stacked machine learning approach with feature selection and data preprocessing. 2024. BMC Bioinform. 25: 58. https://doi.org/10.1186/s12859-024-05866-8
5. A novel approach to predict brain stroke using KNN in machine learning. 2023. Dalam: Proc. Int. Conf. Adv. Intell. Interact. Hum.-Comput. Interfaces (ICAIIHI). https://doi.org/10.1109/ICAIIHI57871.2023.10489301
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Risma Ananta Maulida, Suci Anisa Aulia, Ridho, Satrio Dzulfahmi Yulianto, Shania Clara Efendi, Maulana Fansyuri (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Creative Commons Attribution 4.0 International (CC BY 4.0).