Explainable machine learning for classifying iron–folic acid supplementation adherence among pregnant women attending antenatal care in Bosaso, Somalia: a facility-based cross-sectional study
Ismail Mahamoud Yousuf, Saralees Nadarajah, Awo Mohamed Kahiye, Ahmed Farah Darod
Key points
From the paper's conclusion- The findings remain exploratory and should not be interpreted causally or as evidence of deployment readiness.
Abstract
Background Iron–folic acid supplementation (IFAS) is an important component of antenatal care, yet regular use remains suboptimal in many low-resource settings. Evidence from Puntland is limited, and published machine-learning studies of IFAS adherence in Somalia are scarce. This study compared supervised machine-learning algorithms for classifying current study-defined IFAS adherence and examined model-based feature importance. Methods This secondary machine-learning analysis used data from a facility-based cross-sectional survey conducted from 31 March to 24 May 2026 among 400 pregnant women attending antenatal care at eight selected health facilities in Bosaso District. The primary outcome was the source-study operational definition of adherence: self-reported consumption of at least four IFA tablets per week. Eight classifiers were evaluated after categorical encoding. Primary internal validation used repeated stratified 5-fold cross-validation with 5 repeats. A stratified held-out sample ( n = 79) was retained as a secondary evaluation, with bootstrap 95% confidence intervals and calibration assessment. A stricter 7-tablets/week (daily-use) outcome was examined as a sensitivity analysis. SHAP was used to interpret the primary non-SMOTE Random Forest model. Results Overall, 198/400 women (49.5%) met the study-defined ≥4-tablets/week threshold. Across repeated internal validation, Random Forest had the highest mean AUC (0.939; SD 0.020) and mean accuracy (0.861), followed by SVM (mean AUC 0.921; SD 0.027; mean accuracy 0.840). In the secondary held-out sample, SVM had AUC 0.905 (bootstrap 95% CI 0.838–0.959) and Random Forest had AUC 0.900 (95% CI 0.829–0.960), with overlapping uncertainty. For Random Forest, held-out sensitivity was 0.872 and specificity 0.800. Grouped SHAP importance was highest for maternal education, gravidity, gestational age, household income, and ANC initiation timing. Under the stricter daily-use outcome, only 31/400 women (7.75%) were positive; discrimination remained high for Random Forest and SVM, but sensitivity was modest. Conclusion After corrected preprocessing and stronger internal validation, Random Forest and SVM showed the strongest observed internal discrimination for current study-defined IFAS adherence. The findings remain exploratory and should not be interpreted causally or as evidence of deployment readiness. Larger prospective studies with clearly defined prediction time points, facility-aware validation, calibration, and independent external validation are required before clinical or programmatic use.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Antenatal Iron-Folic Acid Supplementation Gaps in Nigeria: A Predictive Machine Learning Analysis of Non-Initiation and Sub-Optimal Duration Using NDHS 2023-24medRxiv · 2026
- Machine learning approaches to predict health facility delivery among reproductive-age women in East AfricaScientific African · 2026
- Development and Validation of Interpretable Machine Learning Models for Early Prediction of Low Birth Weight in Ethiopia: A Secondary Analysis of the Ethiopian Demographic and Health SurveymedRxiv · 2026
- Machine learning approaches to predict maternal anemia and Identifying associated factors among pregnant women in Sub-Saharan Africa.Journal of public health research · 2026
- Interpretable machine learning for predicting early mental health care-seeking among reproductive-age women in Bangladesh using BDHS 2022 dataDiscover Public Health · 2026
- Interpretable prediction of neonatal mortality and its key predictors using machine learning and SHAP analysisBMC Medical Informatics and Decision Making · 2026