Evaluation of Machine Learning Models for Early Prediction of Gestational Diabetes Using Retrospective Electronic Health Records from Current and Previous Pregnancies

preprint OA: closed CC-BY-ND-4.0
📄 Open PDF Full text JSON View at publisher

Abstract

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, several ML models were developed to predict GDM using EHR data (n=27,561, GDM 11.6%), from nulliparous and multiparous populations. Past pregnancy data (n=4,005) were incorporated to improve future (preconception) GDM predictions. Four ML algorithms were evaluated: logistic regression (LR), random forest (RF), XGBoost (XGB), and explainable boosting machine (EBM). Model performance was evaluated on an internal validation set assessing model discrimination (AUROC) and model calibration (plots, slope and intercept). Results The Feature Agnostic Model (all features) achieved AUROC 0.832 (slope 0.967; intercept −0.088) with LR, similar to more complex models such as XGB (AUROC 0.828; slope 0.976; intercept −0.072) and EBM (AUROC 0.829; slope 0.939; intercept −0.131). The Sequential Model that included first trimester and previous pregnancy data demonstrated the highest predictive performance, with XGB achieving an AUROC 0.904 (slope 0.618; intercept −0.136). Subset models using top clinical features maintained strong performance, particularly with the Sequential Model achieving an AUROC 0.897 (slope 1.137; intercept 0.161) using only eight features. Conclusion Incorporating previous pregnancy data improved ML performance for GDM prediction. Further, using a subset of clinically relevant features yielded similar performance, supporting potential integration into clinical decision support systems. 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. KEY MESSAGES What is already known on this topic? Machine learning (ML) approaches have been used to identify gestational diabetes mellitus (GDM) risk in early pregnancy, but most studies focus only on data from the current pregnancy, and do not leverage prior obstetric history. What this study adds Incorporating data from previous pregnancies substantially improved ML models’ predictive performance, and reducing the models to a small set of key features still yielded good performance, assessed by model discrimination and calibration, suggesting feasibility for real-time clinical use at or even before the first antenatal visit. How this study might affect research, practice or policy These findings support the possibility of earlier GDM detection and intervention, and highlight the need for external validation and prospective trials to confirm broader utility, inform clinical workflows, and guide policy on integrating ML-driven risk prediction into routine maternity care.
Full text 57,896 characters · extracted from preprint-html · click to expand
Evaluation of Machine Learning Models for Early Prediction of Gestational Diabetes Using Retrospective Electronic Health Records from Current and Previous Pregnancies | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Evaluation of Machine Learning Models for Early Prediction of Gestational Diabetes Using Retrospective Electronic Health Records from Current and Previous Pregnancies View ORCID Profile Mark Germaine , View ORCID Profile Amy C O’Higgins , View ORCID Profile Brendan Egan , View ORCID Profile Graham Healy doi: https://doi.org/10.1101/2025.05.12.25327431 Mark Germaine a School of Computing, Dublin City University , Dublin 9, Ireland b School of Health and Human Performance, Dublin City University , Dublin 9, Ireland e Research Ireland Centre for Research Training in Machine Learning, Dublin City University , Dublin 9, Ireland Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Mark Germaine For correspondence: mark.germaine2{at}mail.dcu.ie Amy C O’Higgins c UCD Centre for Human Reproduction, The Coombe Hospital , Dublin 8, Ireland Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Amy C O’Higgins Brendan Egan b School of Health and Human Performance, Dublin City University , Dublin 9, Ireland d Florida Institute for Human and Machine Cognition , Pensacola FL, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Brendan Egan Graham Healy a School of Computing, Dublin City University , Dublin 9, Ireland Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Graham Healy Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF 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, several ML models were developed to predict GDM using EHR data (n=27,561, GDM 11.6%), from nulliparous and multiparous populations. Past pregnancy data (n=4,005) were incorporated to improve future (preconception) GDM predictions. Four ML algorithms were evaluated: logistic regression (LR), random forest (RF), XGBoost (XGB), and explainable boosting machine (EBM). Model performance was evaluated on an internal validation set assessing model discrimination (AUROC) and model calibration (plots, slope and intercept). Results The Feature Agnostic Model (all features) achieved AUROC 0.832 (slope 0.967; intercept −0.088) with LR, similar to more complex models such as XGB (AUROC 0.828; slope 0.976; intercept −0.072) and EBM (AUROC 0.829; slope 0.939; intercept −0.131). The Sequential Model that included first trimester and previous pregnancy data demonstrated the highest predictive performance, with XGB achieving an AUROC 0.904 (slope 0.618; intercept −0.136). Subset models using top clinical features maintained strong performance, particularly with the Sequential Model achieving an AUROC 0.897 (slope 1.137; intercept 0.161) using only eight features. Conclusion Incorporating previous pregnancy data improved ML performance for GDM prediction. Further, using a subset of clinically relevant features yielded similar performance, supporting potential integration into clinical decision support systems. 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. KEY MESSAGES What is already known on this topic? Machine learning (ML) approaches have been used to identify gestational diabetes mellitus (GDM) risk in early pregnancy, but most studies focus only on data from the current pregnancy, and do not leverage prior obstetric history. What this study adds Incorporating data from previous pregnancies substantially improved ML models’ predictive performance, and reducing the models to a small set of key features still yielded good performance, assessed by model discrimination and calibration, suggesting feasibility for real-time clinical use at or even before the first antenatal visit. How this study might affect research, practice or policy These findings support the possibility of earlier GDM detection and intervention, and highlight the need for external validation and prospective trials to confirm broader utility, inform clinical workflows, and guide policy on integrating ML-driven risk prediction into routine maternity care. INTRODUCTION Gestational diabetes mellitus (GDM) is a form of diabetes presenting during pregnancy[ 1 ]. A 2018 Lancet series[ 2 – 4 ] underscored that lifestyle modifications initiated early in pregnancy could influence maternal and neonatal outcomes. However, the efficacy of such lifestyle interventions remains unclear, with several strategies offering limited benefits in terms of dietary[ 5 , 6 ] and physical activity interventions[ 7 – 9 ], possibly due to the intervention’s commencement time, which is often during late stage pregnancy. Two meta-analyses[ 10 , 11 ] on lifestyle interventions during pregnancy highlight this point: the timing of intervention is key. Lifestyle changes initiated during the first trimester were most effective in reducing GDM risk and improving maternal health. Furthermore, early interventions are expected to provide significant cost-saving benefits for healthcare systems by reducing complications associated with GDM[ 12 ]. Machine learning (ML) offers a promising solution for the early identification of women at risk of GDM[ 13 ], addressing a key challenge of late stage (24-28 week) diagnosis. By leveraging large datasets, such as electronic health records (EHRs), ML creates predictive models that can identify women at increased risk for GDM before the traditional screening window[ 14 ]. By identifying high-risk individuals at antenatal visit, or preconception [ 15 ], ML models could facilitate earlier lifestyle and clinical interventions. Such an approach could optimise the timing of interventions, potentially enhancing delivery outcomes and improving the health of both mother and child[ 16 , 17 ]. Despite the growing evidence on ML models for GDM prediction[ 18 ], most studies using EHRs to date have been conducted in Asian populations[ 19 ], often yielding promising but population-specific results. Furthermore, most have primarily utilised data from the current pregnancy, with limited incorporation of past pregnancy information. One study incorporated data from a previous pregnancy to predict GDM, but it involved only East Asian women with prior GDM (n=553) and also used a current first-trimester glucose measurement[ 20 ]. These constraints underscore the need for broader examinations of whether including previous pregnancy data can enhance early GDM prediction across diverse populations, including those in Europe, and whether such models can generalise beyond women already known to be at high risk. Therefore, the aim of this study was to develop and evaluate the performance of ML models in predicting GDM using EHR data collected in the first trimester and to determine whether incorporating data from previous pregnancies could improve predictive performance. By including data from past pregnancies, the aim was to evaluate the potential for predicting GDM risk even before conception, thereby allowing for preconception risk assessment. Additionally, by developing models tailored to both nulliparous and multiparous populations, the study explored potential differences in performance while keeping in mind future applications in clinical decision support systems (CDSS)[ 21 ]. Finally, this study also investigated using a reduced set of clinically relevant features, recognising that limiting the feature set (variables) to be collected could enhance the practicality of model deployment by clinicians in a healthcare facility. METHODS AND ANALYSIS Study Design and Population This retrospective cohort study employed ML techniques on EHRs from The Coombe Hospital, Dublin, spanning a five-year period (2018–2022). Ethical approval was granted by The Coombe Hospital Research Ethics Committee (Study No. 06–2023). The primary aim was to develop ML models that could predict the diagnosis of GDM by using EHR data collected during the first antenatal visit (∼12 th week of gestation). Three distinct cohorts were used to build the ML models (see Study Populations). The study was designed following the TRIPOD+AI guidelines for reporting clinical prediction models [ 22 ]. Patients or members of the public were not involved in the design, conduct, reporting, or dissemination plans of this study due to its retrospective nature. Inclusion and Exclusion Criteria Eligible records were from women were 18 years or older, attended an antenatal visit at or before 16 weeks, with complete EHR data up to 16 weeks, and validated GDM status. Exclusions included women with pre-existing diabetes (type 1 or 2), first antenatal visit after 16 weeks, those with missing or incomplete data for critical variables, invalidated GDM status, and pregnancies from 2020 (see below). Study Populations Three distinct study populations were defined. The Feature Agnostic Model (FAM) included all eligible pregnancies with data up to the 16 th week of gestation. The Nulliparous Model (NPM), a subset of the general population, focused on women experiencing their first pregnancy. Finally, the Sequential Pregnancy Model (SPM) identified women with at least one previous pregnancy in the dataset, allowing for the inclusion of historical data to predict GDM in subsequent pregnancies. Data Source and Validation Data were routinely collected by trained midwives using standardized questionnaires and entered into the hospital’s electronic health system, “Euroking K2” (Euroking Maternity Software Systems, UK)[ 23 ]. GDM was diagnosed according the International Association of Diabetes and Pregnancy Study Groups (IADPSG) criteria[ 1 ]. EHR entries indicating “Diabetes developed during pregnancy” were labelled as GDM, while all others were labelled non-GDM. GDM status was cross-referenced with a real-time clinical database (2018–2022)[ 24 ]. Records were included only if both databases provided consistent labels. Data from 2020 were excluded due to COVID-19-related fluctuations in GDM detection[ 24 , 25 ]. The final dataset included 27,561 pregnancies and 108 retained variables. This sample size was deemed sufficient based on the BMJ guidelines for calculating the required sample size for developing a clinical prediction model[ 26 ]. Data Cleaning and Preprocessing Data quality was ensured through extensive cleaning and preprocessing. Critical variables included maternal age, body mass index (BMI) at booking, key medical history items (e.g., family history of diabetes, endocrine problems), and obstetric history (e.g., previous GDM, parity). Pregnancy records missing any critical variables were excluded, and features with more than 20% missing data were removed unless the missing value could be interpreted as a null finding. Inconsistencies (e.g., negative BMI) were either corrected if plausible or excluded if not. Categorical variables were simplified; for instance, the “Cardiac Problems” feature, initially containing over 2,600 string values, was simplified into a binary “NO”/“YES,” with nulls interpreted as “NO” after clinician consultation. Any remaining missing data were then removed. Two deviations from this general approach were the “Occupation of the Mother” mapped to the International Standard Classification of Occupations (ISCO)[ 27 ] and grouped into skill level categories, with 4 representing the highest skill level and 0 representing unemployment. Second, birthweight percentiles were calculated using the weight of the baby and the gestational age at delivery, based on the percentile ranges presented by Nicolaides et al[ 28 ]. For sequential pregnancies, two additional features, Inter-Pregnancy Interval (days from the delivery date of one pregnancy to the conception date of the next) and Inter-Pregnancy Weight Gain (difference in maternal booking weight between successive pregnancies), were calculated. Model Development Four ML models were developed to address clinically relevant different aspects of the data: (1) a FAM with all available data up to week 16 of gestation, (2) a Feature Subset Model using the most important features identified across multiple ML models (reported in Table 1 ), (3) a NPM for nulliparous pregnancies, and (4) a SPM that incorporated previous pregnancy variables to predict GDM in subsequent pregnancies. The latter also included variations using data up to the first trimester in the current pregnancy. Model cohort information is presented in Table 1 and a list of all variables in the EHR are reported in the supplementary files. The chosen ML algorithms were Random Forest Classifier (RF), Logistic Regression (LR), XGBoost Classifier (XGB), and Explainable Boosting Machine (EBM). LR has historically been popular in GDM modelling [ 18 ], but recent evidence suggests that advanced models like RF and XGB yield better results[ 29 , 30 ]. EBMs have been shown to match the performance of these advanced models while retaining interpretability[ 31 ]. A Dummy Classifier from scikit-learn was included as a baseline to establish a minimal threshold for performance. View this table: View inline View popup Download powerpoint Table 1. Model development sets Data Preprocessing A pipeline was developed for data preprocessing and modelling. Categorical variables underwent one-hot encoding with the first category dropped, and numerical variables were standardized using StandardScaler. Scikit-learn’s ColumnTransformer ensured separate treatment of categorical and numerical data, and the processed DataFrame retained patient identifiers to facilitate group-based splitting. To avoid data leakage, the dataset was split into training, validation, and test sets using GroupShuffleSplit, ensuring all records from the same patient were allocated to the same split. An 80–10-10 initial split created a training set (80%) and a validation (10%) and test (10%) set. This approach ensured patient-specific splits, providing separate data for training, hyperparameter tuning, and model evaluation. Model Training Hyperparameter tuning using RandomizedSearchCV with a stratified k-fold cross-validation strategy was used for each model. This approach involved a randomized search over specified parameter ranges (see Supplementary Table 1 ) with 10 iterations, evaluating model performance on multiple splits of the training set. Internal validation occurred at three stages: (1) 5-fold cross-validation during RandomizedSearchCV, (2) additional evaluation on the 10% validation set, and (3) final testing on the reserved 10% test set. External validation was attempted but we were unable to source an external dataset[ 19 ]. The final hyperparameter space for each model is reported in Supplementary Table 5 . Model Performance Evaluation The performance of the ML models were primarily evaluated, on the test set, using the Area Under the Receiver Operating Characteristic Curve (AUROC) to measure discrimination with bootstrapping (1,000 iterations) employed to compute 95% confidence intervals for the AUC, each created by sampling, with replacement, the same number of observations as the original test set[ 32 ]. Model calibration was assessed both qualitatively with the use of calibration plots, and quantitatively, with the use of slope, intercept and observed to expected ratio (O:E ratio), as has been recommended for clinical prediction models [ 33 ]. AUROC measures the model’s ability to distinguish between classes without being sensitive to class imbalances[ 34 ], while calibration assesses the agreement between the observed and predicted outcomes. Model performance was further assessed using the average precision score (AP), confusion matrices, model sensitivity, specificity and F-1 score with a default threshold of 0.5 for determining the binary classification from the classifier output, while Brier score was calculated to measure agreement between predicted probabilities and observed outcomes across all models[ 35 ]. Further, to determine whether the models’ predictive capabilities generalised across diverse patient backgrounds, performance metrics were also stratified by ethnicity. Addressing Class Imbalance The dataset exhibited class imbalance, with a GDM rate of 11.6%. Pilot experiments with the Synthetic Minority Over-sampling Technique did not yield improvements, and adjusting class weights resulted in a bias toward higher false positives compared to false negatives. This trade-off was considered undesirable for clinical application. Therefore, no further techniques were applied. Feature Importance and Interpretability Feature importance was determined after each model had been fully trained on the training set, ensuring that no information from the test set influenced model parameters. Relative importance scores from RF (feature_importances_) and coefficient-derived odds ratios from LR provided basic importance measures. In XGB, SHapley Additive exPlanations (SHAP) summarised each feature’s contribution to predictions, while EBM’s built-in interpretability tools offered global and per-feature visualisations (interpret package). Although SHAP values were computed on the test data for final interpretability assessments, all feature importance metrics reflected the model parameters learned from the training set only. Software and Computational Resources Model development were conducted in Python 3.8.8, with pandas (1.2.4) for data manipulation, numpy (1.23.5), scikit-learn (1.2.1) for ML workflows, seaborn (0.11.1) and matplotlib (3.3.4) for visualisation, xgboost (1.7.6), shap (0.41.0), and interpretML (0.3.0). Computations were carried out on an Apple M1 workstation with 16 GB RAM. Training times ranged from several minutes models (e.g., LR) to longer durations for EBM. RESULTS Population Characteristics Initially 37,651 pregnancy records were identified, of which 10,090 were excluded (2,696 for missing/incomplete data and 7,394 from 2020), resulting in N = 27,561 for analysis. Table 2 presents the baseline characteristics of the study participants across these populations, including key demographics, medical history, and clinical measurements. Further details of baseline characteristics by ethnicity are provided in the Supplementary Table 2 . View this table: View inline View popup Table 2: Patient characteristics of the validated dataset. GDM Prediction in the First Trimester In the FAM, the LR model achieved the highest AUROC of 0.832 (0.810–0.853) ( Figure 1A ), calibration slope 0.967, intercept −0.088 and an AP of 0.449 ( Figure 1C ). The sensitivity was 0.207, specificity was 0.982, F1 score was 0.309, and the Brier score was 0.083. Other models showed similar performance, with XGB achieving an AUROC of 0.828 (0.807– 0.850) (AP 0.438) ( Figure 1B ), and EBM AUROC of 0.829 (0.806–0.850). Download figure Open in new tab Figure 1. Model performance and calibration for Logistic Regression (left panel) and XGBoost (right panel). Subplots A, C, and E show the AUROC, average precision, and calibration plots, respectively, for the Logistic Regression models, while subplots B, D, and F show the corresponding plots for the XGBoost models. For the Subset Model, LR maintained an AUROC of 0.809 (0.788–0.829) ( Figure 1A ), calibration slope 0.978, intercept −0.006 and an AP of 0.449 ( Figure 1C ) using only the top 9 features ( Table 2 ). The sensitivity was 0.209, specificity was 0.983, F1 score was 0.314, and the Brier score was 0.087. An interactive example of the model can be found here ( ML Labs Tool ). In the NPM, LR again performed strongly, achieving an AUROC of 0.823 (0.785– 0.859) ( Figure 1A ), calibration slope 0.967, intercept −0.088, and an AP of 0.383 ( Figure 1C ). The sensitivity was 0.126, specificity was 0.991, F1 score was 0.209, and the Brier score was 0.074. Performance metrics for each model across different datasets are summarised in Table 3 . View this table: View inline View popup Table 3. Comparative Performance Metrics of Machine Learning Models Evaluated on the Test Set Across Various Datasets. AUROC (Area Under the Receiver Operating Characteristic Curve), AP (Average Precision Score), O:E Ratio (Observed to Expected Ratio). Sequential GDM Prediction The sequential models using only previous pregnancy variables showed improved performance. XGB achieved the highest AUROC of 0.879 (0.832–0.924) ( Figure 1B ), calibration slope 1.059, intercept 0.033, and an AP of 0.680 ( Figure 1D ), with a sensitivity of 0.537, specificity of 0.963, F1 score of 0.604, and Brier score of 0.070. When including first trimester data in the SPM, XGB achieved an AUROC of 0.904 (0.866–0.941) ( Figure 1B ), calibration slope 0.681, intercept −0.136, and an AP of 0.696 ( Figure 1D ). The sensitivity increased to 0.532, specificity was 0.973, F1 score was 0.621, and the Brier score improved to 0.069. In the SPM focusing on the top 8 features (identified from the training data), XGB achieved the highest AUROC of 0.897 (0.857 – 0.931)( Figure 1B ), calibration slope 1.137, intercept 0.161, and an AP of 0.697 ( Figure 1D ). The sensitivity was 0.468, specificity was 0.985, F1 score was 0.595, and the Brier score was 0.065. All models are presented in Table 3 . Calibration plots for the LR and XGB models are presented in Figure 1E and 1F , showing that the predicted probabilities closely align with observed outcomes. The Brier scores ranged from 0.063 to 0.088 across all models, indicating good calibration, with predicted probabilities closely aligning with observed outcomes. Model Performance Across Ethnicities Performance metrics stratified by ethnicity are shown in Supplementary Table 3 . Generally, the models maintained performance for Caucasian patients (AUROC >0.8), with results closely tracking those of the full dataset. However, there was a consistent reduction in AUROCs for Asian, Southeast Asian, and Black populations (<0.8), indicating reduced predictive power in these smaller or more diverse subgroups. Conversely, the models continued to perform well among Other and Middle Eastern patients, although very small sample sizes may have skewed these results. Feature Importance The feature importance analysis identified the top predictors of GDM, including a history of GDM, maternal BMI at booking, maternal age, family history of diabetes, ethnicity, inter-pregnancy weight gain (in SPM), time between pregnancies (in SPM), ethnicity, and occupational skill level. The SHAP plots for the XGB are shown in Supplementary Figure 2. The feature importance for all of the models can be found in Supplementary Figures 2-5. DISCUSSION This study evaluated the performance of several ML models for early prediction of GDM using data available at the first antenatal visit, and examined whether incorporating information from previous pregnancies enhances predictive performance. Overall, the findings confirmed that incorporating prior pregnancy history can improve early risk prediction for GDM. For example, the SPM that included both first-trimester and previous pregnancy features achieved an AUROC of 0.904, higher than models using first-visit data alone, suggesting that a woman’s obstetric history is highly informative for forecasting GDM in a subsequent pregnancy. Notably, even a simplified sequential model using only the top eight features achieved nearly equivalent discrimination (AUROC 0.897), highlighting that a focused set of clinical predictors can retain most of the predictive signal. In the FAM, the LR model performed similarly to more complex models such as XGB and EBM (AUROC ∼0.832). This contrasts with much of the existing literature, highlighted in a recent meta-analysis that found LR models achieved a pooled AUROC of 0.815, compared to 0.889 for non-linear models[ 18 ]. This discrepancy suggests that more sophisticated ML algorithms tend to perform better, potentially capturing complex, non-linear relationships in the data. However, the comparisons in the meta-analysis were not always direct comparisons of model performance, as the models were often tested on different datasets, each with varying characteristics, sample sizes, and feature availability. Nevertheless, even when looking at studies that implemented LR alongside more advanced models on the same dataset the pattern of increased performance with non-linear models like XGB or RF remains evident[ 36 – 40 ]. The lack of a gap in LR performance may indicate that the relationships between early-pregnancy predictors and GDM are largely linear or additive, meaning a well-specified linear model can capture them adequately. It is also possible that the complex models were limited by the data quality or volume, or by the fact that only routine, non-invasive features were intentionally used. This underscores an important point for clinical machine learning, more complex is not always better, especially if interpretability and ease of use are priorities. From a clinician’s perspective, a simpler model that offers similar performance might be preferable for integration into practice, due to its transparency and reliability[ 41 ]. A strength of this study is the exclusive use of non-invasive, routinely collected data available at booking, which enhances the practicality and scalability of implementing the model in clinical settings. With the exception of height, body mass and blood pressure, all predictors in the models were questionnaire-based or existing records. Among previous studies that used non-invasive features, the majority demonstrate moderate predictive power (AUROC 0.7-0.8)[ 13 ], with two exceptions to date that demonstrate much better performance[ 36 , 42 ]. In comparison, our models that used non-invasive features achieved AUROCs ranging from 0.809 in the Subset Model up to 0.897 in the SPM that focussed on the top 8 features, suggesting that leveraging a patient’s obstetric history and optimising the ML methodology can substantially boost performance even without biochemical markers. Notably, the SPM with XGB and the EBM demonstrated the highest performance by achieving AUROCs of 0.904 and 0.894, respectively, which were in the range reported by Belsti et al.[ 36 ] (0.921) and Sweeting et al.[ 42 ] (0.880), and in the range of models that use biochemical predictors in addition to non-invasive features[ 38 ]. Including previous pregnancy variables in multiparous women (SPM) improved model performance compared to the FAM and NPM, with XGB achieving an AUROC of 0.884. These results align favourably with findings from other studies that emphasise the importance of early pregnancy and preconception data for GDM prediction, particularly when considering non-invasive data collection. For instance, Artzi et al.[ 43 ] utilised features accessible ‘at the beginning of pregnancy’ and achieved an AUROC of 0.799 using just nine features collected from questionnaires. It could be argued that this is a similar approach to the Feature Subset Model without blood pressure measures, which have minimal impact on the model. Additional work has demonstrated the benefit (AUROC 0.930) of incorporating biochemical markers like glycosylated haemoglobin (HbA1c) with other features collected during the preconception stage of pregnancy[ 15 ]. Thus, these data demonstrate the potential for predicting diagnosis of GDM with data available prior to conception. The inclusion of inter-pregnancy factors, such as weight gain and time interval between pregnancies, provided an additional perspective in our study, enhancing the models’ predictive power to an AUROC 0.904. This finding aligns with work demonstrating the value of including more comprehensive data in the prediction of recurrent GDM, which achieved an AUROC of 0.942 with Light Gradient Boosting and 0.924 with XGB, by incorporating biomarkers such as the OGTT results from the index pregnancy, and fasting plasma glucose (FPG) and triglycerides (TG) in the first trimester of the ongoing pregnancy[ 20 ]. The reported AUROC values in our study demonstrate consistency across some subgroups, which is important for ensuring generalisability of the models, while performing poorly across others. The NPM achieved an AUROC of 0.823, indicating promising predictive performance in identifying diagnosis of GDM among nulliparous pregnancies. This result compares favourably to that of Kang et al.[ 44 ], who reported variability in AUROC between multiparous (0.720) and nulliparous (0.672) populations, suggesting that our model was better able to consistently capture key predictors for nulliparous women. Further comparison with Cooray et al.[ 45 ] (AUROC 0.732) and Donovan et al.[ 46 ] (AUROC 0.710), both of which focused on nulliparous populations using LR, also highlights the favourable performance of our models. Beyond parity-based analysis, we also explored model performance across ethnic subgroups (see Supplementary Table 3 ). While results remained consistent among Caucasian participants, performance declined in certain minority groups, particularly Asian, Southeast Asian, and Black populations. This finding is consistent with previous research in Ireland demonstrating a marked decrease in model performance in non-Caucasian populations[ 47 ]. In contrast, models continued to perform favourably for Other and Middle Eastern individuals, though the small sample sizes for these subgroups limit the generalisability of these findings. However, models trained on diverse populations in California, USA, noted the opposite trend, whereby models performed well in Hispanic populations but tended to underperform in Caucasian populations[ 46 ]. This highlights the need for including more diverse data in model training. The feature importance analysis confirmed that a history of GDM, maternal BMI, maternal age, and ethnicity were strong predictors in the early pregnancy GDM models, and aligns with meta-analytical analysis in this field [ 18 ]. Other frequent predictors that were not available in the current feature set were FPG, TG and HbA1c. In our SPM, inter-pregnancy weight gain also emerged as a significant predictor, consistent with previous work[ 20 ]. These findings are confirmatory, as they reinforce the known clinical relevance of these features, and their effectiveness as strong predictors in different studies and populations. In this study, we developed subset versions of each model by selecting the most clinically relevant features, aiming to enhance the potential for CDSS[ 21 ] by relying on a limited set of predictors rather than an entire EHR. Although the subset version of the FAM dropped in performance (0.832 to 0.809), the NPM (0.823 to 0.825, Supplementary Table 4 ) and SPM remained robust, with the latter achieving an AUROC of 0.897 using only eight features, comparable to its 176-feature counterpart. This streamlined approach could facilitate earlier GDM risk prediction, potentially as early as 12 weeks’ gestation or even preconception, thereby enabling more proactive interventions such as earlier diagnostic testing long before standard screening. However, to integrate these models seamlessly into antenatal workflows, clinicians need clear guidelines for classifying high-risk and moderate-risk patients, and the chosen thresholds must carefully balance the risks of false positives (unnecessary interventions) and false negatives (missed high-risk cases). This study has several limitations. First, the dataset used for model development was derived from a single institution, which may limit the generalisability of the findings. External validation using data from other populations is necessary to confirm the models’ robustness, as emphasised by others[ 39 , 46 , 48 ], who validated their model performance across independent populations. The use of historical data from previous pregnancies also means that model performance may vary based on the quality and availability of such data across healthcare systems. The method by which features were pre-processed could have resulted in a loss of potentially important information. One-hot encoding broad categorical features, such as “Endocrine problems,” into binary variables may have discarded valuable context that could have improved predictions. Moreover, we did not have access to blood-based biomarkers in this study, such as FPG or HbA1c, which have been shown to be strong predictors of GDM[ 15 ]. While the goal of this study was to develop a model that could be used at the booking visit in the first trimester without the need for extensive laboratory tests, incorporating point-of-care biomarkers could further enhance model performance. Socioeconomic and educational status were also not directly available in this dataset. Previous research has shown that educational attainment, particularly in women, is correlated with health outcomes, including the risk of GDM and inter-pregnancy weight gain[ 49 ]. Therefore, we used occupation as a proxy for socioeconomic status, but this may be a weak estimate. Finally, our models did not include OGTT results, limiting predictions to the IADPSG criteria. Modelling GDM using OGTT results could provide a more versatile tool applicable to multiple diagnostic standards. In conclusion, these ML models, particularly those incorporating data from previous pregnancies, have the potential early in pregnancy to identify women at greater risk of later diagnosis of GDM. Early identification may allow for timely interventions, which could mitigate the adverse maternal and foetal outcomes associated with GDM. Future research should focus on validating the developed models in external datasets to assess their generalisability. Incorporating additional features, such as lifestyle factors and biomarkers, may further improve model performance and sensitivity. Additionally, prospective studies evaluating the integration of these models into clinical workflows would be valuable to determine their impact on clinical decision-making and patient outcomes. Data Availability Due to patient confidentiality and data use agreements, individual-level data cannot be shared publicly. Data and Resource Availability Due to patient confidentiality and data use agreements, individual-level data cannot be shared publicly. The models are intended for research purposes and require external validation before clinical implementation. Code Availability The authors will share the code and saved models in a GitHub repository or open science framework so that other researchers can reuse the models for research purposes. Funding and Assistance This work has emanated from research supported in part by a grant from Research Ireland under Grant Number 18/CRT/6183. Conflicts of Interest Disclosure The authors have no conflicts of interest to declare. Author Contributions M.G., A.C.O., B.E., and G.H. were involved in the conception, design, and conduct of the study and the analysis and interpretation of the results. M.G. wrote the first draft of the manuscript, and all authors edited, reviewed, and approved the final version of the manuscript. M.G. is the guarantor of this work and, as such, had full access to all the data in the study and takes responsibility for the integrity of the data and the accuracy of the data analysis. Protocol and Registration The protocol was not prepared for this study, and the study was not pre-registered. Prior Presentation Part of this work was presented in abstract form at the American Diabetes Association Annual Meeting, 21-24 June, 2024, Orlando, Florida, USA: doi.org/10.2337/db24-1968-LB Supplementary Tables View this table: View inline View popup Download powerpoint S Table 1. Hyperparameter space searched for the models during training View this table: View inline View popup S Table 2. Patient characteristics grouped by ethnicity expressed as number of occurrences (%). View this table: View inline View popup S Table 3. Performance of machine learning models predicting across the different ethnicity sub-groups. Performance measured by ROC area under the curve evaluated against the validation set combined with the test set. Minimum of 15 samples required. View this table: View inline View popup Download powerpoint S Table 4. Performance of Nulliparous Model trained with the same top 9 features from the Feature Subset Model. View this table: View inline View popup Download powerpoint S Table 5. Final hyperparameters chosen for all models as a result of hyperparameter tuning. Only the tuned hyperparameters are displayed, all other parameters are thus default values. View this table: View inline View popup S Table 6. List, value count and ranges of all data available in the electronic health record during the first trimester. Acknowledgments The authors are grateful to The Coombe Hospital for their collaboration without whom this analysis would not be possible. Abbreviations AP Average Precision AUROC area under the receiver operating characteristic curve BMI Body mass index CDSS clinical decision support systems EHR Electronic health record EBM Explainable Boosting Machine FAM Feature Agnostic Model FPG fasting plasma glucose GDM Gestational diabetes mellitus HbA1c glycosylated haemoglobin IADPSG International Association of Diabetes and Pregnancy Study Groups IDs patient identifiers LR Logistic Regression ML Machine learning NPM Nulliparous Model OGTT oral glucose tolerance test RF Random Forest SPM Sequential Pregnancy Model SHAP SHapley Additive exPlanations TG triglycerides XGB eXtreme Gradient Boosting References ↵ International Association of Diabetes and Pregnancy Study Groups Consensus Panel . International Association of Diabetes and Pregnancy Study Groups Recommendations on the Diagnosis and Classification of Hyperglycemia in Pregnancy . Diabetes Care . 2010 ; 33 : 676 – 82 . doi: 10.2337/dc09-1848 OpenUrl FREE Full Text ↵ Stephenson J , Heslehurst N , Hall J , et al. Before the beginning: nutrition and lifestyle in the preconception period and its importance for future health . The Lancet . 2018 ; 391 : 1830 – 41 . doi: 10.1016/S0140-6736(18)30311-8 OpenUrl CrossRef PubMed Barker M , Dombrowski SU , Colbourn T , et al. Intervention strategies to improve nutrition and health behaviours before conception . The Lancet . 2018 ; 391 : 1853 – 64 . doi: 10.1016/S0140-6736(18)30313-1 OpenUrl CrossRef ↵ Fleming TP , Watkins AJ , Velazquez MA , et al. Origins of lifetime health around the time of conception: causes and consequences . The Lancet . 2018 ; 391 : 1842 – 52 . doi: 10.1016/S0140-6736(18)30312-X OpenUrl CrossRef PubMed ↵ Martis R , Crowther CA , Shepherd E , et al. Treatments for women with gestational diabetes mellitus: an overview of Cochrane systematic reviews . Cochrane Database of Systematic Reviews . Published Online First: 2018 . doi: 10.1002/14651858.CD012327.pub2 OpenUrl CrossRef ↵ Tieu J , Shepherd E , Middleton P , et al. Dietary advice interventions in pregnancy for preventing gestational diabetes mellitus . Cochrane Database of Systematic Reviews . Published Online First: 2017 . doi: 10.1002/14651858.CD006674.pub3 OpenUrl CrossRef PubMed ↵ Rönö K , Grotenfelt NE , Klemetti MM , et al. Effect of a lifestyle intervention during pregnancy—findings from the Finnish gestational diabetes prevention trial (RADIEL) . J Perinatol . 2018 ; 38 : 1157 – 64 . doi: 10.1038/s41372-018-0178-8 OpenUrl CrossRef PubMed Peaceman AM , Clifton RG , Phelan S , et al. Lifestyle Interventions Limit Gestational Weight Gain in Women with Overweight or Obesity: LIFE-Moms Prospective Meta-Analysis . Obesity . 2018 ; 26 : 1396 – 404 . doi: 10.1002/oby.22250 OpenUrl CrossRef PubMed ↵ Poston L , Bell R , Croker H , et al. Effect of a behavioural intervention in obese pregnant women (the UPBEAT study): a multicentre, randomised controlled trial . The Lancet Diabetes & Endocrinology . 2015 ; 3 : 767 – 77 . doi: 10.1016/S2213-8587(15)00227-2 OpenUrl CrossRef PubMed ↵ Guo X-Y , Shu J , Fu X-H , et al. Improving the effectiveness of lifestyle interventions for gestational diabetes prevention: a meta-analysis and meta-regression . BJOG: An International Journal of Obstetrics & Gynaecology . 2019 ; 126 : 311 – 20 . doi: 10.1111/1471-0528.15467 OpenUrl CrossRef PubMed ↵ Song C , Li J , Leng J , et al. Lifestyle intervention can reduce the risk of gestational diabetes: a meta-analysis of randomized controlled trials . Obes Rev . 2016 ; 17 : 960 – 9 . doi: 10.1111/obr.12442 OpenUrl CrossRef PubMed ↵ Bailey C , Skouteris H , Harrison CL , et al. A Comparison of the Cost-Effectiveness of Lifestyle Interventions in Pregnancy . Value in Health . 2022 ; 25 : 194 – 202 . doi: 10.1016/j.jval.2021.07.013 OpenUrl CrossRef PubMed ↵ Mennickent D , Rodríguez A , Farías-Jofré M , et al. Machine learning-based models for gestational diabetes mellitus prediction before 24–28 weeks of pregnancy: A review . Artificial Intelligence in Medicine . 2022 ; 132 : 102378 . doi: 10.1016/j.artmed.2022.102378 OpenUrl CrossRef PubMed ↵ Wu Y , Hamelmann P , van der Ven M , et al. Early prediction of gestational diabetes mellitus using maternal demographic and clinical risk factors . BMC Res Notes . 2024 ; 17 : 105 . doi: 10.1186/s13104-024-06758-z OpenUrl CrossRef PubMed ↵ Kumar M , Ang LT , Png H , et al. Automated Machine Learning (AutoML)-Derived Preconception Predictive Risk Model to Guide Early Intervention for Gestational Diabetes Mellitus . International Journal of Environmental Research and Public Health . 2022 ; 19 : 6792 . doi: 10.3390/ijerph19116792 OpenUrl CrossRef ↵ Yasuda S , Inoue K , Iida S , et al. Differences in the birthweight of infants born to patients with early- or mid-to-late-detected gestational diabetes mellitus who underwent guideline-based glycemic control . Journal of Diabetes and its Complications . 2021 ; 35 : 107850 . doi: 10.1016/j.jdiacomp.2021.107850 OpenUrl CrossRef PubMed ↵ Hosseini E , Janghorbani M , Shahshahan Z . Comparison of risk factors and pregnancy outcomes of gestational diabetes mellitus diagnosed during early and late pregnancy . Midwifery . 2018 ; 66 : 64 – 9 . doi: 10.1016/j.midw.2018.07.017 OpenUrl CrossRef PubMed ↵ Zhang Z , Yang L , Han W , et al. Machine Learning Prediction Models for Gestational Diabetes Mellitus: Meta-analysis . Journal of Medical Internet Research . 2022 ; 24 : e26634 . doi: 10.2196/26634 OpenUrl CrossRef PubMed ↵ Germaine M , Healy G , Egan B . Lack of Data Sharing Despite Data Availability Statements in Studies Using Machine Learning Models for Prediction of Gestational Diabetes Mellitus . Diabetes Care . 2024 ; 47 : e78 – 9 . doi: 10.2337/dc24-1483 OpenUrl CrossRef PubMed ↵ Chen M , Xu W , Guo Y , et al. Predicting recurrent gestational diabetes mellitus using artificial intelligence models: a retrospective cohort study . Arch Gynecol Obstet . 2024 ; 310 : 1621 – 30 . doi: 10.1007/s00404-024-07551-w OpenUrl CrossRef PubMed ↵ Antoniadi AM , Du Y , Guendouz Y , et al. Current Challenges and Future Opportunities for XAI in Machine Learning-Based Clinical Decision Support Systems: A Systematic Review . Applied Sciences . 2021 ; 11 : 5088 . doi: 10.3390/app11115088 OpenUrl CrossRef ↵ Collins GS , Moons KGM , Dhiman P , et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods . BMJ . 2024 ; 385 : e078378 . doi: 10.1136/bmj-2023-078378 OpenUrl FREE Full Text ↵ Reynolds CME , O’Malley EG , Egan B , et al. Maternal Weight Trajectories in Successive Pregnancies and Their Association With Gestational Diabetes Mellitus . Diabetes Care . 2020 ; 43 : e33 – 4 . doi: 10.2337/dc19-2274 OpenUrl FREE Full Text ↵ Germaine M , O’Higgins AC , Egan B , et al. Gestational Diabetes Diagnoses in Electronic Health Records: A Three-Step Study of Label Accuracy and Its Impact on Machine Learning Models for Early Prediction . 2025 . ↵ Panaitescu AM . RESUMING ADEQUATE SCREENING FOR GESTATIONAL DIABETES MELLITUS DURING THE ONGOING COVID-19 PANDEMIC . Acta Endocrinol (Buchar) . 2021 ; 17 : 278 – 9 . doi: 10.4183/aeb.2021.278 OpenUrl CrossRef PubMed ↵ Riley RD , Ensor J , Snell KIE , et al. Calculating the sample size required for developing a clinical prediction model . BMJ . 2020 ; 368 : m441 . doi: 10.1136/bmj.m441 OpenUrl FREE Full Text ↵ Ganzeboom HBG , Treiman DJ . Internationally Comparable Measures of Occupational Status for the 1988 International Standard Classification of Occupations . Social Science Research . 1996 ; 25 : 201 – 39 . doi: 10.1006/ssre.1996.0010 OpenUrl CrossRef Web of Science ↵ Nicolaides KH , Wright D , Syngelaki A , et al. Fetal Medicine Foundation fetal and neonatal population weight charts . Ultrasound in Obstetrics & Gynecology . 2018 ; 52 : 44 – 51 . doi: 10.1002/uog.19073 OpenUrl CrossRef PubMed ↵ Sufriyana H , Husnayain A , Chen Y-L , et al. Comparison of Multivariable Logistic Regression and Other Machine Learning Algorithms for Prognostic Prediction Studies in Pregnancy Care: Systematic Review and Meta-Analysis . JMIR Medical Informatics . 2020 ; 8 : e16503 . doi: 10.2196/16503 OpenUrl CrossRef ↵ Seto H , Oyama A , Kitora S , et al. Gradient boosting decision tree becomes more reliable than logistic regression in predicting probability for diabetes with big data . Sci Rep . 2022 ; 12 : 15889 . doi: 10.1038/s41598-022-20149-z OpenUrl CrossRef PubMed ↵ Bosschieter TM , Xu Z , Lan H , et al. Interpretable Predictive Models to Understand Risk Factors for Maternal and Fetal Outcomes . J Healthc Inform Res . Published Online First: 13 October 2023 . doi: 10.1007/s41666-023-00151-4 OpenUrl CrossRef ↵ DiCiccio TJ , Efron B. Bootstrap confidence intervals . Statistical Science . 1996 ; 11 : 189 – 228 . doi: 10.1214/ss/1032280214 OpenUrl CrossRef Web of Science ↵ Collins GS , Dhiman P , Ma J , et al. Evaluation of clinical prediction models (part 1): from development to external validation . BMJ . 2024 ; 384 : e074819 . doi: 10.1136/bmj-2023-074819 OpenUrl FREE Full Text ↵ Fawcett T . An introduction to ROC analysis . Pattern Recognition Letters . 2006 ; 27 : 861 – 74 . doi: 10.1016/j.patrec.2005.10.010 OpenUrl CrossRef Web of Science ↵ Efthimiou O , Seo M , Chalkou K , et al. Developing clinical prediction models: a step-by-step guide . BMJ . 2024 ; 386 : e078276 . doi: 10.1136/bmj-2023-078276 OpenUrl FREE Full Text ↵ Belsti Y , Moran L , Du L , et al. Comparison of machine learning and conventional logistic regression-based prediction models for gestational diabetes in an ethnically diverse population; the Monash GDM Machine learning model . Int J Med Inform . 2023 ; 179 : 105228 . doi: 10.1016/j.ijmedinf.2023.105228 OpenUrl CrossRef PubMed Cubillos G , Monckeberg M , Plaza A , et al. Development of machine learning models to predict gestational diabetes risk in the first half of pregnancy . BMC Pregnancy Childbirth . 2023 ; 23 : 469 . doi: 10.1186/s12884-023-05766-4 OpenUrl CrossRef PubMed ↵ Lin Q , Fang Z-J . Establishment and evaluation of a risk prediction model for gestational diabetes mellitus . World J Diabetes . 2023 ; 14 : 1541 – 50 . doi: 10.4239/wjd.v14.i10.1541 OpenUrl CrossRef PubMed ↵ Li Y-X , Liu Y-C , Wang M , et al. Prediction of gestational diabetes mellitus at the first trimester: machine-learning algorithms . Arch Gynecol Obstet . Published Online First: 21 July 2023 . doi: 10.1007/s00404-023-07131-4 OpenUrl CrossRef ↵ Ye Y , Xiong Y , Zhou Q , et al. Comparison of Machine Learning Methods and Conventional Logistic Regressions for Predicting Gestational Diabetes Using Routine Clinical Data: A Retrospective Cohort Study . Journal of Diabetes Research . 2020 ; 2020 : e4168340 . doi: 10.1155/2020/4168340 OpenUrl CrossRef ↵ Tonekaboni S , Joshi S , McCradden MD , et al. What Clinicians Want: Contextualizing Explainable Machine Learning for Clinical End Use . Proceedings of the 4th Machine Learning for Healthcare Conference . PMLR 2019 : 359 – 80 . ↵ Sweeting AN , Appelblom H , Ross GP , et al. First trimester prediction of gestational diabetes mellitus: A clinical model based on maternal demographic parameters . Diabetes Res Clin Pract . 2017 ; 127 : 44 – 50 . doi: 10.1016/j.diabres.2017.02.036 OpenUrl CrossRef PubMed ↵ Artzi NS , Shilo S , Hadar E , et al. Prediction of gestational diabetes based on nationwide electronic health records . Nat Med . 2020 ; 26 : 71 – 6 . doi: 10.1038/s41591-019-0724-8 OpenUrl CrossRef PubMed ↵ Kang BS , Lee SU , Hong S , et al. Prediction of gestational diabetes mellitus in Asian women using machine learning algorithms . Sci Rep . 2023 ; 13 : 13356 . doi: 10.1038/s41598-023-39680-8 OpenUrl CrossRef PubMed ↵ Cooray SD , De Silva K , Enticott JC , et al. Temporal validation and updating of a prediction model for the diagnosis of gestational diabetes mellitus . J Clin Epidemiol . 2023 ; 164 : 54 – 64 . doi: 10.1016/j.jclinepi.2023.08.020 OpenUrl CrossRef PubMed ↵ Donovan BM , Breheny PJ , Robinson JG , et al. Development and validation of a clinical model for preconception and early pregnancy risk prediction of gestational diabetes mellitus in nulliparous women . PLoS One . 2019 ; 14 : e0215173 . doi: 10.1371/journal.pone.0215173 OpenUrl CrossRef PubMed ↵ Du Y , Rafferty AR , McAuliffe FM , et al. An explainable machine learning-based clinical decision support system for prediction of gestational diabetes mellitus . Sci Rep . 2022 ; 12 : 1170 . doi: 10.1038/s41598-022-05112-2 OpenUrl CrossRef PubMed ↵ Wang Y , Ge Z , Chen L , et al. Risk Prediction Model of Gestational Diabetes Mellitus in a Chinese Population Based on a Risk Scoring System . Diabetes Ther . 2021 ; 12 : 1721 – 34 . doi: 10.1007/s13300-021-01066-2 OpenUrl CrossRef PubMed ↵ Maslin K , Ameye L , Vancoppenolle D , et al. Interpregnancy maternal weight change is not associated with offspring weight and obesity at age 2 years . Int J Obes . 2024 ; 48 : 1402 – 13 . doi: 10.1038/s41366-024-01554-y OpenUrl CrossRef View the discussion thread. Back to top Previous Next Posted May 13, 2025. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Evaluation of Machine Learning Models for Early Prediction of Gestational Diabetes Using Retrospective Electronic Health Records from Current and Previous Pregnancies Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share 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 medRxiv 2025.05.12.25327431; doi: https://doi.org/10.1101/2025.05.12.25327431 Share This Article: Copy Citation Tools 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 medRxiv 2025.05.12.25327431; doi: https://doi.org/10.1101/2025.05.12.25327431 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Health Informatics Subject Areas All Articles Addiction Medicine (567) Allergy and Immunology (863) Anesthesia (297) Cardiovascular Medicine (4411) Dentistry and Oral Medicine (443) Dermatology (380) Emergency Medicine (606) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1505) Epidemiology (15205) Forensic Medicine (30) Gastroenterology (1119) Genetic and Genomic Medicine (6574) Geriatric Medicine (666) Health Economics (994) Health Informatics (4511) Health Policy (1365) Health Systems and Quality Improvement (1608) Hematology (537) HIV/AIDS (1263) Infectious Diseases (except HIV/AIDS) (15903) Intensive Care and Critical Care Medicine (1103) Medical Education (620) Medical Ethics (144) Nephrology (666) Neurology (6573) Nursing (345) Nutrition (998) Obstetrics and Gynecology (1139) Occupational and Environmental Health (954) Oncology (3319) Ophthalmology (968) Orthopedics (369) Otolaryngology (420) Pain Medicine (435) Palliative Medicine (129) Pathology (662) Pediatrics (1689) Pharmacology and Therapeutics (691) Primary Care Research (710) Psychiatry and Clinical Psychology (5422) Public and Global Health (9205) Radiology and Imaging (2191) Rehabilitation Medicine and Physical Therapy (1367) Respiratory Medicine (1191) Rheumatology (593) Sexual and Reproductive Health (709) Sports Medicine (529) Surgery (709) Toxicology (99) Transplantation (288) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9fea6b11c8d81640',t:'MTc3OTI3MDQyOA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-26T02:00:01.498150+00:00
License: CC-BY-ND-4.0