Skip to main content
Journal of Diabetes Science and Technology logoLink to Journal of Diabetes Science and Technology
. 2016 Jul 4;10(5):1149–1160. doi: 10.1177/1932296816654161

How Much Is Short-Term Glucose Prediction in Type 1 Diabetes Improved by Adding Insulin Delivery and Meal Content Information to CGM Data? A Proof-of-Concept Study

Chiara Zecchin 1, Andrea Facchinetti 1, Giovanni Sparacino 1, Claudio Cobelli 1,
PMCID: PMC5032963  PMID: 27381030

Abstract

Background:

In type 1 diabetes (T1D) management, short-term glucose prediction can allow to anticipate therapeutic decisions when hypo/hyperglycemia is imminent. Literature prediction methods mainly use past continuous glucose monitoring (CGM) readings. Sophisticated algorithms can use information on insulin delivered and meal carbohydrate (CHO) content. The quantification of how much insulin and CHO information improves glucose prediction is missing in the literature and is investigated, in an open-loop setting, in this proof-of-concept study.

Methods:

We adopted a versatile literature prediction methodology able to utilize a variety of inputs. We compared predictors that use (1) CGM; (2) CGM and insulin; (3) CGM and CHO; and (4) CGM, insulin, and CHO. Data of 15 T1D subjects in open-loop setup were used. Prediction was evaluated via absolute error and temporal gain focusing on meal/night periods. The relative importance of each individual input of the predictor was evaluated with a sensitivity analysis.

Results:

For a prediction horizon (PH) ≥ 30 minutes, insulin and CHO information improves prediction accuracy of 10% and double the temporal gain during the 2 hours following the meal. During the night the 4 methods did not give statistically different results. When PH ≥ 45 minutes, the influence of CHO information on prediction is 5-fold that of insulin.

Conclusions:

In an open-loop setting, with PH ≥ 30 minutes, information on CHO and insulin improves short-term glucose prediction in the 2-hour time window following a meal, but not during the night. CHO information improves prediction significantly more than insulin.

Keywords: sensitivity analysis, neural network, continuous glucose monitoring, nonlinear modeling, signal processing


In the past 15 years the development, commercialization and adoption into clinical practice of portable continuous glucose monitoring (CGM) sensors opened new scenarios and opportunities for type 1 diabetes (T1D) therapy. The quasi continuous nature of the signal allows the use of prediction algorithms. Prediction could allow the patient to take therapeutic decisions on the basis of future instead of current glycemia, possibly mitigating/avoiding imminent critical events.1-4

Since the introduction of CGM devices, various methods have been proposed for short-term prediction of glucose concentration with prediction horizon typically no longer than 45 minutes. Prediction methods exploit dynamic models and the majority of them use as input only the past history of the CGM signal.5-10 Glucose dynamics are influenced by many factors, including quantity of ingested carbohydrates (CHO), delivered insulin, physical activity, stress, emotions, and inter- or intraindividual variability. Accounting for these inputs in the prediction of glucose concentration is difficult and requires formalization in mathematical terms and use of advanced models and algorithms. Published short-term glucose prediction models that use additional inputs include

  • - autoregressive with exogenous input models exploiting information on CHO and insulin therapy11,12

  • - autoregressive with moving average with exogenous inputs models accounting for food intake, physical activity, emotional stimuli, and lifestyle;13 physical activity and insulin on board information;14 and insulin and CHO information15

  • - latent variable-based predictors16

  • - random forests, support vector-based algorithms, and Gaussian processes using a variety of inputs, such as glucose history, time of the day, plasma insulin concentration, effect of food intake, and energy expenditure17-19

  • - neural networks using insulin and CHO information;15 self-monitoring of blood glucose (SMBG) readings; information on insulin, CHO, and hypo- and hyperglycemic symptoms; lifestyle, activity, and emotions;20 and information on CHO only21,22

None of these studies systematically evaluated how much each individual input can improve the prediction of glucose concentration.

The aim of this work is to assess the improvement in short-term prediction accuracy when information on delivered insulin and amount of ingested CHO is added to CGM as inputs of a glucose predictor. Data of 15 T1D subjects monitored in an open-loop setup with the Dexcom Seven Plus CGM sensor are used. Detailed information on ingested CHO and delivered insulin are available in the data set. In our analysis we investigate prediction horizon of 15, 30, 45, and 60 minutes, and we compare 4 glucose predictors with different input combinations: (1) CGM; (2) CGM and insulin; (3) CGM and CHO; and (4) CGM, insulin, and CHO. Prediction is assessed in terms of absolute error (separating meal and nighttime periods) and temporal gain of prediction. The relative importance of each individual input of the predictor is analyzed and inputs are ranked with a sensitivity analysis.

Methods

The Prediction Method

