Next Article in Journal
Classification of User Emotional Experiences on B2C Websites Utilizing Infrared Thermal Imaging
Next Article in Special Issue
AI- and IoT-Enabled Solutions for Healthcare
Previous Article in Journal
Automatic Calibration of a Device for Blood Pressure Waveform Measurement
Previous Article in Special Issue
Survey of Explainable AI Techniques in Healthcare
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Stacked Long Short-Term Memory Approach for Predictive Blood Glucose Monitoring in Women with Gestational Diabetes Mellitus

1
Department of Engineering Science, University of Oxford, Oxford OX3 7DQ, UK
2
Women’s Centre, Oxford University Hospitals NHS Foundation Trust, Oxford OX3 9DU, UK
3
George Institute for Global Health, Imperial College London, London W12 7RZ, UK
4
Oxford Suzhou Centre for Advanced Research, Suzhou 215123, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2023, 23(18), 7990; https://doi.org/10.3390/s23187990
Submission received: 18 August 2023 / Revised: 8 September 2023 / Accepted: 18 September 2023 / Published: 20 September 2023
(This article belongs to the Special Issue AI and IoT Enabled Solutions for Healthcare)

Abstract

:
Gestational diabetes mellitus (GDM) is a subtype of diabetes that develops during pregnancy. Managing blood glucose (BG) within the healthy physiological range can reduce clinical complications for women with gestational diabetes. The objectives of this study are to (1) develop benchmark glucose prediction models with long short-term memory (LSTM) recurrent neural network models using time-series data collected from the GDm-Health platform, (2) compare the prediction accuracy with published results, and (3) suggest an optimized clinical review schedule with the potential to reduce the overall number of blood tests for mothers with stable and within-range glucose measurements. A total of 190,396 BG readings from 1110 patients were used for model development, validation and testing under three different prediction schemes: 7 days of BG readings to predict the next 7 or 14 days and 14 days to predict 14 days. Our results show that the optimized BG schedule based on a 7-day observational window to predict the BG of the next 14 days achieved the accuracies of the root mean square error (RMSE) = 0.958 ± 0.007, 0.876 ± 0.003, 0.898 ± 0.003, 0.622 ± 0.003, 0.814 ± 0.009 and 0.845 ± 0.005 for the after-breakfast, after-lunch, after-dinner, before-breakfast, before-lunch and before-dinner predictions, respectively. This is the first machine learning study that suggested an optimized blood glucose monitoring frequency, which is 7 days to monitor the next 14 days based on the accuracy of blood glucose prediction. Moreover, the accuracy of our proposed model based on the fingerstick blood glucose test is on par with the prediction accuracies compared with the benchmark performance of one-hour prediction models using continuous glucose monitoring (CGM) readings. In conclusion, the stacked LSTM model is a promising approach for capturing the patterns in time-series data, resulting in accurate predictions of BG levels. Using a deep learning model with routine fingerstick glucose collection is a promising, predictable and low-cost solution for BG monitoring for women with gestational diabetes.

1. Introduction

Gestational diabetes mellitus (GDM) is one of the most common medical complications of pregnancy and is defined as carbohydrate intolerance resulting in hyperglycaemia of variable severity with onset or first recognition during pregnancy by the World Health Organization (WHO) [1]. GDM is associated with short- and long-term adverse health consequences for mothers and children. Due to increasing obesity and maternal age, the worldwide prevalence of GDM has doubled in the past five years. GDM currently affects approximately one in six pregnancies worldwide and one in five pregnancies in the UK [2,3,4,5,6]. Cost-effective, safe and clinically plausible management solutions are urgently needed to improve the quality of health and care in response to the increased demand for maternity and diabetes clinical services.
People with GDM need to self-manage their blood glucose through dietary and exercise adjustments, as well as with medication intervention. In many places around the world, including the UK, GDM management initially follows a ‘one-size-fits-all approach’ with little consideration of individual differences. Management begins with education, dietary and lifestyle advice. Capillary blood glucose (BG) testing is recommended, fasting, pre- and post-meal between 4 and 6 times a day, until the baby’s birth. Depending on the BG response, some women with GDM need oral medications or insulin intervention for their BG management, whereas some can manage BG via diet and exercise. Conscious glucose monitoring (CGM) is a more expensive alternative for glucose monitoring and management. CGM repeats the sampling of interstitial glucose by a fine capillary via an adhesive sensor on the skin. Whilst transformative for pregnant women with type 1 diabetes, CGM technologies are expensive with a lack of evidence to support their use in GDM. As such, fingerstick monitoring remains the recommended method of glucose monitoring in GDM.
Despite the need for digital health innovations in helping blood glucose management, a very limited number of clinical studies have been commercialized and put into clinical practice for blood glucose management. Instead, the majority of work is nonclinical applications for generic use. The established technologies include GDm-Health (UK), Pregnant+ (Norway, China and Nepal) and MobiGuide (Spain). For more information, Lu et al.’s paper [7] provides a comprehensive review of sensor technologies and machine learning methods in blood glucose monitoring and management. Previous work in predicting blood glucose during GDM includes medication prediction [8] and high blood glucose alert systems [9].
This study builds on the GDm-Health development at the Institute of Biomedical Engineering and the Nuffield Department of Women’s Reproductive Health at the University of Oxford. GDm-Health is the UK’s first clinical gestational diabetes management platform [10]. GDm-Health is a smartphone-based, Bluetooth-controlled BG monitoring platform with a bidirectional communication system between patients and clinicians to enable remote patient monitoring [11,12]. The GDm-Health device is a CE-marked medical device and can be prescribed via health providers. The GDm-Health platform is currently being used by more than 50 NHS Foundation Trust Hospitals and covers more than 50% of the gestational diabetes population in England.

