Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Towards an explainable clinical decision support system for large-for-gestational-age births

  • Yuhan Du,

    Roles Conceptualization, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation UCD Perinatal Research Centre, School of Computer Science, University College Dublin, Dublin, Ireland

  • Anthony R. Rafferty,

    Roles Writing – review & editing

    Affiliation UCD Perinatal Research Centre, School of Medicine, University College Dublin, National Maternity Hospital, Dublin, Ireland

  • Fionnuala M. McAuliffe,

    Roles Conceptualization, Data curation, Writing – review & editing

    Affiliation UCD Perinatal Research Centre, School of Medicine, University College Dublin, National Maternity Hospital, Dublin, Ireland

  • John Mehegan,

    Roles Data curation

    Affiliation UCD School of Public Health, Physiotherapy and Sports Science, University College Dublin, Dublin, Ireland

  • Catherine Mooney

    Roles Conceptualization, Investigation, Methodology, Supervision, Writing – original draft, Writing – review & editing

    catherine.mooney@ucd.ie

    Affiliation UCD Perinatal Research Centre, School of Computer Science, University College Dublin, Dublin, Ireland

Abstract

A myriad of maternal and neonatal complications can result from delivery of a large-for-gestational-age (LGA) infant. LGA birth rates have increased in many countries since the late 20th century, partially due to a rise in maternal body mass index, which is associated with LGA risk. The objective of the current study was to develop LGA prediction models for women with overweight and obesity for the purpose of clinical decision support in a clinical setting. Maternal characteristics, serum biomarkers and fetal anatomy scan measurements for 465 pregnant women with overweight and obesity before and at approximately 21 weeks gestation were obtained from the PEARS (Pregnancy Exercise and Nutrition with smart phone application support) study data. Random forest, support vector machine, adaptive boosting and extreme gradient boosting algorithms were applied with synthetic minority over-sampling technique to develop probabilistic prediction models. Two models were developed for use in different settings: a clinical setting for white women (AUC-ROC of 0.75); and a clinical setting for women of all ethnicity and regions (AUC-ROC of 0.57). Maternal age, mid upper arm circumference, white cell count at the first antenatal visit, fetal biometry and gestational age at fetal anatomy scan were found to be important predictors of LGA. Pobal HP deprivation index and fetal biometry centiles, which are population-specific, are also important. Moreover, we explained our models with Local Interpretable Model-agnostic Explanations (LIME) to improve explainability, which was proven effective by case studies. Our explainable models can effectively predict the probability of an LGA birth for women with overweight and obesity, and are anticipated to be useful to support clinical decision-making and for the development of early pregnancy intervention strategies to reduce pregnancy complications related to LGA.

Introduction

Large-for-gestational-age (LGA) newborns have a birth weight greater than the 90th centile for their gestational age at delivery. LGA births are associated with many maternal complications such as Cesarean section, postpartum hemorrhage and prolonged hospital stay, and neonatal complications such as shoulder dystocia, neonatal hypoglycemia and increased risks for childhood and adult obesity and diabetes [1]. Antenatal ultrasound is used to diagnose a LGA fetus, which has an estimated weight above the 90th centile. One of the primary concerns with LGA fetuses is that they have an increased risk of shoulder dystocia during vaginal delivery, which is when one or both fetal shoulders get trapped in the maternal pelvis during passage through the birth canal. Shoulder dystocia can result in significant fetal and maternal birth related injuries so it is very important that timely diagnosis and monitoring of LGA fetuses occurs so that adverse outcomes can be prevented.

Increased rates of LGA births have been observed in many countries since the late 20th century [26], in part due to a general rise in maternal body mass index (BMI) [3, 5]. Raised maternal BMI increases rates of gestational diabetes mellitus (GDM), which is a transient state of relative insulin resistance during pregnancy that increases LGA risk. Maternal BMI is derived from height and body weight, and can be used to classify women into four categories: underweight (<18.5 kg/m2), normal weight (18.5-24.9 kg/m2), overweight (25-29.9 kg/m2) and obese (≥30 kg/m2). Women who are overweight and obese are at higher risk of LGA than those with normal BMI [7]. The ability to predict LGA births in these high-risk women at an early stage of pregnancy would enable clinicians to apply intervention strategies that prevent the maternal and neonatal morbidity associated with LGA birth. Approaches including adopting a low glycaemic index diet, regular exercise and prevention or treatment of GDM [8] could potentially decrease the incidence of LGA and thus improved maternal and neonatal health outcomes.

Machine learning is a powerful data-driven technique expected to improve prognosis dramatically [9]. However, research on the development of LGA prediction models using machine learning techniques is sparse in the literature. We comprehensively reviewed research articles written in English that were published between January 2015 and June 2022 on PubMed, Embase, ACM and IEEE (accessed on 25 July 2022). The search term used is: (“large-for-gestational-age” OR “large for gestational age”) AND “machine learning”. Six articles were deemed relevant based on their content. Among them, several published models predicted LGA close to delivery, because they included features that are only available close to childbirth: sonographic measurements from 37 weeks gestation [10], gestational weight gain [11], or weight change up to 38 weeks gestation [12]. Therefore, they do not allow interventions to prevent the outcome. Akhtar et al. [13, 14] developed LGA prediction models using data collected from the Chinese National Pre-Pregnancy Examination Program, however, they did not provide sufficient detail on the descriptive features so we are unable to identify the pregnancy stage at which the LGA prediction can be made. Models by Kuhle et al. [15] predicted small and large for gestational age fetus both pre-pregnancy and at 26 weeks gestation. However, all of these published models aim to predict LGA in general pregnancy. There is a lack of studies that focus on a high-risk group, in which LGA risk assessment is more difficult and clinically helpful. Moreover, due to algorithmic complexity, machine learning models often lack explainability, i.e. the ability to provide explanations to clinicians and other users for how model predictions are made. Explainability is a critical component for clinical decision support systems (CDSS) to be adopted effectively in practice [16], and it has been researched in the development of CDSS prototypes [1721]. Some argue that the lack of explainability is unacceptable in CDSS [22]. Explainability can help users gain insights into the problem; identify potential biases in the models; and generate understanding of why errors occur thereby enabling trust in the models [23, 24]. Additionally, the General Data Protection Regulation (GDPR) in the EU gives data subject “the right not to be subject to a decision based solely on automated processing”, highlighting the need for explainability. None of the previous research on LGA risk prediction explicitly took explainability into consideration during the modeling process.

