Journal of Data Insights
Vol 4 No 1 (2026): Journal of Data Insights

K-Nearest Neighbor Algorithm in Classification of Stunting Detection Dataset: Algoritma K-Nearest Neighbor dalam Klasifikasi Dataset Deteksi Stunting

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)



Article Info

Publish Date
30 Jun 2026

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.

Copyrights © 2026






Journal Info

Abbrev

jodi

Publisher

Subject

Computer Science & IT Mathematics

Description

The Journal of Data Insights is an open access publication for peer-reviewed scholarly journals. The Journal of Data Insights focuses on the processing, analysis and interpretation of data for data-driven decisions and solutions in industry, hospitals, government and universities. All articles ...