EUVIMEDEUVIMED entdecken
Open Access · CC BY-SA 4.0

Heart Disease Prediction Using Logistic Regression and K-Nearest Neighbor: A Comparative Study of Classification Algorithm Performance

Yan Risa Aspi Sururi, M. Asadullah Al Ghozi

International Journal Science and Technology · 29.07.2026 · 5 (2) · 248-260

DOI: 10.56127/ijst.v5i2.2092 ↗

Kurz gefasst

Fachartikel in der Zeitschrift International Journal Science and Technology, online erschienen am 29.07.2026. Verfasst von Yan Risa Aspi Sururi und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Heart disease remains one of the leading causes of mortality worldwide, highlighting the importance of accurate and timely prediction models to support early clinical decision-making.

Objective

This study aims to compare the predictive performance of Logistic Regression and K-Nearest Neighbor (KNN) algorithms for heart disease classification and to identify the most appropriate model for early screening. Methodology: A quantitative comparative research design was employed using the Cleveland Heart Disease dataset from the UCI Machine Learning Repository, consisting of 303 patient records. The data were divided into training and testing sets using an 80:20 split. Logistic Regression was developed using backward stepwise selection, while KNN used standardized numerical variables with K = 15. Model performance was evaluated using accuracy, sensitivity, specificity, and precision.

Findings

Logistic Regression outperformed KNN by achieving an accuracy of 83.6%, sensitivity of 93.5%, specificity of 73.3%, and precision of 78.4%. In comparison, KNN achieved an accuracy of 80.3%, sensitivity of 89.5%, specificity of 65.2%, and precision of 81.0%. These results indicate that Logistic Regression provides more reliable overall performance, particularly in identifying patients with heart disease.

Implications

The findings suggest that Logistic Regression is more suitable as a decision-support model for early heart disease screening due to its higher sensitivity, accuracy, and specificity. This model may support healthcare professionals in identifying at-risk patients and reducing the likelihood of missed heart disease cases. Originality: The originality of this study lies in its transparent comparison of Logistic Regression and KNN using a standardized benchmark dataset while emphasizing clinically relevant evaluation metrics, particularly sensitivity. This approach provides additional empirical evidence for selecting interpretable machine learning models in clinical prediction tasks.

Zitieren

APA

Sururi, Y. R. A., & Ghozi, M. A. A. (2026). Heart Disease Prediction Using Logistic Regression and K-Nearest Neighbor: A Comparative Study of Classification Algorithm Performance. International Journal Science and Technology, 5(2), 248-260. https://doi.org/10.56127/ijst.v5i2.2092

Vancouver

Sururi YRA, Ghozi MAA. Heart Disease Prediction Using Logistic Regression and K-Nearest Neighbor: A Comparative Study of Classification Algorithm Performance. International Journal Science and Technology. 2026;5(2):248-260. doi:10.56127/ijst.v5i2.2092

BibTeX
@article{Sururi2026,
  author = {Sururi, Yan Risa Aspi and Ghozi, M. Asadullah Al},
  title = {Heart Disease Prediction Using Logistic Regression and K-Nearest Neighbor: A Comparative Study of Classification Algorithm Performance},
  journal = {International Journal Science and Technology},
  year = {2026},
  volume = {5},
  number = {2},
  pages = {248--260},
  doi = {10.56127/ijst.v5i2.2092}
}
Kostenlos starten →