We have developed models capable of predicting the probability of an LGA birth in women with overweight and obesity at approximately 21 weeks gestation. This was achieved using a combination of maternal characteristics, serum biomarkers and ultrasound findings, in tandem with four machine learning algorithms: random forest, support vector machine (SVM), adaptive boosting (AdaBoost) and extreme gradient boosting (XGBoost). We applied Local Interpretable Model-agnostic Explanations (LIME) [25] to improve the explainability of the models. Our models were designed to be suitable for further development into an easy-to-use CDSS to support LGA screening and the development of targeted intervention strategies. Our findings, which are a progression of the previous work [26], are presented in this paper.

Materials and methods

Fig 1 shows the overview of the workflow of data preprocessing, model training, evaluation and explanation which are described in detail below.

Ethics statement

This research is a secondary analysis of the Pregnancy Exercise and Nutrition with smart phone application support (PEARS) study (ISRCTN29316280) and the ROLO (Randomised cOntrol trial of LOw glycaemic index diet vs no dietary intervention in pregnancy to prevent recurrence of a large baby) study (ISRCTN54392969). These randomised controlled trials were carried out at the National Maternity Hospital (NMH), Dublin, Ireland. Ethical approval was granted by the National Maternity Hospital Ethics Committee and maternal written consent was obtained.

Data

This research used data collected in the PEARS study, a randomised controlled trial of the impact of a multifaceted antenatal lifestyle intervention of low glycaemic index diet, exercise prescription supported with a specifically designed smartphone application, on the incidence of GDM in pregnant women with overweight and obesity (BMI ≥ 25 kg/m2) [27]. 565 women with a singleton pregnancy, BMI 25-39.9 kg/m2, aged 18 to 45, and that owned a smartphone, were recruited between 10-15 weeks gestation at the NMH between March 2013 and February 2016. Participants were stratified by their BMI, and allocated to either a control group (standard antenatal care) or an intervention group (additional education for lowering glycemic index and setting goals for physical activity). Our investigation involved 465 PEARS study participants that completed the trial and whose babies’ birth weight centiles were available.

We used descriptive features based on clinical data collected during two PEARS study visits, the randomisation or “baseline” visit (14.89±1.65 weeks gestation), and the visit for fetal anatomy scan (21.24±0.89 weeks gestation). At baseline, maternal anthropometry was measured and maternal demographic characteristics were recorded. Maternal blood samples were taken and analysed for several serum biomarkers. At the fetal anatomy scan, fetal biometry was assessed ultrasonographically using a Voluson 730 Expert (GE Medical Systems, Germany) and the estimated fetal weight (EFW) was calculated using the Hadlock formula [28]. Fetal biometry centiles and EFW centiles were also obtained. These features are shown in Table 1.

thumbnail
Table 1. Maternal characteristics and serum biomarkers at baseline, and ultrasound findings at fetal anatomy scan at approximately 21 weeks gestation.

https://doi.org/10.1371/journal.pone.0281821.t001

Missing data ranged from 0-64.30% among features, so a threshold of 30% was set for feature inclusion. Features with > 30% missing data were excluded from analysis, resulting in the loss of the serum biomarkers complement component 3 (C3), C-reactive protein (CRP), leptin and adiponectin collected at baseline. Missing data in the included features were imputed using the median for numerical features and mode for categorical features. The dataset was randomly split into a training set of 349 (75%) participants and an independent test set of 116 (25%).

The target feature for our investigation was whether the participant delivered a LGA infant or not. In the PEARS study, infant birth weight centiles were derived from birth weight recorded at delivery corrected for maternal weight, height, parity, ethnicity, final gestational age and infant’s sex, using the Gestation Network’s Bulk Calculator version 6.2.3 UK. If an infant’s birth weight centile was > 90th, they were deemed LGA.

External validation test set.

To validate the performance of our models externally, we used data collected from the ROLO study [29]. The ROLO study recruited secundigravid women at the NMH between 2007 and 2011 who had previously delivered a infant weighing greater than 4 kg, and randomised them into the control group (standard antenatal care) or the intervention group (low glycaemic index diet intervention).

A total of 759 women completed the study, and their data were collected, including maternal anthropometry, maternal demographic characteristics and blood biomarkers at baseline (12.95±2.31 weeks gestation), fetal biometry at the fetal anatomy scan visit (20.71±1.25 weeks gestation) measured using a Voluson 730 Expert (GE Medical Systems, Germany), and fetal biometry centiles. At delivery, infant’s birth weight was recorded and Gestation Network’s Bulk Calculator version 6.2.3 UK was used to calculate birth weight centiles corrected for maternal weight, height, parity, ethnicity, gestational age at delivery, and infant’s sex. An infant with birth weight centile > 90th was deemed LGA.

Participants in the control group in the ROLO study without missing values in the relevant features were used as an external validation test set.

Model training and evaluation

