Evaluation of machine learning models for early prediction of gestational diabetes using retrospective electronic health records from current and previous pregnancies.
Mark Germaine, Amy C O'Higgins, Brendan Egan, Graham Healy
School of Computing, Dublin City University, Dublin, Ireland. · UCD Centre for Human Reproduction, The Coombe Hospital, Dublin, Ireland.
Key points
From the paper's conclusion- A small panel of clinically selected variables provides robust early-pregnancy GDM prediction (AUC ∼0.81) and even stronger performance (AUC ∼0.86-0.89) when past pregnancy information is incorporated in multiparous women. Past pregnancy data alone gives useful preconception risk estimates. These findings highlight the promise of early GDM risk identification in both nulliparous and multiparous populations; however, additional research, including external validation and clinical trials, is needed to determine the models' practical utility and effect on maternal and neonatal outcomes.
Abstract
OBJECTIVE: To assess the performance of machine learning (ML) models in predicting gestational diabetes mellitus (GDM) using electronic health record (EHR) data from the first antenatal visit, and determine whether incorporating previous pregnancies data improves performance. METHODS AND ANALYSIS: In this retrospective cohort study, ML models were developed to predict GDM using EHR data (n=27 561, GDM 11.6%). Four ML algorithms: Logistic Regression (LR), Random Forest (RF), XGBoost (XGB) and Explainable Boosting Machine (EBM) were trained with seven to nine top clinical predictors from the EHRs. Models were trained and evaluated in separate first-trimester (n=27 561), nulliparous (n=11 623) and multiparous and past-pregnancy (n=4005) cohorts. Discrimination was measured by the area under the receiver-operating characteristic curve (AUC, 95 % CI), and calibration was assessed by slope and intercept. Decision-curve analysis was performed for models. RESULTS: First-trimester models achieved AUC 0.819 (95% CI 0.811-0.827, slope=1.010, intercept=0.013) with LR, similar to more complex models such as XGB (AUC 0.818, slope=1.004, intercept=0.007), EBM (AUC 0.817, slope=0.988, intercept=-0.017) and RF (AUC 0.817, slope=1.062, intercept=0.103). Among nulliparous women, there was little difference between LR (AUC 0.813) and XGB, EBM or RF (0.805-0.814). When past pregnancy features were added to first-trimester data in multiparous women, discrimination improved: EBM AUC 0.885 (95% CI 0.867 to 0.900; slope 0.994), RF 0.878, LR 0.874 and XGB 0.876. Models using data from past pregnancies only achieved good discrimination (AUC 0.860, 95% CI 0.839 to 0.879; slope=1.028). CONCLUSION: A small panel of clinically selected variables provides robust early-pregnancy GDM prediction (AUC ∼0.81) and even stronger performance (AUC ∼0.86-0.89) when past pregnancy information is incorporated in multiparous women. Past pregnancy data alone gives useful preconception risk estimates. These findings highlight the promise of early GDM risk identification in both nulliparous and multiparous populations; however, additional research, including external validation and clinical trials, is needed to determine the models' practical utility and effect on maternal and neonatal outcomes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Machine learning based prediction of gestational diabetes mellitus using early pregnancy biomarkers and clinical data.Bioinformation · 2026
- Development and validation of a model integrating clinical and metabolomic markers for gestational diabetes mellitus predictionFrontiers in Medicine · 2026
- Early prediction of gestational diabetes mellitus using machine learning-integrated metabolomic and clinical featuresFrontiers in Endocrinology · 2025
- Artificial intelligence for early prediction of gestational diabetes mellitus and preeclampsia: a systematic review of machine learning models and clinical decision support systems.Frontiers in artificial intelligence · 2026
- Machine Learning Estimation of Gestational Age at Delivery Using Linked Mother-Infant Electronic Health Records Across Two Health Systems.Pharmacoepidemiology and drug safety · 2026
- Construction of a clinical model for early prediction of gestational diabetes mellitus based on women of increased maternal age singleton pregnant womenInternational Journal of Gynecology & Obstetrics · 2026