Skip to content
Open access

Data-Driven Stroke Prediction: Leveraging KNN for Early Detection in Clinical Datasets

Jul 2026 · Journal of Engineering Advancements · Vol 7, pp. 58-64 · 0 citations · 13 references

TL;DR

While the K-Nearest Neighbors algorithm demonstrates reasonable discriminative ability, the low precision suggests limited utility as a standalone diagnostic tool, and highlighting KNN's potential as a preliminary screening instrument when combined with clinical judgment.

Abstract

This study explores the application of the K-Nearest Neighbors (KNN) algorithm in predicting stroke risk using a healthcare dataset from Kaggle containing 5,110 patient records with demographic and clinical attributes. Preprocessing steps included categorical encoding, normalization, and feature engineering, followed by model training using a pipeline that incorporated SMOTE to address class imbalance. Hyperparameter tuning via GridSearchCV improved model performance. The final KNN model achieved an accuracy of 84%, with a recall of 0.64 and precision of 0.18 for the stroke class, indicating moderate sensitivity but significant false positive rates typical of imbalanced medical datasets. Evaluation metrics included the confusion matrix, ROC curve (AUC = 0.82), and precision-recall curve (AP = 0.19). While the model demonstrates reasonable discriminative ability, the low precision suggests limited utility as a standalone diagnostic tool. These findings contribute to the growing body of research on machine learning for clinical decision support, emphasizing the need for balanced performance metrics in imbalanced datasets and highlighting KNN's potential as a preliminary screening instrument when combined with clinical judgment.

Read PDF

Similar papers

Conference Aug 2026

An Explainable Machine Learning Framework for Early Detection of Chronic Kidney Disease Using Optimized SVM

The early detection of Chronic Kidney Disease (CKD) is critical in order to commence the right treatment and minimize the chances of the disease from progressing. This paper outlines an interpretable machine learning algorithm for chronic kidney disease classification based on a fine-tuned Support Vector Machine (SVM)....

Parthak Mehra, A. Bist, Devendra Singh et al. · 0 citations
Open access Aug 2026

Optimizing KNN Classification for Heart Disease Prediction Using Sequential Forward Selection

This study enhances a KNN model using Sequential Forward Selection (SFS) on the Cleveland dataset to optimize computational efficiency and precision while maintaining stable recall and successfully eliminated unstable features and reduced statistical noise.

Herman, Rusydi Umar, Deni Kuswandani · 0 citations
Conference Aug 2026

CGGF-NFHSTA Framework for Imbalance-Aware Stroke Risk Prediction with Explainable Hybrid Sampling

Stroke is a leading cause of death and disability and early risk prediction tools that can support clinical decision making are needed. But the problem of class imbalance, lack of adequate pre-processing and lack of interpretability impact stroke prediction using machine learning. To solve these problems, this study in...

R. Vanitha, V. Jaiganesh · 0 citations
Open access Sep 2026

Stroke Detection System Using Machine Learning

The proposed framework further integrates SHAP-based patient-level explainability and a Flask REST API with healthcare interoperability support and can be further extended toward IoT-based monitoring, federated learning, multimodal clinical data integration, and prospective clinical validation.

Dipti Gaikwad, Komal Dandge, G. Bhalekar et al. · 1 citation · ⚡1
Sep 2026

An ML-based Framework for Early Cerebral Stroke Prediction using Clinical Data.

Overall, the proposed framework advances early cerebral stroke diagnosis using structured clinical data and provides a strong foundation for AI-assisted stroke prediction using tabular healthcare data and contributes to preserving clinical decision support systems.

Asma Aldress · 0 citations
Open access Aug 2026

Artificial Intelligence-Based Clinical Risk Prediction Using Ensemble Machine Learning Algorithms

The outcomes demonstrate that the suggested ANN architecture can accurately and consistently assess clinical risk, which in turn allows for the early identification of high-risk patients and aids healthcare providers in making data-informed therapeutic decisions.

Shivani Jain · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.