In this research, R packages “DMwR” [30], “randomForest” [31], “kernlab” [32], “fastAdaboost” [33], “xgboost” [34], “caret” [35] and “lime” [36] were used for data analysis and modeling in R 3.6.3.

Some features included in this research are redundant, that is, they carry very similar information as each other. We defined redundant features as those with absolute value of Pearson correlation coefficient greater than 0.6. Fig 2 shows the Pearson correlation coefficient between numerical and ordinal features in the training set. The size of the circles is proportional to the strength of the correlation and the colour represents the direction i.e. a large dark blue circle represents a strong positive correlation and a large dark red circle represents a strong negative correlation. Many highly correlated features were identified. They are: maternal weight, BMI and BMI category; fasting insulin and homeostatic model assessment (HOMA) index; total cholesterol and low-density lipoprotein (LDL) cholesterol; gestational age at fetal anatomy scan, fetal biometry (biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC), femur length (FL)) and estimated fetal weight (EFW); BPD centile and HC centile; AC centile and EFW centile; and FL centile and EFW centile.

thumbnail
Fig 2. Correlation plot for all numerical and ordinal features.

The size of the circles is proportional to the strength of the correlation and the colour represents the direction i.e. a large dark blue circle represents a strong positive correlation and a large dark red circle represents a strong negative correlation. Body mass index (BMI), mid upper arm circumference (MUAC), homeostatic model assessment (HOMA), low-density lipoprotein (LDL) cholesterol, high-density lipoprotein (HDL) cholesterol, fetal biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC), femur length (FL) and estimated fetal weight (EFW).

https://doi.org/10.1371/journal.pone.0281821.g002

Two models were developed with different combinations of features for different settings. Model 1 is a feature-agnostic model in which all features were considered candidates, and is suitable for white Irish residents. We ranked the candidate features according to their variable importance based on the mean decrease in Gini coefficient, which measures the features’ contribution to node impurity. Fig 3 shows the ranking of features for Model 1. Maternal age at baseline was ranked highest indicating it is a strong predictor of LGA, followed by gestational age at fetal anatomy scan, HC centile. AC centile and Pobal HP deprivation index (level of affluence and deprivation) were ranked at the top of the list as well. To avoid feature redundancy issue and to reduce the number of inputs required to use the models, which would increase the ease of implementation in a clinical setting, we only included the features with higher variable importance and removed those with less predictive power. As a result, maternal weight, BMI category, total cholesterol, HOMA index, BPD, BPD centile, HC, AC, FL, EFW, and EFW centile (marked with grey rectangles in Fig 3) were removed for Model 1.

thumbnail
Fig 3. List of features ranked by variable importance for Model 1.

Strong predictors are marked in red. Redundant features discarded are marked with grey rectangles. Body mass index (BMI), mid upper arm circumference (MUAC), homeostatic model assessment (HOMA), low-density lipoprotein (LDL) cholesterol, high-density lipoprotein (HDL) cholesterol, fetal biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC), femur length (FL) and estimated fetal weight (EFW).

https://doi.org/10.1371/journal.pone.0281821.g003

Fasting serum biomarkers are not normally collected during routine antenatal visits in Ireland. Their inclusion in a model can have a negative impact on the practicality of adopting the model in a clinical setting. In addition, some features are population-specific. Fetal biometry centiles, EFW centile and BMI category are based on white population. Pobal HP deprivation index, a measurement of the participants’ socioeconomic status based on the geographical area of their residence, is only available to Irish residents. These features will limit the application of the model to other populations. Therefore, we developed Model 2 in which all population-specific features as well as fasting serum biomarkers were excluded. Model 2 is designed to be applicable to pregnant women of all ethnicity and regions in a clinical setting.

Similar to Model 1, we ranked the candidate features for Model 2, as shown in Fig 4. Maternal age is the most predictive variable, followed by gestational age at fetal anatomy scan and white cell count. BPD, EFW and HC are also important, as well as baseline maternal MUAC. In this model, we allowed gestational age at fetal anatomy scan and fetal biometry to co-exist, because even though they are highly correlated, they carry different medical information and provide implications on fetal biometry centile to support LGA prediction. As a result, the redundant features are baseline maternal weight, HC, AC, FL, and EFW from fetal anatomy scan (marked with grey rectangles in Fig 4), and they were excluded for Model 2.

thumbnail
Fig 4. List of features ranked by variable importance for Model 2.

Strong predictors are marked in red. Redundant features discarded are marked with grey rectangles. Body mass index (BMI), mid upper arm circumference (MUAC), fetal biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC), femur length (FL) and estimated fetal weight (EFW).

https://doi.org/10.1371/journal.pone.0281821.g004

Fig 5 shows the correlation for candidate numerical and ordinal features for Model 1 and 2 after discarding the redundant features. None are highly correlated, i.e. have absolute value of Pearson correlation coefficient > 0.6, with the exception of the gestational age at fetal anatomy scan and BPD in Model 2 which we allowed.

thumbnail
Fig 5. Correlation Plot for Candidate Numerical and Ordinal Features for (a) Model 1 and (b) Model 2.

The size of the circles is proportional to the strength of the correlation and the colour represents the direction i.e. a large dark blue circle represents a strong positive correlation and a large dark red circle represents a strong negative correlation. Body mass index (BMI), mid upper arm circumference (MUAC), low-density lipoprotein (LDL) cholesterol, high-density lipoprotein (HDL) cholesterol, fetal biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC) and femur length (FL).

https://doi.org/10.1371/journal.pone.0281821.g005