The present work is meant to be a proof-of-concept study. Analyses are performed with the most flexible prediction model we are familiar with: a neural network (NN)–based algorithm that allows to easily incorporate information relative to exogenous inputs.22 While for a thorough description of the algorithm and NN model we have to refer the reader to Zecchin et al,22 some key aspects are briefly summarized in the following and in the appendix. The predictor is based on a jump NN, that is, a feed-forward NN with inputs directly connected to both the first hidden layer and the output layer. In this article we consider 4 versions of the NN predictors in which the only difference is the number and type of inputs used: (1) Pred(CGM) fed by CGM data only; (2) Pred(CGM+I) fed by CGM and insulin; (3) Pred(CGM+CHO) fed by CGM and CHO; (4) and Pred(CGM+I+CHO) fed by CGM, insulin, and CHO. All 4 NN predictors exploit the information on CGM history, which consists specifically of 2 inputs: the sensor data and their first-order time derivative. Pred(CGM+I) has 3 inputs because it also uses the information on injected insulin during the meal, which is preprocessed by calculating the area under the curve (between the current time instant t and t+PH) of the rate of appearance of insulin (RaI) in blood with the model developed in Dalla Man et al:23

RaI(t)=ka1Isc1(t)+ka2Isc2(t)

where Isc1 is the amount of nonmonomeric insulin in the subcutaneous space, Isc2 is the amount of monomeric insulin in the subcutaneous space, ka1 is the rate constant of nonmonomeric insulin absorption, and ka2 is the rate constant of monomeric insulin absorption. Model details and population parameters can be found in Dalla Man et al.24 Note that the area under the curve of RaI is here delayed by 60 minutes to account for physiological delays in insulin absorption and action.25 Pred(CGM+CHO) also has 3 inputs: the sensor data and its first-order time derivative, and the information on the quantity of CHO assumed during the meal, which is preprocessed by calculating area under the curve (between the current time instant t and t+PH) of the rate of appearance of CHO (RaG) in blood with the model developed in Dalla Man et al:23

RaG(t)=fkabsQgut(t)BW

where f is the fraction of ingested glucose which actually appears in plasma, BW is the body weight, kabs is the rate constant of intestinal absorption, and Qgut is the glucose mass in the intestine. Model details and population parameters can be found in Dalla Man et al.23,26 Finally, Pred(CGM+I+CHO) is fed by all 4 the inputs previously described. Robustness of the methodology against errors in meal timing and size estimates was shown in Zecchin et al.21

Assessment of Prediction Sensitivity to Inputs

A sensitivity analysis was used to quantify the relative value of each input in determining the predicted glucose. Sensitivity was computed using the partial derivative (PaD) method.27,28 This method starts by computing, analytically, the PaD of the prediction with respect to each input

di(t)=y^(t+PH|t)xi(t)

with y^(t+PH|t) prediction relative to time t+PH, obtained at time t and xi(t) i-th input at time t. The time series di() gives the time course of the output derivative for small changes of the i-th input. The relative contribution of each input on the output is determined by computing the sum of the squares of the PaDs:

SSi=j=1Ndi(j)2

with N length of the time series. The relative contribution of each input variable, with respect to the other inputs, is obtained as:

Si=SSik=1NinSSk

The variable with the highest Si has the greatest effect on the output. Si allows to rank the relative influence of each input on the output, with respect to the other input signals and changes in this influence, when different PH are considered, can also be quantified.

Metrics of Predictor Assessment

Predicted glucose profiles obtained with the 4 considered models are evaluated with 2 commonly used metrics to assess accuracy and time anticipation of the predicted time series with respect to the target signal.

1. The mean absolute error (MAE [mg/dl]) between target and predicted time series

MAE=1Ni=1Ny^(i|iPH)y(i)

where N is the length of the time series, y^(i|iPH) is the prediction relative to time i, obtained at time i-PH using information available until time i-PH and y(i) is glucose concentration measured by the CGM sensor at time i. The MAE quantifies the adherence of the predicted time series to the target signal.

2. The average normalized temporal gain (TG [adim])

TG=PHdelayPH

with the delay quantified as the temporal shift minimizing the square of the L2 distance between prediction and target, as in Gani et al29 and in Facchinetti et al30

delay=argminj[0,PH]{1NPH+1i=1NPHy^((i|iPH)+j)y(i))2}

TG is an easy to compute index. It quantifies the average anticipation with which events could be, in theory, detected and, thus, can have a clinical value.

Database

Data were collected during the European Project DIAdvisor, funded under the 7th Framework Programme. Data consist of CGM monitoring for 3 consecutive real-life days of 15 T1D patients in open-loop setup. CGM was measured by the Dexcom Seven Plus CGM sensor (Dexcom Inc, San Diego, CA), which has a sampling period of 5 minutes. Information on dose of insulin injections and CHO content of meals was manually recorded by the patients.

