A stacking ensemble AI trained to triage maternal health risks posted stellar metrics on Asian benchmark datasets before failing real-world tests in southwestern Nigeria. The system combines random forest, gradient boosting, and support vector machines with a logistic regression meta-learner. When deployed across 382 clinical records from three local hospitals, its performance dropped sharply.
The model’s internal area under the receiver operating characteristic curve (AUROC) stood at 0.964 (95% CI: 0.955–0.972). On the primary Nigerian validation set, that figure collapsed to 0.865 (95% CI: 0.822–0.905).
A tool that looks flawless on paper can misdiagnose mothers at the bedside.
The breakdown goes beyond aggregate accuracy scores. The model’s expected calibration error jumped from 0.045 to 0.234, while sensitivity at 80% specificity fell from 0.957 to 0.745. High-risk subgroups suffered the worst failures: in the highest blood-glucose tertile, discrimination collapsed to an AUROC of 0.581 (95% CI: 0.430–0.732) alongside a false-positive rate of 0.667.
Where the Data Shifted
Researchers harmonized five data sources into a schema covering age, blood pressure, heart rate, blood glucose, body temperature, and three derived hemodynamic variables. After removing 1,987 duplicate records, the team benchmarked 1,524 external records against local clinic data. Training source choice dictated survivability: models trained on Kaggle/UCI data retained an AUROC of 0.920 in Nigeria, whereas Mendeley-trained models fell to 0.816.
Similar transferability gaps appear across global healthcare implementations. Recent work on gestational diabetes risk validation highlights how regional shifts alter algorithm precision. Regional research working towards predictive maternal mortality models must address these data shifts before deployment.
Key Validation Metrics
- Internal AUROC: 0.964 vs. Nigerian validation AUROC: 0.865.
- Expected calibration error: increased from 0.045 to 0.234.
- High-glucose subgroup AUROC: dropped to 0.581 with a 0.667 false-positive rate.
- Sensitivity at 80% specificity: declined from 0.957 to 0.745.
Fixing the Benchmarking Trap
Evaluating algorithms on overall discrimination alone hides dangerous subgroup errors. Misclassifying two-thirds of diabetic pregnant women as high-risk strains scarce clinical staff and drives unnecessary medical management. Simple recalibration and model selection like logistic regression preserved performance better than complex ensembles across borders.
The study relies on a small local sample of 382 clinic records, meaning larger prospective cohorts are still required to establish safety. Clinical administrators must mandate local calibration and subgroup stress tests instead of trusting off-the-shelf benchmark metrics.
Read the full findings in the Journal of Future Artificial Intelligence and Technologies.




