Prediction of Nutritional Status of Students Receiving Nutritious Meals (MBG) Using the K-Nearest Neighbor (K-NN) Algorithm
DOI:
https://doi.org/10.59934/jaiea.v6i1.2924Keywords:
Body Mass Index, K-Nearest Neighbor, Nutritional Status, Students, Nutritious MealsAbstract
Student nutritional status is an important aspect that needs attention because nutritional conditions can affect physical growth, health, immunity, learning concentration, and academic achievement. Monitoring the nutritional status of students receiving the Free Nutritious Meals Program at Tunas Bangsa Foundation, Binjai District, Langkat Regency, is still conducted manually, making the identification of students' nutritional conditions less optimal. This problem requires a classification method that can assist in systematically and data-based grouping of students' nutritional status. This study aims to apply the K-Nearest Neighbor (KNN) algorithm to predict the nutritional status of students receiving the Free Nutritious Meals Program. The dataset consists of 583 student records, including 483 training data and 100 testing data, with variables consisting of age, body weight, height, nutritious meal consumption, meal frequency, medical history, and Body Mass Index (BMI). The classification process uses the KNN algorithm with Euclidean Distance to determine data similarity and majority voting to determine the class. Based on testing using 100 testing data with K = 3, 95 data were correctly classified and 5 data were incorrectly classified, resulting in an accuracy of 95.00%. The results indicate that the KNN algorithm is capable of classifying students into three nutritional status categories: Underweight, Normal, and Overweight, and can be implemented in an application developed using MATLAB GUIDE R2015b to perform classification, display nearest neighbors, and present evaluation results including Confusion Matrix, Precision, Recall, and F1-Score. Therefore, the KNN algorithm can be used as an alternative supporting method for assessing students' nutritional status.
Downloads
References
B. A. Chahyanto and Y. Susilo, “Status Gizi Remaja Sekolah Menengah Atas/Sederajat Usia 13–18 Tahun di Kota Sibolga,” vol. 3, pp. 74–86, 2025.
G. Prasetya, A. N. Sartika, A. E. Sari, T. M. Fadhilah, Noerfitri, and P. R. Alamsyah, “Edukasi Gizi Seimbang dan Penilaian Status Gizi pada Remaja SMA/SMK di Kota/Kabupaten Bekasi,” pp. 7–14, 2023.
A. Rahmah, O. Linda, and D. K. Hamal, “Faktor-Faktor yang Berhubungan dengan Status Gizi pada Remaja di SMP Negeri 262 Jakarta Timur Tahun 2024,” vol. 3, no. 3, pp. 549–563, 2024, doi: 10.55123/sehatmas.v3i3.3974.
Badan Kebijakan Pembangunan Kesehatan, “Survei Status Gizi Indonesia (SSGI) 2024,” 2026.
Asnia, D. S. Effendy, and Ruwiah, “Hubungan Pengetahuan Gizi dengan Status Gizi pada Remaja Putri di SMP Negeri 5 Kendari Tahun 2024,” 2025.
A. K. F. Ayu, P. F. U. Abshar, and K. Rofiah, “Program Makan Bergizi Gratis (MBG) dalam Perspektif Keadilan Sosial dan Dinamika Sosial–Politik,” Jurnal Keindonesiaan, vol. 5, no. 1, 2025, doi: 10.52738/pjk.v5i1.726.
R. Buaton, Novriyenni, A. Sihombing, and I. R. R. Sidabukke, “Clustering and Association Rule Data Mining for Student Performance Optimization in Free Nutritious Meal Programs Using the Apriori Algorithm and K-Means,” Tenth International Conference on Informatics and Computing (ICIC), 2025, doi: 10.1109/ICIC68054.2025.11309371.
E. Saputri, “Teknik dan aplikasi data mining di Indonesia: tinjauan literatur satu dekade (2015–2024),” Jurnal Penerapan Teknologi Informasi dan Komunikasi, vol. 4, pp. 138–149, 2025, doi: 10.24246/itexplore.v4i2.2025.pp138-149.
S. K. P. Loka and A. Marsal, “Perbandingan Algoritma K-Nearest Neighbor dan Naïve Bayes Classifier Untuk Klasifikasi Status Gizi Pada Balita,” Indonesian Journal of Machine Learning and Computer Science, vol. 3, pp. 8–14, 2023.
M. Yunus and N. K. A. Pratiwi, “Prediksi Status Gizi Balita Dengan Algoritma K-Nearest Neighbor (KNN) di Puskemas Cakranegara,” vol. 4, no. 4, pp. 221–231, 2023, doi: 10.35746/jtim.v4i4.328.
D. Wijayanti, A. Hermawan, D. Avianto, et al., “Penerapan Algoritma K-Nearest Neighbor Untuk Deteksi Dini,” vol. 10, no. 2, 2024.
A. Maulana, C. Ramadhani, and A. Zainuddin, “Penerapan Algoritma K-Nearest Neighbor (KNN) Untuk Penentuan Status Stunting Pada Balita,” 2022.
M. A. Aulia, R. Goejantoro, and M. N. Hayati, “Penerapan Metode Klasifikasi K-Nearest Neighbor (Studi Kasus: Data Status Gizi Balita di Puskesmas Baqa Samarinda Seberang),” pp. 128–142, 2023.
A. S. Ritonga and I. Muhandhis, “Aplikasi Berbasis Website Untuk Mendeteksi Status Gizi Balita Menggunakan Metode K-Nearest Neighbors (KNN),” Journal of System and Computer Engineering, vol. 5, no. 1, pp. 44–55, 2024.
Hafsah, A. B. Fauziah, R. Akmal, and D. Q. P. Putra, “Prediksi Status Gizi Balita di Kabupaten Bantaeng Menggunakan K-Nearest Neighbour (KNN),” Media Informasi IT STMIK Handayani, vol. 16, no. 2, pp. 113–122, 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