The data set was divided into training plus validation set (including the first day of monitoring of every subject) and test set (containing the following 2 days of monitoring of every subject). The training and validation set was further randomly divided into the training set (containing 70% of the data) and the validation set (formed by the remaining 30% of the data).

Results

Assessment of the Entire Time Window

Figure 1 shows glucose concentration during a 7-hour time window in a representative subject together with prediction obtained by the 4 predictors for PH = 30 minutes (upper panel) and PH = 60 minutes (bottom panel). The black line is the target signal measured by the CGM sensor, the gray line is the prediction obtained using Pred(CGM), the green line is the prediction obtained using Pred(CGM+I), the blue line is the prediction obtained using Pred(CGM+CHO), and the red line is the prediction obtained using Pred(CGM+I+CHO). The green and red stems represent, respectively, insulin injection and CHO ingestion. Note that the predicted signals are plotted at the time instant to which they refer, that is, the value plotted at a certain time is obtained PH minutes earlier, using only data available until PH minutes earlier.

Figure 1.

Figure 1.

Representative CGM profile (black) and prediction obtained with the 4 predictors for PH = 30 minutes (upper panel) and PH = 60 minutes (bottom panel).

The addition to CGM of inputs relative to CHO and insulin (red line) or CHO only (blue line) visually improves the prediction over the 2 hours following meal and insulin injection. In the time window 19:00-21:00 Pred(CGM+I+CHO) and Pred(CGM+CHO) forecast with a minimum delay the upward trend following the meal, while Pred(CGM+I) and Pred(CGM) have a delay almost comparable to PH. In the rest of the 4 predictions almost coincide. Numerical results computed on the entire test time series, (not reported for the sake of space), show no significant differences among the 4 predictors. This is reasonable since ingestion of CHO and injection of insulin largely influence glucose time course mostly during the 2 hours following these events. Therefore, we expect information relative to insulin injection and/or CHO ingestion to improve prediction only during those time intervals, which constitute approximately 25% of the test time series, considering 3 meals and relative insulin boluses per day. In the following paragraphs we assess the 4 predictors separately on the 2-hour time window following CHO ingestion and insulin injection, and during the night.

Assessment on Meal and Nighttime Windows

Figure 2 shows a representative test time series and the prediction obtained with the compared models during the 2 hours following the ingestion of CHO and the injection of insulin (left column) and during the night (ie, from 11 pm to 6 am), with no CHO ingestion and insulin injections (right column). Focusing on the left column, Pred(CGM+I+CHO) (red) and Pred(CGM+CHO) (blue) forecast glucose concentration more accurately than Pred(CGM+I) (green) and Pred(CGM) (gray) and with a lower delay. This means that when inputs relative to CHO and insulin (in the case of Pred[CGM+I+CHO]) or relative to CHO only (in the case of Pred[CGM+CHO]) are added to the predictor, the accuracy of the prediction improves during the 2 hours following the injection of insulin and the ingestion of CHO. The plots in the right column show that during the night the prediction does not benefit from the addition of inputs relative to ingested CHO nor injected insulin, that is, in this time window the CGM alone is informative enough. With a PH of 15 minutes exogenous signals do not improve prediction (Figure 2, top left panel). This is reasonable, since, due to insulin absorption delay and the relatively slow glucose system dynamics, injected insulin and ingested CHO do not affect glycemia instantaneously, thus their effects are not yet significant after 15 minutes. With PH of 30, 45, and 60 minutes, inputs relative to injected insulin and ingested CHO, or ingested CHO only, visibly improves prediction adherence to the target and time anticipation. With a PH of 60 minutes none of the models gives accurate prediction, suggesting that inferring relationships between the current inputs and future glucose concentration 60 minutes ahead in time is too challenging with the adopted models and information used.

Figure 2.

Figure 2.

Representative subject. Prediction after meal and insulin injection (left column) and during the night (right column). Vertical stems represent injection of insulin (green) and ingestion of CHO (blue). The predicted signals are plotted at the time instant to which they refer.

Figure 3 summarizes with box plots the performance of the 4 algorithms in terms of MAE and normalized TG during the 2-hour time window following ingestion of CHO and injection of insulin and during the night. The lower the MAE and the closer to 1 the normalized TG, the better the prediction. In the 2-hour window following CHO ingestion and insulin injection, with PH greater than 15 minutes Pred(CGM+I+CHO) and Pred(CGM+CHO) have a MAE visibly lower than the other models (top left panel). The TG is visibly higher for Pred(CGM+I+CHO) and for Pred(CGM+CHO), compared to Pred(CGM+I) and Pred(CGM) (bottom left panel). During the night differences are not so evident and the 4 models have similar MAE and TG values.

Figure 3.

Figure 3.

