Implementation of K-Nearest Neighbor Algorithm in Heart Disease Classification

  • Ni Kadek Sukma Putri Rahayu Universitas Udayana
  • I Komang Ari Mogi


The heart is an important organ that exists in the human body. The main function of the heart is to pump blood throughout the body through blood vessels. The WHO states that as many as 7.3 million people die from heart disease. In this study heart disease will be classified using the K-Nearest Neighbor algorithm. K-Nearest Neighbor algorithm is a classification algorithm based on the distance from data testing against training data with a pre-defined number of k. The results were obtained from performance measurements for the classification of heart disease with the K-Nearest Neighbor algorithm measured using the K-Fold Cross Validation algorithm, from an accuracy rate of 65.89%, a precision level of 66.27%, and a recall of 74.67%.


Download data is not yet available.
How to Cite
PUTRI RAHAYU, Ni Kadek Sukma; MOGI, I Komang Ari. Implementation of K-Nearest Neighbor Algorithm in Heart Disease Classification. JELIKU (Jurnal Elektronik Ilmu Komputer Udayana), [S.l.], v. 10, n. 1, p. 39-44, aug. 2021. ISSN 2654-5101. Available at: <>. Date accessed: 30 may 2024. doi:

Most read articles by the same author(s)

1 2 > >>