CFP last date
01 October 2024
Reseach Article

Prediction of Risk of Heart Attack using Machine Learning Techniques

by Kartik Deogire, Sahil Dhake, Shreevallabh Chidrawar, Dhanashree Patil
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 186 - Number 21
Year of Publication: 2024
Authors: Kartik Deogire, Sahil Dhake, Shreevallabh Chidrawar, Dhanashree Patil
10.5120/ijca2024923639

Kartik Deogire, Sahil Dhake, Shreevallabh Chidrawar, Dhanashree Patil . Prediction of Risk of Heart Attack using Machine Learning Techniques. International Journal of Computer Applications. 186, 21 ( May 2024), 20-29. DOI=10.5120/ijca2024923639

@article{ 10.5120/ijca2024923639,
author = { Kartik Deogire, Sahil Dhake, Shreevallabh Chidrawar, Dhanashree Patil },
title = { Prediction of Risk of Heart Attack using Machine Learning Techniques },
journal = { International Journal of Computer Applications },
issue_date = { May 2024 },
volume = { 186 },
number = { 21 },
month = { May },
year = { 2024 },
issn = { 0975-8887 },
pages = { 20-29 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume186/number21/prediction-of-risk-of-heart-attack-using-machine-learning-techniques/ },
doi = { 10.5120/ijca2024923639 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-05-31T22:31:49.882669+05:30
%A Kartik Deogire
%A Sahil Dhake
%A Shreevallabh Chidrawar
%A Dhanashree Patil
%T Prediction of Risk of Heart Attack using Machine Learning Techniques
%J International Journal of Computer Applications
%@ 0975-8887
%V 186
%N 21
%P 20-29
%D 2024
%I Foundation of Computer Science (FCS), NY, USA
Abstract

The usefulness of machine learning models in forecasting the risk of a heart attack based on health-related variables is examined in this study. The classification models Gaussian Naive Bayes, K-Nearest Neighbors and Random Forest were created and assessed using performance measures like recall, accuracy, precision, F1-score. The dataset was heavily preprocessed, handling null values, duplicates, outliers, and feature transformation. It had 10 predictor variables and a target variable with 5110 observations. The most instructive elements for model training were found using feature selection approaches. Using k-fold cross-validation for KNN and GridSearchCV for Random Forest, hyperparameter tweaking was carried out for the models on the remaining 25% of the dataset after they had been trained on 75% of it. The results show that KNN outperformed Gaussian Naive Bayes and Random Forest, with the greatest accuracy of 96.4% following hyperparameter adjustment. SMOTE was also used to improve model robustness by addressing class imbalance. In summary, this study's best model for predicting the likelihood of a heart attack was KNN. These results demonstrate how machine learning models can improve early detection and individualized patient care by advancing risk assessment and intervention tactics in the healthcare industry.

References
  1. Majid Khan, Ghassan Husnain, Waqas Ahmad1, Zain Shaukat1, Latif Jan, Ehtesham Ul Haq, Shahab Ul Islam, Atif Ishtiaq: Performance Evaluation of Machine Learning Models to Predict Heart Attack, (2023).
  2. V Sai Krishna Reddy, P Meghana1, N V Subba Reddy, B Ashwath Rao: Prediction on Cardiovascular disease using Decision tree and Naïve Bayes classifiers. Accessed via:DOI:10.1088/1742-6596/2161/1/012015, (2022).
  3. K. Vembandasamy, R R. Sasipriya and E. Deepa: Heart Diseases Detection Using Naive Bayes Algorithm, (2015).
  4. Tanvi S. Patel, Daxesh P. Patel, Mallika Sanyal, Pranav S. Shrivastav: Prediction of Heart Disease and Survivability using Support Vector Machine and Naive Bayes Algorithm. Accessed via: https://doi.org/10.1101/2023.06.09.543776 ,(2023).
  5. Madhumita Pal and Smita Parija: Prediction of Heart Diseases using Random Forest. Accessed via: doi:10.1088/1742-6596/1817/1/012009, (2020).
  6. Xinyi Liu, Siyuan Su, Baoyi Wang, Xuewei Zhang: Prediction of Heart Disease Based on Logistic Regression and Random Forest Models, (2023).
  7. Rupali Atul Mahajan1, Dr. Balasaheb Balkhande, Dr. Kirti Wanjale, Dr. Abhijit Chitre, Tushar Ankush Jadhav, Dr. Sheela Naren Hundekari: Enhancing Heart Disease Risk Prediction Accuracy through Ensemble Classification Techniques. Accessed via: https://www.researchgate.net/publication/375342579, (2023).
  8. Ketut Agung Enriko, Muhammad Suryanegara, Dadang Gunawan: Heart Disease Prediction System using k-Nearest Neighbor Algorithm with Simplified Patient's Health Parameters. Accessed via: t: https://www.researchgate.net/publication/313717803 ,(2016)
  9. Harshit Jindal: Heart Disease Prediction Using Machine Learning Techniques, (2021).
  10. Shinde, P., Yenkikar, A., Kembhavi, S., Patil, D. (2023). Performance Analysis of Classification Techniques in Heart Disease Prediction. In: Choudrie, J., Mahalle, P.N., Perumal, T., Joshi, A. (eds) IOT with Smart Systems. ICTIS 2023. Lecture Notes in Networks and Systems, vol 720. Springer, Singapore. https://doi.org/10.1007/978-981-99-3761-5_3 (2023).
Index Terms

Computer Science
Information Sciences

Keywords

Heart Attack Prediction Machine Learning Models K-Nearest Neighbors (KNN) Gaussian Naive Bayes Random Forest Data Preprocessing SMOTE Hyperparameter Tuning Healthcare Data Risk Prediction.