Machine Learning-Based Stunting Classification Using Puskesmas Nutritional Data: A Comparative Study of Six Algorithms with Hyperparameter Tuning

Authors

  • Asmaul Husna RS Makassar State University
  • Purnamawati Purnamawati Makassar State University
  • Hendra Jaya Makassar State University
  • Anas Arfandi Makassar State University

Keywords:

Anthropometric Data Child Nutrition Machine Learning Stunting Classification

Abstract

Stunting detection at Indonesia's community health centers (Puskesmas) still relies heavily on manual anthropometric assessment a process that is slow, inconsistent, and difficult to scale. This study applies machine learning to automate that classification using 40,071 real-world records from the Jeneponto Regency Health Department (2021–2024), covering three nutritional categories: Normal, Stunting, and Severe, derived from Height-for-Age Z-Scores per WHO standards. Six classifiers were compared: Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Gradient Boosting (GB). Each was tested in both default and tuned configurations, with hyperparameters optimised via GridSearchCV and stratified k-fold cross-validation. Preprocessing included invalid value removal, target leakage prevention, label encoding, StandardScaler normalisation, and stratified 80:20 splitting. Performance was measured using weighted Accuracy, Precision, Recall, and F1-Score. At baseline, RF led with 97.04% accuracy and 97.05% F1-Score, while LR trailed at 77.35% a gap that points to a non-linear classification boundary that linear models cannot handle. After tuning, GB came out ahead with 97.54% accuracy and F1-Score, overtaking RF at 97.22%. That reversal matters: it shows that GB's sequential architecture holds more capacity, but only delivers it when key parameters are properly configured. Tuned GB shows real promise as a decision-support tool for Puskesmas-level stunting screening at scale.

References

Akseer, N., Tasic, H., Nnachebe Onah, M., Wigle, J., Rajakumar, R., Sanchez-Hernandez, D., Akuoku, J., et al., Economic Costs of Childhood Stunting to the Private Sector in Low- and Middle-Income Countries, EClinicalMedicine, vol. 45, p. 101320, from https://www.sciencedirect.com/science/article/pii/S2589537022000505, 2022. DOI: https://doi.org/10.1016/j.eclinm.2022.101320

Armando Sibuea, A. T., Harry Gunawan, P., and Indwiarti, Classifying Stunting Status in Toddlers Using K-Nearest Neighbor and Logistic Regression Analysis, 2024 International Conference on Data Science and Its Applications (ICoDSA), pp. 6–11, 2024.

Arqam, Mhd. L., Firdaus, A. A., Atmojo, A. M., Saputri, G. Z., Furizal, Palahuddin and Sirnopati, R., Integrating Education-Based Interventions and Machine Learning for Stunting Prevention: A Case Study in East Lombok, Indonesia, Dialogues in Health, vol. 8, p. 100264, from https://www.sciencedirect.com/science/article/pii/S2772653325000620, 2026. DOI: https://doi.org/10.1016/j.dialog.2025.100264

Arya, P. K., Sur, K., Kundu, T., Dhote, S. and Singh, S. K., Unveiling Predictive Factors for Household-Level Stunting in India: A Machine Learning Approach Using NFHS-5 and Satellite-Driven Data, Nutrition, vol. 132, p. 112674, from https://www.sciencedirect.com/science/article/pii/S089990072400323X, 2025. DOI: https://doi.org/10.1016/j.nut.2024.112674

Azis, D. M., Fauzi, R., and Suakanto, S., Development of Stunting Prediction Features to Prevent Stunting Using Support Vector Machine (SVM) Algorithm, 2024 International Conference on Digital Business and Technology Management (ICONDBTM), pp. 1–6, 2024.

Bukit, D. S., Lydia, M. S., Nainggolan, P. I., Mahmud, H. I., Sembiring, R. M., Hasibuan, R. M., Athirah, D., Mufida, F. M., and Rahmat, R. W. B. O. K., Leveraging Machine Learning Techniques for Stunting Detection and Height Growth Prediction in Children Aged 0-5 Years, 2024 8th International Conference on Electrical, Telecommunication and Computer Engineering (ELTICOM), pp. 130–34, 2024.

Erda, G., Yolanda, A. M., Adnan, A., Alika, E. R., and Erda, Z., Advanced Machine Learning Techniques for Stunting Classification Using a Stacking Ensemble Approach, 2024 4th International Conference on Electrical Engineering and Informatics (ICon EEI), pp. 79–84, 2024.