Box plots summarizing mean absolute error (MAE) and average time gain (TG) of the 4 predictors computed on the 2-hour time window following ingestion of CHO and injection of insulin (left column) and during the night (right column). For each box the horizontal lines represent, from bottom to top, the 25th, 50th, and 75th percentiles, respectively; the whiskers extend until the most extreme values; the red crosses represent outliers; and the circle corresponds to the average.

Table 1 summarizes average results obtained by the 4 models on the tested PH. Performance indexes are computed separately, in the 2-hour time window following CHO ingestion and insulin injection and during the night. Statistically significant differences between results obtained with Pred(CGM+I+CHO) and results obtained by the other prediction models are indicated by an asterisk and are computed using the sign test. For what concerns MAE computed on the time window following CHO ingestion and insulin injection, with a PH of 15 minutes Pred(CGM+I) performance is poorer than that of the other models; in addition, Pred(CGM+CHO) performs significantly better than Pred(CGM). With a PH of 30 minutes both Pred(CGM+I+CHO) and Pred(CGM+CHO) significantly improve on Pred(CGM+I) and Pred(CGM). With a PH of 45 minutes Pred(CGM+I+CHO) significantly outperforms all the other predictors and Pred(CGM+CHO) significantly improves on Pred(CGM+I). Finally, with a PH of 60 minutes Pred(CGM+I+CHO) significantly improves on all the other predictors and Pred(CGM+CHO) improves on Pred(CGM+I) and Pred(CGM). Differently, during the night, Pred(CGM+I+CHO) has a MAE significantly higher than the other models for a PH of 15 minutes and significantly higher than Pred(CGM+I) and Pred(CGM) for PH of 30 minutes. For longer PH the differences are no more significant. For what concerns the average normalized TG relative to the time intervals following CHO ingestion and insulin injection, with a PH of 15 minutes the models show similar performance, apart from Pred(CGM+I) whose TG is significantly lower than those of the other predictors. For a PH of 30 minutes Pred(CGM+I+CHO) and Pred(CGM+CHO) significantly improve on Pred(CGM+I) and Pred(CGM). For a PH of 45 minutes Pred(CGM+I+CHO) significantly outperforms all the other predictors and Pred(CGM+CHO) significantly improves on Pred(CGM+I) and Pred(CGM). Finally, for a PH of 60 minutes Pred(CGM+I+CHO) again significantly improves on the other models, Pred(CGM+CHO) is significantly better than Pred(CGM+I) and Pred(CGM), and Pred(CGM+I) performs significantly better than Pred(CGM). During the night, for PH of 15 minutes Pred(CGM+I) and Pred(CGM) have a TG significantly higher than Pred(CGM+I+CHO), while for longer PH no statistically significant difference is observed.

Table 1.

Mean Absolute Error (MAE) and Normalized Time Gain (TG) Average Results (Mean ± SD) for the 15 Test Time Series Computed During the 2-Hour Time Window Following CHO Ingestion and Insulin Injection and During the Night.

PH 2-hour window following CHO ingestion and insulin injection
Nighttime window
Pred(CGM) Pred(CGM+I) Pred(CGM+CHO) Pred(CGM+I+CHO) Pred(CGM) Pred(CGM+I) Pred(CGM+CHO) Pred(CGM+I+CHO)
MAE (mg/dl) 15 min 14.3 ± 7.2 14.4 ± 6.6* 13.5 ± 7.0 14.1 ± 7.7 6.5 ± 2.8* 6.3 ± 2.7* 6.8 ± 2.9* 7.1 ± 2.7
30 min 30.7 ± 14.5* 29.9 ± 12.3* 28.6 ± 14.1 27.6 ± 13.9 10.7 ± 4.4 10.9 ± 4.2* 11.1 ± 4.1 12.2 ± 4.6
45 min 45.9 ± 19.3* 45.8 ± 18.6* 44.2 ± 20.3* 40.2 ± 18.8 15.4 ± 6.1 14.5 ± 4.8 15.6 ± 4.4 15.0 ± 4.4
60 min 60.5 ± 25.4 60.8 ± 25.2 55.9 ± 25.0* 51.3 ± 24.4 18.7 ± 7.6 17.8 ± 6.7 18.7 ± 6.1 18.5 ± 6.3
Normalized TG (adim) 15 min 0.35 ± 0.13 0.29 ± 0.21* 0.37 ± 0.18 0.39 ± 0.22 0.46 ± 0.31 0.40 ± 0.31* 0.38 ± 0.38 0.32 ± 0.32
30 min 0.14 ± 0.14* 0.16 ± 0.17 0.28 ± 0.21 0.32 ± 0.27 0.37 ± 0.30 0.31 ± 0.25 0.37 ± 0.35 0.37 ± 0.35
45 min 0.07 ± 0.18* 0.09 ± 0.17* 0.15 ± 0.21* 0.21 ± 0.27 0.40 ± 0.39 0.31 ± 0.29 0.31 ± 0.34 0.33 ± 0.34
60 min 0.04 ± 0.16* 0.07 ± 0.21* 0.09 ± 0.16* 0.21 ± 0.26 0.51 ± 0.43 0.39 ± 0.39 0.37 ± 0.40 0.40 ± 0.41
*

