Machine Learning Approaches for Early Prediction of Gestational Diabetes Mellitus Based on Prospective Cohort Study

Jingyuan Wang, Xiujuan Chen, Yueshuai Pan, Kai Chen, Yan Zhang, Qianqian Li, Tong Sun, Haoyu Wang, Lili WeiResearch 2021

Abstract

Purpose: To develop and verify an early prediction model of gestational diabetes mellitus (GDM) using machine learning algorithms. Methods: The dataset was collected from a pregnant cohort study in eastern China from 2017 to 2019. It was randomly divided into a training dataset (75%) and a test dataset (25%). Four classic machine learning algorithms—Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM), and Artificial Neural Network (ANN)—along with a New-Stacking ensemble algorithm were evaluated. Performance was analyzed using sensitivity, specificity, accuracy, and Area Under the Curve (AUC). Results: Data from 2,811 pregnant women were analyzed. Model accuracies ranged from 80.09% to 86.91% (RF), sensitivities from 63.30% to 81.65% (SVM), specificities from 79.38% to 97.53% (RF), and AUCs from 0.80 to 0.82 (New-Stacking). Conclusion: While the New-Stacking model showed strong theoretical performance, the SVM model is recommended for clinical use due to its superior sensitivity.

Introduction

Gestational Diabetes Mellitus (GDM) is a significant global health concern, with an estimated prevalence of 14.8%. Currently, diagnosis relies on the Oral Glucose Tolerance Test (OGTT) conducted between the 24th and 28th weeks of pregnancy. However, by this stage, prolonged hyperglycemia may have already adversely affected fetal development and maternal health, increasing risks for macrosomia and future metabolic disorders.

Early prediction during the first trimester could enable timely lifestyle interventions. This study explores the application of machine learning (ML) to clinical data from early pregnancy to identify high-risk individuals before traditional diagnostic windows.

Methodology

The study utilized a prospective cohort of 2,811 pregnant women in Qingdao, China. Features included socio-demographic data (age, BMI), medical history (PCOS, family history of diabetes), and early laboratory markers (fasting glucose, triglycerides, hemoglobin).

To address data complexity and feature correlation, Principal Component Analysis (PCA) was employed. This technique reduced dimensionality while preserving the most significant variance in the dataset, as shown in the contribution rates of the principal components.

Principal component analysis (PCA) contribution rates for feature reduction.

Five models were developed:

  1. Logistic Regression (LR)
  2. Random Forest (RF)
  3. Support Vector Machine (SVM)
  4. Artificial Neural Network (ANN)
  5. New-Stacking Ensemble: A two-stage model using the four primary algorithms as base learners, with their outputs processed by a Decision Tree (DT) meta-learner.

Results

The models were validated on a test set comprising 485 healthy individuals and 218 GDM patients. The performance metrics revealed distinct strengths across the different algorithms.

Performance comparison of machine learning models for GDM prediction.

The Random Forest (RF) model achieved the highest accuracy (86.91%) and specificity (97.53%), making it excellent at identifying healthy pregnancies. However, its sensitivity was the lowest (63.30%). Conversely, the SVM model demonstrated the highest sensitivity at 81.65%, correctly identifying the largest proportion of GDM cases. The New-Stacking ensemble achieved the highest overall predictive power with an AUC of 0.82.

Discussion and Conclusion

The choice of an optimal clinical model depends on the balance between sensitivity and specificity. In the context of GDM screening, missing a diagnosis (false negative) carries higher clinical risk than a false alarm (false positive). Therefore, despite the higher overall accuracy of the RF model, the SVM model is recommended for clinical application due to its superior sensitivity (81.65%).

While the New-Stacking model provided the most robust theoretical framework (AUC 0.82), further validation is needed. Limitations of this study include its single-center design and reliance on some self-reported data. Future research will focus on multi-center external validation to ensure the model's generalizability across diverse populations.

Summary updated

BibTeX
@inproceedings{wang2021machine,
  author = {Jingyuan Wang and Xiujuan Chen and Yueshuai Pan and Kai Chen and Yan Zhang and Qianqian Li and Tong Sun and Haoyu Wang and Lili Wei},
  title = {{Machine Learning Approaches for Early Prediction of Gestational Diabetes Mellitus Based on Prospective Cohort Study}},
  booktitle = {Research},
  year = {2021},
  doi = {10.21203/rs.3.rs-508626/v1},
}
Figure