Fadhilah, D. N., and Gunawan, P. H., Support Vector Machine-Based Classification of Toddler Stunting in Bandarharjo, 2024 IEEE International Conference on Communication, Networks and Satellite (COMNETSAT), pp. 263–67, 2024.

Fannany, C., Gunawan, P. H., and Aquarini, N., Machine Learning Classification Analysis for Proactive Prevention of Child Stunting in Bojongsoang: A Comparative Study, 2024 International Conference on Data Science and Its Applications (ICoDSA), pp. 1–5, 2024.

Firdausi, L., and Gunawan, P. H., Stunting Analysis of Toddlers in Kota Baru, West Bekasi Using K-Nearest Neighbor and Naive Bayes, 2025 International Conference on Data Science and Its Applications (ICoDSA), pp. 400–405, 2025.

Gunawan, R., Pratama, R., Impron, A., Rahmatulloh, A., Darmawan, I., and Rizal, R., Optimization of the Support Vector Machine Method with Forward Selection for Stunting Disease Detection, 2025 Tenth International Conference on Informatics and Computing (ICIC), pp. 1–6, 2025.

Hendy, A., Abdelaliem, S. M. F., Sultan, H. M., Alahmedi, S. H., Ibrahim, R. K., Abdelrazek, E. M. E., Elmahdy, M. A. A. and Hendy, A., Unlocking Insights: Using Machine Learning to Identify Wasting and Risk Factors in Egyptian Children under 5, Nutrition, vol. 131, p. 112631, from https://www.sciencedirect.com/science/article/pii/S0899900724002806, 2025. DOI: https://doi.org/10.1016/j.nut.2024.112631

Janssen, S. M. W., Bouzembrak, Y., Yalcin, N. and Tekinerdogan, B., Machine Learning Models for Predicting Malnutrition in NICU Patients: A Comprehensive Benchmarking Study, Computers in Biology and Medicine, vol. 192, p. 110326, from https://www.sciencedirect.com/science/article/pii/S0010482525006778, 2025. DOI: https://doi.org/10.1016/j.compbiomed.2025.110326

Kani, R., and Gunawan, P. H., Classification of Stunting in Toddlers from Bandarharjo Using K-Nearest Neighbors and Random Forest Algorithms, 2024 IEEE International Conference on Communication, Networks and Satellite (COMNETSAT), pp. 258–62, 2024.

Kanz, A. F., Johanes, L. P., Alam, I. N., and Wulandhari, L. A., Stunting Prediction in Children Using Random Forest Algorithm, 2024 6th International Conference on Cybernetics and Intelligent System (ICORIS), pp. 1–4, 2024.

Khoirunnisa, K., and Gunawan, P. H., Analysis of Stunting Prediction for Toddlers in Bekasi Regency Using the K-Nearest Neighbors and Random Forest Algorithms, 2024 International Conference on Intelligent Cybernetics Technology & Applications (ICICyTA), pp. 932–36, 2024.

Lestari, A. D., Harry Gunawan, P., and Darwiyanto, E., Comparison of Naive Bayes and Support Vector Machine Performance in Classification of Child Stunting Status in Pemalang Regency, 2025 IEEE International Conference on Communication, Networks and Satellite (COMNETSAT), pp. 545–51, 2025.

Mgomezulu, W. R., Thangata, P., Mkandawire, B. and Amoah, N., Advancing Predictive Analytics in Child Malnutrition: Machine, Ensemble and Deep Learning Models with Balanced Class Distribution for Early Detection of Stunting and Wasting, Human Nutrition & Metabolism, vol. 42, p. 200340, from https://www.sciencedirect.com/science/article/pii/S2666149725000441, 2025. DOI: https://doi.org/10.1016/j.hnm.2025.200340

Miranda, E., Aryuni, M., Zakiyyah, A. Y., Kurniawati, Y. E., Sano, A. V. D. and Kumbangsila, M., An Early Prediction Model for Toddler Nutrition Based on Machine Learning from Imbalanced Data, Procedia Computer Science, vol. 245, pp. 263–71, from https://www.sciencedirect.com/science/article/pii/S187705092403059X, 2024. DOI: https://doi.org/10.1016/j.procs.2024.10.251

Nduwayezu, G., Zhao, P., Pilesjö, P., Bizimana, J. P. and Mansourian, A., Multilevel Small-Area Childhood Stunting Risk Estimation: Insights from Spatial Ensemble Learning, Agro-Ecological and Environmentally Remotely Sensed Indicators, Environmental and Sustainability Indicators, vol. 27, p. 100822, from https://www.sciencedirect.com/science/article/pii/S2665972725002430, 2025. DOI: https://doi.org/10.1016/j.indic.2025.100822

Nur, Y. S. R., Aldo, D., Sa’Adah, A., and Faizah, Implementation of PC Algorithm to the Incidence Factor of Stunting Disease, 2024 International Conference on Information Technology Research and Innovation (ICITRI), pp. 93–98, 2024.

Prabiantissa, C. N., Yamani, L. N., Hakimah, M., Puspitasari, I., and Rozi, N. F., Implementation of Artificial Neural Network (ANN) to Construct Model for Stunting in Toddlers, 2024 IEEE International Conference on Artificial Intelligence and Mechatronics Systems (AIMS), pp. 1–5, 2024.

Rahutomo, R., Elwirehardja, G. N., Isnan, M., Asadi, F., and Pardamean, B., Machine Learning Implementations in Childhood Stunting Research: A Systematic Literature Review, 2023 International Conference on Information Management and Technology (ICIMTech), pp. 229–34, 2023.

Sadler, K., James, P. T., Bhutta, Z. A., Briend, A., Isanaka, S., Mertens, A., Myatt, M., et al., How Can Nutrition Research Better Reflect the Relationship Between Wasting and Stunting in Children? Learnings from the Wasting and Stunting Project, The Journal of Nutrition, vol. 152, no. 12, pp. 2645–51, from https://www.sciencedirect.com/science/article/pii/S0022316623086522, 2022. DOI: https://doi.org/10.1093/jn/nxac091

Shevaldo, G., and Gunawan, P. H., Improving Stunting Detection in Toddlers with Boosted KNN and Boosted Naïve Bayes Techniques, 2024 International Conference on Intelligent Cybernetics Technology & Applications (ICICyTA), pp. 326–31, 2024.

Shi, H., Yang, D., Tang, K., Hu, C., Li, L., Zhang, L., Gong, T. and Cui, Y., Explainable Machine Learning Model for Predicting the Occurrence of Postoperative Malnutrition in Children with Congenital Heart Disease, Clinical Nutrition, vol. 41, no. 1, pp. 202–10, from https://www.sciencedirect.com/science/article/pii/S0261561421005070, 2022. DOI: https://doi.org/10.1016/j.clnu.2021.11.006

Sudigyo, D., Hidayat, A. A., Nirwantono, R., Rahutomo, R., Trinugroho, J. P. and Pardamean, B., Literature Study of Stunting Supplementation in Indonesian Utilizing Text Mining Approach, Procedia Computer Science, vol. 216, pp. 722–29, from https://www.sciencedirect.com/science/article/pii/S1877050922022670, 2023. DOI: https://doi.org/10.1016/j.procs.2022.12.189

Sundjaya, T., Djuwita, R., Adisasmita, A. C., Tanjung, C., Massi, N., Fikri, B., Pradnyaparamitha, D. A. and Basrowi, R. W., Gut Microbiome Changes among Undernutrition and Stunting Infants and Children under 2 Years: A Scoping Review, The Open Public Health Journal, vol. 17, from https://www.sciencedirect.com/science/article/pii/S1874944524001138, 2024. DOI: https://doi.org/10.2174/0118749445319116240729045056

Yosep, I., Kurniawan, K., Rafiyah, I., Ramdhani, M. R. and Hikmat, R., The Need for Chatbot-Based Emotional Counseling for Parents with Stunting Children: A Qualitative Descriptive Study, International Journal of Africa Nursing Sciences, p. 101076, from https://www.sciencedirect.com/science/article/pii/S2214139126001034, 2026. DOI: https://doi.org/10.1016/j.ijans.2026.101076

Yulianto, S. A., Solimun, S., Efendi, A., Alim, V. I. A., Jauhar, H. S. Al, Rejeki, S. W. S. and Rinaldo Fernandes, A. A., Predicting Nutritional and Physical Stunting in Malang District:, International Journal of Reliable and Quality E-Healthcare, vol. 14, no. 1, from https://www.sciencedirect.com/science/article/pii/S2160955125000051, 2025. DOI: https://doi.org/10.4018/IJRQEH.395752

Downloads

Published

2026-05-05

How to Cite

RS, A. H., Purnamawati, P., Jaya, H., & Arfandi, A. (2026). Machine Learning-Based Stunting Classification Using Puskesmas Nutritional Data: A Comparative Study of Six Algorithms with Hyperparameter Tuning. International Conference on Artificial Intelligence and the Digital Commons, 1(1), 162–175. Retrieved from https://internationalconference.pasqapro.com/index.php/icaidc/article/view/211

Similar Articles

1 2 3 > >> 

You may also start an advanced similarity search for this article.