Type 1 diabetes (T1D) is a chronic autoimmune disease featured by the loss of beta cell function and the need for lifetime insulin replacement. Over the recent decade, the use of automated insulin delivery systems (AID) has shifted the paradigm of treatment: the availability of continuous subcutaneous (SC) glucose sensors to guide SC insulin delivery through a control algorithm has allowed, for the first time, to reduce the daily burden of the disease as well as to abate the risk for hypoglycemia. AID use is still limited by individual acceptance, local availability, coverage, and expertise. A major drawback of SC insulin delivery is the need for meal announcement and the peripheral hyperinsulinemia that, over time, contributes to macrovascular complications. Inpatient trials using intraperitoneal (IP) insulin pumps have demonstrated that glycemic control can be improved without meal announcement due to the faster insulin delivery through the peritoneal space. This calls for novel control algorithms able to account for the specificities of IP insulin kinetics. Recently, our group described a two-compartment model of IP insulin kinetics demonstrating that the peritoneal space acts as a virtual compartment and IP insulin delivery is virtually intraportal (intrahepatic), thus closely mimicking the physiology of insulin secretion. The FDA-accepted T1D simulator for SC insulin delivery and sensing has been updated for IP insulin delivery and sensing. Herein, we design and validate—in silico—a time-varying proportional integrative derivative controller to guide IP insulin delivery in a fully closed-loop mode without meal announcement.
I. INTRODUCTION
Type 1 diabetes (T1D) is a chronic autoimmune disease featured by a progressive loss of beta cell function that requires lifetime insulin replacement (Fig. 1, upper panel). T1D affects ∼1 child out of 200, with a 2% yearly increase in its incidence in youths as a result of a mixture of genetic predisposition and environmental triggers.1
Over the recent decade, the use of automated insulin delivery systems (AID)—often referred to as artificial pancreas (AP)—has shifted the paradigm of treatment in both adults and children: the availability of continuous subcutaneous (SC) glucose sensors that guide SC insulin delivery through control algorithms has allowed, for the first time, to dramatically reduce the daily burden of the disease for subjects with T1D and families as well as to abate its major short term complication—the hypoglycemia—and simultaneously reduce the incidence of long-term microvascular complications2 (Fig. 1, bottom panel). To date, AID represents the first therapeutic options for pediatric onset T1D,3 even though their use is still limited by subjects' acceptance, local availability, coverage, and expertise of the healthcare personnel. Nevertheless, AID does not represent a “cure” and remains a complex instrument that can provide a reasonable improvement of the disease. Additionally, the improvement of glycemic control through SC insulin delivery does not come without a cost: individuals with T1D are exposed to peripheral non-physiologic hyperinsulinemia that, over time, is a major contributor to macrovascular complications, including hearth failure and macrovascular disease that are still three times more frequent in those with T1D respect to their healthy peers. These diseases represent the first cause of mortality even for those who achieve optimal glycemic control over a lifetime.4 SC insulin delivery creates a paradoxical peripheral hyperinsulinemia necessary to achieve minimal insulin concentration in the portal system able to inhibit hepatic glucose production, thus, preventing fasting hyperglycemia. This observation has prompted the development of dedicated pumps for intraperitoneal (IP) insulin delivery that provide a more physiological way to optimize glycemic control and prevent peripheral hyperinsulinemia (Fig. 1, bottom panel). Inpatient trials demonstrated that IP insulin delivery can improve glycemic control and spare meal announcement due to the fast insulin delivery route represented by the peritoneum.5 This calls for control algorithms able to account for the specificities of IP insulin kinetics. Recently, our group described a two-compartment model of IP insulin kinetics, thus proving that the peritoneal space acts as a virtual compartment, and IP insulin delivery is virtually an intraportal (intrahepatic) delivery, thus mimicking the physiology of insulin secretion.6 The FDA-accepted UVA/Padova T1D simulator7 for SC insulin delivery and sensing has been updated for IP insulin delivery and sensing. In this paper, we design and validate—in silico—a proportional integrative derivative (PID) controller to guide IP insulin delivery in a fully closed-loop mode that does not require meal announcement.
II. BACKGROUND AND PROBLEM STATEMENT
This section provides the outline of the problem and the system's setup. Finally, we briefly overview related works with particular attention to IP controllers.
A. Setup description and problem statement
An AP is composed of four main components. The first component is a continuous glucose sensor that measures subcutaneous glucose concentration. The second component—the controller—receives the glucose measurements at a constant rate and communicates to the third component—the insulin pump—which delivers insulin. Finally, a human machine interface (HMI) allows communication between the subject and the AP. For instance, through HMI, subjects can monitor their glucose concentration and announce the meal, including an estimate of its carbohydrate content. The meal announcement is essential in AP with SC sensing and infusion (SC-SC-AP). Indeed, in SC-SC-AP, the controller cannot manage meals just by reacting to the glucose concentration caused by meals due to the slow SC insulin kinetics and to the delay of SC sensing. Generally, the controller implements a feedforward strategy that, based on information coming from meal announcement, computes the insulin bolus. However, meal announcement is a burden for the subject and also bears a considerable risk of hypo- and hyperglycemia, e.g., due to erroneous estimates of the carbohydrate intake.
In this work, we considered an AP with IP glucose sensing and insulin delivery, hereafter referred to as IP-IP-AP. In this setup, in particular, insulin kinetics are much faster than with SC delivery,8 and this raises the possibility to keep glucose concentration in the target range without recurring to meal announcement, thus leading to a fully automated AP. In this work, we carried out an in silico in-depth feasibility study adopting a PID controller without meal information as a control strategy; then, we propose a novel PID time-varying personalization strategy accounting for intra-day metabolic variability and compare it to the total daily insulin (TDI) dose state-of-the-art strategy. It is worth mentioning that we could have also considered more computationally demanding control strategies such as model predictive control (MPC). However, we focused on PID controllers since IP kinetics is much faster, and PID compared to MPC is simpler and less computational demanding, thus, in an IP-IP-AP, limiting power consumption is extremely important.
B. Related works
The PID is one of the most popular control algorithms due to its simplicity and effectiveness on a broad class of systems.9 The PID controller has only three parameters—Kp, Ki, and Kd—manually adaptable or modifiable in an automatic fashion. Applications of this control strategy proved its remarkable robustness to model mismatch, i.e., discrepancies between the actual system and the model used to adjust the parameters.
For these reasons, several works on SC-SC-AP considered the PID controller as the control strategy,10,11 leading also to the realization of a commercial product.11–13 In AP applications, the typical procedure implemented to derive the PID parameters requires an average model of the glucose–insulin dynamics. This model, also named a “control-relevant model,”14 is a simplified model that encodes relevant characteristics of the glucose–insulin relation. For instance, several works considered linear models.15 A standard choice consists of using a third-order linear transfer function (TF) with delay.14
These models are used to derive the set of average PID parameters, subsequently tailored to the characteristic of the individual subject. Defining a simple and interpretable personalization strategy of the PID parameters is crucial to improve the usability of AP. A convenient and reasonable personalization strategy consists of adapting the parameters based on simple clinical metrics. For instance, the works in Refs. 11 and 14 proposed a personalization based on the TDI parameter, i.e., the amount of insulin units required by a subject with T1D in a standard day.
However, the slow SC insulin kinetics limit the effectiveness of the PID controller in SC-SC-AP. To avoid hyper-hypoglycemic events, PID controllers are, generally, accompanied by two precautions. The first is the aforementioned meal announcement that turns out to be essential even applying more complex control strategies such as MPC.16,17 The second is the insulin feedback (IFB),11 a feedback on the plasma insulin concentration that limits insulin infusion if plasma insulin concentration becomes too elevated. It is worth noting that the plasma insulin concentration cannot be measured in real-time, so the controller uses an estimate of the plasma insulin, which requires the characterization of a subject-dependent model.
A promising solution to avoid peripheral hyper-insulinemia and optimize post-prandial glucose control without meal announcement is the IP-IP-AP. The pilot study presented in Ref. 18 demonstrated the great potential of IP infusion. In that study, ten patients participated to an inpatient study wearing a SC sensor and an IP infusion pump, controlled by a Zone MPC algorithm. The 24-h clinical protocol included three unannounced meals. The study showed that AP with IP infusion can achieve significantly better glucose control compared to SC infusion. Recent advances in the realization of this technology calls for the derivation of IP glucose–insulin models,6,19,20 new tools for in silico experiments, and increased attention in the study of control algorithms for IP-IP-AP. An in silico preliminary study was presented in Ref. 21, where the authors designed a PID controller for a fully implantable IP-IP-AP on an early version of the UVA/Padova simulator (T1DS) without inter- and intra-day variability, equipped with a population of only ten virtual patients. Like other PID controllers for SC-SC-AP, the algorithm personalizes the PID parameters through the TDI. Other in silico studies with MPC were conducted in Refs. 17 and 20. With respect to the modeling, in Ref. 19, the authors derived an animal model of glucose–insulin dynamics, while the work in Ref. 6 derived a two-compartment model of IP insulin kinetics in humans.
III. PROPOSED APPROACH
This section describes the derivation of the proposed PID controller. We carried out in silico experiments on the latest version of the T1DS modified to describe sensing and infusion through the IP route (IP-T1DS), as detailed in Sec. VI A. The simulator is equipped with a virtual population of 100 adult patients,7 also describing inter- and -intra-day variability of insulin sensitivity.22
Similarly to previous PID approaches,11,21 we implemented the three following steps to derive our PID controller:
-
identification of a control-relevant model for IP-IP-AP;
-
derivation of the average PID parameters;
-
implementation of a personalization strategy based on clinical parameters.
In the following, we detail how the three steps have been implemented.
A. Identification of a control-relevant model for IP-IP-AP
Following the same approach implemented by previous works for SC-SC-AP, as a first step, we derived a control-relevant model of the insulin–glucose relation. These kinds of models do not aim at describing precisely the insulin–glucose TF as models derived for simulation purposed relying on properly collected data, see, for instance, Refs. 7 and 22. To obtain an accurate description of the insulin–glucose TF, we should rely on complex and highly personalized models that, generally, are hard to be used in a principled way to derive a controller. Instead, control relevant models have to provide a simple and compact description of the insulin–glucose TF, useful to derive first-attempt parameters. For this reason, we modeled the insulin–glucose TF with a linear and time-invariant model, and we averaged the results over all the virtual patients.
We identified the glucose–insulin TF starting from data collected by simulating a 24-h protocol without meals in the 100 in silico patients of the IP-T1DS. In this way, the glucose dynamic depends only on endogenous glucose production and infused insulin. For each virtual patient, the insulin signal adopted to excite the system is a distinct realization of a zero mean Gaussian noise, filtered with a low pass filter. The cutoff frequency of the low pass filter is , which guarantees a sufficient excitation in the frequency range of interest. Negative values were saturated to zero. In this experiment, we set the standard deviation of the measurement noise to zero.
B. Derivation of the average PID parameters
We remark that, in our controller, we do not rely on IFB, since as showed by results in Sec. IV, in the IP-IP-AP we can derive effective controllers also without relying on IFB. As briefly discussed before, the plasma insulin concentration cannot be measured in real-time, and they must be estimated through a model, eventually subject-dependent to obtain accurate estimates. Generally, patients do not have this kind of characterization among their clinical parameters.
C. PID time-varying personalization
The PID parameters in Eq. (5) do not account for subject-variability. Generally, the control parameters are tailored to the characteristic of the single patient based on simple clinical parameters, like the TDI. From a control point of view, the idea is to assume that the patients transfer functions have the same poles, but different gains. The gain of each patient is the average TF gain multiplied by a coefficient that depends on clinical parameters. Then, for each patient, the correspondent PID parameters are equal to the average PID parameters in Eq. (5) scaled by . For instance, when TDI is considered for personalization, is inversely proportional to it. Indeed, patients with low TDI are insulin-sensitive; consequently, the gain of their glucose–insulin TF is higher than the one of patients with high TDI.
The TDI-based personalization does not account for intra-day variability since the TDI provides a global description of the patient's insulin sensitivity. Insulin sensitivity can vary during the day. For instance, a model of the insulin sensitivity variation was presented in Ref. 22. This model splits the day into three parts, breakfast, lunch, and dinner, and assigns a different insulin sensitivity to each part of the day.
To account for intra-day variability, we considered a different parameter for personalization. A clinical parameter closely related to insulin sensitivity is the carbohydrate to insulin ratio (CR). Patients use the CR to compute the insulin bolus necessary to compensate a given meal. The insulin bolus is computed by dividing the amount of meal carbohydrates by the CR. Then, CR is proportional to insulin sensitivity. Typically, each patient has three values of CR, associated with breakfast, lunch, and dinner, hereafter denoted CRB, CRL, and CRD. We defined as a function of CRB, CRL, and CRD and the time of the day h. Drastic variations of the PID parameters could lead to instabilities, besides not being physiologically plausible. In our algorithm, to avoid discontinuities of the PID parameters, is a function of , a smoothed version of the piecewise-constant signal defined by CRB, CRL, and CRD. Specifically, we obtained by filtering the piecewise-constant signal with an acausal low-pass filter with cutoff frequency of . Figure 3 compares the evolution of the piecewise-constant signal and its filtered version as a function of the time of the day for one of the 100 virtual patients.
IV. EXPERIMENTS
We tested the effectiveness of the IP-IP-AP without meal announcement through extensive in silico experiments by simulating a 12-weeks protocol. The protocol includes three meals per day, at variable times and with variable amounts. Each day, the meals time and CHO amount were sampled from uniform distributions with the following ranges:
-
Breakfast: time , CHO .
-
Lunch: time , CHO .
-
Dinner: time , CHO .
Additionally, to further increase variability, we included in the protocol two random snacks, one after breakfast and one after lunch. Each snack can occur with probability 50% approximately two hours after breakfast or lunch. The amount of carbohydrates per snack is sampled from a uniform distribution with ranges CHO.
The simulator considered is a modified version of the UVA/Padova T1DS equipped with the FDA-accepted S2017 population.7 Section VI A briefly describes the modifications implemented to account for IP sensing and infusion, as well as variations of insulin sensitivity. In this work, we considered two setups, referred to as a standard setup and a robust setup. The first setup considers random deviations of the insulin sensitivity in the range around the nominal values reached at breakfast, lunch, and dinner, while the second also considers an additional random shift of , to further stress robustness with Respect to deviations from the nominal values. A detailed description of the setup is reported in Sec. VI A.
For each personalization, we computed different standard metrics23 detailed in Sec. VI C. In Table I, we reported the statistics of each metric for the following parts of the day:
-
: day and night;
-
PP: post-prandial period (4 h after meals).
. | . | . | PP . |
---|---|---|---|
GM | TDI | ||
CR | a | ||
GSTD | TDI | ||
CR | b | b | |
TDI | 13 | 9 | |
CR | c | 2 | |
TDI | |||
CR | |||
TR | TDI | ||
CR | |||
TTR | TDI | ||
CR | b | b | |
TDI | |||
CR | |||
TDI | |||
CR | |||
TDI | |||
CR | |||
LBGI | TDI | ||
CR | b | b | |
HBGI | TDI | ||
CR | b | b |
. | . | . | PP . |
---|---|---|---|
GM | TDI | ||
CR | a | ||
GSTD | TDI | ||
CR | b | b | |
TDI | 13 | 9 | |
CR | c | 2 | |
TDI | |||
CR | |||
TR | TDI | ||
CR | |||
TTR | TDI | ||
CR | b | b | |
TDI | |||
CR | |||
TDI | |||
CR | |||
TDI | |||
CR | |||
LBGI | TDI | ||
CR | b | b | |
HBGI | TDI | ||
CR | b | b |
Statistical significance level: p-value < 0.01.
Statistical significance level: p-value < 0.001.
Statistical significance level: p-value < 0.05.
Statistically significant results are highlighted in bold (see Sec. VI C for more details on metrics and statistical tests).
Results show that both controllers achieve remarkable glycemic control performance. The proposed time-varying CR-based PID outperforms the TDI-based PID regarding the time percentage spent in the tight euglycemic range (TTR). In addition to that, the personalization through CR reduces the risk of hypoglycemic events: with TDI-based PID 13% of the patients needed at least one hypo-treatment, while with the one based on CR only 2% of the patients were involved. Moreover, with the CR-based PID the glucose standard deviation (GSTD) is significantly lower. This fact suggests that by modulating the PID parameters during the day, the controller fits better to variations of insulin sensitivity.
Similar qualitative considerations can be done by analyzing Fig. 4, where we reported the median and the first and third quartiles of the average glucose–insulin time course. For each patient, we computed the average day-glucose-insulin evolution over the 12 weeks; then we reported the median and the first and third quartiles among the 100 patients. While the two controllers perform similarly at lunch and dinner, the CR-based PID performs better at breakfast. The improvement is probably related to the ability of the CR-based PID to modify its gains to compensate for insulin resistance that affects several patients in the morning, while TDI-based personalization keeps the parameters unchanged.
Figure 5 reports the median and the first and third quartiles of the average glucose-insulin time course collected in the robust setup, while the statistics of performance metric are in Table II. The controllers performed similar to the nominal setup, proving robustness with respective to considerable variations of the insulin sensitivity. Also in this more challenging setup, the time-varying PID outperforms the standard TDI based controller in terms of TTR.
. | . | . | PP . |
---|---|---|---|
GM | TDI | ||
CR | a | ||
GSTD | TDI | ||
CR | b | b | |
TDI | 12 | 10 | |
CR | 7 | 6 | |
TDI | |||
CR | |||
TR | TDI | ||
CR | c | ||
TTR | TDI | ||
CR | b | b | |
TDI | |||
CR | |||
TDI | |||
CR | |||
TDI | |||
CR | |||
LBGI | TDI | ||
CR | b | a | |
HBGI | TDI | ||
CR | b | b |
. | . | . | PP . |
---|---|---|---|
GM | TDI | ||
CR | a | ||
GSTD | TDI | ||
CR | b | b | |
TDI | 12 | 10 | |
CR | 7 | 6 | |
TDI | |||
CR | |||
TR | TDI | ||
CR | c | ||
TTR | TDI | ||
CR | b | b | |
TDI | |||
CR | |||
TDI | |||
CR | |||
TDI | |||
CR | |||
LBGI | TDI | ||
CR | b | a | |
HBGI | TDI | ||
CR | b | b |
Statistical significance level: p-value < 0.01.
Statistical significance level: p-value < 0.001
Statistical significance level: p-value < 0.05.
V. CONCLUSIONS
In summary, we have designed and validated in silico a time-varying PID controller for a fully implantable intraperitoneal AP, without meal announcement. We also implemented a standard time-invariant PID controller personalized through TDI, and we compared the two control strategies through extensive in-silico experiments. Compared to previous in-silico studies, we used the FDA-accepted T1D simulator, equipped with a richer virtual population of 100 patients and inter- and -intra-day variability, properly modified to account for IP delivery. Collected results suggest that a PID controller can be effective in IP-IP-AP applications, even without relying on meal announcement. Furthermore, time-varying personalization based on circadian variations of insulin sensitivity increases glucose control performance compared to a time-invariant individualization based on subject's total daily insulin. The absence of meal announcement is a major advantage of an IP fully closed-loop system.
VI. METHODS
A. Simulator
The simulator is equipped with the FDA-approved S2017 population7 composed of 100 virtual patients with inter- and -intra-day variability of insulin sensitivity.22 In our experiments, we considered two setups, hereafter referred to as the standard setup and the robust setup. The standard setup corresponds to the setup described in Ref. 22. Each virtual patient has a nominal insulin sensitivity daily path that connects smoothly the values of insulin sensitivity at breakfast, lunch, and dinner. To account for inter-day variation of insulin sensitivity, every day the nominal path is perturbed by multiplying the sensitivity values reached at breakfast, lunch, and dinner by a Gaussian noise with mean 1 and standard deviation 0.2, so that variations in the range occur with probability 95.45%. In the second setup—the robust setup—the insulin sensitivity of each patient varies following the same rules of the standard setup, but it is shifted randomly of . In this way, the robust setup tests the robustness of controller with respective to additional systematic errors in the nominal clinical parameters—CR and TDI—provided by the simulator. In addition, in both the setups, the simulator models also the so-called “dawn” phenomenon, that is, the increase in the blood glucose concentration that occurs during early morning hours, due to an increased endogenous glucose production.
B. ARX model identification
Finally, starting from , we computed the individual TF, obtaining the poles and gains reported in Fig. 2.
C. Metrics and statistical tests
To compare the performance of the two personalization strategies, we computed different standard metrics.23
Table I reports the statistics of the following metrics:
-
GM: glucose mean;
-
GSTD: glucose standard deviation;
-
HT%: percentage of patients that needed at least 1 hypo treatment in closed-loop;
-
HT#: number of hypo treatments;
-
TR: time percentage with G in the range ;
-
TTR: time percentage with G in the range ;
-
TA180: time percentage with G > 180;
-
TA250: time percentage G > 250;
-
TB70: time G < 70;
-
LBGI: low blood glucose index;
-
HBGI: high blood glucose index.
For all the continuous variables, we reported the median and the confidence intervals ( ). Statistically significant results are highlighted in bold. We performed two kinds of statistical tests: (i) Mann–Whitney U test for continuous variables, using the MATLAB function test; (ii) Fisher's exact test for categorical variables ( ), using the MATLAB function fishertest.
ACKNOWLEDGMENTS
This project has received funding from European Commission HORIZON2020, No. FORGETDIABETES-FET-EU951933 (to C.C.).
AUTHOR DECLARATIONS
Conflict of Interest
The authors have no conflicts to disclose.
Ethics Approval
Ethics approval is not required.
Author Contributions
Alberto Dalla Libera: Conceptualization (equal); Investigation (equal); Methodology (equal); Software (equal); Validation (equal); Writing – original draft (equal); Writing – review & editing (equal). Chiara Toffanin: Methodology (equal); Software (equal); Validation (equal); Writing – original draft (equal); Writing – review & editing (equal). Martina Drecogna: Writing – original draft (equal); Writing – review & editing (equal). Alfonso Galderisi: Funding acquisition (equal); Project administration (equal); Writing – original draft (equal); Writing – review & editing (equal). Gianluigi Pillonetto: Supervision (equal); Writing – original draft (equal); Writing – review & editing (equal). Claudio Cobelli: Conceptualization (equal); Funding acquisition (equal); Investigation (equal); Project administration (equal); Supervision (equal); Validation (equal); Writing – original draft (equal); Writing – review & editing (equal).
DATA AVAILABILITY
The data that support the findings of this study are available from the corresponding author upon reasonable request.