First-Trimester Gestational Diabetes Mellitus Risk Prediction with Machine Learning Techniques: Results from the

Nikolaos Pazaras1, Antonios Siargkas2, Antigoni Tranidou2

  • 1Third Department of Obstetrics and Gynecology, School of Medicine, Faculty of Health Sciences, Aristotle University of Thessaloniki, 541 24 Thessaloniki, Greece.

Background: Gestational diabetes mellitus (GDM) affects many pregnancies worldwide and is associated with adverse maternal and fetal outcomes. Current screening at 24-28 weeks limits opportunities for early intervention. We evaluated whether machine learning (ML) models using first-trimester clinical and dietary data can predict GDM risk before the standard oral glucose tolerance test. Methods: We analyzed data from 797 pregnant women enrolled in the BORN2020 prospective cohort study (Thessaloniki, Greece). Ten ML algorithms were evaluated across five class-imbalance handling strategies using stratified 5-fold cross-validation, with final evaluation on an independent 20% held-out test set. Features included maternal demographics, obstetric history, lifestyle factors, and 22 dietary micronutrient intakes from the pre-pregnancy period assessed by Food Frequency Questionnaire. Results: The best-performing model (Logistic Regression without resampling) achieved an AUC-ROC of 0.664 (95% CI: 0.542-0.777), with sensitivity of 0.783 and NPV of 0.932 at the pre-specified threshold. The high NPV should be interpreted in the context of the low GDM prevalence (14.7%), as NPV is mathematically dependent on disease prevalence. A reduced nine-feature model using only routine clinical and demographic variables achieved a numerically higher AUC of 0.712 (95% CI: 0.589-0.825), with overlapping confidence intervals, indicating that detailed FFQ-derived micronutrient data did not improve prediction. Maternal age and pre-pregnancy BMI were the strongest individual predictors by SHAP analysis. No model reached the AUC >0.80 threshold for good discrimination. Substantial miscalibration was observed (slope: 0.56; intercept: -1.83), limiting use for absolute risk estimation. Conclusions: This exploratory study demonstrates that first-trimester ML models achieve modest discriminative ability for early GDM prediction, with routine clinical variables performing comparably to models incorporating detailed dietary assessment. These findings should be interpreted with caution, as no external validation cohort was available and the low events-per-variable ratio (~3.8) constrains the reliability of individual model estimates. Substantial miscalibration further limits use for absolute risk estimation. Accordingly, these models should be regarded as exploratory risk-ranking tools only and require external validation and recalibration before any clinical implementation.

Related Concept Videos

Diabetes Mellitus: Type 2 and Gestational01:22

Diabetes Mellitus: Type 2 and Gestational

Type 2 diabetes, characterized by insulin resistance, arises when the insulin receptors on cells lose responsiveness to insulin, diminishing the cell's capacity to take up glucose, resulting in elevated blood glucose levels. To receive a diagnosis of Type 2 diabetes, a series of blood glucose tests are necessary to assess whether the blood glucose falls within normal parameters. If the result is out of the normal range, a patient may be diagnosed as prediabetic or diabetic, depending on the...
5.5K
Pathophysiology of Diabetes01:20

Pathophysiology of Diabetes

Diabetes mellitus is a chronic metabolic disorder characterized by hyperglycemia. The four categories of diabetes are type 1 diabetes, type 2 diabetes, other specific types of diabetes, and gestational diabetes.
Type 1 diabetes is characterized by autoimmune-mediated destruction of pancreatic β cells, with environmental factors potentially triggering this process in genetically susceptible individuals. Despite many not having a family history, certain genes increase susceptibility,...
4.3K
Diabetes Mellitus: Overview and Type I Subtype01:22

Diabetes Mellitus: Overview and Type I Subtype

Diabetes mellitus is a chronic metabolic disorder characterized by high blood glucose levels due to inadequate insulin production, insulin resistance, or both. The condition affects millions worldwide and can significantly impact their health and quality of life.
Type 1 diabetes is an autoimmune disease in which the immune system mistakenly attacks and destroys the insulin-producing beta cells in the pancreas. As a result, the body is unable to produce sufficient insulin, and individuals with...
5.9K
Diabetes: Symptoms, Diagnosis, and Complications01:15

Diabetes: Symptoms, Diagnosis, and Complications

For most patients, experiencing several weeks of polyuria, polydipsia, fatigue, and significant weight loss may indicate the presence of diabetes. Furthermore, adults displaying the phenotypic appearance of type 2 diabetes (particularly those who are obese and not initially insulin-requiring), may have islet cell autoantibodies, suggesting autoimmune-mediated β cell destruction and a diagnosis of latent autoimmune diabetes of adults (LADA). The categorization of glucose homeostasis is...
2.8K