Machine learning (ML) models for childhood stunting may achieve inflated performance when predictors are collected at the same time as, or are mathematically related to, the anthropometric measurements used to define the outcome. This study examined how feature availability and hyperparameter optimization (HPO) were associated with classification performance in 92,236 routine growth-monitoring records from Posyandu services in Kepulauan Bangka Belitung, Indonesia. K-Nearest Neighbors (KNN), Decision Tree, and Random Forest were evaluated under anthropometry-inclusive and leakage-controlled feature configurations, with baseline training, SMOTENC resampling, and SMOTENC combined with Optuna HPO. Under the anthropometry-inclusive configuration, the baseline Decision Tree achieved an F1-score of 0.8217 and ROC-AUC of 0.8931. HPO effects differed by algorithm: relative to SMOTENC alone, test-set F1 increased by 10.36% for Decision Tree and decreased by 4.16% for KNN and 25.24% for Random Forest. Under the leakage-controlled configuration, the highest test-set F1-score was 0.2626, achieved by Random Forest with SMOTENC+HPO; its balanced accuracy was 0.7451 and ROC-AUC was 0.8753. These findings indicate that performance depends on the predictor-availability scenario and that HPO does not improve every classifier. Because the analysis used one provincial dataset and a single held-out test partition, robustness and external validation remain necessary. The leakage-controlled model should be treated as an exploratory risk-ranking candidate, not as a substitute for anthropometric assessment.
Copyrights © 2026