2. Results

2.1. Study Design and Participants

Model development was performed on data from a single site at the Women’s Centre in the John Radcliffe Hospital, Oxford University (OUH) NHS Foundation Trust, Oxford, UK. Data were extracted from the electronic medical records of each woman from their first pregnancy booking appointment until the closure of that maternity encounter, following either delivery or discharge from postnatal care, loss to follow-up (e.g., moved away) or miscarriage/termination of pregnancy.
There were 1282 patients with GDM who were managed by the OUH and used the GDm-Health Apps between 14/08/2017 and 10/05/2021. Among them, 1110 patients (1148 pregnancies) were included in this study. The mean maternal age, BMI, parity and gravidity were 33.5 years, 31.0, 1.6 and 2.6, respectively.
Eligibility criteria were pregnant women with GDM at the OUH, with singleton pregnancies, who recorded their BG data on the GDm-Health system and had an electronic health record for the pregnancy. For this study, GDM was defined as per the hospital guidelines at the time of pregnancy. Throughout the study period, all pregnant women underwent screening using clinical risk factors suggested by the UK National Institute for Health and Care Excellence (NICE). Those with risk factors underwent a 2 h 75 g glucose tolerance test (GTT). Until April 2020, GDM was diagnosed using the thresholds from WHO/IADPSG (≥5.1 fasting, ≥10.0 at 1 h, ≥8.5 mmol/L at 2 h) at approximately 24–26 weeks of pregnancy. From April 2020 to March 2021, GDm diagnosis was based on the RCOG COVID pathway (fasting glucose ≥ 5.3 mmol/L, HbA1c ≥ 39 mmol/mol at approximately 28 weeks). Following March 2021, NICE thresholds for the GTT were used to diagnose GDM (5.3 fasting, 7.8 mmol/L 2 h). We excluded women who had not consented for their anonymised data to be shared through GDm-Health and women who opted out of the use of their data in health research.
Women using the GDm-Health system to monitor their BG levels were advised to test a minimum of three days of the week, measuring their BG four times a day (before breakfast (BB), one hour after breakfast (AB), one hour after lunch (AL) and one hour before dinner (BD)). Before-lunch (BL) and before-dinner (BD) tests were also recommended when taking glucose-lowering medication (metformin or insulin). We refer to these six measurements as “Tags AB, AL, AD, BB, BL, BD” in this paper. The flowchart of patients, data preprocessing and the number of time series used in the three models are reported in Figure 1.
The distributions of BG readings after window preparations are shown in Figure 2. In general, all six tags demonstrated a good fit of normal distribution with one peak and moderate symmetricity. The distribution of all after-meal measurements demonstrated good symmetrical distributions, and all before-meal measurements had a small tail (stew right) that represented the Hyper group. This observation matches the time series size reported in Table 1.
Beyond the time-series BG readings of three prediction windows, readings were subgrouped into Hyper, Normal and Hypo, which refers to the value of glucose measurements above, within or under the NICE guidance [13]. The Hyper (High) group had one or more BG readings >7.8 mmol/L for 1 h postprandial measurements or >5.3 mmol/L for fasting measurements within the observation window. The Normal group had all readings within the target range, and the Hypo group (Low) had at least one reading <3.0 in the observation window.

2.2. Model Performance