For both Model 1 and 2, Synthetic Minority Over-sampling Technique (SMOTE) [37] was used to balance the training data, and random forest, SVM with linear, polynomial and radial basis function kernels, AdaBoost and XGBoost were applied to develop models to predict class probability. The following parameters were tuned based on the largest area under the receiver operating characteristic curve (AUC-ROC) in five-fold cross-validation: variables randomly sampled as candidates at each split in random forests; polynomial degree (for polynomial kernel), scale (for polynomial kernel) and cost (for both polynomial and radial basis function kernel) in SVMs; the number of trees and method in AdaBoost; the number of boosting iterations, L1 and L2 regularization in XGBoost. Linear booster for XGBoost was used. Other parameters used were set to the default. In cross-validation, only the training folds were balanced by SMOTE and the test folds were unchanged to avoid biased results.

To select the optimal feature subsets, the model fitting process was repeated on the subsets of highly ranked features with different sizes, and the models giving the highest AUC-ROC in cross-validation were selected as the final models.

The models were evaluated on the independent test set using AUC-ROC. Sensitivity, specificity and balanced accuracy (ACC) were calculated at an optimal decision threshold closest to the top-left corner of the ROC curve. The evaluation metrics are calculated as follows: (1) (2) (3) where:

  • True positives (TP): the number of LGA births that are predicted LGA
  • False positives (FP): the number of non-LGA births that are predicted as LGA
  • True negatives (TN): the number of non-LGA births that are predicted as non-LGA
  • False negatives (FN): the number of LGA births that are predicted as non-LGA

Models were also evaluated on the external validation test set to validate our models externally.

Explainability

Random forest, SVM, AdaBoost and XGBoost are algorithmic complex, and they create “black-box” models that do not reveal any information on its internal logic. To solve this problem and enhance clinicians’ understanding and trust of our models, we improved the local explainability of our models using LIME [25], a well-recognised model-agnostic post hoc interpretation method. LIME learns a local interpretable models around a prediction to explain the predictions of any model in a faithful way. We used LIME to calculate the contributions of descriptive features to a particular prediction to provide insights into how this prediction was made. Then the explanations generated by LIME were validated by case studies.

Results

The majority of the PEARS participants included were white (90.53%), predominantly white Irish (75.05%). All participants had a least some secondary education and most of them (83.45%) had at least some third degree education. At baseline, maternal age was 32.52±4.38 years, height 1.64±0.07 m, body weight 79.22±10.90 kg and BMI 29.24±3.32 kg/m2. 67.74% of the participants were overweight and 32.26% were obese. At delivery, 52 (11.18%) had a LGA birth and 413 (88.82%) delivered a non-LGA infant.

For Model 1, the performance of the models trained using different algorithms and numbers of highly ranked features in cross-validation is compared in Fig 6. AUC-ROC increases overall for all four algorithms when the feature size is small (below 4 or 5), which demonstrates the increase in predictive power as more features were included. As the feature size continues to increase, the performance decreases, possibly due to the “curse of dimensionality”. The highest AUC-ROC in cross-validation is achieved when random forest algorithm is used and the size of the feature subset is five. As a result, we selected random forest as the training algorithm and the top five features as the feature subset for Model 1: maternal age and Pobal HP Deprivation Index at baseline, HC centile and AC centile and gestational age at the fetal anatomy scan.

thumbnail
Fig 6. Performance of models using different algorithm and feature subset size for Model 1 in cross-validation.

Body mass index (BMI), mid upper arm circumference (MUAC), low-density lipoprotein (LDL) cholesterol, high-density lipoprotein (HDL) cholesterol, fetal head circumference (HC), abdominal circumference (AC), and femur length (FL).

https://doi.org/10.1371/journal.pone.0281821.g006

Fig 7 compares the performance of the models trained using different algorithms and feature subset sizes for Model 2 in cross-validation. An overall increasing trend in AUC-ROC is observed when the feature subset size is small (below 5), possibly because of the information gained through adding new features. As the number of features further increases, the performance levels off with fluctuations. The highest AUC-ROC in cross-validation is achieved when using XGBoost at feature subset size of five. Therefore, XGBoost was selected and the top five features were included: maternal age, MUAC and white cell count at baseline, and BPD and gestational age at the fetal anatomy scan.

thumbnail
Fig 7. Performance of models using different algorithm and feature subset size for Model 2 in cross-validation.

Body mass index (BMI), mid upper arm circumference (MUAC), fetal biparietal diameter (BPD).

https://doi.org/10.1371/journal.pone.0281821.g007

We conclude that maternal age and gestational age at fetal anatomy scan (highly correlated with fetal biometry and EFW) are important features for LGA prediction, as they are ranked high in both models (see Figs 3 and 4). White cell count, BPD and MUAC are also important as they are included in Model 2. Of the population-specific features, Pobal HP deprivation index, HC centile and AC centile are the most important ones.

Table 2 shows the performance of our final models evaluated on the independent test set. Model 1 performs well overall, with an AUC-ROC of 0.75. At a decision threshold 0.36, Model 1 was able to predict 85% of LGA participants and 62% of non-LGA participants correctly, achieving a balanced accuracy of 73%. Six participants in the independent test set are non-white and all of them had a non-LGA birth. 67% of them were predicted as LGA incorrectly, indicating that our model which is suitable for white Irish residents may not generalise well to other populations. Model 2 achieved an AUC-ROC of 0.57. At the optimal decision threshold of 0.34, Model 2 was able to predict 54% of LGA participants and 71% of non-LGA participants correctly, achieving a balanced accuracy of 62%. The performance of Model 2 is lower than that of Model 1, possibly because of the lost of the information contained in the population-specific features, especially Pobal HP deprivation index, HC centile and AC centile which are strong predictors of LGA.