Statistical difference between Pred(CGM+I+CHO) and the considered predictor (computed with sign test).

Numerical results of Table 1 support what observed in Figures 2 and 3 and confirm that when inputs relative to ingested CHO and injected insulin are both added to CGM information, the model ability of predicting glucose concentration after CHO ingestion and insulin injections is significantly improved for PH longer or equal to 30 minutes. The addition to CGM of information on delivered insulin is not as beneficial for the prediction as the addition of information on CHO. However, when both delivered insulin and ingested CHO are added to CGM, the forecast obtained for PH of 45 and 60 minutes is more accurate and have a higher TG than that obtained when using only 1 of the 2 signals. These results suggest that CHO information is correctly associated by the predictor to a rapid increase in glucose concentration. Difficulties of the algorithm in taking advantage of insulin information may be due to many factors, such as the complexity in describing insulin action, the inter- and intraindividual variability of its effect, and its absorption delay,31 which cannot be captured by the adopted average glucose predictor. In addition, in an open-loop setup meals and insulin boluses are given almost simultaneously and the input signals relative to CHO and insulin are highly correlated. This renders difficult to distinguish the contribution of each individual input on glucose concentration changes. During the night, when effect of both CHO and insulin is minimum (only a quasi-constant basal insulin is present) the predictor using only CGM information is the most accurate. The model that uses only CGM information has less parameters to tune during training, thus it can learn more accurately the relationship between current and future glycemia, when no other disturbance influences glucose time course.

Remark

In the prediction method we considered, possible errors on meal content and insulin delivery information, which may influence the determination of RaG and RaI used within the algorithm, are not explicitly taken into account. Indeed, in the DIAdvisor database these predictor inputs were known very precisely by protocol. In a more general situation, these errors could affect the quality of the prediction. Albeit in a previous study the NN predictor was shown to be robust against errors in the estimation of CHO content and on timing of the meals,21 an analysis of the quantitative influence of patient behavior and errors is beyond the purpose of the present proof-of-concept study, that is, investigate the potential benefit of short-term glucose prediction from the use of insulin delivery and meal content information in addition to past CGM history.

Sensitivity of Prediction to Inputs

Results show that information on insulin does not improve prediction when used alone and minimally improves prediction when added to information on ingested CHO. Information on CHO and insulin improves prediction when PH ≥ 30 minutes.

This is confirmed by the sensitivity analysis that ranks the relative importance of every input of the predictor. A summary of results is shown in Figure 4. CGM is the most informative input in all models, especially in the short term (15-30 minutes). The prediction sensitivity to CHO information becomes relevant for PH of 45 and 60 minutes, while the influence of insulin information is minimal. We expect insulin and CHO to influence glucose concentration during approximately 2 hours following the injection of insulin and ingestion of CHO. This corresponds to roughly 25% of the day, considering 3 meals and associated injections of insulin per day. This might justify the lower sensitivity of the prediction to signals relative to ingestion of CHO and injection of insulin, with respect to the CGM signal.

Figure 4.

Figure 4.

Box plots of output sensitivity to inputs for the 4 predictors.

Conclusions

Short-term prediction of glucose concentration implemented within a portable CGM device might improve open-loop T1D management by generating alerts when hypo or hyperglycemia events are forecasted to happen within a short time interval. Prediction could also help patients to better manage their disease by supplying them with information on the expected future glucose levels.

Most of the methods proposed in the last decade for short-term glucose prediction in an open-loop setting are based on models that use only CGM history as input. Recently, various algorithms using also insulin and/or CHO information have been proposed. Exploiting these additional inputs is difficult since their effects are affected by physiological delays and inter- and intraindividual variability. An analysis of how much each additional input effectively improves prediction is missing in the literature.

In this contribution we considered an open-loop setup and evaluated the improvement in short-term prediction accuracy and time gain associated with inputs relative to injections of insulin, ingestion of CHO, and both injection of insulin and ingestion of CHO. Results show that the information relative to insulin injection and CHO ingestion, or only CHO ingestion, significantly improves prediction when PH ≥ 30 minutes. Information on insulin only does not significantly improve prediction. An analysis of prediction sensitivity to inputs showed that future glucose concentration is mainly sensitive to past CGM history. Information on ingested CHO is relevant for a PH longer than 30 minutes, while the sensitivity to insulin information is negligible. Difficulties in using insulin information can be due to the complexity of its action, the inter- and intraindividual variability of its effect and its absorption delay.31 In addition, in an open-loop setup, CHO and insulin information are highly correlated and their rates of appearance have similar shape, rendering difficult to distinguish the effect of each signal on glucose concentration.