We first developed and tested the Stacked LSTM models for 7-days-predict-7-days, 7-days-predict-14-days and 14-days-predict-14 days for all windows. By comparing the three models’ mean absolute error (MAE) and root mean square error (RMSE) side by side, as shown in Figure 3, we can confirm that (1) before-breakfast is the most “predictable” BG measurement among all six before- and post-meal measurements and (2) the 7-days-predict-14 days is the optimized BG monitoring timeframe.
We then chose the 7-day-predicted 14-day window frame as an example to evaluate the performance of the Stacked LSTM model under two subgroups, namely, the Normal and Hyper subgroups, as defined in the Methods section. Our system provides an alert for women who have hypoglycaemia no prediction model was trained on the Hypo subgroup data. The characteristics and model performance of the subgroups are listed in Table 1. The results shown in Table 1 confirmed that the BG prediction in the Normal subgroup had smaller RMSE and MAE values than those in the Hyper subgroup. In conclusion, all pre-meal predictions are more accurately predictable than the post-meal predictions. For the Overall group (shown in Figure 3) and the Normal and Hyper subgroups, the RMSE values are higher than the MAE values, suggesting a moderate number of large errors during model testing.
In Table 2, we summarize the study design and the performance of the current state-of-the-art BG prediction models using the CGM data, and then compare them with our model. The comparison results confirmed that the stacked LSTM deep learning model can achieve excellent glucose prediction performance similar to that of the CGM system. Fingerstick BG tests can be seen as a snapshot of CGM. The “event” labels AB, AL, AD, BB, BL and BD naturally captured the oscillation of the BG pattern. The compression results demonstrated that by using routine glucose collection schedules (4–6 times a day) under clinical platforms such as GDm-Health or similar fingerstick glucose management systems, we can use the stacked LSTM model as a promising approach to capture the patterns and seasonality in BG data.

3. Conclusions and Discussion

Innovations derived from digital health and machine learning have the potential to improve clinical care delivery and personalize glucose monitoring schedules for people with GDM [18]. The James Lind Alliance Priority Setting Partnerships suggested that a top research priority for women’s health during pregnancy was to use digital health technology to improve pregnancy, birth and mother and child health outcomes [19].
In this paper, we reported, for the first time, a BG predictive monitoring system based on time-series fingerstick BG readings. The results show that the stacked LSTM model can predict before- and after-meal BG in the next 7–14 days with an estimate of a 10–15% error range (MAE in proportion to mean measurements). Second, the accuracy of our model is on par with the benchmark performance of 1 h prediction models using the CGM data for type 1 and 2 diabetes [14,15,16]. As over half of the women with GDM manage their glucose with diet and exercise changes alone, the high additional cost of CGM is difficult to justify. Our results suggested that adapting the predictive glucose monitoring algorithm to routine fingerstick blood glucose monitoring has the potential to perform comparable patient monitoring as CGM and can potentially improve clinical outcomes and improve the equality of clinical resources.
Clinical machine learning models can identify patterns (digital markers) and disease phenotypes. Several machine learning approaches, including linear regression, decision trees, random forests and artificial neural networks [14,15,16,20], have been used for predicting BG continuously (every 15, 30, 45 and 60 min) with CGM glucose machines for type 1 and type 2 diabetes. In these studies, LSTM-based models outperformed other machine learning models. In our study, we used stacked LSTM as a benchmark deep learning model with fingerstick BG readings to predictively monitor the BG trend for women with GDM. LSTM networks have several advantages for BG prediction, including the ability to capture patterns in time-series data, robustness to missing data, high performance and the ability to model multivariate data. These advantages make LSTM a promising approach for BG prediction and for improving the management of diabetes and preventing of complications.
Our models predict the 1 h before- or after-meal BG for the next 7 and 14 days after each blood test, which is better scheduling of predictive monitoring for clinical intervention. In contrast, studies with CGM use a dynamic one-hour prediction window running as a background, which is beneficial for type 1 diabetes in pregnancy [21]. There is no evidence that CGM improves clinical outcomes in women with GDM. Our previous model [8] predicted which patients were likely to have glucose readings above target from those who would not in the next 72 h. However, given that the effects of medication or dietary changes may take some days, a 7- to 14-day period is more appropriate. Therefore, in women with GDM, we argue that a 7- to 14-day prediction window may be more suitable for clinical management.
One limitation of our work is that the predictive models were built using data from a single site. In addition, the fingerstick test is uncomfortable and inconvenient, especially for pregnant women. In self-monitoring settings, fingerstick blood glucose test remains the most common method due to its accuracy, low cost and portability. Although the fingerstick tests are more affordable than CGM tests, the cost of the test strips remains a significant concern in low- and medium-income counties or health systems where women or the national health system pay the direct test expense.
Another limitation is that this model did not use patient health record data. This is mainly due to data missingness. Based on our previous studies on the feature importance of a blood glucose alert system [8], we found that added static patient health data such as age and BMI help little in improving blood glucose prediction accuracy, especially when we are focusing on a short length of prediction windows, e.g., 7 or 14 days.
In future work, we plan to develop a blood glucose prediction model by taking time-series medication information into model development. This will enable personalized precision medication management. Meanwhile, this prediction model can be improved by testing different optimisation methods and a larger number of hidden layers. In our model, adaptive moment estimation (Adam) was chosen for its stable performance and speed. To improve the model quality, other optimization methods, such as stochastic gradient descent (SGD) and momentum-based methods can be tested and compared with.
Whilst our work is a proof-of-principle, we see several potential benefits for clinical decision support to predict 7-to-14-day glucose in patients with GDM. For example, patients achieving their glucose targets could reduce the monitoring frequency. Conversely, predicted high BG readings could provoke early review by the diabetes team for medication review and dose titration. In resource-limited settings, glucose testing strips could be better rationalized. Women who dislike monitoring could be given more personalized testing schedules based on their prior readings encouraging compliance. Caution is also needed in those receiving insulin therapy where there is a risk of hypoglycaemia. Before clinical implementation, further work is needed to understand how clinicians would use the information from the algorithm and how they would explain this to patients and involve them in decision making about monitoring frequencies. We plan to expand the current study by using federated learning- or transfer learning-based LSTM architecture on multiple hospitals in the UK as the next step linking the algorithm with data in other hospitals.