thumbnail
Table 2. Performance of Models 1 and 2 on the independent test set.

https://doi.org/10.1371/journal.pone.0281821.t002

We compared the birth weight centiles of the participants in the independent test set who were predicted correctly and incorrectly by our models, as shown in Fig 8. Of all LGA participants, those incorrectly predicted as non-LGA (false negatives) by Model 1 had overall lower birth weight centiles than those correctly predicted (true positives). Of all non-LGA participants, those incorrectly predicted as LGA (false positives) by Model 1 had overall higher birth weight centiles than those correctly predicted as non-LGA (true negatives). This demonstrates that our Model 1 is more likely to give incorrect predictions for borderline cases, i.e. those whose birth weight centiles are close to the cutoff of the 90th centile for defining LGA from non-LGA cases. Model 2 did not show similar patterns, possibly because the model does not demonstrate a very high performance on the independent test set.

thumbnail
Fig 8. Comparison of Birth Weight Centile Between Correctly and Incorrectly Predicted Independent Test Cases for (a) Model 1 and (b) Model 2.

Model 1 is more likely to give an incorrect predictions for cases closer to borderline.

https://doi.org/10.1371/journal.pone.0281821.g008

External validation

We validated Model 1 using an external validation test set of 302 ROLO participants from the control group who had no missing values in the features included in Model 1. Most of these participants were white (97.02%), predominantly white Irish (88.41%). All participants had at least some secondary education and the majority (67.88%) of them had at least some third degree education. At baseline, maternal age was 32.37±4.34 years, height 165.67±6.20 cm, body weight 73.07±13.08 kg and BMI 26.64±4.64 kg/m2. 0.66% of these participants were underweight, 42.38% were at a normal weight, 37.75% were overweight and 19.21% were obese. At delivery, 92 (30.46%) had an LGA birth and 210 (69.54%) delivered a non-LGA infant.

Model 1 achieved acceptable performance on this external validation test set, giving an AUC-ROC of 0.62. This is not as good as the performance on the independent test set from the PEARS dataset, potential because of the difference between PEARS and ROLO populations. PEARS participants were all women with overweight and obesity, whereas some ROLO participants were underweight or at a normal weight but all had a macrosomic birth history. The rate of LGA is different (11.18% in PEARS versus 30.46% in the external validation test set from ROLO). Unfortunately, we are unable validate Model 2, because white cell count was not collected in the ROLO study.

Explainability and case study

LIME was applied to explain the models locally. Two cases from the independent test set were used for case studies: an LGA case, and a non-LGA case. They are shown in Table 3. We define extreme values of a feature as values greater than or equal to the third quartile or lower than the first quartile of the feature prior to imputation, and a normal range as values between the first and third quartile. Both cases have extremely high AC centile. Case 1, the LGA case, has extremely high maternal MUAC and HC centile and extremely low BPD. Case 2, the non-LGA case, has extremely high BPD and extremely low Pobal HP deprivation index and white cell count. Fig 9 shows the lists of features ranked by their effects on the LGA class using LIME as well as the predicted class probability for LGA. Both cases were predicted correctly by our models, indicating that the models perform well on these cases and these cases are valid for cases studies. We aim to investigate how these extreme values affect the predicted risk, and which features have opposite effects on Case 1 and 2 to explain the prediction difference.

thumbnail
Fig 9. Feature Effects on the LGA Class and Predicted LGA Probability for Case 1 (LGA) and Case 2 (non-LGA) in (a) Model 1 and (b) Model 2 Using LIME.

Case 1 has extremely high MUAC and HC centile and extremely low BPD. Case 2 has extremely high BPD and extremely low Pobal HP deprivation index and white cell count. Both cases have extremely high AC centile. Mid upper arm circumference (MUAC), fetal biparietal diameter (BPD), head circumference (HC), abdominal circumference (AC).

https://doi.org/10.1371/journal.pone.0281821.g009

In Model 1, the extremely high AC centile largely increases the LGA risk for both Case 1 and 2. Case 1’s extremely high HC centile highly increases the LGA risk, whereas Case 2’s HC centile in normal range decreases the risk, leading to the opposite predicted classes for these cases. The extremely low Pobal HP deprivation index in Case 2 decreases the LGA risk greatly, whereas Pobal HP deprivation index in normal range for Case 1 increases the risk, contributing to opposite classes as well.

In Model 2, white cell count and BPD contribute highly to the different predicted classes. The extremely low white cell count for Case 2 decreases the LGA risk to a large extent, while the white cell count in normal range for Case 1 increases the LGA risk. The extremely low BPD leads to a big decrease in the LGA risk for Case 1, whereas the extremely high BPD increases the risk for Case 2. In addition, the extremely high MUAC for Case 1 increases the LGA risk whereas MUAC in normal range for Case 2 decreases the risk. Gestational age at fetal anatomy scan contributes to the difference of predictions as well.

As a result, the feature effects on these predictions are rational, showing that LIME performs well in providing explanations for the predictions of our models. It indicates that LIME has potential for explaining our models locally in a clinical setting.

Discussion

The following factors were found to be important in the prediction of an LGA infant: maternal age, MUAC, white cell count at baseline, BPD and gestational age at fetal anatomy scan, as well as Pobal HP deprivation index, HC centile and AC centile which are population-specific to white Irish residents.