The results presented in the article do not rule out the possibility of successfully exploiting both insulin and meal information to predict future glucose concentration, but we show how difficult it is to use effectively both information in an open-loop context. We believe that if patient-specific models of CHO absorption and insulin kinetics were available, information on both meal and insulin, preprocessed with such models, could possibly improve prediction more significantly than with the average population models used in this analysis. However, individualized models were not available for the subjects included in the DIAdvisor study, and it is not realistic to believe that similar models could be developed and used for real-life CGM users in an open-loop context.

The use of a data set with CGM recorded by an “old” sensor (the Dexcom Seven Plus) does not represent a limitation of the present study. In fact this data set collected during the DIAdvisor project was among those available to our group the one containing the most accurate and complete information on CHO content of meals and insulin injections, thus resulting the most appropriate for this proof-of-concept analysis. More importantly, we are confident that the use of CGM data collected with newer sensors would have not changed the overall result. Of course, a more accurate CGM sensor would improve prediction, because the capability of obtaining reliable predictions from the past CGM history would be strengthened. However, CGM accuracy does not influence the relative merit of the information related to meals and insulin injections and, in general, their “predictive power,” which, in turn, depends on the models adopted to describe their causal relationships with BG (specifically, the models of equations [1] and [2] employed within the predictor are state of the art).

Finally, despite this work should be considered as a proof-of-concept study, we believe that similar conclusions would have been obtained if the analysis were done using a prediction methodology, different from NN, able to exploit information relative to insulin injection and CHO ingestion. As a matter of fact, we had already obtained qualitatively comparable results in a preliminary analysis performed in the past using autoregressive (AR) and autoregressive with exogenous inputs (ARX) models.32

Future works could focus on the closed-loop setup, where the injected insulin pattern is more variable than in open-loop setup and less correlated to meals. The role of other inputs for the prediction model could be investigated, such as physical activity related signals, whose correlation with changes in glucose dynamics was demonstrated.33

Supplementary Material

Supplementary material
SupplementaryFigureS1.png (102.2KB, png)

Appendix

Neural-Network-Based Predictor

The prediction algorithm we used in this analysis is based on a jump NN,22 that is, a feed-forward NN with inputs directly connected to both the first hidden layer and the output layer. The number of hidden neurons of each NN structure was optimized, for each PH, via 10-fold cross validation on the training set. All the chosen NN architectures have a single hidden layer with a number of neurons ranging from 4 to 5 and 1 output neuron. Supplementary Figure S1 schematizes the structure of the chosen predictor.

Let us define: N length of the time series, Nin number of inputs (including also the input equal to 1 associated with the bias term) and Nhn number of hidden neurons. The predicted time series, Yis obtained as

Y^=ΩX+ΨΦ(ΓX)

where X is the [Nin x N] matrix of inputs (each row corresponds to an input time series); Ω is the row vector of length Nin of weights connecting the inputs directly to the output neuron; Ψ is the row vector of size Nhn of weights connecting the hidden neurons to the output neuron; Γ is the matrix of size [Nhn x Nin] of weights connecting the inputs to the hidden neurons and Φ(·) is the hyperbolic tangent activation function of the hidden neurons, computed element-wise on the elements of the matrix ΓX . Thus y^(t+PH|t), that is, prediction obtained at time t and relative to t+PH can be expressed as

y^(t+PH|t)=i=1Ninωixi(t)+j=1Nhnψjφ(i=1Ninγjixi(t))

where xi(t)=X(i,t) is the i-th input at time t; ωi=Ω(i) is the weight connecting the i-th input to the output neuron; ψj=Ψ(j) is the weight connecting the j-th hidden neuron to the output neuron; γji=Γ(j,i)is the weight connecting the i-th input to the j-th hidden neuron and

φ(z)=(1e2z)1+e2z

is the tangent hyperbolic function.

Neural Network Training

Before training the NN, inputs and output were normalized, so that they had zero mean and standard deviation equal to 1 to give to all the signals the same importance. Network parameters were randomly initialized and optimized through a backpropagation Levenberg-Marquardt training algorithm, applied in a batch mode. The training procedure was stopped using cross-validation, after 100 consecutive decreases of the performance of the algorithm on the validation set. Since low glucose concentration values are a small percentage of the data, the NN tends to not accurately learn them. To cope with this issue, weights proportional to the risk of hypoglycemia34 were used during training to increase the importance of prediction errors for target glucose concentration below 100 mg/dl. Thus, the objective function minimized during parameter optimization corresponds to

MSE=i=1N(yiy^i)2wi

with wi=risk(yi)=10(1.509ln(yi)1.0845.381)2 if yi<100mg/dl and wi=1 otherwise.