4. Methods

4.1. Ethics

This study is a part of the ongoing clinical study “Predictive monitoring and management of pregnant women with gestational diabetes mellitus” (REC reference: 21/HRA/3733), which started in September 2021. This study used routinely collected anonymised, retrospective data. This study was approved by the ethical committee of the UK Health Research Authority and conducted in accordance with the Declaration of Helsinki. Participants gave their consent in writing.

4.2. Data Preprocessing

We used four steps in preprocessing: data cleaning, missing data imputation, observation-prediction sequence preparation and finally splitting data into training, validation and testing sets (80:10:10 in proportions). The training and prediction datasets are from the same hospital but different patients. The training, prediction and validation data were pre-divided to avoid the leakage of information.
To clean the data, we first removed invalid tags, including “PRANDIAL-TAG-OTHER” and “PRANDIAL-TAG-NONE”. Then, we removed out-of-range BG readings <1.5 or >30, which are caused by sensor errors or human operation mistakes. The last step is to remove gestational GDays > 294 days (42 weeks 7 days) or <78 (12 weeks 0 days). After data cleaning, time-series BG data were restructured into multiple time-series BG windows.
A 5-day moving average method was used for missing data imputation by replacing missing values with the average of the values surrounding the missing value based on a specified window size. We hypothesize that blood glucose can be accurately estimated using the previous BG measurements, and that the seasonality of BG remains stable during the observational window and subsequent prediction window. For model testing on unseen data, we used the moving average on the observational window only. Sequence padding is used for the prediction windows by using an index mask to indicate the missing/invalid value (mask = 0) or true value (mask = 1). Compared to linear interpolation, the moving average method is more similar to a human’s physiological response system, which changes gradually over time based on previous BG values.
The next step is preparing the time-series sequence (observation and prediction windows) for model training, validation and testing. In this study, we designed two observation windows (7 and 14 days) and two prediction windows (7 and 14 days). The rationale for the design of seven- and fourteen-day prediction windows is based on the one- to two-week patient review period in clinical practice. This design could enable patients and clinicians to have an accurate estimate of BG status in the upcoming one to two weeks following each blood test. Each extracted sequence consists of n time steps (days) of BG readings as the observational window, and the model is trained to predict the BG at the next m steps (days). In this paper, we tested on the pairs of n = 7 and 14 and m = 7 and 14 days, namely, the prediction periods of 7 days for a 7- or 14-day prediction, and 14 days to make a 14-day prediction. Therefore, for each pregnancy, we used overlapping prediction sliding windows with fixed lengths of 14, 21 and 28 days for sequence extraction.

4.3. Stacked LSTM Prediction Model

