Comparative Study of Logistic Regression and K-Nearest Neighbor for Heart Disease Prediction

This study aims to analyze the performance comparison between two classification algorithms, Logistic Regression and K-Nearest Neighbors (KNN), in predicting heart disease using the available dataset. Heart disease is one of the leading causes of death worldwide, making it essential to develop an effective prediction system. Logistic Regression and KNN were selected due to their proven effectiveness in previous studies. The research process began with data preprocessing, followed by data splitting using K-Fold Cross Validation, and evaluation using accuracy, precision, recall, and f1-score metrics. The results showed that Logistic Regression outperformed KNN, achieving an accuracy of 89%, compared to KNN’s accuracy of 80%. Logistic Regression also demonstrated higher consistency in capturing patterns within the dataset. Therefore, Logistic Regression is considered more effective in predicting heart disease compared to KNN in this study.

Authors

Institutions

Publication Details

Published
2024-12-11
DOI
https://doi.org/10.1109/isriti64779.2024.10963435
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Study of Logistic Regression and K-Nearest Neighbor for Heart Disease Prediction

Widodo Widodo, Murien Nugraheni, Abyan Ozaga
Artificial Intelligence in Healthcare
article

Comparative Study of Logistic Regression and K-Nearest Neighbor for Heart Disease Prediction

Widodo Widodo, Murien Nugraheni, Abyan Ozaga
article en

Abstract

This study aims to analyze the performance comparison between two classification algorithms, Logistic Regression and K-Nearest Neighbors (KNN), in predicting heart disease using the available dataset. Heart disease is one of the leading causes of death worldwide, making it essential to develop an effective prediction system. Logistic Regression and KNN were selected due to their proven effectiveness in previous studies. The research process began with data preprocessing, followed by data splitting using K-Fold Cross Validation, and evaluation using accuracy, precision, recall, and f1-score metrics. The results showed that Logistic Regression outperformed KNN, achieving an accuracy of 89%, compared to KNN’s accuracy of 80%. Logistic Regression also demonstrated higher consistency in capturing patterns within the dataset. Therefore, Logistic Regression is considered more effective in predicting heart disease compared to KNN in this study.

State University of Jakarta (ID)
Openalex Percentile: Top 60%
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.