Applying machine learning algorithms to readily available clinical data may support the early and accurate identification of LGA births during the second trimester of pregnancy. Our Model 1 is suitable for the prediction of LGA births for white Irish residents and achieved high overall performance (AUC-ROC of 0.75). It compares favourably with Kuhle et al. [15], who applied logistic regression, elastic net, classification tree, random forest, gradient boosting and neural network on data collected from mothers resident in Nova Scotia, and achieved AUC-ROC of 0.563-0.594 and 0.659-0.700 in pre-pregnant nulliparous and multiparous women, respectively, and AUC-ROC of 0.673-0.705 and 0.718-0.748 in nulliparous and multiparous women at 26 weeks gestation, respectively. Our findings are applicable to the mid trimester of pregnancy, whereas most published machine learning models were only able to predict LGA in late pregnancy or close to delivery [1012], or provided insufficient information on the timing of prediction [13, 14]. Our models predict LGA when the fetal size is much smaller, though a tradeoff in reduced performance was observed.

Machine learning models highly depend on the data they are trained on. Based on where participants were recruited, the published models may only be applicable to areas with similar population and antenatal care, while none has evaluated or discussed the applicability and generalisability of their models. The data for this study was collected at a single centre in Dublin, Ireland, where the majority of participants were white. Of PEARS participants included in this study, 75.05% were white Irish, and 15.48% were from other white origins. Only 6.88% of the participants were from other ethnic origins, including Black, Asian and mixed. As most of the participants were white Irish residents, two models suitable for clinical uses were developed: Model 1 for white Irish residents for which our initial cross-population evaluation showed lack of generalisability for non-white women, and Model 2 for pregnant women of all ethnicity and regions. The external validation of Model 1 gave acceptable performance but was less accurate than the performance on the independent test set, potentially because of the difference in populations, especially regarding maternal BMI and macrosomic birth history. Future work on validation on larger datasets and on other populations, such as non-white women, is required before application in clinical settings.

In addition, this is the first LGA study to target women with overweight and obesity, known to be at-risk of having a LGA infant. Lifestyle interventions in pregnancy are cost-effective in reducing pregnancy complications [38] therefore earlier prediction of at risk pregnancies hold significant potential to offer interventions to at risk women. Although we did not find any previous machine learning studies in the prediction of LGA among pregnant women with overweight and/or obesity, we found some studies conducted on GDM prediction among these women. Balani et al. [39] developed a decision tree for obese pregnant women based on body composition analysis. Their model, trained on data from pregnant women in UK of which the majority is Caucasian, may only work in regions with similar population and body composition analysis machine. Du et al. [19] developed SVM models to predict GDM in women with overweight and obesity. Their models, based on the white population, have the potential to generalise to a non-white population, however, a lower decision threshold might be needed. Future work could be conducted to investigate if differing decision thresholds are required for different populations in LGA prediction.

Several CDSSs developed to improve pregnancy care have been tested in clinical settings [4043]. However, most of them are based on clinical guidelines and knowledge. Only Caballero-Ruiz et al. [42] who evaluated their CDSS in a clinical trial incorporated some machine learning techniques in their system. In contrast, our research focusing on the development of a machine learning-based CDSS, which is data-based and does not directly rely on medical knowledge, could help to bridge the gap in literature.

Clinicians have heavy workloads and time constraints may be a barrier to the use of CDSS [44]. We took clinical practicality into account in many aspects of model development. For instance, we used probabilistic prediction so that our models’ false positive rate would be adjustable to suit the needs in different clinical settings. In the feature selection step, we reduced redundant features to keep the minimum number of features so that the models would be fast to use and thus save clinicians’ time. This enhances the practicality of applying our models in clinical practice and facilitates efficient clinical workflow. Screening a high-risk group instead of the whole population is time-saving as well as cost-effective, and can be facilitated by the use of these models. Model 1 was developed in a feature-agnostic manner, however, for Model 2 we considered the difficulty of data collection as an initial feature selection step in modeling. Therefore, in Model 2, fasting serum biomarkers were excluded at the beginning because they are not routinely assessed in an Irish clinical setting. Moreover, Model 1 excluded fasting serum biomarkers in the final feature set as they were not highly ranked as informative. As a result, the models we developed included clinically available features only without the need to acquire additional fasting blood samples. They are expected to be easily applicable in an antenatal routine and lead to a more widely usable CDSS.

Furthermore, the inclusion of explainability added more novelty to our work. LIME was applied to explain the predictions of our models, and explanations were proven effective by case study. Explainability in CDSSs has been reported to boost the decision confidence for clinicians and increase the acceptability and trustworthiness of these systems [16]. Although there is a debate on whether adding explainability in artificial intelligence-based systems is necessary and worth the substantial cost [23], explainability may enhance the uptake of CDSSs and may become a requirement in the future because of societal, regulatory and ethical pressures [16]. As a result, we believe that the use of LIME increases the potential of using our models in a clinical setting.

Another advantage of our research is the appropriate handling of the class imbalance problem. In medical datasets, it is common that healthy cases outnumbers the pathological cases, often significantly, thus leading to severe class imbalance in the target feature. This is also the case in our research as our primary dataset consisted of 52 (11.18%) LGA cases and 413 (88.82%) non-LGA cases. Without handling this issue correctly, the models developed may perform well on the majority class while under-performing on the minority classes. We balanced the training data using SMOTE, which draws lines connecting similar cases in the minority class and synthetically creates new ones along the lines [37]. Moreover, we used balanced accuracy instead of accuracy when evaluating on the independent test set, because the latter may give a biased evaluation on unbalanced data.

We treated the PEARS study as a cohort study without taking into account the effect of the intervention. Using the entire cohort for analysis was beneficial for this research because it captured a range of fetal gestational weights and doubled the size of the dataset which allows for more accurate modeling.

Conclusion

