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

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.

Authors

Institutions

Publication Details

Journal
Frontiers in Global Women s Health
Published
2026-11-24
DOI
https://doi.org/10.3389/fgwh.2026.1970780
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

Saralees Nadarajah, Ahmed Farah Darod²*, Ismail Mahamoud Yousuf³, Awo Mohamed Kahiye
3 links
Frontiers in Global Women s Health
Artificial Intelligence in Healthcare
article

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

Saralees Nadarajah, Ahmed Farah Darod²*, Ismail Mahamoud Yousuf³, Awo Mohamed Kahiye
article en

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.

Frontiers in Global Women s HealthVol. 7
University of Manchester (GB), Amoud University (SO), CITYCOT University (SO)
Good health and well-being, Zero hunger
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon