z-logo
open-access-imgOpen Access
KNN Algorithm Used for Heart Attack Detection
Author(s) -
Ibrahima Bah
Publication year - 2021
Language(s) - English
Resource type - Journals
ISSN - 1858-7313
DOI - 10.52981/fjes.v11i1.758
Subject(s) - computer science , artificial intelligence , machine learning , classifier (uml) , test set , cross validation , algorithm , pattern recognition (psychology)
Machine Learning, a branch of artificial intelligence, has become more accurate than human medical professionals in predicting the incidence of heart attack or death in patients at risk of coronary artery disease. In this paper, we attempt to employ Artificial Intelligence (AI) to predict heart attack. For this purpose, we employed the popular classification technique named the K-Nearest Neighbor (KNN) algorithm to predict the probability of having the Heart Attack (HA). The dataset used is the cardiovascular dataset available publicly on Kaggle, knowing that someone suffering from cardiovascular disease is likely to succumb to a heart attack. In this work, the research was conducted using two approaches. We use the KNN classifier for the first time, aided by using a correlation matrix to select the best features manually and faster computation, and then optimize the parameters with the K-fold cross-validation technique. This improvement led us to have an accuracy of 72.37% on the test set.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here