ORIGINAL RESEARCH article
Sec. Clinical Diabetes
Zone-MPC Automated Insulin Delivery Algorithm Tuned for Pregnancy Complicated by Type 1 Diabetes
- Harvard John A. Paulson School of Engineering and Applied Sciences, Harvard University, Boston, MA, United States
Type 1 diabetes (T1D) increases the risk for pregnancy complications. Increased time in the pregnancy glucose target range (63-140 mg/dL as suggested by clinical guidelines) is associated with improved pregnancy outcomes that underscores the need for tight glycemic control. While closed-loop control is highly effective in regulating blood glucose levels in individuals with T1D, its use during pregnancy requires adjustments to meet the tight glycemic control and changing insulin requirements with advancing gestation. In this paper, we tailor a zone model predictive controller (zone-MPC), an optimization-based control strategy that uses model predictions, for use during pregnancy and verify its robustness in-silico through a broad range of scenarios. We customize the existing zone-MPC to satisfy pregnancy-specific glucose control objectives by having (i) lower target glycemic zones (i.e., 80-110 mg/dL daytime and 80-100 mg/dL overnight), (ii) more assertive correction bolus for hyperglycemia, and (iii) a control strategy that results in more aggressive postprandial insulin delivery to keep glucose within the target zone. The emphasis is on leveraging the flexible design of zone-MPC to obtain a controller that satisfies glycemic outcomes recommended for pregnancy based on clinical insight. To verify this pregnancy-specific zone-MPC design, we use the UVA/Padova simulator and conduct in-silico experiments on 10 subjects over 13 scenarios ranging from scenarios with ideal metabolic and treatment parameters for pregnancy to extreme scenarios with such parameters that are highly deviant from the ideal. All scenarios had three meals per day and each meal had 40 grams of carbohydrates. Across 13 scenarios, pregnancy-specific zone-MPC led to a 10.3 ± 5.3% increase in the time in pregnancy target range (baseline zone-MPC: 70.6 ± 15.0%, pregnancy-specific zone-MPC: 80.8 ± 11.3%, p < 0.001) and a 10.7 ± 4.8% reduction in the time above the target range (baseline zone-MPC: 29.0 ± 15.4%, pregnancy-specific zone-MPC: 18.3 ± 12.0, p < 0.001). There was no significant difference in the time below range between the controllers (baseline zone-MPC: 0.5 ± 1.2%, pregnancy-specific zone-MPC: 3.5 ± 1.9%, p = 0.1). The extensive simulation results show improved performance in the pregnancy target range with pregnancy-specific zone MPC, suggest robustness of the zone-MPC in tight glucose control scenarios, and emphasize the need for customized glucose control systems for pregnancy.
Type 1 diabetes (T1D) is characterized by destruction of pancreatic β-cells and consequent lack of adequate endogenous insulin production to regulate blood glucose, for which values outside of a certain range may lead to health complications (1). Daily treatment of T1D aims to keep glucose values within a euglycemic range via external insulin delivery. In recent years, diabetes technologies have made great strides in providing more advanced devices that facilitate daily treatment to the extent that closed-loop control (CLC) has become an available treatment option. A CLC system, also known as artificial pancreas or automated insulin delivery, consists of a continuous glucose monitor (CGM) that periodically measures the subcutaneous glucose level, a computing unit that decides the amount of insulin to be injected, and a continuous subcutaneous insulin injection (CSII) pump that delivers the insulin to the person with T1D. CLC decreases the risk of both hypoglycemia and hyperglycemia, increases the time spent in the clinically recommended glucose range (70-180 mg/dL) (2, 3), and improves the quality of daily life (4). While CLC systems are of great value for all individuals living with T1D, the currently approved ones are mainly designed for adults. Only a few have been approved for use in younger populations1,2, and one system that was developed in the U.K (5) bears CE marking for use of the system in people aged ≥ 1 year and also in pregnancy (6). However, there are no Food and Drug Administration (FDA) approved CLC system for use during pregnancy and the need for customization of these systems for different glucose control requirements remains largely unmet (7).
Pregnancy with T1D is one of the conditions that necessitate customization of CLC systems due to significant changes in the glucose-insulin metabolism with advancing gestation (8) and tight glucose control targets throughout gestation (9). The tight glucose targets are motivated by the association between poor glycemic control and higher risks of maternal, fetal, and neonatal complications (10). Therefore, treatment strategies that are tailored to the insulin and glucose control needs of pregnancy are imperative to improve pregnancy outcomes. Additionally, the role of CLC systems in mitigating the shortcomings of open-loop treatment is further emphasized during pregnancy since optimal adjustment of insulin treatment parameters across pregnancy stages is particularly difficult due to limited knowledge on the magnitude of metabolic changes and their variations across individuals.
The first CLC system tested during pregnancy complicated by T1D was in the U.K. (5, 11, 12). These trials leveraged the adjustable glucose target feature of an existing glucose controller for T1D to achieve pregnancy-specific targets (5, 13). The results were promising as the CLC improved glucose control over routine open-loop control methods. In this paper, we seek a solution to the following problem:
Customize a T1D closed-loop glucose controller for use during pregnancy such that the resulting glucose profiles satisfy the clinical requirements across a comprehensive set of scenarios under which the system may operate.
Zone-MPC is an optimization-based algorithm that uses model predictions to optimize insulin injections in a way that blood glucose levels are kept within a target zone (14–17). The zone objective differs from a specific set-point since all the glucose values within the zone are treated equally acceptable. Zone-MPC has proved safe and effective in improving glucose control in non-pregnant individuals with T1D (18–21). Building on this validated CLC architecture, the primary contributions of this work are:
● A CLC design based on zone-MPC that is tuned to the needs of pregnant women with T1D. We show that this is achieved by modifying certain parameters in the zone-MPC cost function and meal and correction bolus strategy.
● A robustness verification through in-silico experiments under a broad range of clinically possible scenarios. We present extensive numerical results outlining the performance trends for multiple parameters. We show that, for pregnancy targets, our design consistently outperforms the existing zone-MPC design as well as a zone-adjusted one, for which the details are made clear in the paper.
In the rest of the manuscript, we first provide the necessary background on the simulation environment, the zone-MPC algorithm, and clinical glucose control requirements during pregnancy complicated by T1D. Then, we formulate the problem of tuning and customization of zone-MPC for pregnancy. As a solution to the described problem, we provide the pregnancy-specific zone-MPC parameters and then, the results from the in-silico experiments. We also compare the performance of pregnancy-specific zone-MPC with the baseline zone-MPC as well the zone-adjusted MPC. Finally, we conclude the manuscript with discussions, the results from the controller’s validation in real-life, and an overview of future directions.
A schematic overview of our approach is illustrated in Figure 1. The behavior of zone-MPC is determined by multiple parameters, denoted by ψ, for which the details are presented in the following sections. We tune ψ to pregnancy-specific glucose control requirements and also formalize a set of scenarios, parameterized with notation θ, under which the in-silico experiments are conducted. These scenarios capture challenging conditions such as variations in insulin sensitivity, which are known to take place during pregnancy. Our tuning problem can be viewed as finding ψ such that the robust performance is achieved for a chosen set of θ. This problem is formalized in Section 2.7.1 after providing the necessary background in the leading sections.
Figure 1 Block diagram describing the design and verification process of the zone-MPC controller for use in pregnancy. Closed-loop system is at the core (yellow shaded area). Scenario parameters (dashed lines) are fed into the simulator and the controller. The resulting glucose trajectories are evaluated for safety and performance. Controller parameters are tuned iteratively to obtain glucose outputs that satisfy the clinical requirements. Blue lines belong to the flow chart of this decision process. Note that the controller injects an optimal insulin input that minimizes the cost, J, at every time step.
2.1 Metabolic Model (Plant)
The underlying metabolism of glucose regulation has complex dynamics. In general, an insulin-meal-glucose model can be expressed in the following ordinary differential equation format:
where s is the metabolic state, uins ∈ ℝ+, is the insulin input, uglucose ∈ ℝ+ is the external glucose input, and θM is the set of patient-specific metabolic parameters. The input uins is determined by the insulin therapy method (e.g., multiple daily injections, insulin pump therapy, closed-loop insulin therapy), and uglucose can be both in the form of intravenous injection or oral meal intake. Several mathematical forms for the function F in (1) have been developed in the literature. They range from minimal models such as the one in (22) to more comprehensive ones that include details such as oral glucose intake, hepatic glucose production, and glucose utilization as in (23, 24).
Our method uses the comprehensive model that is described in (24), which is at the core of the UVA/Padova S2013 simulator. This simulator is accepted by the FDA as a substitute for animal trials in testing safety and feasibility of new glucose control algorithms before human clinical trials. It is equipped with in-silico subjects for the three main age-groups (i.e., children, adolescents, and adults). In order to mimic pregnancy-induced changes to insulin-glucose metabolism of an in-silico adult cohort, we adjust kp3, a rate that affects insulin action in the liver denoted by XL, and Vmx, a parameter that acts on insulin-dependent glucose utilization, in the following equations:
where EGP is the endogenous glucose production, XH is delayed glucagon action, ξ is liver responsivity to glucagon, Gp is the amount of glucose in plasma, Gt is the amount of glucose in the tissue, Uid is insulin-dependent glucose utilization, X is insulin action on glucose utilization, kp1, kp2, kp3, Vm0, Vmx, Km0, and r1 are model parameters. Glycemic risk, denoted as risk, is a quantitative indicator of clinical risk associated with glucose values (25) and here, it is employed in the modeling of insulin-dependent glucose utilization. The full metabolic model and details can be found in (24).
The first trimester of pregnancy is characterized by a lower insulin requirement and the insulin requirements increase from mid-gestation onward (8). We vary kp3 and Vmx in the experiments to evaluate the performance of different controller designs across a range of insulin sensitivity changes.
2.2 Periodic Zone Model Predictive Control (Zone-MPC)
In this section, we provide the necessary background on Zone-MPC, which is the feedback control component of glucose management in our framework. We present the mathematical details of the parts of zone-MPC that we tailor for use during pregnancy. Other details are presented at a higher level and the interested reader is referred to (15, 16), and (17) for further technical information, and to (18–21) for previous clinical trials that demonstrated safety and efficacy of the zone-MPC algorithm in adults and adolescents with T1D.
2.2.1 Prediction Model
While metabolic models in the form of (1) are useful for high fidelity simulations, they are too complex for model-based controller design. Therefore, simpler models are used for computing insulin injection decisions in real time. We use the discrete-time model in (15) with the following state-space form:
• x(k) ∈ ℝ3 is the system state representing the three step differential blood glucose values at time k ∈ ℕ relative to a reference blood glucose value, denoted as Gref,
• u(k) ∈ ℝ is the control input (insulin) at time k relative to the user’s pre-programmed time-dependent basal profile (U/hour), β(k):
where Ts denotes the time interval between k and k + 1 and is chosen as 5 minutes in accordance with the sampling period of current continuous glucose sensing technology.
• y(k) ∈ ℝ is the measured blood glucose level relative to Gref.
By employing a standard state observer (26), we obtain an estimate of x denoted by , as follows:
where L is the observer gain.
2.2.2 Optimization Problem and Algorithm
The zone-MPC, similar to other MPC algorithms in control theory (27), uses mathematical optimization to make control decisions, and can accommodate constraints such as those on blood glucose and insulin (e.g., the amount of injected insulin can not be a negative number). At time k, we optimize u(0|k), u(1|k),… , u(Nu - 1|k), where u(j|k) is the tentatively planned differential control input at time k + j relative to the prescribed basal at the same time, and Nu is the control horizon. The mathematical optimization is written as:
where J is the cost function that is described in Section 2.2.3, τ(∙) is the time of day in minutes after midnight corresponding to the discrete time-step index, uUB is the time-dependent insulin delivery upper bound, and uIOB is the insulin on board (IOB) dependent insulin delivery upper bound. The details of the insulin input constraints are provided in Section 2.2.4. By solving (9), the optimal plan u* (0|k),…, u* (Nu – 1|k) is obtained. Only u*(0|k) is used to decide the insulin injection:
Given the subsequent measurement y(k), the estimate of state becomes available and a new optimization problem is formed to find uZone – MPC(k + 1). In our implementation, the control horizon is 25 minutes and the prediction horizon is 45 minutes, represented by Nu = 5 and Np = 9, respectively.
2.2.3 Cost Function
Zone-MPC uses a zone-based cost function in the following form:
where the terms and their interpretations are given as:
and ||∙||γ notation is used for the following semi-norm:
• The term J1 penalizes the deviation in the glucose levels outside the zone [GZL, GZH], where GZL and GZH are the lower and upper bounds of the control zone, respectively. The values of these bounds can be assigned in a time-varying manner as shown in (16). Note that ||GZL – G||γ = ||G – GZH||γ = 0 if and only if G ∈ [GZL, GZH]. Also note that the penalization of above the zone glucose levels is weighed by the function Q that factors in the glucose velocity , and the amount of active insulin in the body, namely IOB. The function Q associates a higher cost to persistent hyperglycemia without a steep increase in glucose. Please note that this aspect of the controller is kept the same across controllers presented in this manuscript.
• The second term J2 penalizes the glucose velocity, defined as glucose level change over two time steps (2 × 5 minutes = 10 minutes). Velocity term was added to the later version of zone-MPC in (17) for better postprandial glucose management when the glucose response to meal poses high risk for hyperglycemia. The function is defined as:
where for D > 1, increasing glucose is penalized more heavily when glucose levels are within . The upper bound deactivates high velocity penalties since J1 already introduces high cost in the case of significant deviation from the zone.
• The last term J3 penalizes deviations of the candidate control action from the referenced basal profile ubasal. Penalty on insulin inputs higher than ubasal are weighed by R+ and inputs lower than the reference are weighted by R–. Typically R+ is chosen higher than R– compatible with the higher clinical risk associated with the hypoglycemia compared to the hyperglycemia as explored in (16). In this work, we have R+ and R– set to 6500 and 100, respectively.
2.2.4 Insulin Input Constraints
The controller can suspend insulin injection based on the optimal insulin delivery plan obtained. However, the maximum insulin amount that can be injected is subject to the following constraints:
where T1 is the start of daytime, T2 is the end of daytime, CF is the correction factor, and IOBrequired is the estimated insulin required to bring the glucose level to Gref.
The IOB is calculated based on the history of insulin injection and an insulin decay curve where we can specify the length of insulin action to be used in the calculation. We denote the length of the IOB curves used to compute the IOB from the user-requested boluses and controller-delivered micro-boluses by λ and μ, respectively. While λ is a fixed parameter, μ is a function of the glucose level at the time of the calculation. The total IOB is calculated as a sum of the IOB from the user-requested boluses and the IOB from the controller-delivered boluses relative to the basal profile. Note that this aspect is not modified for this work. The full details are provided in (28), and Appendix A4 of (17). The shape of the IOB curves used in this work are illustrated in the Supplementary Material.
2.3 Meal and Correction Bolus Strategy
Meal bolus is applied in a feed-forward manner upon meal announcement by the user and computed as follows:
where i denotes the meal intake time, M is the carbohydrate amount in the meal expressed in grams, CRi is the subject and time specific carbohydrate ratio at the time of meal intake, Gm is the glucose threshold for full meal bolus to be applied, and α is the bolus reduction factor when the glucose at the meal time is less than the full meal bolus threshold. A correction bolus, ucorrection is added to the meal bolus based on the glucose level at the time of calculation, , a reference fasting glucose value, , a subject and time specific correction factor, CFi, glucose threshold for additional correction, τc. In order for a correction bolus to be added, the time passed since the last correction bolus, denoted by Δi, needs to be more than the minimum duration between two user-requested boluses, which is set as 120 minutes.
2.4 Clinical Glucose Control Requirements in Pregnancy Complicated by T1D
There are differences in the recommended glycemic targets for pregnancy compared to the general population with T1D. The target glucose range for pregnancy is 63 – 140 mg/dL which is tighter than the non-pregnancy target of 70 - 180 mg/dL. The consensus recommendation is to have less than 25% of the time above the target range, more than 70% time in the range, less than 4% of the time below 63 mg/dL in a way that time below 54 mg/dL does not exceed 1% (9). These consensus targets constitute the primary endpoint, in other terms success criteria, for the verification of the pregnancy-specific zone-MPC design. Of note, having a glucose control of <80-90 mg/dL is not recommended as too tight control has been associated with increased risk of limiting fetal development (29). There are also fasting and postprandial glucose control related targets: (i) fasting plasma glucose levels, measured after ≥ 8 hours of fasting or overnight fasting, are aimed to be below 95 mg/dL; (ii) either one-hour postprandial glucose should be below 140 mg/dL or two-hour postprandial glucose should be below 120 mg/dL (30). The postprandial glucose targets are specified for self-monitored glucose measurements since many CGM devices do not yet have an indication for pregnancy. However, in this work, we have the simulated CGM measurements and access to the full postprandial glucose excursions. Therefore, we evaluate the early postprandial control performance via the CGM time in the target range within two-hour following meal intake. The fasting and postprandial glucose control performances are secondary endpoints in our verification process.
2.5 Simulation Parameters
Here we describe how to setup the simulations. We can classify the parameters of interest for our work into two groups: (i) scenario parameters, which we denote by θ, and (ii) controller parameters, denoted by ψ. Given ψ and θ, one can simulate (1) and obtain a glucose trajectory:
Closed-form expressions for G(ψ, θ) are not available and we can only numerically compute G(ψ, θ). The tuning for robust performance demands that θ and ψ are designed against each other in a sense that is made clear in the subsequent sections.
2.5.1 Scenario Parameters
First, we introduce the following notion of scenario parameters in formalizing our tuning problem:
● θM: metabolic parameters of the subject with T1D. We employ 10 adult subjects in the UVA/Padova simulator and each subject has their own metabolic parameters. By varying these parameters, we can simulate outcomes for differing metabolic states (e.g., increased or decreased insulin sensitivity).
● θic: initial conditions of the simulation that is equivalent to s(0) in (1). By varying θic, one can test the system under a range of initial states, such as very high or very low initial glucose levels (i.e., G(0) far from the [GZL, GZH] zone).
● θtreatment: insulin treatment parameters (i.e., β, CR, CF) that are typically prescribed by the healthcare provider. By varying θtreatment, we explore scenarios where subjects’ treatment parameters are properly adjusted for pregnancy, or are not properly adjusted and need to be compensated by the controller.
● θmeal: parameters characterizing the time and size of the carbohydrates consumed, and the timing of meal boluses relative to the meal intake time. Of note, in pregnancy complicated by T1D, the recommendation is consuming low carbohydrate meals.
The vector of scenario parameters can be represented in the following compact form:
2.5.2 Controller Parameters
The vector of ψ consists of all the parameters used in zone-MPC. The cost function of zone-MPC can be shaped to obtain appropriate controller responses for various glucose behaviors. For instance, the term in the cost function can be designed to make the controller more aggressive in the case of postprandial insulin resistance that may happen during the second and third trimesters of pregnancy. The parameters in ψfeedback include . The parameters in ψmeal and correction include Gm, τc, α, that affect the meal treatment for the patient. There are other parameters for which details are beyond the scope of this paper and the interested reader is referred to the references [e.g., (17)]. In a compact form, we have:
2.6 In-Silico Verification Procedure for Pregnancy-Specific Zone-MPC
In order to verify the proposed tailoring of the zone-MPC, 10 in-silico subjects are treated with the pregnancy-specific zone-MPC under 13 different experiment conditions. The simulation duration for all experiments are 25 hours, and the closed-loop control starts one hour into the simulations. Each subject consumes three meals per day to represent breakfast, lunch, and dinner at 8 AM, 1 PM and 7 PM, respectively. Meals are equally sized as 40 grams since a relatively low carbohydrate diet is recommended during T1D pregnancy (31). Meal boluses are administered either at mealtime or 30 minutes before meals, as bolusing in advance is recommended for better postprandial glucose control in pregnancy (32). In clinical implementation, most patients with type 1 diabetes have insulin treatment parameters (i.e., β, CR, CF) prescribed by their health-care provider and these parameters are time dependent to address changes in insulin sensitivity. Similarly, in our simulations, these subject-specific parameters, θtreatment, are assumed clinically pre-determined and are given as inputs to the controller. The total daily insulin is also an input externally provided to the system. However, unlike the clinical implementation, θtreatment is not time dependent in our simulations since our simulator does not capture diurnal sensitivity changes. This aspect is identical in the testing for all versions of the control algorithm. No rescue carbohydrates for hypoglycemia are administered during simulations. The simulations for each scenario are repeated ten times per subject to produce variability through random CGM noise (33) and hence, the CGM readings received by the controller are noisy. Details of the simulation scenarios are summarized in Table 1 and explained below.
● Scenario A - Treatment Regimen Adjusted for Pregnancy (Early to Mid Pregnancy)
This scenario provides a comparatively easy initial setup for glucose control with treatment parameters that are already well adjusted to meet the subject’s insulin requirements for pregnancy targets. To represent this condition, basal profiles of the subjects are adjusted to yield a fasting glucose value close to 90 mg/dL in the open-loop after a warm-up period. The CF and CR values are kept at their original values in the simulator that are already tuned to the subject’s metabolism (24). In this setup, we run simulations under the following conditions:
1. Meal boluses are administered at mealtimes,
2. Meal boluses are administered 30 minutes before mealtimes.
● Scenario B - Treatment Regimen Not Adjusted for Pregnancy (Early to Mid Pregnancy)
Insulin requirements of women with T1D change throughout pregnancy. While the target glucose levels are significantly tighter (30), optimal adaptation of treatment parameters by expert judgment (i.e., without a formal method) may not always be possible due to metabolic changes during pregnancy. We test the pregnancy-specific zone-MPC controller’s performance when the treatment parameters, that are input to the controller, are not properly adjusted for the pregnancy specific changes in the insulin-glucose metabolism. For this purpose, (i) we use native basal profile of subjects provided in the simulator that lead to approximately 120 mg/dL fasting glucose levels, and (ii) we set both CR and CF to 110% of their nominal values for each subject. In this setup, we run simulations under the following conditions:
1. Different timing of meal boluses,
a. Meal boluses are administered at mealtimes,
b. Meal boluses are administered 30 minutes before mealtimes.
2. Additional insulin resistance is introduced via reducing kp3 and Vmx by 25% of their nominal values. Under this additional resistance, we rerun our experiments for different timing of meal boluses,
a. Meal boluses are administered at mealtimes,
b. Meal boluses are administered 30 minutes before mealtimes.
3. Initial glucose levels outside the target zone,
a. Initial glucose level is around 60 mg/dL with meal bolus administered at mealtimes,
b. Initial glucose level is around 170 mg/dL. In this case, the first meal is delayed per clinical recommendations. Meal boluses are administered at mealtimes.
● Scenario C - High Insulin Resistance with Treatment Regimen Adjusted for Pregnancy (Late Pregnancy)
In this scenario, we test the controller performance in a setting similar to the end of pregnancy by introducing a 67% decrease in the parameters kp3 and Vmx to induce insulin resistance (34). The treatment parameters are adjusted in accordance with the existing literature that show that the basal profile increases by 50% (35, 36), while the prescribed CR is decreased by 50% (37) and CF is decreased by 33% (38) relative to the treatment parameters in early pregnancy. In this setup, we run simulations under the following conditions:
1. Meal boluses are administered at mealtimes,
2. Meal boluses are administered 30 minutes before mealtimes.
● Scenario D - Extreme Conditions
The following scenarios are designed to test the controller performance when multiple challenges (e.g., initial glucose levels, subjects’ metabolic and treatment parameters) are simultaneously set to exacerbate the initial hypo-/hyper-glycemia conditions.
1. Hypoglycemia-prone setting: Initial glucose level is 60 mg/dL with basal profiles that yield a fasting glucose level of approximately 90 mg/dL. Values of kp3 and Vmx were increased by 25% to induce higher insulin sensitivity. Both CR and CF are 10% lower; hence subjects become more prone to post-prandial hypoglycemia. Meal boluses are administered at mealtimes.
2. Hyperglycemia-prone setting: Basal profiles yield a fasting glucose level of approximately 170 mg/dL, and the initial glucose level is 170 mg/dL. Values of kp3 and Vmx were decreased by 25% to induce insulin resistance. Both CR and CF are 10% higher, hence making subjects more prone to post-prandial hyperglycemia. Meal boluses are administered at mealtimes.
3. Late pregnancy setting with poorly adjusted CR: Pregnancy introduced changes in metabolism increase the risk of postprandial hyperglycemia in late pregnancy (39). In order to test the controller in a setting where postprandial control is more challenging compared to Scenario C.1, we introduce a 67% increase in the insulin resistance, increase the basal profile by 50%, decrease the CF by 50% in accordance with the basal profile, but keep the CR at its nominal value.
2.7 Tuning for Robust Performance
In this section, we formalize a robust pregnancy-specific glucose controller tuning problem as schematically summarized in Figure 1. In order to obtain the final design, we evaluate whether the glucose profiles obtained from the simulations adequately meet the clinical glucose control requirements.
2.7.1 Problem Statement
Given a glucose profile, one can inspect whether it satisfies the clinical requirements based on metrics detailed in Section 2.4. to solve the following problem: Given clinical requirements, a set of scenario parameters Θ, find controller parameters ψ such that closed loop glucose trajectories G satisfy the success criteria selected based on clinical requirements for all θ ∈ Θ. Note that the problem of tuning for robust performance lies in the fact that we ask a single controller parameter vector ψ to perform satisfactorily for all members of Θ.
2.7.2 Parameter Search
Now that we have cast the pregnancy-specific glucose controller design as a parameter tuning problem, we need a tuning method. The problem is too complex to compute ψ in closed-form. Therefore, we rely on clinical knowledge to manually tune ψ and use exhaustive simulations for verification. The simulations are conducted across a wide range of scenarios and we do not expect to have one parameter vector that maximizes the primary objective across all the scenarios. Instead, our goal is to find a single ψ such that the success criteria, elaborated in Section 2.4, is met for all scenarios that the CLC system may operate in.
The tuning of ψ is achieved through a trial and error procedure that continues until the CLC performance is satisfactory across all scenarios, meaning that it meets the primary endpoints in Scenarios A, B, C and performs reasonably well in Scenario D. The resulting ψ forms the controller parameters of pregnancy-specific zone-MPC. Note that the same ψ is used for all subjects and all scenarios. Exemplary sensitivity analyses presented in Section 3.5 provide further insight into the effect of tuning on performance and the ranges of parameters searched in the manual tuning process.
We note that, in our verification, we also include some extreme scenarios denoted by Θextreme ⊂ Θ that would be of low probability and serve as a stress-test to the controller rather than a performance test. For Θextreme, captured in Scenario D, some reduction of performance is both expected and acceptable, hence we relax the clinical requirements and accept glucose profiles that are “good enough” for Θextreme. Similarly, we evaluate the performance for secondary endpoints, fasting and postprandial glucose control, and aim to achieve a safe and satisfactory performance for these metrics as well.
2.8 Statistical Analysis
We conduct statistical analyses for each metric and scenario to evaluate the significance of the difference between controller designs, as described in the following section. The significance is evaluated based on the average outcomes per subject via paired t-test using two-sided p-value ≤ 0.05 significance threshold for N = 10. We also compare the overall performance of controllers across scenarios via paired t-test where each pair consists of controller outcomes under one scenario leading to an analysis with N = 13.
First, we provide the final values obtained for the pregnancy-specific zone-MPC parameters, ψp. Next, we compare the performance of our pregnancy-specific controller against the existing baseline. We also add to our comparisons an intermediate “zone-adjusted” controller that has only the zone-MPC ranges tuned for pregnancy for which the details are presented in the following sections. While the performance of the baseline controller is of interest as it is the existing and clinically-validated design, a comparison of the zone-adjusted versus our pregnancy-specific controller is more relevant since these two controllers have the same target zones. The results are evaluated mainly for the verification of the pregnancy-specific design but they also provide an insight on whether a departure from the baseline design was necessary for more favorable glucose control to achieve pregnancy-specific targets. Finally, we specifically focus on pregnancy-specific controller performance and explore its qualitative robustness through scenarios featuring a variety of challenges.
3.1 Pregnancy-Specific Glucose Controller Parameters
In order to accommodate the major changes that occur in the glucose metabolism and glucose control requirements in pregnancy with T1D, the following design choices were made and are summarized in Table 2. For each parameter, the starting values are the values used in the baseline controller that are provided in Table 2.
● First, we modify the reference glucose and target zones.
1. [GZL, GZH] defines the target control zone. Thus, they are chosen to be customized for tighter targets in pregnancy. These zones are tuned separately for the day and night times. We adjusted both for tighter glucose control requirements during pregnancy.
2. Gref is the glucose reference and is used both in predicting glucose trajectory and calculating the optimal insulin input. Gref is also the reference value mentioned in the computation of total insulin required to bring the glucose level to reference in (17). We decreased the reference fasting glucose level to 90 mg/dL, aligned with the updated target zones and target fasting glucose level for pregnancy.
● In accordance with the tighter glucose control requirements overall and the shift in the target glucose zones, we made the following adjustments to the meal and correction bolus calculation to proactively counter the increased risk of postprandial hyperglycemia with advancing gestation (39):
3. τc defines the threshold for adding correction to meal boluses. By setting τc lower, the meal control strategy can be made more protective against postprandial hyperglycemia. We decreased the threshold for adding a correction component to the meal bolus from 150 mg/dL to 100 mg/dL.
4. is the target glucose level used in the correction calculation. In order to achieve lower fasting glucose and more intense postprandial glucose control, is tuned to a lower value (i.e., 90 mg/dL) than the baseline controller. We select the in the middle of the tighter nighttime target zone.
5. Gm defines the glucose threshold for full meal bolus and below which the bolus is reduced via multiplying by a factor, α, which is set to 0.8 in baseline zone-MPC. By setting Gm to lower values, more proactive action against postprandial hyperglycemia is obtained. The threshold for reducing the meal bolus is decreased from 120 mg/dL to 70 mg/dL.
● Finally, we tuned the following parameters to give more leeway to the controller and keep one to two hour postprandial glucose within the target range as recommended:
6. λ defines the choice of IOB decay curve, hence affects the resulting IOB in (16). The shorter the decay curve is, the earlier the controller is relaxed to inject additional insulin. By this adjustment, a more assertive response to postprandial hyperglycemia can be obtained. We relaxed the meal-related IOB constraint by using a decay curve of three hours as opposed to the baseline value of four hours.
7. defines the glucose interval where additional penalty is added to increasing glucose for more aggressive response against hyperglycemia. By tuning this interval, we can adjust the assertiveness of the CLC response to hyperglycemia. We decreased the glucose lower-bound for increased velocity-penalty from 140 mg/dL to 120 mg/dL. We kept the glucose upper-bound for increased velocity penalty at 180 mg/dL.
Note that other parameters in ψ such as R+, R–, Np, Nu could also be modified but we conjecture that varying the parameters above is enough to shape the target controller behavior in providing acceptable performance and keeps the tuning problem tractable.
3.2 Baseline, Zone-Adjusted, and Pregnancy-Specific Designs
As pregnancy is associated with lower target glucose ranges, we test if lowering the zones in baseline zone-MPC is sufficient to obtain a satisfactory pregnancy-specific controller, and whether changes to other parameters in Section 3.1 are necessary. In order to have a relevant comparison, we introduce a zone-adjusted controller where only the target zones are adjusted according to pregnancy requirements. We call this controller “zone-adjusted”. In summary, we have the following controllers:
● Zone-Adjusted: This is a version of the zone-MPC that shares the same features and parameter values with the baseline, except that the values of GZL, GZH, Gref are shifted down to adapt to the lower pregnancy glucose targets with the corresponding values provided in Section 3.1.
● Pregnancy-Specific: As mentioned earlier, GZL, GZH, Gref, τc, Gm, , , , are tuned for pregnancy with the values provided in Section 3.1.
3.3 Time in Range Performance
3.3.1 Baseline vs. Zone-Adjusted vs. Pregnancy-Specific Zone-MPC Performance
We compare the performance of each controller for each scenario and each glycemic metric. The average outcomes across in-silico subjects are presented for pregnancy-specific glycemic ranges and for non-pregnant adult glycemic ranges in Table 3 and Table 4, respectively. The colors depict the performance with continuous shades from green (highest performance) to red (poorest performance). Note that the relation of colors to numbers is metric-dependent. For instance, for time percentage in 63 - 140 mg/dL (the target for pregnancy), higher values are desirable whereas for time percentage > 180 mg/dL (hyperglycemia threshold for non-pregnant), lower values are sought.
Table 3 Glucose control performances of different designs evaluated for pregnancy glycemic targets across all in-silico subjects.
Table 4 Glucose control performances of different designs evaluated for standard glycemic targets across all in-silico subjects.
The results for pregnancy specific ranges are in Table 3. The pregnancy-specific design satisfies the pregnancy-specific consensus glycemic targets in all scenarios and for all metrics. Likewise, the baseline zone-MPC satisfies the standard consensus glycemic targets for the same scenarios and for all metrics (Table 4). Summary glucose-insulin plots for each scenario and controller are provided in the Supplementary Material. As one can inspect, the performance for the time in and above the 63 - 140 mg/dL range steadily increase from the baseline controller to the zone-adjusted version and then to the pregnancy-specific zone-MPC. Across 13 scenarios, pregnancy-specific zone-MPC leads to a 10.3 ± 5.3% increase in the time in pregnancy target range (baseline zone-MPC: 70.6 ± 15.0%, pregnancy-specific zone-MPC: 80.8 ± 11.3%, p < 0.001) and a 10.7 ± 4.8% reduction in the time above the target range (baseline zone-MPC: 29.0 ± 15.4%, pregnancy-specific zone-MPC: 18.3 ± 12.0, p < 0.001). There is no significant difference in the time below range between the controllers (baseline zone-MPC: 0.5 ± 1.2%, pregnancy-specific zone-MPC: 3.5 ± 1.9%, p = 0.1). The outcomes that are significantly different between zone-adjusted and pregnancy-specific controllers are highlighted with bold in Table 3 and Table 4.
The pregnancy-specific design outperforms the zone-adjusted one significantly in time in and above the 63 - 140 mg/dL range in 10 out 13 scenarios. The exact p-values are provided in the Supplementary Material. For the time below target range (< 63 mg/dL), we observe that the zone-adjusted controller significantly outperforms the pregnancy-specific controller in three scenarios, including an extreme one. Note that the absolute difference between the corresponding numbers are clinically less significant as the increases in time below 63 mg/dL are less than 5 minutes in 24h (0.32%) except for extreme scenario D.1 where the increase is about 23 minutes (1.61%). Equally important, all designs proved high protection against very low - below 54 mg/dL - and very high - above 250 mg/dL - glucose. Next, we explore the effect of each scenario only on the pregnancy-specific zone-MPC.
3.3.2 Pregnancy-Specific Zone-MPC Performance
● Scenario A - Treatment Regimen Adjusted for Pregnancy: The average percentage of time spent within the target range is over 90% in both bolusing strategies. This percentage is higher when meal boluses are administered 30 minutes before meal intake compared to meal boluses administered at mealtimes. Between the two bolusing strategies, the most pronounced difference is in the time spent in hyperglycemia over 24h. Bolusing in advance decreased the time spent above the target range from about 8% to about 4%. For both strategies, the average percentage of time spent in hypoglycemia is less than 1% similar to the time spent above 180 mg/dL. The average percentage of time above 250 mg/dL is 0%. Average total daily insulin (TDI) and daily average glucose are 40.1 U and 111.1 mg/dL, respectively.
● Scenario B - Treatment Regimen Not Adjusted for Pregnancy (Early to Mid Pregnancy): Due to sub-optimal treatment parameters, both time above 140 mg/dL and 180 mg/dL are higher compared to the respective observations under Scenario A. This leads to a lower percentage of time spent in the 63 - 140 mg/dL target range. However, the average percentage of time spent within this range remains over 75% with a higher performance when meal boluses are administered 30 minutes before meal intake compared to meal boluses administered at mealtimes. Between the two bolusing strategies, a pronounced difference is observed in the time spent in hyperglycemia. The strategy of bolusing in advance reduces some of the time spent above the target range. Between Scenario B.1.a and B.3.b the only difference is the initial glucose value (~120 vs. 170 mg/dL) and the results show more than 5% difference in the 63-140 mg/dL range, despite the first meal being delayed one hour not to exacerbate the high glucose risk according to the clinical guidelines. This observation suggests that “too high” starting glucose value is a challenge to the daily (i.e., 24h) glucose control performance. In all settings of Scenario B, the average percentage of time spent below 54 mg/dL is less than 1%, time below 63 mg/dL is less than 4%, and time above 180 mg/dL never exceeds 1.1%. The average percentage of time above 250 mg/dL is approximately 0% throughout. For Scenario B.1, average TDI was 39.2 U and daily average glucose was 119.8 mg/dL. In Scenario B.2, we obtain an average glucose of 129.2 mg/dL with 41.9 U TDI. In Scenario B.3.a, low initial glucose values lead to a lower TDI, 38.1 U, and the average glucose is 117.5 mg/dL. Finally for Scenario B.3.b, TDI is 40 U and average glucose is 123.7 mg/dL.
● Scenario C - High Insulin Resistance (Late Pregnancy Conditions): Due to the significantly low insulin sensitivity, subjects have a higher risk of hyperglycemia. Despite this increased risk, the percentages of time spent in and above the 63 – 140 mg/dL target range are similar to the outcomes in scenario B.2. This observation shows that with insulin treatment parameters adjusted according to the literature, without the need for personalized fine tuning, pregnancy-specific zone-MPC can perform well in insulin resistance conditions during late pregnancy. The impact of bolusing in advance is also similar to the impact seen in Scenario B.2, as it shifts the time in the target range 3% above through reduction of time above the target range. We provide a sample insulin-glucose trajectory for Scenario C.2 in Figure 2. From Scenario A.2 to Scenario C.2, TDI increases on average 74 ± 12% (minimum: 51%, and maximum: 93% increase) aligned with the data from the literature (8, 35). For Scenario C, TDI is 68.8 U and daily average glucose is 126.1 mg/dL.
● Scenario D - Extreme Conditions: As expected, the average percentage of time spent in hypoglycemia in D.1, 6.8%, is the highest in this category among all the experiments conducted. The amount of time spent below 54 mg/dL is 3.2% and this is the only experiment with a result that violates the consensus thresholds for hypoglycemia related metrics. Scenario D.2 yields the lowest average percentage of time spent within the target range, 55.5%. Unlike D.1, there is no time spent in hypoglycemia under D.2. However, the average percentage of time spent in hyperglycemia is 44.5%, and marks as the poorest outcome in this category among all the experiments conducted with pregnancy-specific zone-MPC. This is the only scenario that the outcome exceeds the consensus threshold for time above 140 mg/dL. In Scenario D.3, when the poorly adjusted CR causes a decrease in the time in range, pregnancy-specific zone-MPC performs significantly higher than the zone-adjusted controller.
Figure 2 Sample insulin input, meal intake, and glucose trajectory for one subject under Scenario C.2.
3.4 Fasting and Postprandial Control Performance
Fasting glucose is computed as the average glucose between 6 AM- 7AM following the night with CLC and no food intake after 7 PM. The aim is to have fasting values between 63 – 95 mg/dL. The deviations from the upper and lower parts of this range are not treated equally; deviations above 95 mg/dL are permitted in an exchange for performance while deviations below 63 mg/dL pose a higher risk due to the asymmetrical clinicial risks associated with hypo/hyper-glycemia (16). Early postprandial glucose control performance is evaluated through time spent in the target range of 63 - 140 mg/dL within the two hours of the meal intake.
3.4.1 Design Comparisons
The main variables affecting fasting glucose outcomes are insulin sensitivity and ubasal. As long as the ubasal is able to keep the glucose within the target zone, [GZL, GZH], controller commands ubasal. When the ubasal is not able to keep the glucose within the target zone, the controller adjusts the injected insulin amount in a way that the resulting glucose stays in or as close as it can get to the target zone. As a result, fasting glucose performances are similar across scenarios for zone-adjusted and pregnancy-specific controllers while it is higher in the results with the baseline zone-MPC (Figure 3). On the other hand, results for early postprandial glucose control performance show an increasing trend from baseline to zone-adjusted and then to pregnancy-specific controller. These results support our hypothesis that tuning controller parameters beyond the target zones is worthwhile for customization to pregnancy-specific targets.
3.4.2 Pregnancy-Specific Zone-MPC: Fasting Performance
The pregnancy-specific design outperforms the baseline design in achieving levels closer to 95 mg/dL but shows similar performance to the zone-adjusted controller, assessed by the median outcomes (median [Q1,Q3]) for each scenario (Figure 3), while not meeting this secondary endpoint in many cases. The highest performance is obtained with the pregnancy-specific design under Scenarios A.1 and A.2. Resulting CGM measured fasting glucose levels are 101.2 [93.3,110.9] mg/dL and 101.7 [95.0,110.3] mg/dL, respectively. While ubasal is set to yield approximately 90 mg/dL average fasting intravenous glucose in the open-loop for all subjects in these scenarios. CGM noise, injecting micro-boluses every five-minutes instead of every minute as implemented in the in-silico open-loop setting, and wider zones starting from 6 AM on (i.e., 80 - 110 mg/dL) contribute to the variability and higher than 95 mg/dL glucose levels observed in the fasting outcomes. The poorest performance occurs in D.2, where each subject’s ubasal is set to yield 170 mg/dL fasting glucose in the open-loop control. CLC manages to reduce the effect of sub-optimal basal profiles to some extent and the resulting fasting glucose is 126.7 [118.4, 132.4] mg/dL. The reasons behind most of the scenarios yielding similar fasting outcomes are as follows: (i) the meal and initial condition related challenges do not affect the overnight fasting outcomes, (ii) the controller is able to overcome challenges related to insulin sensitivity and sub-optimal treatment parameters overnight as long as they are not extreme or can be addressed by decreasing injected insulin amount, as in Scenario D.1. Due to safety considerations, cases like Scenario D.2 can be mitigated by insulin injections higher than ubasal only up to a certain level.
3.4.3 Pregnancy-Specific Zone-MPC: Postprandial Glucose Control Performance
Since postprandial glucose control is affected by starting glucose at the meal time and the outcomes include all three meals consumed in the day, results are highly variable. Especially for the first meal of the simulation, consumed one-hour into the CLC, the controller can mitigate the sub-optimal initial glucose only to some extent. The highest performance, median TIR of 100%, is achieved in Scenario A.2 where the insulin treatment parameters are adjusted for pregnancy targets and meal boluses are injected in advance. Advanced meal-bolusing improves postprandial control to the extent that the runner-up performance is achieved under Scenario B.1.b despite sub-optimal treatment parameters. Increased postprandial time in 63 - 140 mg/dL seen in C.2 compared to C.1 also is another example where the importance of advance bolusing for better meal control is emphasized. Meal intake is well-controlled in Scenario D.1 as carbohydrate ingestion helps mitigating the extreme hypoglycemic conditions in this scenario. Results for B.1.a, B.2.b, B.3.a, B.3.b, and C.2 are comparable. The poorest meal control occurs in D.2. as expected since meal intake further exacerbates challenges due to the extreme hyperglycemic conditions in this scenario.
3.5 Post-Hoc Evaluation of Parameter Choices
Here, we show how other choices of ψ affect the glucose outcomes. The number of dimensions in ψ, clinical metrics, and scenarios make a thorough visualization impossible. Therefore, we provide partial visualizations by holding all but two specific elements in ψ as in ψp and illustrate the changes in glucose time in range metrics.
For this purpose, we provide an exemplary post-hoc analysis on the effect of using different [GZL, GZH] under two scenarios that are of high likelihood to occur in real life: Scenario A.2 and Scenario B.1.a. Similar analyses for other elements in ψ are provided in Supplementary Material for the same scenarios. We choose the range as 70 - 90 mg/dL for GZL and 80 - 130 mg/dL for GZH. We restrict GZH to be not lower than GZL + 10 mg/dL to obtain proper zones. Within the search interval, a grid search is performed for all combinations with an increment of 10 mg/dL for each element of the pair [GZL, GZH]. All other parameters are set at their values in ψp. As this analysis requires exhaustive simulations, we ran simulations with 10 subjects without repetition and kept the nighttime target zones the same as the daytime target zones for simplicity. Heat-maps are used to illustrate the changes in the glucose time in, below, and above the target range for the search interval (Table 5 and Table 6).
When the treatment parameters are already adjusted for pregnancy, TIR outcomes are all above 93% and show small changes across the search interval (Table 5). However, the pattern of changes guide the search towards [80,100] mg/dL from both sides for increasing TIR. This zone corresponds to the nighttime zones in ψp and the selected daytime zone, [80,110] mg/dL has a similar TIR performance. Lower values for both GZL and GZH come with a cost on the time below target and higher values come with a cost of time above the target.
As for Scenario B.1.a, where treatment parameters are not adjusted for pregnancy (i.e, making subjects more prone to hyperglycemia) changes in the glucose control performance for different target zones are more pronounced than the ones observed in Scenario.A.2. Higher values of [GZL, GZH] lead to less favorable TIR outcomes due to increasing time above 140 mg/dL. While the search interval for GZL includes 70 mg/dL for evaluation of outcomes in both directions, glucose control below 80 mg/dL is not recommended because too tight control restricts fetal development (29). As expected, time below the target range stays low to non-existent throughout under this scenario (Table 6).
Exemplary analyses on local sensitivity of metrics around ψp under the same scenarios for selected pairs of elements in ψ are provided in the Supplementary Material. In these analyses, the range of evaluation for each parameter is determined in a way that surround plausible values: between 70 - 110 mg/dL for Gref, 1 to 6 hours for λ, between 90 and 130 mg/dL for τc, between 110 and 140 mg/dL for , and from 110 to 220 mg/dL for . These analyses provide insight into how the changes in glycemic outcomes for various parameter values differ across scenarios. We note that the final parameter selection presented in Table 2 is not the optimal selection for any specific scenario. Instead, it strikes a balance between the clinical recommendations for glycemic control over the selected range of scenarios as explained in Section 2.7.
In this work, we tailored a zone-MPC controller to meet the tight glucose control requirements in pregnant women with T1D. We verified the proposed pregnancy-specific CLC system under a broad range of clinically possible scenarios. To provide insight on the performance of the baseline controller and the impact of tailoring, we performed the same experiments with the baseline and only zone-adjusted controller designs as well. The baseline zone-MPC design, aimed to succeed in non-pregnancy glucose target range of 70 – 180 mg/dL, showed a performance above 95% time in this range for all but extreme case scenarios explored in this study. The high percentage of time in the non-pregnancy target range obtained by the baseline zone-MPC is consistent with some of the previous in-silico studies on zone-MPC (40, 41) Both studies reported above 90% time in 70 - 180 mg/dL while the meals in their scenarios had higher carbohydrate content (i.e., ranging from 50 to 100 grams per meal) compared to our experiments (i.e., 40 grams per meal). In our work, low carbohydrate content of the meals, all meals being announced at or before their intake and accurately, the effect of titrating the insulin treatment parameters to achieve pregnancy-specific glucose control requirements in Scenario A and partially in Scenario C contributed to the high performance of all three controllers. Here, we note that the choice of low carbohydrate intake was in accordance with the clinical guidelines for pregnancy complicated by T1D. Pregnant women with T1D have much stricter dietary plans compared to their non-pregnant counterparts due to the additional risks that high glucose poses for the mother and the fetus. With this awareness, this is a particularly motivated population to follow the clinical recommendations that include a low carbohydrate diet.
As the baseline controller provided a strong foundation for our tailoring purpose, the natural question was whether one could achieve the pregnancy specific glucose targets by simply shifting the zones down and without further tuning other parameters. To answer this question, we had the zone-adjusted MPC which was a naively tuned version of the baseline controller where the target zone and reference glucose are adapted to the pregnancy targets but other parameters stayed the same as the baseline zone-MPC. Our results showed that the overall performance of the zone-adjusted controller mostly falls between baseline and pregnancy-specific designs. It is worth to note that while the zone-adjusted design also meets the primary endpoint in most cases, the improvement is significant as clinical studies suggest that even a 5% improvement in TIR is associated with a reduction of birth complications (42). The difference between the zone-adjusted and pregnancy-specific designs are significant in multiple cases, implying that tuning parameters in Section 3.1 beyond the target zone have a meaningful effect. While there was no significant difference in the time below 63 mg/dL across scenarios, in three out of 13 scenarios, pregnancy-specific zone-MPC led to a significant increase in the time below range. We consider this as an acceptable trade off since the improvement in other metrics were significant and the degradation in time below < 63 mg/dL was small - the difference ranged from 0.01% to 0.54% (from 1.4 to 7.8 minutes), except in the extreme case scenario D.1 that we discuss under Section 4.3.
Among the presented simulation scenarios, the highest glucose control performance was obtained under Scenario A with above 91% time in the target range. Although sub-optimalities introduced under Scenario B decreased the control performance, the glucose outcomes satisfied the primary endpoint of our work. The extreme case scenarios presented in Scenario D showed that the lowest performance occurred when multiple conditions were combined to increase the risk of hyperglycemia. In Scenario C (akin to the end of third trimester in pregnancy), we observe that the primary endpoint is still met by the pregnancy-specific controller. While it needs further studies and clinical validation, the results in Table 3 suggest that our controller is robust enough to be deployed for pregnancy.
4.2 Clinical Trial
Our work in this manuscript used 10 in-silico subjects for guiding the customization of baseline zone-MPC to pregnancy. Resulting satisfactory performance enabled us to move to testing our system in a clinical trial. The pregnancy-specific controller is currently under clinical evaluation in a FDA-approved outpatient clinical study (NCT04492566). The results from our pilot clinical study on 8 subjects over 48 hours of use indicate safety and feasibility of the pregnancy-specific zone-MPC. In particular, time in the pregnancy target range was 79.3%, time < 63 mg/dL was 1.6%, and time < 140 mg/dL was 19.1% even though there were no restrictions to the meal intake or physical activity of the participants (43). Testing of the controller in the home-setting continues at this time.
4.3 Limitations and Future Work
A limitation of our work was due to the fact that changes in glucose-insulin-meal metabolism being yet to be precisely quantified and hence, absence of related mathematical models for T1D during pregnancy. Therefore, we used scenario parameters to simulate pregnancy-like metabolic, clinical and behavioral conditions, such as changing insulin sensitivities, insulin treatment parameters, meal intake and bolusing behavior. Future research that focuses on modeling the glucose-insulin metabolism during pregnancy could facilitate building simulation platforms tailored to this cohort, which would facilitate the development of optimal insulin treatment strategies and systems for this cohort. While we tried to cover a comprehensive range of potential scenarios in our simulations, we note that our simulations do not capture diurnal sensitivity changes, other changes to metabolism during pregnancy due to insulin pharmacokinetics and body weight. Furthermore, the diversity of subjects captured in the in-silico experiments are inevitably less than the diversity of a realistic population in different aspects (e.g., the severity of diabetes and demographic profiles), and not all challenges that may occur in real life and affect the glucose control performance of any CLC system are simulated (e.g., physical activity, large meals, missed meals/boluses, stress). Especially under conditions that are particularly prone to hypoglycemia, such as engaging in a long physical activity session, the importance of preventative measures against low glucose would be elevated when using a pregnancy-specific controller. This is due to the already low target for the glucose levels compared to a standard controller, that might increase the risk of hypoglycemia (e.g., results for Scenario D.1). This is an acceptable trade-off to achieve lower glucose levels.
Although the strength of our approach is in offering an off-line tuning strategy for robust performance that leads to a single controller capable of achieving satisfactory control throughout pregnancy, an accompanying limitation is that we rely on having insulin treatment parameters prescribed a priori (i.e., θtreatment). Overall control performance is affected by the accuracy of these parameters. The results showed that our controller was able to alleviate the challenges due to poorly adjusted θtreatment to some extent as explored in Scenario B. Yet, the best performance occurred when θtreatment was properly adjusted for pregnancy.
Since the UVA/Padova simulator does not contain a validated pregnancy cohort, and the baseline zone-MPC is a controller that is already clinically validated, we use the 10-subject version of the simulator3 for evaluating the impact of our tuning to meet the pregnancy-specific control targets. While the use of the same in-silico subjects both for tuning and in-silico testing purposes is a limitation of our work, the results from our pilot clinical trial, summarized in Section 4.2, provide insight on the controller’s performance on a separate testing cohort under real-life conditions.
Finally, our current approach of exhaustive search for ψ is amenable to an optimization-guided procedure using global optimization methods such as Bayesian optimization (44). Thus, we can automate the search for ψ and θtreatment such that they are partially tuned offline (using historical data) and partially tuned online (using patient’s real-time data). Of note, this automated alternative would require a multi-objective approach where different weights, typically manually tuned, are assigned on different glycemic metrics and on the outcomes of each scenario.
We presented a zone-MPC controller tuned for pregnancy complicated with T1D. Through extensive simulation scenarios, the pregnancy-specific zone-MPC improved performance in the pregnancy target range when compared to the baseline zone-MPC. Our findings emphasize the need for customized glucose control systems for pregnancy.
Our work provides the first in-silico results for CLC performance in T1D pregnancy and can be employed as a baseline for in-silico evaluation of future efforts in this area. This example of tailored design also provides a strategy for developing and verifying tailored solutions to target specific sub-populations with T1D, which is a mostly unmet need (7). As the use of CLC systems becomes more prevalent, understanding how these systems can be customized to the needs of specific sub-populations will be critical to extend the reach and ensuring satisfactory performance. We believe that the progress toward providing closed-loop glucose control option for all individuals with T1D will be accelerated greatly by algorithms with flexible components that can be tuned for differing physiological challenges and treatment requirements.
Data Availability Statement
The original contributions presented in the study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding author.
BO: Conceptualization, methodology, software, validation, formal analysis, investigation, resources, data curation, writing—original draft, writing—review and editing, visualization. SD: Methodology, software, validation, resources, writing—review and editing. FJD: Resources, writing— review and editing, supervision. ED: Conceptualization, methodology, validation, investigation, resources, writing—review and editing, supervision, project administration, funding acquisition. All authors contributed to the article and approved the submitted version.
National Institutes of Health (R01DK120358).
Conflict of Interest
FJD reports equity, licensed IP and is a member of the Scientific Advisory Board of Mode AGC. ED reports receiving grants from JDRF, NIH, and Helmsley Charitable Trust, personal fees from Roche and Eli Lilly, patents on artificial pancreas technology, and product support from Dexcom, Insulet, Tandem, and Roche. ED is currently an employee and shareholder of Eli Lilly and Company. The work presented in this manuscript was performed as part of his academic appointment and is independent of his employment with Eli Lilly and Company.
The remaining authors declare that the research was conducted. In the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
The handling editor declared a past co-authorship with one of the authors BO within the past two years.
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
The authors thank Drs. Kristin Castorino, Yogish C. Kudva, Carol J. Levy, Jordan Pinsker, and Barak Rosenn for their guidance in pregnancy-specific treatment recommendations that greatly helped us in the design and verification of the pregnancy-specific zone-MPC.
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fendo.2021.768639/full#supplementary-material
- ^ Tandem Diabetes Care Announces Expanded Pediatric Indication of the t:slim X2 Insulin Pump withControl-IQ Advanced Hybrid Closed-Loop Technology, available in https://bit.ly/3qyy1JA.
- ^ FDA approves automated insulin delivery and monitoring system for use in younger pediatric patients, available in https://bit.ly/3jwuAlm.
- ^ Distributed Version of the UVA/Padova simulator (https://tegvirginia.com/software/t1dms/) contains a smaller sample of in-silico subjects for developing and testing treatment strategies.
2. Brown SA, Kovatchev BP, Raghinaru D, Lum JW, Buckingham BA, Kudva YC, et al. Six-Month Randomized, Multicenter Trial of Closed-Loop Control in Type 1 Diabetes. N Engl J Med (2019) 381:1707–17. doi: 10.1056/NEJMoa1907863
3. Breton MD, Kanapka LG, Beck RW, Ekhlaspour L, Forlenza GP, Cengiz E, et al. A Randomized Trial of Closed-Loop Control in Children With Type 1 Diabetes. N Engl J Med (2020) 383:836–45. doi: 10.1056/NEJMoa2004736
4. Barnard KD, Wysocki T, Ully V, Mader JK, Pieber TR, Thabit H, et al. Closing the Loop in Adults, Children and Adolescents With Suboptimally Controlled Type 1 Diabetes Under Free Living Conditions: A Psychosocial Substudy. J Diabetes Sci Technol (2017) 11:1080–8. doi: 10.1177/1932296817702656
5. Stewart ZA, Wilinska ME, Hartnell S, O’Neil LK, Rayman G, Scott EM, et al. Day-And-Night Closed-Loop Insulin Delivery in a Broad Population of Pregnant Women With Type 1 Diabetes: A Randomized Controlled Crossover Trial. Diabetes Care (2018) 41:1391–9. doi: 10.2337/dc17-2534
7. Aiello EM, Deshpande S, Ozaslan B, Wolkowicz KL, Dassau E, Pinsker JE, et al. Review of Automated Insulin Delivery Systems for Individuals With Type 1 Diabetes: Tailored Solutions for Subpopulations. Curr Opin Biomed Eng (2021) 100312. doi: 10.1016/j.cobme.2021.100312
8. García-Patterson A, Gich I, Amini S, Catalano PM, De Leiva A, Corcoy R. Insulin Requirements Throughout Pregnancy in Women With Type 1 Diabetes Mellitus: Three Changes of Direction. Diabetologia (2010) 53:446–51. doi: 10.1007/s00125-009-1633-z
9. Battelino T, Danne T, Bergenstal RM, Amiel SA, Beck R, Biester T, et al. Clinical Targets for Continuous Glucose Monitoring Data Interpretation: Recommendations From the International Consensus on Time in Range. Diabetes Care (2019) 42:1593–603. doi: 10.2337/dci19-0028
10. Jovanovič L, Druzin M, Peterson CM. Effect of Euglycemia on the Outcome of Pregnancy in Insulin-Dependent Diabetic Women as Compared With Normal Control Subjects. Am J Med (1981) 71:921–7. doi: 10.1016/0002-9343(81)90301-6
11. Murphy HR, Kumareswaran K, Elleri D, Allen JM, Caldwell K, Biagioni M, et al. Safety and Efficacy of 24-h Closed-Loop Insulin Delivery in Well-Controlled Pregnant Women With Type 1 Diabetes: A Randomized Crossover Case Series. Diabetes Care (2011) 34:2527–9. doi: 10.2337/dc11-1430
12. Stewart ZA, Wilinska ME, Hartnell S, Temple RC, Rayman G, Stanley KP, et al. Closed-Loop Insulin Delivery During Pregnancy in Women With Type 1 Diabetes. N Engl J Med (2016) 375:644–54. doi: 10.1056/NEJMoa1602494
13. Tauschmann M, Thabit H, Bally L, Allen JM, Hartnell S, Wilinska ME, et al. Closed-Loop Insulin Delivery in Suboptimally Controlled Type 1 Diabetes: A Multicentre, 12-Week Randomised Trial. Lancet (2018) 392:1321–9. doi: 10.1016/S0140-6736(18)31947-0
14. Grosman B, Dassau E, Zisser HC, Jovanovič L, Doyle III FJ. Zone Model Predictive Control: A Strategy to Minimize Hyper-and Hypoglycemic Events. J Diabetes Sci Technol (2010) 4:961–75. doi: 10.1177/193229681000400428
15. van Heusden K, Dassau E, Zisser HC, Seborg DE, Doyle III FJ. Control-Relevant Models for Glucose Control Using a Priori Patient Characteristics. IEEE Trans Biomed Eng (2012) 59:1839–49. doi: 10.1109/TBME.2011.2176939
16. Gondhalekar R, Dassau E, Doyle III FJ. Periodic Zone-MPC With Asymmetric Costs for Outpatient-Ready Safety of an Artificial Pancreas to Treat Type 1 Diabetes. Automatica (2016) 71:237–46. doi: 10.1016/j.automatica.2016.04.015
17. Gondhalekar R, Dassau E, Doyle III FJ. Velocity-Weighting & Velocity-Penalty MPC of an Artificial Pancreas: Improved Safety & Performance. Automatica (2018) 91:105–17. doi: 10.1016/j.automatica.2018.01.025
18. Dassau E, Pinsker JE, Kudva YC, Brown SA, Gondhalekar R, Dalla Man C, et al. Twelve-Week 24/7 Ambulatory Artificial Pancreas With Weekly Adaptation of Insulin Delivery Settings: Effect on Hemoglobin A1c and Hypoglycemia. Diabetes Care (2017) 40:1719–26. doi: 10.2337/dc17-1188
19. Huyett LM, Ly TT, Forlenza GP, Reuschel-DiVirgilio S, Messer LH, Wadwa RP, et al. Outpatient Closed-Loop Control With Unannounced Moderate Exercise in Adolescents Using Zone Model Predictive Control. Diabetes Technol Ther (2017) 19:331–9. doi: 10.1089/dia.2016.0399
20. Forlenza GP, Deshpande S, Ly TT, Howsmon DP, Cameron F, Baysal N, et al. Application of Zone Model Predictive Control Artificial Pancreas During Extended Use of Infusion Set and Sensor: A Randomized Crossover-Controlled Home-Use Trial. Diabetes Care (2017) 40:1096–102. doi: 10.2337/dc17-0500
21. Deshpande S, Pinsker JE, Church MM, Piper M, Andre C, Massa J, et al. Randomized Crossover Comparison of Automated Insulin Delivery Versus Conventional Therapy Using an Unlocked Smartphone With Scheduled Pasta and Rice Meal Challenges in the Outpatient Setting. Diabetes Technol Ther (2020) 22:865–74. doi: 10.1089/dia.2020.0022
25. Kovatchev BP, Straume M, Cox DJ, Farhy LS. Risk Analysis of Blood Glucose Data: A Quantitative Approach to Optimizing the Control of Insulin Dependent Diabetes. Comput Math Methods Med (2000) 3:1–10. doi: 10.1080/10273660008833060
28. Ellingsen C, Dassau E, Zisser H, Grosman B, Percival MW, Jovanovič L, et al. Safety Constraints in an Artificial Pancreatic β Cell: An Implementation of Model Predictive Control With Insulin on Board. J Diabetes Sci Technol (2009) 3:536–44. doi: 10.1177/193229680900300319
29. Kitzmiller JL, Block JM, Brown FM, Catalano PM, Conway DL, Coustan DR, et al. Managing Preexisting Diabetes for Pregnancy: Summary of Evidence and Consensus Recommendations for Care. Diabetes Care (2008) 31:1060–79. doi: 10.2337/dc08-9020
31. Roskjær AB, Andersen JR, Ronneby H, Damm P, Mathiesen ER. Dietary Advices on Carbohydrate Intake for Pregnant Women With Type 1 Diabetes. J Maternal-Fetal Neonatal Med (2015) 28:229–33. doi: 10.3109/14767058.2014.906577
33. Kovatchev BP, Breton M, Dalla Man C, Cobelli C. Biosimulation Modeling for Diabetes: In Silico Preclinical Trials: A Proof of Concept in Closed-Loop Control of Type 1 Diabetes. J Diabetes Sci Technol (2009) 3:44. doi: 10.1177/193229680900300106
35. Roeder HA, Moore TR, Ramos GA. Insulin Pump Dosing Across Gestation in Women With Well-Controlled Type 1 Diabetes Mellitus. Am J Obstetrics Gynecol (2012) 207:324–e1. doi: 10.1016/j.ajog.2012.06.029
36. Mathiesen JM, Secher AL, Ringholm L, Nørgaard K, Hommel E, Andersen HU, et al. Changes in Basal Rates and Bolus Calculator Settings in Insulin Pumps During Pregnancy in Women With Type 1 Diabetes. J Maternal-Fetal Neonatal Med (2014) 27:724–8. doi: 10.3109/14767058.2013.837444
37. Bongiovanni M, Fresa R, Visalli N, Bitterman O, Suraci C, Napoli A. A Study of the Carbohydrate-to-Insulin Ratio in Pregnant Women With Type 1 Diabetes on Pump Treatment. Diabetes Technol Ther (2016) 18:360–5. doi: 10.1089/dia.2015.0246
38. O’Malley G, Ozaslan B, Levy CJ, Castorino K, Desjardins D, Levister C, et al. Longitudinal Observation of Insulin Use and Glucose Sensor Metrics in Pregnant Women With Type 1 Diabetes Using Continuous Glucose Monitors and Insulin Pumps: The LOIS-P Study. Diabetes Technol Ther (2021) 23:807–17. doi: 10.1089/dia.2021.0112
39. Murphy HR, Elleri D, Allen JM, Harris J, Simmons D, Rayman G, et al. Pathophysiology of Postprandial Hyperglycaemia in Women With Type 1 Diabetes During Pregnancy. Diabetologia (2012) 55:282–93. doi: 10.1007/s00125-011-2363-6
40. Laguna Sanz AJ, Doyle III FJ, Dassau E. An Enhanced Model Predictive Control for the Artificial Pancreas Using a Confidence Index Based on Residual Analysis of Past Predictions. J Diabetes Sci Technol (2017) 11:537–44. doi: 10.1177/1932296816680632
41. Shi D, Dassau E, Doyle III FJ. Adaptive Zone Model Predictive Control of Artificial Pancreas Based on Glucose-and Velocity-Dependent Control Penalties. IEEE Trans Biomed Eng (2018) 66:1045–54. doi: 10.23919/ACC.2018.8431902
43. Ozaslan B, Levy CJ, Pinsker JE, O’Malley G, Kaur RJ, Castorino KN, et al. (2021). 95-OR: Safety and Feasibility Evaluation of Closed-Loop Glycemic Management in Pregnant Women With Type 1 Diabetes. In: 81th Scientific Session of American Diabetes Association (ADA 2021), Vol. 70.
Keywords: type 1 diabetes, model predictive control, automated insulin delivery, pregnancy, in-silico verification
Citation: Ozaslan B, Deshpande S, Doyle FJ III and Dassau E (2022) Zone-MPC Automated Insulin Delivery Algorithm Tuned for Pregnancy Complicated by Type 1 Diabetes. Front. Endocrinol. 12:768639. doi: 10.3389/fendo.2021.768639
Received: 31 August 2021; Accepted: 30 December 2021;
Published: 22 March 2022.
Edited by:Patricio Colmegna, University of Virginia, United States
Reviewed by:Peter Jacobs, Oregon Health and Science University, United States
Hans-Michael Kaltenbach, ETH Zürich, Switzerland
Kezhi Li, University College London, United Kingdom
Malgorzata Wilinska, University of Cambridge, United Kingdom
Copyright © 2022 Ozaslan, Deshpande, Doyle and Dassau. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Eyal Dassau, email@example.com