Implementation Of The K-Nearest Neighbor (KNN) Algorithm For Classification Of Obesity Levels

  • Ayu Made Surya Indra Dewi Universitas Udayana
  • Ida Bagus Gede Dwidasmara Universitas Udayana

Abstract

Obesity or overweight is a health problem that can affect anyone. In research in several journals, it was found that obesity can be influenced by many factors, but the most dominant factors are lifestyle and diet. Obesity should not only be considered as a consequence of an unhealthy lifestyle, but obesity is a disease that can lead to other dangerous diseases. Therefore, it is important to know the level of obesity in order to take early prevention.


To determine the level of obesity, a classification method is used, namely K-Nearest Neighbor (KNN) to classify the level of obesity. In this study, classification was carried out with 16 test parameters, namely Gender, Age, Height, Weight, Family History With Overweight, FAVC, FCVC, NCP, CAEC, Smoke, CH2O, SCC, FAF, TUE, CALC, Mtrans and 1 class attribute, namely Nobesity. From tests carried out using the KNN algorithm, the results obtained are 78.98% accuracy with a value of k = 2.


Keywords: Obesity, KNN, Classification

Downloads

Download data is not yet available.
Published
2020-11-24
How to Cite
DEWI, Ayu Made Surya Indra; DWIDASMARA, Ida Bagus Gede. Implementation Of The K-Nearest Neighbor (KNN) Algorithm For Classification Of Obesity Levels. JELIKU (Jurnal Elektronik Ilmu Komputer Udayana), [S.l.], v. 9, n. 2, p. 277-284, nov. 2020. ISSN 2654-5101. Available at: <https://ojs.unud.ac.id/index.php/jlk/article/view/64434>. Date accessed: 19 nov. 2024. doi: https://doi.org/10.24843/JLK.2020.v09.i02.p15.