Kaysa Naisy Khosina; Pramesti Kusumaningtyas; Mohammad Rofii
Stunting is a multifactorial public health problem influenced by various risk factors that may emerge during the prenatal period. Early identification of stunting risk during pregnancy is important to support preventive interventions. This study aimed to develop a stunting risk prediction model based on maternal prenatal factors using the Random Forest algorithm. Secondary data from 172 pregnant women, consisting of 83 stunting cases and 89 non-stunting cases, were analyzed. The predictor variables included maternal age during pregnancy, height, hemoglobin level, mid-upper arm circumference (MUAC), smoking history, hypertension, asthma, and diabetes mellitus. The research stages consisted of data preprocessing, model training using Stratified 5-Fold Cross Validation, performance evaluation, external testing, and feature importance analysis. Internal evaluation results showed an accuracy of 60%, precision of 60.6%, recall of 57.3%, F1-score of 58.9%, and AUC of 0.6688. External testing yielded an accuracy of 70% and an AUC of 0.6167. Feature importance analysis identified maternal age during pregnancy as the most influential variable in the prediction process. The findings indicate that maternal prenatal factors have potential for early stunting risk identification, although the predictive performance remains moderate. This approach may serve as a foundation for developing early screening tools to support targeted interventions among high-risk pregnancies.