JOURNAL ARTICLE

Heart Attack Prediction using KNN, Naive Bayes and decision tree

Khanna, ShanK., Karthi

Year: 2025 Journal:   Zenodo (CERN European Organization for Nuclear Research)   Publisher: European Organization for Nuclear Research

Abstract

Title: Enhanced Heart Attack Prediction Using KNN, Naive Bayes, and Decision Tree Models Description: This research paper presents a comparative analysis of three fundamental machine learning algorithms—K-Nearest Neighbors (KNN), Naive Bayes, and Decision Tree—for the purpose of predicting the likelihood of heart attacks using real-world cardiovascular data. The dataset includes over 70,000 patient records with features such as age, gender, blood pressure, cholesterol, glucose levels, and BMI. The research follows a complete machine learning pipeline, including data cleaning, feature encoding, normalization, correlation analysis, and model training and evaluation. The performance of the models was measured using accuracy, precision, recall, and F1-score. Visual tools like heatmaps, confusion matrices, and feature importance plots were used to interpret and compare the models effectively. The findings indicate that the Decision Tree classifier outperformed the others in terms of accuracy and interpretability, while Naive Bayes proved computationally efficient. KNN performed well with parameter tuning via GridSearchCV. This study highlights the importance of model selection in healthcare analytics and proposes future work involving real-time dashboards and expanded datasets. Authors: Shan Khanna, Karthi K. Affiliation: Department of MCA, Chanakya University, Bengaluru, Karnataka, India Keywords: Heart attack prediction, Machine Learning, KNN, Naive Bayes, Decision Tree, Cardiovascular Disease, Medical Data, Health Analytics

Keywords:
Naive Bayes classifier Decision tree Feature selection Decision tree learning Feature (linguistics) Random forest Classifier (UML) Confusion

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.57
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Prenatal Screening and Diagnostics
Health Sciences →  Medicine →  Pediatrics, Perinatology and Child Health
Pregnancy and preeclampsia studies
Health Sciences →  Medicine →  Obstetrics and Gynecology
Pregnancy and Medication Impact
Health Sciences →  Medicine →  Public Health, Environmental and Occupational Health

Related Documents

JOURNAL ARTICLE

Heart Attack Prediction using KNN, Naive Bayes and decision tree

Khanna, ShanK., Karthi

Journal:   Zenodo (CERN European Organization for Nuclear Research) Year: 2025
JOURNAL ARTICLE

Disease prediction using naive bayes, random forest, decision tree, KNN algorithms

Jyothi PylaK. LokeshD. DakshayaniSri G. KavyaKavya K. Sri

Journal:   i-manager s Journal on Computer Science Year: 2024 Vol: 11 (4)Pages: 12-12
JOURNAL ARTICLE

Analysis and Prediction of Heart Disease Using Decision Tree and Naive Bayes

Megha Rani RaigondaVaishnavi Vaishnavi

Journal:   International Journal of Scientific Research in Computer Science Engineering and Information Technology Year: 2017 Vol: 2 (4)Pages: 303-308
JOURNAL ARTICLE

Heart disease prediction using naive bayes, decision tree warm weighted associated rule mining

MahendhiranHarshanT. Nandha KumarT. Senthil Kumar

Journal:   AIP conference proceedings Year: 2024 Vol: 2742 Pages: 020020-020020
© 2026 ScienceGate Book Chapters — All rights reserved.