In this paper, we used a deep learning model with a stacked LSTM architecture for BG predictive model development. We developed and tested on three models on three monitoring windows, namely, 7 days predict 7 days, 7 days predict 14 days, and 14 days predict 14 days. After choosing the optimized monitoring window, we then developed two independent stacked LSTM models to evaluate the model performance in the Hypo and Normal subgroups.
LSTM is a recurrent neural network (RNN) architecture used in deep learning to overcome the vanishing and exploding gradient problems that are often encountered when training time-series data [22]. The memory cell in an LSTM allows information to persist for a self-defined period of time compared to traditional RNNs. The input, output and forget gates control the flow of information into and out of the memory cell, allowing the network to selectively retain or discard information as needed. This makes LSTMs particularly effective for modelling long-term dependencies in sequential data.
As shown in Figure 4, the LSTM architecture includes memory cells, gates (input, output and forget) and activation functions (Adam in our paper). The gate designs allow the LSTM to learn when to “remember” and “forget” information from previous time steps and predict sequential outputs, making it well-suited for a two-week BG prediction task. Rectified linear activation (ReLU) is an activation function used in our model. Other activation functions used within LSTM are the sigmoid for the gates and the hyperbolic tangent (tanh) function for the cell state updates and outputs, as shown in a single LSTM structure that demonstrated in the green dashed line box of Figure 4. Details of the LSTM equations are shown below.
Let the current input be XT, and the previous hidden state is HT−1. Short-term state HT is the representation of BG in the most recent days, which is more likely caused by diet, exercise and medication. CT is the long-term state, and CT−1 is the previous long-term state. Then,
IT = σ(WXIXT + WHIHT−1 + WCICT−1 + BI)
FT = σ(WXFXT + WHFHT−1 + WCFCT−1 + BF)
OT = σ(WXOXT + WHOHT−1 + WCOCT + BO)
CT = FTCT −1 + ITtanh(WXCXT + WHCHT−1 + BC)
HT = OTtanh(CT)
Here, ∗ is the convolution operator, and is the Hadamard product (also called the elementwise product). WXI, WXF, WXO, WXC, WHI, WHF, WHO and WHC represent the convolutional filters. BI, BF, BO and BC are the biases for each layer. The input gate IT controls which part of the new input information will be kept in the long-term state. The forget gate FT decides which part of the long-term state is removed. The output gate OT decides which part of the long-term state is read.
These equations define the forwards pass of a single LSTM cell at each time step. In a three-layer LSTM network, the hidden state from one LSTM layer is passed as input to the next two layers at each time step. The final hidden state can then be used for prediction, such as regression in our model.
Our models have three stacked LSTMs to increase the likelihood of detecting long-term dependencies of the BG in the next few days. The advantage of using a stacked LSTM network over a single-layer LSTM network is that a stacked LSTM network has a greater capacity to model complex relationships in the input data. By stacking multiple LSTM layers, the network can learn increasingly abstract representations of the input data, improving model’s ability in time-series predictions and generalising to new data [23].
We ran the LSTM architecture with a number of hyperparameter settings. The number of input channels matches the observation window (7 or 14, respectively). There is one hidden channel in each LSTM layer, totalling three hierarchal LSTM vector layers. We set the dropout to 0.2, which means the dropout probability on the outputs of each LSTM layer except the last layer. The batch size is 32, and the learning rate is 0.002. These hypermeters were set to balance execution time and performance. The final output of the three LSTM layers provides two outputs; BG prediction and hypoglycaemia alerts. The output of the BG prediction is a BG sequence responding to a fixed prediction window (7 or 14 days). In our models, we have two prediction windows, 7 or 14 days after the last BG test.

4.4. Model Training, Validation and Testing

The LSTM model is trained and validated under the pipeline shown in Figure 2. The inputs of the model are six time-series BG data in response to the readings before and after each meal. The readings among different tags (AB, AL, AD, BB, BL and BD) are treated as independent of each other.
As shown in Figure 2, the model training includes hyperparameter tuning via batch learning and local optimization. Batch learning is used in our model to efficiently train deep learning models. To implement batch learning in the stacked LSTM model, we divided the training data into batches of size 32. Batch normalization was carried out to regularize the activations in the network, reducing overfitting and improving generalization.
The LSTM network weights were first initialized. Within each batch, the training model performed a forward pass through the three-layer LSTM network to calculate the predictions. The mean squared error, which is the square of RMSE, is used as the loss function. The loss between the predictions of the BG sequence and the imputed BG values (preprocessed data with imputation) was calculated before performing a backward pass to calculate the gradients of the loss for weight update. After the third layer of the LSTM, Adam, an optimization algorithm, is used to perform 100-epoch hyperparameter tuning. In our experiment, the loss converges at approximately 20–30 epochs in all stacked LSTM model training. The weight of the stacked LSTM is then updated. Using batch learning can help to regularize the activations in the network, reducing overfitting and improving generalization. After the stacked LSTM models have been trained, the next step is to evaluate the models using performance metrics with the evaluation data.
At the model testing step, we used trained models to make predictions on a separate independent holdout dataset, which is 10% of the BG time series. Model testing evaluates the model generalization on unseen data and highlights issues such as model overfitting. We run each model 5 times, calculate the mean and the standard deviation of the performance metrics on the test dataset and report the mean and standard deviation of RMSE and MAE. One difference between the model test and evaluation is that we calculate the errors between the predicted values and the true values (raw data without imputation).
The performance metrics for the training, validation and test sets are the same, including RMSE and MAE. RMSE is the square root of the average squared errors before errors are averaged. MAE is the mean absolute error. The RMSE highlights the occurrence of large errors in comparison to MAE.
RMSE = 1 N i N p r e d i t a r g e t i 2
MAE = 1 N i N p r e d i t a r g e t i

Author Contributions

H.Y.L. conceptualized this study, provided research governance and protocol development, analysed data and drafted the manuscript. P.L. analysed data and drafted the manuscript. J.E.H. provided protocol development and collected data. L.M. conceptualized this study and provided research governance. D.A.C. provided protocol development and funding support. All authors have read and agreed to the published version of the manuscript.

Funding