The NN was developed using the Neural Network toolbox of Matlab R2011b.

Footnotes

Abbreviations: CHO, carbohydrate; CGM, continuous glucose monitoring; MAE, mean absolute error; NN, neural network; PaD, partial derivative; PH, prediction horizon; SMBG, self-monitoring of blood glucose; T1D, type 1 diabetes.

Declaration of Conflicting Interests: The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.

Funding: The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The authors would like to thank Prof A. Avogaro and Dr A. Maran (Department of Medicine, University of Padova, Italy) for providing them with a set of data collected under the DIAdvisor project, cofunded by the EU through the IST program under FP7 (IST FP7-216592).

References

  • 1. Hughes CS, Patek SD, Breton MD, Kovatchev BP. Hypoglycemia prevention via pump attenuation and red-yellow-green “traffic” lights using continuous glucose monitoring and insulin pump data. J Diabetes Sci Technol. 2010;4(5):1146-1155. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Zecchin C, Facchinetti A, Sparacino G, Cobelli C. Reduction of number and duration of hypoglycemic events by glucose prediction methods: a proof-of-concept in silico study. Diabetes Technol Ther. 2013;15(1):66-77. [DOI] [PubMed] [Google Scholar]
  • 3. Buckingham B, Chase HP, Dassau E, et al. Prevention of nocturnal hypoglycemia using predictive alarm algorithms and insulin pump suspension. Diabetes Care. 2010;33(5):1013-1017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Dassau E, Cameron F, Lee H, et al. Real-time hypoglycemia prediction suite using continuous glucose monitoring: a safety net for the artificial pancreas. Diabetes Care. 2010;33(6):1249-1254. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Reifman J, Rajaraman S, Gribok A, Ward WK. Predictive monitoring for improved management of glucose levels. J Diabetes Sci Technol. 2007;1(4):478-486. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Gani A, Gribok AV, Rajaraman S, Ward WK, Reifman J. Predicting subcutaneous glucose concentration in humans: data-driven glucose modeling. IEEE Trans Biomed Eng. 2009;56(2):246-254. [DOI] [PubMed] [Google Scholar]
  • 7. Sparacino G, Zanderigo F, Corazza S, Maran A, Facchinetti A, Cobelli C. Glucose concentration can be predicted ahead in time from continuous glucose monitoring sensor time-series. IEEE Trans Biomed Eng. 2007;54(5):931-937. [DOI] [PubMed] [Google Scholar]
  • 8. Eren-Oruklu M, Cinar A, Quinn L, Smith D. Estimation of future glucose concentrations with subject-specific recursive linear models. Diabetes Technol Ther. 2009;11(4):243-253. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9. Perez-Gandia C, Facchinetti A, Sparacino G, et al. Artificial neural network algorithm for online glucose prediction from continuous glucose monitoring. Diabetes Technol Ther. 2010;12(1):81-88. [DOI] [PubMed] [Google Scholar]
  • 10. Naumova V, Pereverzyev S, Sivananthan S. A meta-learning approach to the regularized learning-case study: blood glucose prediction. Neural Networks. 2012;33(9):181-193. [DOI] [PubMed] [Google Scholar]
  • 11. Finan D, Doyle F, Palerm C, et al. Experimental evaluation of a recursive model identification technique for type 1 diabetes. J Diabetes Sci Technol. 2009;5(3):1192-1202. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Castillo-Estrada G, del Re L, Renard E. Nonlinear gain in online prediction of blood glucose profile in type 1 diabetic patients. In: 49th IEEE Conference on Decision and Control (CDC) New York, NY: IEEE; 2010:1668-1673. [Google Scholar]
  • 13. Eren-Oruklu M, Cinar A, Rollins D, Quinn L. Adaptive system identification for estimating future glucose concentrations and hypoglycemia alarms. Automatica. 2012;48(8):1892-1897. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14. Turksoy K, Bayrak ES, Quinn L, Littlejohn E, Rollins D, Cinar A. Hypoglycemia early alarm systems based on multivariable models. Ind Eng Chem Res. 2013;52(35): 1-19. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15. Daskalaki E, Prountzou A, Diem P, Mougiakakou S. G. Real-time adaptive models for the personalized prediction of glycemic profile in type 1 diabetes patients. Diabetes Technol Ther. 2012;14(2):168-174. [DOI] [PubMed] [Google Scholar]
  • 16. Zhao C, Dassau E, Jovanovic L, Zisser H, Doyle F, III, Seborg D. Predicting subcutaneous glucose concentration using a latent-variable-based statistical method for type 1 diabetes mellitus. J Diabetes Sci Technol. 2012;6(3):617-633. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Georga E, Protopappas V, Polyzos D, Fotiadis D. A predictive model of subcutaneous glucose concentration in type 1 diabetes based on random forests. In: 34th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC) New York, NY: IEEE; 2012:2889-2892. [DOI] [PubMed] [Google Scholar]
  • 18. Georga E, Protopappas VC, Ardigo D, et al. Multivariate prediction of subcutaneous glucose concentration in type 1 diabetes patients based on support vector regression. IEEE J Biomed Health Inform. 2013;17(1):71-81. [DOI] [PubMed] [Google Scholar]
  • 19. Georga E, Protopappas V, Polyzos D, Fotiadis D. Evaluation of short-term predictors of glucose concentration in type 1 diabetes combining feature ranking with regression models. Med Biol Eng Comput. 2015;53(12):1305-1318. [DOI] [PubMed] [Google Scholar]
  • 20. Pappada S, Cameron B, Rosman P, et al. Neural network-based real-time prediction of glucose in patients with insulin-dependent diabetes. Diabetes Technol Ther. 2011;13(2):135-141. [DOI] [PubMed] [Google Scholar]
  • 21. Zecchin C, Facchinetti A, Sparacino G, De Nicolao G, Cobelli C. Neural network incorporating meal information improves accuracy of short-time prediction of glucose concentration. IEEE Trans Biomed Eng. 2012;59(6):1550-1560. [DOI] [PubMed] [Google Scholar]
  • 22. Zecchin C, Facchinetti A, Sparacino G, Cobelli C. Jump neural network for online short-time prediction of blood glucose from continuous monitoring sensors and meal information. Comput Methods Programs Biomed. 2014;113(1):144-152. [DOI] [PubMed] [Google Scholar]
  • 23. Dalla Man C, Camilleri M, Cobelli C. A system model of oral glucose absorption: validation on gold standard data. IEEE Trans Biomed Eng. 2006;53(12 pt 1):2472-2478. [DOI] [PubMed] [Google Scholar]
  • 24. Dalla Man C, Raimondo DM, Rizza RA, Cobelli C. GIM, simulation software of meal glucose-insulin model. J Diabetes Sci Technol. 2007;1(3):323-330. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Dalla Man C, Caumo A, Basu R, Rizza R, Toffolo G, Cobelli C. Minimal model estimation of glucose absorption and insulin sensitivity from oral test: validation with a tracer method. Am J Physiol Endocrinol Metab. 2004;287(4):E637-E643. [DOI] [PubMed] [Google Scholar]
  • 26. Dalla Man C, Rizza RA, Cobelli C. Meal simulation model of the glucose-insulin system. IEEE Trans Biomed Eng. 2007;54(10):1740-1749. [DOI] [PubMed] [Google Scholar]
  • 27. Gevrey M, Dimopoulos I, Lek S. Two-way interaction of input variables in the sensitivity analysis of neural network models. Ecological Modelling. 2006;195(1-2):43-50. [Google Scholar]
  • 28. Shojaeefard M, Akbari M, Tahani M, Farhani F. Sensitivity analysis of the artificial neural network outputs in friction stir lap joining of aluminum to brass. Adv Materials Sci Eng. 2013; 2013:574914. [Google Scholar]
  • 29. Gani A, Gribok AV, Lu Y, Ward WK, Vigersky RA, Reifman J. Universal glucose models for predicting subcutaneous glucose concentration in humans. IEEE Trans Inf Technol Biomed. 2010;14(1):157-165. [DOI] [PubMed] [Google Scholar]
  • 30. Facchinetti A, Sparacino G, Trifoglio E, Cobelli C. A new index to optimally design and compare continuous glucose monitoring glucose prediction algorithms. Diabetes Technol Ther. 2011;13(2):111-119. [DOI] [PubMed] [Google Scholar]
  • 31. Chen JW, Christiansen JS, Lauritzen T. Limitations to subcutaneous insulin administration in type 1 diabetes. Diabetes Obes Metab. 2003;5(4):223-233. [DOI] [PubMed] [Google Scholar]
  • 32. Zecchin C, Facchinetti A, Sparacino G, Kamath A, Peyser T, Cobelli C. Are insulin and meal information useful for short- and mid-term prediction of glucose concentration? J Diabetes Sci Technol. 2014;8(2 suppl):A127. [Google Scholar]
  • 33. Zecchin C, Facchinetti A, Sparacino G, et al. Physical activity measured by physical activity monitoring system correlates with glucose trends reconstructed from continuous glucose monitoring. Diabetes Technol Ther. 2013;15(10):836-844. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Kovatchev BP, Cox DJ, Gonder-Frederick LA, Clarke W. Symmetrization of the blood glucose measurement scale and its applications. Diabetes Care. 1997;20(11):1655-1658. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary material
SupplementaryFigureS1.png (102.2KB, png)

Articles from Journal of Diabetes Science and Technology are provided here courtesy of Diabetes Technology Society

RESOURCES