K-Nearest Neighbor Algorithm in Classification of Stunting Detection Dataset

Algoritma K-Nearest Neighbor dalam Klasifikasi Dataset Deteksi Stunting

Authors

  • Lea Angelina Universitas Muhammadiyah Semarang
  • Saeful Amri Universitas Muhammadiyah Semarang
  • M Al Haris Universitas Muhammadiyah Semarang
  • Rochdi Wasono Universitas Muhammadiyah Semarang
  • Erna Julia Nanga Universitas Muhammadiyah Semarang
  • Faninda Aidina Fitri Universitas Muhammadiyah Semarang

DOI:

https://doi.org/10.26714/jodi.v4i1.752

Keywords:

Accuracy, Classification, KNN, Machine Learning, Stunting

Abstract

Stunting is a nutritional problem that can affect children's physical growth and cognitive development and has a long-term impact on the quality of future generations. Early detection of stunting is crucial to enable timely and effective interventions. As technology advances, machine learning algorithms such as K-Nearest Neighbors (KNN) offer potential solutions to improve the accuracy of stunting risk classification. This study aims to design a classification model based on the K-Nearest Neighbors (KNN) algorithm in the early detection of stunting risk in toddlers. This research uses the 2024 stunting dataset obtained from Kaggle. The data is analyzed through the stages of cleaning, transformation, and division into training and testing data. The KNN model was tested with various K values to determine the optimal value. The results showed that the KNN model with a value of K=8 resulted in an accuracy of 93.80%, F1-Score of 93.65%, precision of 93.63%, and recall of 93.79%. This shows that KNN is reliable in classifying the nutritional status of toddlers and can be applied in stunting prevention efforts using more accurate data. This research contributes to developing machine learning-based classification systems that can support decision-making in public health programs, especially in reducing stunting rates.

Downloads

Download data is not yet available.

Downloads

Published

2026-06-30

How to Cite

Angelina, L., Amri, S., Al Haris, M., Wasono, R., Julia Nanga, E., & Aidina Fitri, F. (2026). K-Nearest Neighbor Algorithm in Classification of Stunting Detection Dataset: Algoritma K-Nearest Neighbor dalam Klasifikasi Dataset Deteksi Stunting. Journal Of Data Insights, 4(1), 19–26. https://doi.org/10.26714/jodi.v4i1.752

Most read articles by the same author(s)