H.Y.L. is supported by the Royal Academy of Engineering Daphne Jackson Trust Fellowship grant and an EPSRC Healthcare Technologies Challenge Award (EP/N020774/1). P.L. is supported by the Wellcome Trust under grant 217650/Z/19/Z. J.E.H. is supported by the UKRI Future Leaders Fellowship grant. D.A.C. was supported by the NIHR Oxford Biomedical Research Centre, an NIHR Research Professorship grant, an RAEng Research Chair grant, InnoHK Hong Kong Centre for Cerebrocardiovascular Health Engineering, and the Pandemic Sciences Institute. The views expressed are those of the authors and not necessarily those of the NHS, the NIHR or the Department of Health.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the UK Health Research Authority (ethics approval reference: 21/HRA/3733, approval date 12/08/2021).

Data Availability Statement

The dataset used in this study is protected under the ethical approval protocol. Code is available from the corresponding author upon request. The data preprocessing was carried out using MATLAB R2022a. Deep learning model training, testing and evaluation were performed under Python 3.8.

Conflicts of Interest

The commercial licence of GDM-Health was transferred to Sensyne Health and then acquired by HUMA Health. The authors have no commercial affiliation or collaboration with HUMA Health plc. L.M. is a part-time employee of EMIS plc.

References

  1. Alberti, K.G.; Zimmet, P.Z. Definition, diagnosis and classification of diabetes mellitus and its complications. Part 1: Diagnosis and classification of diabetes mellitus provisional report of a WHO consultation. Diabet. Med. 1998, 15, 539–553. [Google Scholar] [CrossRef]
  2. Garrison, A. Screening, diagnosis, and management of gestational diabetes mellitus. Am. Fam. Physician 2015, 91, 460–467. (In English) [Google Scholar] [PubMed]
  3. Zhu, W.W.; Yang, H.X.; Wang, C.; Su, R.N.; Feng, H.; Kapur, A. High prevalence of gestational diabetes mellitus in Beijing: Effect of maternal birth weight and other risk factors. Chin. Med. J. 2017, 130, 1019–1025. [Google Scholar] [CrossRef] [PubMed]
  4. Martis, R.; Crowther, C.A.; Shepherd, E.; Alsweiler, J.; Downie, M.R.; Brown, J. Treatments for women with gestational diabetes mellitus: An overview of Cochrane systematic reviews. Cochrane Database Syst. Rev. 2018, 8, CD012327. [Google Scholar] [CrossRef] [PubMed]
  5. Bain, E.; Middleton, P.; Crowther, C.A. Progressing towards standard outcomes in gestational diabetes Cochrane reviews and randomised trials. Aust. N. Z. J. Obstet. Gynaecol. 2016, 56, 113–116. [Google Scholar] [CrossRef] [PubMed]
  6. Saravanan, P.; Diabetes in Pregnancy Working Group; Maternal Medicine Clinical Study Group; Royal College of Obstetricians and Gynaecologists UK. Gestational diabetes: Opportunities for improving maternal and child health. Lancet Diabetes Endocrinol. 2020, 8, 793–800. [Google Scholar] [CrossRef]
  7. Lu, H.Y.; Ding, X.; Hirst, J.E.; Yang, Y.; Yang, J.; Mackillop, L.; Clifton, D. Digital Health and Machine Learning Technologies for Blood Glucose Monitoring and Management of Gestational Diabetes. IEEE Rev. Biomed. Eng. 2023; Online ahead of print. [Google Scholar] [CrossRef]
  8. Yang, J.; Clifton, D.; Hirst, J.E.; Kavvoura, F.K.; Farah, G.; Mackillop, L.; Lu, H. Machine Learning-Based Risk Stratification for Gestational Diabetes Management. Sensors 2022, 22, 4805. (In English) [Google Scholar] [CrossRef]
  9. Velardo, C.; Clifton, D.; Hamblin, S.; Khan, R.; Tarassenko, L.; Mackillop, L. Toward a Multivariate Prediction Model of Pharmacological Treatment for Women with Gestational Diabetes Mellitus: Algorithm Development and Validation. J. Med. Internet Res. 2021, 23, e21435. [Google Scholar] [CrossRef] [PubMed]
  10. The UK National Institute of Health and Care Excellence. Health App: GDm-Health for People with Gestational Diabetes. Available online: https://www.nice.org.uk/advice/mib131 (accessed on 15 January 2023).
  11. Hirst, J.E.; Mackillop, L.H.; Loerup, L.; Farmer, A.J.; Kevat, D.A.; Bartlett, K.J.; Gibson, O.J.; Kenworthy, Y.M.; Levy, J.C.; Tarassenko, L. GDm-health: Development of a real-time smartphone solution for the management of women with gestational diabetes mellitus (GDM). BJOG Int. J. Obstet. Gynaecol. 2015, 122, 403. (In English) [Google Scholar]
  12. Hirst, J.; Mackillop, L.; Loerup, L.; Gibson, O.; Farmer, A.; Bartlett, K.; Tarassenko, L.; Kenworthy, Y.; Kevat, D.; Levy, J. GDm-Health: A Pilot Study Examining Acceptability of Mobile Phone Assisted Remote Blood Glucose Monitoring for Women with Gestational Diabetes Mellitus. Reprod. Sci. 2014, 21, 252a–253a. (In English) [Google Scholar]
  13. The UK National Institute of Health and Care Excellence. Diabetes in Pregnancy: Management from Preconception to the Postnatal Period. Available online: https://www.nice.org.uk/guidance/ng3/chapter/1-recommendations#antenatal-care-for-women-with-diabetes-2 (accessed on 15 January 2023).
  14. Rabby, M.F.; Tu, Y.; Hossen, M.I.; Lee, I.; Maida, A.S.; Hei, X. Stacked LSTM based deep recurrent neural network with kalman smoothing for blood glucose prediction. BMC Med. Inform. Decis. Mak. 2021, 21, 101. [Google Scholar] [CrossRef] [PubMed]
  15. Wang, W.; Tong, M.; Yu, M. Blood Glucose Prediction with VMD and LSTM Optimized by Improved Particle Swarm Optimization. IEEE Access 2020, 8, 217908–217916. [Google Scholar] [CrossRef]
  16. van Doorn, W.P.; Foreman, Y.D.; Schaper, N.C.; Savelberg, H.H.; Koster, A.; van der Kallen, C.J.; Wesselius, A.; Schram, M.T.; Henry, R.M.; Dagnelie, P.C.; et al. Machine learning-based glucose prediction with use of continuous glucose and physical activity monitoring data: The Maastricht Study. PLoS ONE 2021, 16, e0253125. [Google Scholar] [CrossRef] [PubMed]
  17. Pustozerov, E.; Popova, P.; Tkachuk, A.; Bolotko, Y.; Yuldashev, Z.; Grineva, E. Development and Evaluation of a Mobile Personalized Blood Glucose Prediction System for Patients with Gestational Diabetes Mellitus. JMIR mHealth uHealth 2018, 6, e6. [Google Scholar] [CrossRef] [PubMed]
  18. Beck, R.W.; Bergenstal, R.M.; Laffel, L.M.; Pickup, J.C. Advances in technology for management of type 1 diabetes. Lancet 2019, 394, 1265–1273. [Google Scholar] [CrossRef] [PubMed]
  19. Ayman, G.; Strachan, J.A.; McLennan, N.; Malouf, R.; Lowe-Zinola, J.; Magdi, F.; Roberts, N.; Alderdice, F.; Berneantu, I.; Breslin, N.; et al. The top 10 research priorities in diabetes and pregnancy according to women, support networks and healthcare professionals. Diabet. Med. 2021, 38, e14588. [Google Scholar] [CrossRef] [PubMed]
  20. Armandpour, M.; Kidd, B.; Du, Y.; Huang, J.Z. Deep Personalized Glucose Level Forecasting Using Attention-based Recurrent Neural Networks. Int. Jt. Conf. Neural Netw. 2021, 1–8. [Google Scholar]
  21. Feig, D.S.; Donovan, L.E.; Corcoy, R.; Murphy, K.E.; Amiel, S.A.; Hunt, K.F.; Asztalos, E.; Barrett, J.F.; Sanchez, J.J.; de Leiva, A.; et al. Continuous glucose monitoring in pregnant women with type 1 diabetes (CONCEPTT): A multicentre international randomised controlled trial. Lancet 2017, 390, 2347–2359. (In English) [Google Scholar] [CrossRef] [PubMed]
  22. Shi, X.; Chen, Z.; Wang, H.; Yeung, D.-Y.; Wong, W.-K.; Woo, W.-C. Convolutional LSTM Network: A machine learning approach for precipitation nowcasting. In Proceedings of the International Conference on Neural Information Processing Systems, v1, Montreal, QC, Canada, 7–12 December 2015. [Google Scholar]
  23. Lu, P.; Qiu, H.; Qin, C.; Bai, W.; Rueckert, D.; Noble, J.A. Going Deeper into Cardiac Motion Analysis to Model Fine Spatio-Temporal Features. In Medical Image Understanding and Analysis; Springer International Publishing: Berlin/Heidelberg, Germany, 2020; pp. 294–306. [Google Scholar]
