Abstract
Machine learning models for maternal risk triage are developed largely using public datasets from South and East Asia, yet their transferability to clinical settings in Africa remains insufficiently examined. This study evaluates the external validity of benchmark-based maternal risk prediction models in Nigeria, focusing on discrimination, calibration, distributional shift, and subgroup performance. Five data sources were harmonized into a common six-variable schema comprising age, systolic and diastolic blood pressure, heart rate, blood glucose, and body temperature, supplemented by three derived hemodynamic variables. After removing 1,987 exact duplicate records and treating physiologically implausible values as missing, the final dataset comprised 1,524 external records from Mendeley and Kaggle/UCI and 382 clinical records from three hospitals in southwestern Nigeria. A stacking ensemble combining random forest, gradient boosting, and support vector machine base learners with a logistic regression meta-learner was evaluated through external validation, within-population comparison, and reverse transfer. Distributional shift was assessed using the population stability index, Kolmogorov–Smirnov statistics, and a domain discriminator. The ensemble achieved an internal AUROC of 0.964 (95% CI: 0.955–0.972), which decreased to 0.865 (95% CI: 0.822–0.905) on the primary Nigerian validation set. Expected calibration error increased from 0.045 to 0.234, while sensitivity at 80% specificity declined from 0.957 to 0.745. Transfer performance varied across model classes and benchmark sources: logistic regression showed minimal discrimination loss, and the Kaggle/UCI-trained model retained an AUROC of 0.920, whereas the Mendeley-trained model achieved 0.816. In the highest blood-glucose tertile, AUROC was 0.581 (95% CI: 0.430–0.732), with a false-positive rate of 0.667, indicating substantial subgroup-specific limitations. These findings suggest that pooled discrimination alone is insufficient to guide deployment; calibration, subgroup performance, and source-specific differences should also inform assessments of clinical transferability.