Application of K-Nearest Neighbor to Classify Toddler Nutritional Status at Karang Rejo Community Health Center

Authors

  • Asriani Nurfadilah Prodi Sistem Informasi, STMIK PPKIA Tarakanita Rahmawati
  • Anto Anto Prodi Sistem Informasi, STMIK PPKIA Tarakanita Rahmawati
  • Muhammad Fadlan Prodi Sistem Informasi, STMIK PPKIA Tarakanita Rahmawati

DOI:

https://doi.org/10.71302/jbidai.v8i2.71

Keywords:

classification, k-nearest neighbor, nutritional status, toddlers

Abstract

The issue of nutritional status in toddlers is one of the crucial concerns in the health sector, particularly in efforts to prevent stunting and malnutrition. At Karang Rejo Public Health Center, the assessment of toddlers’ nutritional status is still conducted manually by relying on weight-based estimation, which makes the classification process less efficient and increases the risk of inaccuracies in determining nutritional status. This study aims to apply the K-Nearest Neighbor (K-NN) algorithm as a faster and more accurate method for classifying toddlers’ nutritional status. The research stages include data collection, data processing, and the application of the K-NN algorithm. The data used consist of 100 toddler records, including the variables of weight-for-age (BB/U), height-for-age (TB/U), and weight-for-height (BB/TB) as the basis for determining nutritional status. The results show that the application of the K-NN algorithm with an optimal k value of 3 is able to produce nutritional status classifications that are consistent with doctors’ assessments. Performance evaluation using a Confusion Matrix on the test data yields an accuracy of 100%, with precision and recall values also reaching 100% for each nutritional status category. These findings indicate that all test data are classified correctly. Therefore, the application of this method is expected to assist healthcare workers at Karang Rejo Public Health Center in diagnosing and monitoring toddlers’ nutritional status more effectively and efficiently.

References

[1] M. E. Setiyawati, L. P. Ardhiyanti, E. N. Hamid, N. Ayu, T. Muliarta, and Y. J. Raihanah, “Studi Literatur: Keadaan Dan Penanganan Stunting Di Indonesia”, doi: 10.37817/ikraith-humaniora.v8i2.

[2] R. Rizqi Robbi Arisandi, B. Warsito, and A. Rachman Hakim, “APLIKASI NAÏVE BAYES CLASSIFIER (NBC) PADA KLASIFIKASI STATUS GIZI BALITA STUNTING DENGAN PENGUJIAN K-FOLD CROSS VALIDATION,” vol. 11, no. 1, pp. 130–139, 2022, [Online]. Available: https://ejournal3.undip.ac.id/index.php/gaussian/

[3] S. Raysyah, V. Arinal, and D. I. Mulyana, “KLASIFIKASI TINGKAT KEMATANGAN BUAH KOPI BERDASARKAN DETEKSI WARNA MENGGUNAKAN METODE KNN DAN PCA,” Sistem Informasi |, vol. 8, no. 2, pp. 88–95, 2021.

[4] J. Homepage, S. Kenia, P. Loka, and A. Marsal, “MALCOM: Indonesian Journal of Machine Learning and Computer Science Comparison Algorithm of K-Nearest Neighbor and Naïve Bayes Classifier for Classifying Nutritional Status in Toddlers Perbandingan Algoritma K-Nearest Neighbor dan Naïve Bayes Classifier Untuk Klasifikasi Status Gizi Pada Balita,” vol. 3, pp. 8–14, 2023.

[5] L. Hakim, A. Sobri, L. Sunardi, and D. Nurdiansyah, “Prediksi penyakit jantung berbasis mesin learning dengan menggunakan metode k-nn,” Jurnal Digital Teknologi Informasi, vol. 7, no. 2, p. 14, Feb. 2025, doi: 10.32502/digital.v7i2.9429.

[6] F. Aziz, P. Ishak, and S. Abasa, “Klasifikasi Depresi Menggunakan Support Vector Machine: Pendekatan Berbasis Data Text Mining,” Journal Pharmacy and Application of Computer Sciences, vol. 2, no. 2, pp. 33–38, 2024, doi: 10.59823/jopacs.v2i2.53.

[7] D. Cahyanti, A. Rahmayani, and S. A. Husniar, “Analisis performa metode Knn pada Dataset pasien pengidap Kanker Payudara,” Indonesian Journal of Data and Science, vol. 1, no. 2, pp. 39–43, 2020, doi: 10.33096/ijodas.v1i2.13.

[8] H. D. S. Ferreira, “Anthropometric assessment of children’s nutritional status: A new approach based on an adaptation of Waterlow’s classification,” BMC Pediatr, vol. 20, no. 1, Feb. 2020, doi: 10.1186/s12887-020-1940-6.

[9] Y. Utami, R. Ratnawati, and S. Suhartiningsih, “PERAN PENTING POSYANDU BALITA DALAM MENINGKATAN STATUS GIZI IBU DAN ANAK DI DESA KERIK,” SWARNA: Jurnal Pengabdian Kepada Masyarakat, vol. 2, no. 7, pp. 779–783, Jul. 2023, doi: 10.55681/swarna.v2i7.756.

[10] M. I. P. Putra, D. T. Murdiansyah, and A. Aditsania, “Implementasi Algoritma Modified K-Nearest Neighbor ( MKNN ) untuk Klasifikasi Penyakit Kanker Payudara,” eProceedings of Engineering, vol. 6, no. 1, pp. 2431–2441, 2019.

[11] M. A. Vahedifar, A. Akhtarshenas, M. Sabbaghian, M. M. Rafatpanah, and R. Toosi, “Information Modified K-Nearest Neighbor,” pp. 1–9, 2023.

[12] R. Rahmadhani, A. Nazir, F. Syafria, and L. Afriyanti, “Analisis Perbandingan Algoritma C4.5 dan Modified K-Nearest Neighbor (MKNN) untuk Klasifikasi Jamur,” Jurnal Sistem Komputer dan Informatika (JSON), vol. 5, no. 2, p. 226, 2023, doi: 10.30865/json.v5i2.7052.

Published

12/31/2025

How to Cite

Nurfadilah, A., Anto, A., & Fadlan, M. (2025). Application of K-Nearest Neighbor to Classify Toddler Nutritional Status at Karang Rejo Community Health Center. Journal of Big Data Analytic and Artificial Intelligence, 8(2), 62–68. https://doi.org/10.71302/jbidai.v8i2.71