Figure 1. Flowchart of participants, data cleaning and model preparation.
Figure 1. Flowchart of participants, data cleaning and model preparation.
Sensors 23 07990 g001
Figure 2. Distribution of BG readings for 7-days-predict-14-days (in the order of AB, AL, AD, BB, BL, BD left to right and then the first to the second row), as an exemplar.
Figure 2. Distribution of BG readings for 7-days-predict-14-days (in the order of AB, AL, AD, BB, BL, BD left to right and then the first to the second row), as an exemplar.
Sensors 23 07990 g002
Figure 3. LSTM prediction performance comparisons: (a) RMSE results of 7-days-predict-7-days vs. 7-days-predict-14 days, (b) MAE results of 7-days-predict-7-days vs. 7-days-predict-14-days, (c) RMSE results of 7-days-predict-14-days vs. 14-days-predict-14-days and (d) MAE results of 7-days-predict-14-days vs. 14-days-predict-14-days.
Figure 3. LSTM prediction performance comparisons: (a) RMSE results of 7-days-predict-7-days vs. 7-days-predict-14 days, (b) MAE results of 7-days-predict-7-days vs. 7-days-predict-14-days, (c) RMSE results of 7-days-predict-14-days vs. 14-days-predict-14-days and (d) MAE results of 7-days-predict-14-days vs. 14-days-predict-14-days.
Sensors 23 07990 g003
Figure 4. Model development pipeline and the architecture of three-layer stacked LSTM.
Figure 4. Model development pipeline and the architecture of three-layer stacked LSTM.
Sensors 23 07990 g004
Table 1. Stacked LSTM model performance in subgroups.
Table 1. Stacked LSTM model performance in subgroups.
GroupsTime Series *RMSE (SD)MAE (SD)
AB: after breakfastHyper (High)205791.169 (0.008)0.869 (0.005)
Normal212300.772 (0.003)0.601 (0.004)
Overall **418420.958 (0.007)0.728 (0.007)
AL: after lunchHyper (High)184470.876 (0.002)0.657 (0.003)
Normal212730.776 (0.001)0.597 (0.001)
Overall **397360.876 (0.003)0.656 (0.003)
AD: after dinnerHyper (High)149311.010 (0.002)0.809 (0.002)
Normal229050.834 (0.004)0.627 (0.005)
Overall **378760.898 (0.003)0.692 (0.002)
BB: before breakfastHyper (High)320700.832 (0.004)0.472 (0.003)
Normal160440.316 (0.003)0.242 (0.003)
Overall **481880.622 (0.003)0.358 (0.004)
BL: before lunchHyper (High)111451.002 (0.057)0.720 (0.051)
Normal27200.502 (0.010)0.419 (0.015)
Overall **138870.814 (0.009)0.597 (0.010)
BD: before dinnerHyper (High)97500.989 (0.010)0.655 (0.004)
Normal38190.506 (0.020)0.400 (0.018)
Overall **136450.845 (0.005)0.570 (0.004)
* Total number of BG time-series windows used in model development, evaluation and testing, split to 80:10:10 in proportions. ** The Overall group include all three subgroups: High, Normal and Hypo.
Table 2. Performance comparisons of GDm-Health and CGM-based LSTM models.
Table 2. Performance comparisons of GDm-Health and CGM-based LSTM models.
StudyRabby et al. [14]Wang et al. [15]Doorn et al. [16]Pustozerov et al. [17]This Paper
Monitoring MethodCGMCGMCGMCGMFingerstick
Patient size for modelling/Diabetes Type6/T1DM56/T1DM540/mixed of normal glucose metabolism, prediabetes and T2DM62/mixed of 48 GDM and 14 normal glucose tolerance943/GDM
Patient size for testing/Diabetes TypeNo independent testingNo independent testing6/T1DMNo independent testing105/GDM
Prediction ModelThree-layer stacked LSTM(1) LSTM
(2) VMD-LSTM
(3) PSO-LSTM
(4) VME-PSO-LSTM
LSTMLinear regression with Lasso regularizationThree-layer Stacked LSTM
Observation WindowUp to 8 weeks125 h≥48 h7 days7 days
Prediction WindowDynamic one-hourDynamic one-hourDynamic one-hourOne hour after meal: next dayOne hour before or after meals **
Accuracy * (RMSE in mmol/L)0.958(1) 1.182
(2) 0.507
(3) 0.385
(4) 0.246
1.7300.870(1) After meal:
0.911
(2) Before meal:
0.760
* Accuracy reported on the test set, unless there are no test set results. ** After meal is the mean of AB, AL and AD, and before meal is the mean of BB, BL and BD; results reported are the overall cohort model performance for 7-day-predicted 14-day windows.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lu, H.Y.; Lu, P.; Hirst, J.E.; Mackillop, L.; Clifton, D.A. A Stacked Long Short-Term Memory Approach for Predictive Blood Glucose Monitoring in Women with Gestational Diabetes Mellitus. Sensors 2023, 23, 7990. https://doi.org/10.3390/s23187990

AMA Style

Lu HY, Lu P, Hirst JE, Mackillop L, Clifton DA. A Stacked Long Short-Term Memory Approach for Predictive Blood Glucose Monitoring in Women with Gestational Diabetes Mellitus. Sensors. 2023; 23(18):7990. https://doi.org/10.3390/s23187990

Chicago/Turabian Style

Lu, Huiqi Y., Ping Lu, Jane E. Hirst, Lucy Mackillop, and David A. Clifton. 2023. "A Stacked Long Short-Term Memory Approach for Predictive Blood Glucose Monitoring in Women with Gestational Diabetes Mellitus" Sensors 23, no. 18: 7990. https://doi.org/10.3390/s23187990

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop