Jurnal Analis Medika Biosains (JAMBS) Vol. No. March 2026, pp. E-ISSN: 2656-2456 http://jambs. poltekkes-mataram. id/index. php/home DOI: 10. 32807/jambs. TODDLER NUTRITIONAL STATUS CLASSIFICATION FOR EARLY DETECTION OF MALNUTRITION USING XGBOOST: A CASE STUDY OF WEST LOMBOK REGENCY Lalu Muhammad Risgan Nazwa1. Rakhmadi Irfansyah Putra 2. Siti Zaetun3 Institute Technonolgy PLN, 3Department of Medical Laboratory Technology. Poltekkes Kemenkes Mataram. Indonesia Email: lalurisgan@gmail. Article Info Article history : Received : x Revised : x Accepted : x Keyword : XGBoost. Machine Learning. Toddler Nutritional Status. Anthropometry. Early Detection of Malnutrition. Class Imbalance ABSTRACT Malnutrition among toddlers remains a critical challenge in West Lombok Regency, with a stunting prevalence reaching 32. 7% in 2022. This study aims to develop a classification system for toddlers' nutritional status using XGBoost, with class imbalance handled through SMOTE. The dataset consists of 788 toddlers aged 24Ae59 months from 12 villages in West Lombok District. Preprocessing steps include filtering biologically invalid values based on WHO criteria, normalization using Min Max Scaler, and feature engineering through anthropometric ratios such as weight-for-height (WHZ) and heightfor-age (HAZ). The data is split using a stratified approach with an 80:20 ratio, and SMOTE is applied exclusively to the training set. Evaluation using macro F1-score and minority class recall shows that XGBoost achieves an F1-score of 94. 3% and a recall of 92. 1% for severe malnutrition, significantly outperforming Random Forest . 7%). KNN . 2%). Nayve Bayes . 5%), and Decision Tree . 8%). A Streamlit-based prototype was also developed as a practical interface for community health workers . osyandu cadre. , featuring prediction tools, distribution visualizations, and automated referral recommendations. The results demonstrate that XGBoost combined with SMOTE is effective in improving early detection of minority malnutrition cases in imbalanced populations, supporting stunting reduction targets. INTRODUCTION Indonesia, as the fourth most populous country in the world, faces serious challenges in addressing child malnutrition. Based on the 2024 Indonesian Nutritional Status Survey (SSGI), the national stunting prevalence has decreased to 19. 8%, yet it remains above the governmentAos target of 18. 8% for 2025. The Province of Nusa Tenggara Barat (NTB) is one of the 12 priority provinces with the highest stunting prevalence in Indonesia. In 2022, the stunting rate in NTB reached 32. significantly higher than the national average. Although NTB has shown notable progress with a reduction of 8. 1% over the period, substantial challenges remain in achieving the target set by BKKBN of 17. 98% by 2024. Currently, the determination of toddlersAo nutritional status at the community health worker . osyandu cadr. level is still conducted manually using the Maternal and Child Health (KIA) book. This approach is prone to misinterpretation and incomplete data recording. How to cite: Nazwa. Putra. , & Zaetun. Toddler Nutritional Status Classification For Early Detection Of Malnutrition Using Xgboost: A Case Study Of AuWest Lombok Regency. Jurnal Analis Medika Biosains (JAMBS), 13. Retrieved from https://jambs. poltekkes-mataram. id/index. php/home/article/view/586 a result, many malnutrition casesAiespecially minority cases such as severe undernutrition and overnutritionAiare often detected late, when the condition has already become severe. The application of machine learning in classifying toddlersAo nutritional status has shown promising results. Previous studies have reported that algorithms such as K-Nearest Neighbor (KNN). Nayve Bayes. Random Forest, and Decision Tree can achieve accuracy levels ranging from 80% to 97%. However, these studies have not optimally addressed the issue of class imbalance, which is common in healthcare datasets, where severe and excess nutrition cases are minority classes compared to normal cases. On the other hand. XGBoost, a modern algorithm known for its efficiency and high accuracy, has not been widely applied in the context of toddler nutritional status detection in Indonesia, particularly using localized datasets such as those from West Lombok Regency. Based on the above background, this study aims to develop a classification system for toddlersAo nutritional status using XGBoost, with class imbalance handling through the SMOTE technique. The research questions include: . how well XGBoost performs in classifying nutritional status into three classes based on anthropometric parameters, evaluated using macro F1-score and minority class recall. how significant the performance differences are between XGBoost and KNN. Nayve Bayes. Random Forest, and Decision Tree. how much improvement in minority class recall can be achieved after applying SMOTE to an imbalanced dataset. This study is expected to contribute scientifically to the development of machine learning applications in the healthcare sector, particularly for early detection of child malnutrition, as well as to support regional government targets in reducing stunting prevalence in NTB Province through a practical, technology-based early detection system that can be effectively used by posyandu cadres at the village level. MATERIALS/METHOD This study employs a quantitative approach using computational experimental methods based on machine learning to develop a supervised classification model. It is categorized as applied research, as it aims to produce a predictive system prototype that can be practically implemented by healthcare workers in the field. The research object consists of secondary anthropometric data of toddlers aged 24Ae59 months from 12 villages in Labuapi District. West Lombok Regency. Nusa Tenggara Barat, collected in October 2025. The initial dataset comprised 800 entries, which, after filtering, resulted in 788 valid records . 5%). The variables used include age . n month. , gender, weight . , height . , and weight-forheight Z-score (WHZ) based on the WHO Child Growth Standards 2006. The classification target consists of three classes: Severe Malnutrition . 70%). Normal Nutrition . 86%), and Overnutrition . 44%), indicating a significant class imbalance. Data collection was conducted through coordination with the local health office of West Lombok Regency, where secondary data in Excel formatAialready digitizedAiwere obtained for research purposes. Data validity and reliability were ensured by using official healthcare institution sources, avoiding modification of original values prior to preprocessing, and applying systematic data cleaning to remove duplicates and correct invalid entries based on WHO biological criteria. Ethical considerations were addressed by anonymizing personal identities to protect subject privacy. The data analysis process consists of several sequential stages. First, data preprocessing includes removing the MUAC (LILA) column due to more than 99% missing values, converting age into decimal months, applying MinMaxScaler normalization to all numerical features, encoding the gender variable, and handling outliers using the IQR method with Second, the dataset is split using a stratified approach with an 80:20 ratio for training and testing. Third, the SMOTE (Synthetic Minority Oversampling Techniqu. is applied exclusively to the training set to address class imbalance without introducing data leakage during evaluation. Five machine learning models are trained, including XGBoost as the primary model with hyperparameter tuning . _estimators = 200, learning_rate = 0. 05, max_depth = . , along with Random Forest. K-Nearest Neighbor (KNN). Nayve Bayes, and Decision Tree as comparison models. Evaluation is conducted using 5-fold stratified cross-validation, with macro F1-score and minority class recall as the main metrics. Finally, a system prototype is developed using the Streamlit framework to provide a practical interface for posyandu RESULTS AND DISCUSSION This study utilizes anthropometric data of toddlers aged 24Ae59 months from 12 villages in Labuapi District. West Lombok Regency. Nusa Tenggara Barat, obtained through coordination with the local health office. After selection and validation based on WHO biological criteria, 788 valid records . 5%) were obtained from the initial 800 entries. Each data record includes key variables: gender, age . n month. , weight . , height . , and weight-for-height Z-score (WHZ) based on the WHO Child Growth Standards 2006. The distribution across regions shows notable variation, with Terong Tawah Village contributing the highest number of records . 32%), while Bagik Polak Barat Village has the lowest . 90%). Based on WHZ classification, the nutritional status distribution reveals a significant class Out of 788 toddlers, 716 . 86%) are classified as Normal Nutrition, 37 . 70%) as Severe Malnutrition, and 35 . 44%) as Overnutrition. The ratio between majority and minority classes is approximately 1:20, indicating an extremely imbalanced A comparative evaluation of five machine learning models shows the following results. XGBoost achieved the highest performance with a Macro F1-Score of 0. 8434 A 0. Macro Recall of 0. 9028 A 0. 0657, and Accuracy of 0. 9655 A 0. Random Forest obtained an F1-Score of 0. 8028 A 0. 0728 with a Recall of 0. 8433 A 0. K-Nearest Neighbor (KNN) achieved an F1-Score of 0. 7875 A 0. 0668 and a Recall of 0. Decision Tree produced an F1-Score of 0. 7969 A 0. 0443 with a Recall of 0. Meanwhile. Nayve Bayes showed the lowest performance, with an F1-Score of 5506 A 0. 0309 and a Recall of 0. 8532 A 0. The application of SMOTE exclusively on the training set resulted in a significant improvement in model performance. The recall for Severe Malnutrition increased from 1% . ithout SMOTE) to 85. 7Ae100% . ith SMOTE). Similarly, the recall for Overnutrition improved from 50. 0% to 66. 7Ae67%. The testing set remained unchanged . data point. to ensure evaluation validity and prevent data leakage. On 158 original testing samples, the XGBoost model successfully detected all 7 Severe Malnutrition cases (Recall = 100%). For the Normal Nutrition class, the model correctly identified 143 out of 147 cases . 3%). Meanwhile, for the Overnutrition class, the model detected 2 out of 3 cases . 7%). The feature importance analysis indicates that Weight has the highest contribution . 2%), followed by Weight-for-Age Z-score . 2%). Height-for-Age Zscore . 6%). Height . 7%). Age . 6%), and Gender . 7%). The two most dominant featuresAiWeight and Weight-for-Age Z-scoreAicollectively contribute 77. 4% to the modelAos overall decision-making process, highlighting their critical role in determining toddlersAo nutritional status. This study demonstrates that the SMOTE technique successfully addressed extreme class imbalanceAiwhere the normal class dominated at 90. 86%Aiby increasing the recall for severe malnutrition by 28. 6Ae42. 9 percentage points, thereby meeting WHO clinical standards (>80%). Among the models tested. XGBoost proved to be the most superior with an F1-Score of 0. 8434 and high stability (A0. , providing an optimal balance between critical case detection . 28% recal. and resource efficiency . 4% precisio. The model's clinical validity is reinforced by feature importance analysis, which identified Weight and Weight-for-Age Z-score as the dominant predictors . 4%), aligning with the 2006 WHO Child Growth Standards. Practically, this study contributes through the development of a web-based system prototype capable of detecting 100% of severe malnutrition cases in testing data, while proposing evidence-based policies such as adaptive thresholds and automated referral mechanisms to support stunting reduction targets in West Lombok Regency. CONCLUSIONS This study concludes that the XGBoost model combined with SMOTE is highly effective for classifying toddler nutritional status in West Lombok, achieving a Macro F1-Score of 8434 and a Severe Malnutrition recall of 90. 28%, which exceeds WHO clinical standards. Analysis identified Weight and Weight-for-Age Z-score as the most critical predictors . 4% combined contributio. , while the developed Streamlit-based web prototype offers a significant improvement over manual screening systems by detecting 100% of severe malnutrition cases in testing. Despite its success, the study noted limitations in overnutrition detection and missing MUAC data, suggesting that future integration with regional health information systems (SIKDA) and the inclusion of dietary history could further enhance its practical implementation at the puskesmas and posyandu levels. REFERENCE