Heart Attack Prediction Using Machine Learning Models: A Comparative Study of Naive Bayes, Decision Tree, Random Forest, and K-Nearest Neighbors

Heart disease is the leading cause of death across the world. However, such an early prediction of heart attacks can save lives if clinical data are used to predict it accurately. For this, we use four machine learning models: Naive Bayes, Decision Tree, Random Forest and K-Nearest Neighbors (KNN) to predict heart attacks from the data of the patients. Models developed achieved an average accuracy of 65.08%; however, this paper explores the performance of these models in real world healthcare applications. Our focus is on improving model performance by improving the quality of the data, the features and hyperparameter tuning. Future directions indicate combining deep learning techniques and larger dataset for more accurate prediction.

Authors

Institutions

Publication Details

Published
2025-09-28
DOI
https://doi.org/10.3390/engproc2025107121
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Heart Attack Prediction Using Machine Learning Models: A Comparative Study of Naive Bayes, Decision Tree, Random Forest, and K-Nearest Neighbors

Michael Haider, Manzoor Hussain, Gina Purnama Insany
Machine Learning in Healthcare
article

Heart Attack Prediction Using Machine Learning Models: A Comparative Study of Naive Bayes, Decision Tree, Random Forest, and K-Nearest Neighbors

Michael Haider, Manzoor Hussain, Gina Purnama Insany
article en

Abstract

Heart disease is the leading cause of death across the world. However, such an early prediction of heart attacks can save lives if clinical data are used to predict it accurately. For this, we use four machine learning models: Naive Bayes, Decision Tree, Random Forest and K-Nearest Neighbors (KNN) to predict heart attacks from the data of the patients. Models developed achieved an average accuracy of 65.08%; however, this paper explores the performance of these models in real world healthcare applications. Our focus is on improving model performance by improving the quality of the data, the features and hyperparameter tuning. Future directions indicate combining deep learning techniques and larger dataset for more accurate prediction.

Universitas Wijaya Putra (ID), Indus University (PK), Universitas Muhammadiyah Sukabumi (ID), University of Sialkot
Openalex Percentile: Top 86%
Machine Learning 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.