Journal of Student Research Exploration
Vol. 2 No. 2: July 2024

Classification of risk of death from heart disease or cigarette influence using the k-nearest neighbors (KNN) method

Muhammad Syafiq Fadhilah (Universitas Negeri Semarang, Indonesia)
Rini Muzayanah (Universitas Negeri Semarang, Indonesia)



Article Info

Publish Date
07 Jul 2024

Abstract

Heart disease is one of the leading causes of death in Indonesia. In addition to coronary heart disease, smoking is the leading contributor to the death rate in Indonesia. This study aims to analyze the risk of death with the main variables of heart disease history and smoking history. This study classifies the risk of death of heart disease sufferers and smokers using the KNearest Neighbors (KNN) algorithm. The results showed that the KNN model had an accuracy of 52.38% in predicting the risk of death of smokers and heart disease patients. Confusion matrix analysis revealed that the model performed well in predicting classes 0 and 2, but had difficulty in predicting class 1. This study shows that KNN can be used to predict the risk of death of smokers and patients with heart disease with a satisfactory success rate.

Copyrights © 2024






Journal Info

Abbrev

josre

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Electrical & Electronics Engineering

Description

The Journal of Student Research Exploration aim publishes articles concerning the design and implementation of computer engineering, information system, data models, process models, algorithms, and software for information systems. Subject areas include data management, data mining, machine ...