We successfully developed LGA prediction models for pregnant women with overweight and obesity at approximately 21 weeks gestation using random forest and XGBoost algorithms, and we explained the predictions of our models by feature effects on these predictions based on LIME. Our explainable model for white women demonstrates good performance with potential to be developed into a CDSS for clinical use to identify in early pregnancy women at risk for LGA infant. Earlier identification in pregnancy allows for the development of appropriate interventions to reduce the maternal and neonatal morbidity associated with the birth of an LGA infant.

Acknowledgments

We are grateful to the participating mothers and to the research and clinical staff who enabled the recruitment of the participants in this study.

References

  1. 1. Weissmann-Brenner A, Simchen MJ, Zilberberg E, Kalter A, Weisz B, Achiron R, et al. Maternal and neonatal outcomes of large for gestational age pregnancies. Acta obstetricia et gynecologica Scandinavica. 2012;91(7):844–849. pmid:22471810
  2. 2. Ananth CV, Wen SW. Trends in fetal growth among singleton gestations in the United States and Canada, 1985 through 1998. In: Seminars in perinatology. vol. 26. Elsevier; 2002. p. 260–267.
  3. 3. Kramer MS, Morin I, Yang H, Platt RW, Usher R, McNamara H, et al. Why are babies getting bigger? Temporal trends in fetal growth and its determinants. The Journal of pediatrics. 2002;141(4):538–542. pmid:12378194
  4. 4. Wen SW, Kramer MS, Platt R, Demissie K, Joseph K, Liu S, et al. Secular trends of fetal growth in Canada, 1981 to 1997. Paediatric and perinatal epidemiology. 2003;17(4):347–354. pmid:14629316
  5. 5. Surkan PJ, Hsieh CC, Johansson AL, Dickman PW, Cnattingius S. Reasons for increasing trends in large for gestational age births. Obstetrics & Gynecology. 2004;104(4):720–726. pmid:15458892
  6. 6. Hadfield RM, Lain SJ, Simpson JM, Ford JB, Raynes-Greenow CH, Morris JM, et al. Are babies getting bigger? An analysis of birthweight trends in New South Wales, 1990–2005. Medical Journal of Australia. 2009;190(6):312–315. pmid:19296812
  7. 7. Kim SY, Sharma AJ, Sappenfield W, Wilson HG, Salihu HM. Association of maternal body mass index, excessive weight gain, and gestational diabetes mellitus with large-for-gestational-age births. Obstetrics and gynecology. 2014;123(4):737. pmid:24785599
  8. 8. Walsh JM, McAuliffe FM. Prediction and prevention of the macrosomic fetus. European Journal of Obstetrics & Gynecology and Reproductive Biology. 2012;162(2):125–130. pmid:22459652
  9. 9. Obermeyer Z, Emanuel EJ. Predicting the future—big data, machine learning, and clinical medicine. The New England journal of medicine. 2016;375(13):1216. pmid:27682033
  10. 10. Ye S, Zhang H, Shi F, Guo J, Wang S, Zhang B. Ensemble learning to improve the prediction of fetal macrosomia and large-for-gestational age. Journal of Clinical Medicine. 2020;9(2):380. pmid:32023935
  11. 11. Gibbons KS, Chang AM, Ma RC, Tam WH, Catalano PM, Sacks DA, et al. Prediction of large-for-gestational age infants in relation to hyperglycemia in pregnancy–A comparison of statistical models. Diabetes Research and Clinical Practice. 2021;178:108975. pmid:34302910
  12. 12. Tao J, Yuan Z, Sun L, Yu K, Zhang Z. Fetal birthweight prediction with measured data by a temporal machine learning method. BMC Medical Informatics and Decision Making. 2021;21(1):1–10. pmid:33494752
  13. 13. Akhtar F, Li J, Pei Y, Liu B, Azeem M, Wang Q, et al. Diagnosis of large for gestational age fetus with an expert-driven feature selection scheme. In: 2019 IEEE Symposium Series on Computational Intelligence (SSCI). IEEE; 2019. p. 3152–3157.
  14. 14. Akhtar F, Li J, Yan P, Imran A, Shaikh GM, Xu C. Exploiting Ensemble Classification Schemes to Improve Prognosis Process for Large for Gestational Age Fetus Classification. In: 2020 IEEE 44th Annual Computers, Software, and Applications Conference (COMPSAC). IEEE; 2020. p. 1455–1459.
  15. 15. Kuhle S, Maguire B, Zhang H, Hamilton D, Allen AC, Joseph K, et al. Comparison of logistic regression with machine learning methods for the prediction of fetal growth abnormalities: a retrospective cohort study. BMC pregnancy and childbirth. 2018;18(1):1–9. pmid:30111303
  16. 16. Antoniadi AM, Du Y, Guendouz Y, Wei L, Mazo C, Becker BA, et al. Current challenges and future opportunities for XAI in machine learning-based clinical decision support systems: a systematic review. Applied Sciences. 2021;11(11):5088.
  17. 17. Bussone A, Stumpf S, O’Sullivan D. The role of explanations on trust and reliance in clinical decision support systems. In: 2015 international conference on healthcare informatics. IEEE; 2015. p. 160–169.
  18. 18. Du Y, Rafferty AR, McAuliffe FM, Mooney C. Explaining large-for-gestational-age births: a random forest classifier with a novel local interpretation method. In: Proceedings of the 12th ACM Conference on Bioinformatics, Computational Biology, and Health Informatics; 2021. p. 1–1.
  19. 19. Du Y, Rafferty AR, McAuliffe FM, Wei L, Mooney C. An explainable machine learning-based clinical decision support system for prediction of gestational diabetes mellitus. Scientific Reports. 2022;12(1):1–14. pmid:35064173
  20. 20. Antoniadi AM, Galvin M, Heverin M, Wei L, Hardiman O, Mooney C. A Clinical Decision Support System for the Prediction of Quality of Life in ALS. Journal of Personalized Medicine. 2022;12(3):435. pmid:35330435
  21. 21. Du Y, Antoniadi AM, McNestry C, McAuliffe FM, Mooney C. The Role of XAI in Advice-Taking from a Clinical Decision Support System: A Comparative User Study of Feature Contribution-Based and Example-Based Explanations. Applied Sciences. 2022;12(20):10323.
  22. 22. Shortliffe EH, Sepúlveda MJ. Clinical decision support in the era of artificial intelligence. Jama. 2018;320(21):2199–2200. pmid:30398550
  23. 23. Adadi A, Berrada M. Peeking inside the black-box: a survey on explainable artificial intelligence (XAI). IEEE access. 2018;6:52138–52160.
  24. 24. Arrieta AB, Díaz-Rodríguez N, Del Ser J, Bennetot A, Tabik S, Barbado A, et al. Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information fusion. 2020;58:82–115.
  25. 25. Ribeiro MT, Singh S, Guestrin C. “Why should i trust you?” Explaining the predictions of any classifier. In: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining; 2016. p. 1135–1144.
  26. 26. Du Y, Mehegan J, McAuliffe FM, Mooney C. Prediction of Large for Gestational Age Infants in Overweight and Obese Women at Approximately 20 Gestational Weeks. In: Proceedings of the 11th ACM International Conference on Bioinformatics, Computational Biology and Health Informatics; 2020. p. 1–1.
  27. 27. Kennelly MA, Ainscough K, Lindsay KL, O’Sullivan E, Gibney ER, McCarthy M, et al. Pregnancy exercise and nutrition with smartphone application support: a randomized controlled trial. Obstetrics & Gynecology. 2018;131(5):818–826. pmid:29630009
  28. 28. Hadlock FP, Harrist R, Sharman RS, Deter RL, Park SK. Estimation of fetal weight with the use of head, body, and femur measurements—a prospective study. American journal of obstetrics and gynecology. 1985;151(3):333–337. pmid:3881966
  29. 29. Walsh JM, McGowan CA, Mahony R, Foley ME, McAuliffe FM. Low glycaemic index diet in pregnancy to prevent macrosomia (ROLO study): randomised control trial. Bmj. 2012;345. pmid:22936795
  30. 30. Torgo L. Data Mining with R, learning with case studies. Chapman and Hall/CRC; 2010. Available from: http://www.dcc.fc.up.pt/~ltorgo/DataMiningWithR.
  31. 31. Liaw A, Wiener M. Classification and Regression by randomForest. R News. 2002;2(3):18–22.
  32. 32. Karatzoglou A, Smola A, Hornik K, Zeileis A. kernlab—An S4 Package for Kernel Methods in R. Journal of Statistical Software. 2004;11(9):1–20.
  33. 33. Chatterjee S. fastAdaboost: a Fast Implementation of Adaboost; 2016. Available from: https://CRAN.R-project.org/package=fastAdaboost.
  34. 34. Chen T, He T, Benesty M, Khotilovich V, Tang Y, Cho H, et al. xgboost: Extreme Gradient Boosting; 2021. Available from: https://CRAN.R-project.org/package=xgboost.
  35. 35. Kuhn M. caret: Classification and Regression Training; 2020. Available from: https://CRAN.R-project.org/package=caret.
  36. 36. Pedersen TL, Benesty M. lime: Local Interpretable Model-Agnostic Explanations; 2019. Available from: https://CRAN.R-project.org/package=lime.
  37. 37. Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. SMOTE: synthetic minority over-sampling technique. Journal of artificial intelligence research. 2002;16:321–357.
  38. 38. O’Sullivan EJ, Rokicki S, Kennelly M, Ainscough K, McAuliffe FM. Cost-effectiveness of a mobile health-supported lifestyle intervention for pregnant women with an elevated body mass index. International journal of obesity. 2020;44(5):999–1010. pmid:31965073
  39. 39. Balani J, Hyer S, Shehata H, Mohareb F. Visceral fat mass as a novel risk factor for predicting gestational diabetes in obese pregnant women. Obstetric medicine. 2018;11(3):121–125. pmid:30214477
  40. 40. Edelman EA, Lin BK, Doksum T, Drohan B, Edelson V, Dolan SM, et al. Evaluation of a novel electronic genetic screening and clinical decision support tool in prenatal clinical settings. Maternal and child health journal. 2014;18(5):1233–1245. pmid:24101435
  41. 41. Mensah N, Sukums F, Awine T, Meid A, Williams J, Akweongo P, et al. Impact of an electronic clinical decision support system on workflow in antenatal care: the QUALMAT eCDSS in rural health care facilities in Ghana and Tanzania. Global health action. 2015;8(1):25756. pmid:25630707
  42. 42. Caballero-Ruiz E, García-Sáez G, Rigla M, Villaplana M, Pons B, Hernando ME. A web-based clinical decision support system for gestational diabetes: Automatic diet prescription and detection of insulin needs. International journal of medical informatics. 2017;102:35–49. pmid:28495347
  43. 43. Nishimwe A, Ibisomi L, Nyssen M, Conco DN. The effect of a decision-support mHealth application on maternal and neonatal outcomes in two district hospitals in Rwanda: pre–post intervention study. BMC Pregnancy and Childbirth. 2022;22(1):1–11. pmid:35057761
  44. 44. Devaraj S, Sharma SK, Fausto DJ, Viernes S, Kharrazi H, et al. Barriers and facilitators to clinical decision support systems adoption: A systematic review. Journal of Business Administration Research. 2014;3(2):36.