Abstract
Driving blood glycaemia from hyperglycaemia to euglycaemia as fast as possible while avoiding hypoglycaemia is a major problem for decades for type‐1 diabetes and is solved in this study. A control algorithm is designed that guaranties hypoglycaemia avoidance for the first time both from the theory of positive systems point of view and from the most pragmatic clinical practice. The solution consists of a state feedback control law that computes the required hyperglycaemia correction bolus in real‐time to safely steer glycaemia to the target. A rigorous proof is given that shows that the control‐law respects the positivity of the control and of the glucose concentration error: as a result, no hypoglycaemic episode occurs. The so‐called hypo‐free strategy control is tested with all the UVA/Padova T1DM simulator patients (i.e. ten adults, ten adolescents, and ten children) during a fasting‐night scenario and in a hybrid closed‐loop scenario including three meals. The theoretical results are assessed by the simulations on a large cohort of virtual patients and encourage clinical trials.
Inspec keywords: biochemistry, medical control systems, blood, diseases, medical computing, closed loop systems, biomedical equipment, state feedback, patient treatment, patient monitoring, biomedical measurement, physiological models, sugar
Other keywords: fasting‐night scenario, hybrid closed‐loop scenario, hypoglycaemia‐free artificial pancreas project, blood glycaemia, euglycaemia, type‐1 diabetes, control algorithm, guaranties hypoglycaemia avoidance, pragmatic clinical practice, state feedback control law, required hyperglycaemia correction bolus, rigorous proof, control‐law, glucose concentration error, hypo‐free strategy control
1 Introduction
Insulin was discovered almost 100 years ago. To date, it is the only medical treatment available for type‐1 diabetes and consists either in multiple daily insulin injections or in a continuous subcutaneous insulin infusion. For this purpose, basal‐bolus schemes are widely used. Bolus advisers are designed to help the patient to compute bolus doses.
The design of a closed loop control of blood glucose (BG) in type‐1 diabetes has been initiated 50 years ago [1]. However, the so‐called artificial pancreas (AP) remains a challenge because the system is subject to severe input and output constraints:
hypoglycaemia (BG < 70 mg/dl) must be avoided,
the control has to be positive: once it has been injected, insulin cannot be withdrawn from the organism.
The state‐of‐the‐art algorithms for the AP can roughly be split into two main streams [2]:
Proportional–integral–derivative (PID) and
model‐predictive control (MPC).
On one hand, PID does not require any mathematical model and is a simple design strategy. However, it cannot cope with the positivity constraints and the insulin pump has eventually to be switched off. The most advanced product in that direction is certainly the Minimed 670G from Medtronic which received the Food and Drug Administration (FDA) approval on September 2016 [3]. This AP system operates under a PID + insulin feedback control law and includes an algorithm that predicts 30 min in advance the occurrence of low glucose levels. In the latter case, insulin delivery is automatically switched off. This safety process leaves the system in open loop until it recovers from hypoglycaemia. On the other hand, MPC is popular because constraints on the control [4] are dealt with in some numerical optimisation process. MPC allows different cost functions to reduce hyperglycaemia and avoid hypoglycaemia, e.g. an ad hoc asymmetric cost function [5]. MPC is the basis of the Diabeloop project [2] in France and of the Cambridge AP project [6]. For both options, the main open problem for any glycaemia regulation control algorithm is to avoid hypoglycaemia because it can rapidly lead to severe complications as cerebral damage or even death [7].
The contributions and approach in this study are quite different: a positive state feedback control – the so‐called hypo‐free strategy (HFS) – is designed and uses the structure of the system or of its model, so that the closed‐loop system remains in the region that respects the positivity constraints. As it is model based, the choice of an adequate model is argued and the long‐term type‐1 model [8] is used later on. It is rigorously proven that positivity of the control is guaranteed, as well as the avoidance of hypoglycaemic episodes. The theoretical proof makes use of the theory of positively invariant sets. Besides, in silico tests are worked out in a realistic environment: the UVA/Padova simulator is used as it is the only one which got the FDA agreement for pre‐clinical tests [9]. As a matter of fact, the simulation results validate the theoretical results. The new control‐law appears to formalise the dynamic version of the static bolus calculation provided by bolus wizards and thus, it is meaningful for physicians, pump manufacturers, and patients as well. The HFS is individualised as it uses the patient's own insulin therapy parameters such as the correction factor (CF), the patient's specific basal rate and the duration of insulin action (DIA). This feature is a key factor as it does not require cumbersome expert optimisation procedure. The HFS is the automated part of a basal/hybrid closed‐loop and embodies step 4 as described in [10]. This control law gathers clinical practice, AP systems hard constraints and theoretical proof.
The paper is organised as follows: Section 2 argues the requirements of the mathematical model and introduces the HFS control law. In Section 3, the properties of the closed loop as stability and positivity of input/state are demonstrated in the nominal case. A tuning procedure is derived from a robustness analysis against parameter uncertainties. In Section 4, the performance of the control law is assessed through in silico tests using the UVA/Padova T1DM simulator. Finally, conclusions and perspectives are presented.
2 HFS control law
2.1 Difficulty of computing the bolus of insulin
Same food, same injection, at the same time of the day was an early option for type‐1 diabetes treatment but it was not very satisfactory. Functional insulin therapy is an educational programme that helps the patient to compute insulin injections [11]. It defines tools such as the insulin sensitivity factor (ISF), also known as the CF, and the carbohydrate‐to‐insulin ratio (CIR). These tools, empirically estimated from clinical protocols [12], are used to compute insulin boluses depending on BG level, BG target, meal carbohydrates (CHO) content, and the insulin on board (IOB) still active from previous boluses.
- The correction bolus , depending on the patient's CF, BG level and BG target, is
(1)  - The meal bolus depends on the patient's CIR and the amount of CHO in the meal
(2)  The IOB is the number of insulin units that are still active in the body. IOB is a function of the DIA and the number of previous boluses. It is established from insulin action curves but is computed in different ways according to the different bolus wizards [13].
Nowadays, glucometers and insulin pumps include a bolus wizard. Physicians inform these calculators with individualised values of CIR, CF, DIA, and BG target according to the time of the day. Thus diabetic patients only have to enter the estimated amount of CHO to obtain insulin dose recommendations as
| (3) | 
The injection computed with (3) in clinical practice and by type‐1 diabetics in everyday life is expressed in simple terms of needs minus the amount of insulin, which is still active (IOB). Nevertheless, patients have difficulties in computing the correct insulin doses because
CF might vary with the time of the day [14], physical activity [15], stress or illness.
CIR varies according to meal composition [16].
Incorrect estimation of DIA induces mismatch in the IOB and insulin injection. As a consequence, hypoglycaemia occurs when DIA is underestimated while overestimation of DIA leads to hyperglycaemia. Determination of individualised DIA remains a critical point [17].
The amount of CHO might be wrongly estimated.
2.2 IOB at time t
In this section, the nominal state space model of the glucose–insulin dynamics is recalled from [8]. Then it is shown for the first time that the IOB at time t can be computed as a combination of those states.
The long‐term model of the glucose–insulin dynamics for type‐I diabetes in [8] is used in a modified version. The model is not the scope of this study; it is used to design the control law, to derive a rigorous proof of the input and state variables positivity (in Section 3.1) and to compute the functional insulin‐therapy parameters to individualise the control law (in Section 4.2). This model features realistic equilibrium, a long‐term fit with clinical data, and the possibility to compute basal rate, insulin sensitivity, CIR from its parameters identified from clinical data [8]. Some of the assumptions used for this model and argued in [8] have recently been used to update alternative models as in [18]. The model has also been used in several works [19, 20, 21].
Derive the model in the simple case when there is no meal, and let be the BG; and are, respectively, the plasma and subcutaneous compartment insulin rate [U/min]. The input u is the insulin infusion rate [U/min]. [mg/dl/min] is the net balance between the endogenous glucose production and the insulin independent consumption, [mg/dl/U] is the ISF and [min] is the time constant of the insulin subsystem related to the DIA. The model is
| (4) | 
| (5) | 
| (6) | 
Note that all the states and the control variable u represent physiological entities, therefore they are positive variables.
The insulin injection rate u is mostly the sum of a basal rate and boluses (as u is an infusion rate, the bolus , which is an insulin injection is defined as a temporary supplementary rate [U/min].) . Thus the states and can also be written as the corresponding sums
| (7) | 
| (8) | 
When fasting, the correct basal insulin rate is established when glycaemia is maintained constant [12]. The equilibrium values and are thus
| (9) | 
and from (4) and (9) the glycaemia dynamics is written as
| (10) | 
A physiological definition of IOB is the amount of insulin from previous boluses that are still active in the body or equivalently, the amount of insulin in the subcutaneous and the plasma compartments from previous boluses. According to the first statement, the state representation and the input , the IOB can be written as
| (11) | 
| (12) | 
Assume that no bolus was made before , thus and . Then with (11) and (12)
| (13) | 
which is consistent with the second physiological interpretation for IOB.
2.3 Control law design
The notions above are used to introduce a new control law called HFS. The HFS is based on the hyperglycaemia correction bolus formula (3), i.e. especially meaningful when . Using (1) and (13), ISF = CF = , the correction bolus is computed as
| (14) | 
The global infusion rate will be the state feedback modulating the constant insulin infusion rate
| (15) | 
A family of HFS controllers, parameterised by k [min–1], is thus defined. The matrices A , B , and F k are
Thus, with (5), (6), (10), (14) and (15), the following closed loop will be studied in Section 3
| (16) | 
| (17) | 
A major property of this family of controllers is that the total quantity of injected insulin does not depend on k as proven in Section 3
| (18) | 
The gain k allows stretching this total amount of insulin and may be used as a safety factor to recover from the inaccuracies of the mathematical model. The industrial development of the HFS is protected through the patent [22].
3 HFS properties
In this section, rigorous proofs are provided for the stability and positivity of the closed‐loop trajectories. It is proven that this feedback generates a positive control, which ensures the positivity of , i.e. in medical terms, this property is a guarantee of no hypoglycaemic episodes. This constraint is considered in the early design of the control. For PID BG regulation, hypoglycaemia is reduced thanks to safety saturations where the insulin pump is just set off, whereas for MPC hypoglycaemia risk is reduced thanks to the cost function.
3.1 Input/state positivity
According to (16) and (17), the closed‐loop system reads
| (19) | 
The positivity of the input/state trajectories, i.e. and , , is proven using the notion of positively invariant sets.
Given a dynamical system , , and a trajectory , where is the initial condition, a non‐empty set is positively invariant if .
If then denotes the polyhedron
The polyhedral set is a positively invariant set in the sense of Definition 1 [23], if and only if there exists a Metzler matrix , i.e. for , such that
(20) Here we state the positivity of the input and the states.
Define the sets , and . The largest polyhedral positively invariant set of system (19) is
Consider
The goal is to compute the largest positively invariant set in . Using Proposition 1, it is easy to show that the whole set is positively invariant; just pick
(21) and the result follows. □
In practice, any trajectory starting within this polyhedron is ensured to remain in it. From a medical point of view, the positivity of the output ensures that , i.e. guarantees the exclusion of hypoglycaemia episodes . Moreover, the positivity of the control stands in agreement with the management of insulin injection.
The eigenvalues of are easily computed as and , and the system is stable for any . The eigenvalues of the insulinaemia subsystem are not modified by the control law. Consequently, the performance of the closed‐loop depends on the patient's parameter .
The amount of insulin infused through the control (17) does not depend on the stretching factor k.
To prove Proposition 2, transform system (19) into its Jordan form
(22) so that , and
(23) The transformation matrix P is computed as
(24) In the new coordinates z , the positive orthant is positively invariant as matrix J is Metzler. With P , the state trajectories are computed from the trajectories
(25) and the control (17) is computed from (14) and (25) as
(26) 
(27) Integrate (26)
(28) 
As control (26) is an exponential function depending on k, this factor k allows stretching the trajectory ensuring that the same amount of insulin is administered for all . Setting k to will inject the bolus at once whereas when k approaches zero the bolus will be injected in infinite time.
Meals are positive disturbances. Thus, insulin injection will increase as the response to the increase of glycaemia due to these disturbances. Hence, the glycaemia trajectory remains in the positivity invariant set . Therefore, the previous positivity results remain valid under a scenario which includes a meal as well.
3.2 Robustness
In this section, a tuning procedure of the parameter k is derived through a robustness analysis with respect to parameters’ uncertainties.
3.2.1 Parameters uncertainties
Robustness with respect to parameters’ uncertainties is studied. Parameters may vary with time during the day [14], due to physical activity [15], stress or illness. The state feedback is
| (29) | 
where are estimates of the patient's parameters . Considering the closed loop system matrix , the target loop transfer is given by
| (30) | 
Note that the hypoglycaemia risk is increased if parameters and/or are underestimated. To illustrate this, assume that the real patient's correction is but it is estimated at . As a consequence, the hyperglycaemic correction bolus will be computed as the double of the required bolus and hypoglycaemia will occur. In the same way, if the DIA (related to parameter ) is underestimated, IOB at the time of the correction bolus will be underestimated and hypoglycaemia will follow.
3.2.2 Tuning procedure
The identification of model (31) from a glycaemic holter (see Fig. 1) provides the parameters with a related precision . The parameter k is tuned assuming that parameters and are underestimated, which is the worst case scenario. Thus is computed with . The following criterion is used: in case of underestimates of the parameters, the shape of in Black–Nichols chart must be tangent to the shape of at low frequencies. This leads in closed‐loop response to a second order like with a damping ratio and an overshoot of 5% (minimum risk of hypoglycaemia). The loop transfer of the system that will lead to the reference second order is shown in Fig. 2.
Fig. 1.

Identification from a glycaemic holter of a UVA/Padova virtual patient
4 In silico results
4.1 UVA/Padova T1DM simulator
The distributed version of the T1DM simulator was approved by the FDA as a preclinical testing platform for control algorithms. The design and tuning of the HFS control‐law use the simple linear model described in [8], whereas the UVa/Padova simulator is based on the non‐linear model given in [24]. This simulator is an extensive description of the metabolism including a model of the insulin pump and a model of the continuous glucose monitoring (CGM) devices. The latter includes a sampling period of 5 min, a delay and a non‐Gaussian noise [25]. This simulator is employed here to demonstrate the robustness and the safety of the HFS control algorithm. Thus, the tests below include a significant mismatch. All available virtual patients of the simulator have been used in these tests.
4.2 Individualisation procedure
The controller is individualised with standard functional insulin therapy tools. The CF, basal rate, and DIA are provided by the clinical protocol, i.e. thanks to physicians analysing a glycaemic holter with standard clinical data such as CGM, insulin infusion, and CHO count. The glycaemic holter can also be used to derive the parameters , , and by means of identification as explained in [8]. For all the UVA/Padova virtual patients, a glycaemic holter was simulated in an open loop and used to derive the set of individualising parameters by means of identification (see Fig. 1).
CF =
Basal rate
DIA related to
The tuning parameter k is set with respect to the tuning procedure described in Section 3.3.
4.3 Fasting scenario
The simulations are conducted on ten adults, ten adolescents, and ten children with a fasting overnight scenario:
where initial BG at 200, 300 and 400 mg/dl at steady state under basal rate;
each virtual patient uses a CGM device (Dexcom 70) which introduces delay and noise and has a sampling time of 5 min;
each virtual patient uses a generic pump;
the BG target is set to 120 mg/dl; and
the loop was closed at 00:05.
The scenario was repeated ten times to test robustness against CGM noise.
A standard Luenberger observer was used to estimate the states and .
4.4 Fasting results
The control algorithm is designed to steer the glycaemia safely (without hypoglycaemia) back to euglycaemia. The low BG Index (LBGI), as well as time percentage below the level 70 mg/dl, is used to assess the performance of the control low.
Tables 1, 2–3 show the mean of the performance indices with minimum and maximum values.
Table 1.
Ten UVA/Padova adults, fasting results
| Initial BG, mg/dl | 200 | 300 | 400 | |
|---|---|---|---|---|
| 
 | 
0 (0; 0) | 0 (0; 0) | 0 (0; 0) | |
| LBGI | 0.001 (0; 0.01) | 0.06 (0; 0.47) | 0.23 (0; 1.39) | 
Table 2.
Ten UVA/Padova adolescent, fasting results
| Initial BG, mg/dl | 200 | 300 | 400 | |
|---|---|---|---|---|
| 
 | 
0 (0; 0) | 0 (0; 0) | 0 (0; 0) | |
| LBGI | 0 (0; 0) | 0.01 (0; 0.10) | 0.05 (0; 0.23) | 
Table 3.
Ten UVA/Padova children, fasting results
| Initial BG, mg/dl | 200 | 300 | 400 | |
|---|---|---|---|---|
| 
 | 
0 (0; 0) | 0 (0; 0) | 0 (0; 0) | |
| LBGI | 0 (0; 0) | 0.03 (0; 0.16) | 0.17 (0; 0.73) | 
As demonstrated in Section 2, Tables 1, 2–3 illustrate that hypoglycaemia is totally avoided. Moreover LBGI index is extremely low thus the risk is considered minimal. Fig. 3 displays the BG and the injection computed by the HFS controller for the adults.
Fig. 3.

All adults from UVA/Padova T1DMS, fasting scenario with HFS controller and initial BG at 400 mg/dl
4.5 Meal scenario
As a proof of concept, the HFS was used in a hybrid 30 h closed‐loop scenario. In a basal/hybrid closed‐loop, the control law compensates for hypo‐ and hyperglycaemia whereas a meal bolus is delivered from carb counting. The algorithm was tested in two three meals scenarios (50 g at 07:00, 70 g at 12:00 and 80 g at 18:00) where CHO intake was wrongly estimated by the patient. The scenarios are as follows:
an underestimation of the CHO is followed by a manual pre‐meal bolus of ,
an overestimation of the CHO is followed by a manual pre‐meal bolus of .
To assess the performance of the controller, the results were compared with an open‐loop (OL) basal‐bolus therapy where CHO intake was wrongly estimated as well. The patient
underestimates the meal's CHO content and a bolus of is injected;
overestimates the meal's CHO content and a bolus of is injected.
In a hybrid closed‐loop, each manual pre‐meal bolus generates a variable reference trajectory computed from model (31), the bolus input and the estimated meal input . The tuning of the controller, the pump and CGM device remain the same as in the fasting scenario.
4.6 Meal scenario results
The LBGI, high BG index (HBGI) as well as the time percentage below the level 70 mg/dl, between 70 and 180 mg/dl, above 180 mg/dl, and mean BG are used to assess the performance of the control law.
Tables 4, 5–6 show the mean of performance indices with minimum and maximum values for both OL with basal‐bolus therapy and closed‐loop with HFS controller.
Table 4.
Adults OL versus HFS: Avg (min; max)
| 
 | 
OL | HFS | |
|---|---|---|---|
| % time <70 | 0 (0; 0) | 0 (0; 0) | |
| % time in target | 70 (28; 92) | 78 (57; 92) | |
| % time >180 | 30 (7; 71) | 22 (8; 43) | |
| LBGI | 0.002 (0; 0.02) | 0.01 (0; 0.05) | |
| HBGI | 6.1 (2.1; 16.8) | 4.3 (2; 9.9) | |
| mean BG, mg/dl | 160 (136; 215) | 149 (135; 181) | |
| 
 | 
OL | HFS | |
| % time <70 | 2.8 (0; 11.2) | 0 (0; 0) | |
| % time in target | 97 (89; 100) | 97 (89; 100) | |
| % time >180 | 0.3 (0; 3) | 2.1 (0; 10.9) | |
| LBGI | 0.8 (0; 2) | 0.1 (0; 0.3) | |
| HBGI | 0.6 (0.2; 1.3) | 1 (0.4; 2.3) | |
| mean BG, mg/dl | 116 (107; 128) | 126 (117; 141) | 
Table 5.
Adolescents OL versus HFS: Avg (min; max)
| 
 | 
OL | HFS | |
|---|---|---|---|
| % time <70 | 0 (0; 0) | 0 (0; 0) | |
| % time in target | 53 (43; 60) | 59 (45; 72) | |
| % time >180 | 47 (40; 57) | 41 (28; 55) | |
| LBGI | 0 (0; 0) | 0.03 (0; 0.16) | |
| HBGI | 10.8 (7.8; 16.3) | 8.8 (4.9; 15.7) | |
| mean BG, mg/dl | 184 (170; 184) | 171 (153; 206) | |
| 
 | 
OL | HFS | |
| % time <70 | 9 (0; 33) | 0 (0; 0) | |
| % time in target | 81 (61; 100) | 85 (58; 100) | |
| % time >180 | 10 (0; 39) | 15 (0; 42) | |
| LBGI | 2.9 (0.05; 15.4) | 0.17 (0; 0.46) | |
| HBGI | 2.5 (0.2; 9.2) | 3.3 (0.5; 10.3) | |
| mean BG, mg/dl | 125 (89; 172) | 139 (117; 179) | 
Table 6.
Children OL versus HFS: Avg (min; max)
| 
 | 
OL | HFS | |
|---|---|---|---|
| % time <70 | 0 (0; 0) | 0 (0; 0) | |
| % time in target | 46 (32; 66) | 57 (47; 66) | |
| % time >180 | 54 (34; 68) | 42 (34; 53) | |
| LBGI | 0 (0; 0) | 0.07 (0; 0.24) | |
| HBGI | 14.7 (8.3; 21.5) | 10.5 (6.6; 18.8) | |
| mean BG, mg/dl | 203 (172; 233) | 180 (161; 219) | |
| 
 | 
OL | HFS | |
| % time <70 | 3.6 (0; 17.9) | 0 (0; 0) | |
| % time in target | 82 (70; 99) | 82 (64; 97) | |
| % time >180 | 14 (0; 29) | 18 (3; 36) | |
| LBGI | 0.8 (0.02; 3.1) | 0.09 (0; 0.46) | |
| HBGI | 2.7 (0.2; 5.8) | 3.6 (1.1; 7.6) | |
| mean BG, mg/dl | 132 (98; 151) | 143 (132; 165) | 
The control variability grid analysis (CVGA) plot for all the UVA/Padova adolescents is given in Fig. 4 in OL and Fig. 5 with HFS.
Fig. 4.

CVGA plot in OL for the adolescents of UVA/Padova T1DMS. The diamonds represent the underestimation case and the stars represent the overestimation case
Fig. 5.

CVGA plot with HFS for the adolescents of UVA/Padova T1DMS. The diamonds represent the underestimation case and the stars represent the overestimation case
4.7 Discussion
In all scenarios, with all UVA/Padova virtual patients, hypoglycaemia is totally avoided. This is the main feature of the control law, which solves a major issue in glycaemia regulation. The theoretical results and tuning procedure are confirmed through simulations.
The meal scenario shows the effect of the control law in real life conditions. The algorithm copes with both the underdosing and overdosing of insulin boluses.
In the case of underestimates of the CHO:
the percentage of time in the target (70–180 mg/dl) increased with the HFS in comparison with the OL;
the percentage of time above the target (>180 mg/dl) decreased with the HFS in comparison with the OL.
The hyperglycaemia is minimised. Fig. 6 shows that the infusion rate is higher than basal after the bolus which confirms that the algorithm detects that a meal has been underestimated.
Fig. 6.

BG and average insulin injection for UVA/Padova T1DMS adolescents, for underestimated bolus injection with HFS controller
In the case of overestimates of the CHO:
with HFS hypoglycaemia avoided, whereas many hypoglycaemia episodes occur in OL;
the percentage of time in the target (70–180 mg/dl) is similar to HFS and OL;
consequently, the percentage of time above the target (>180 mg/dl) slightly increases with the HFS.
Hypoglycaemia is avoided. Fig. 7 shows that the control algorithm reacts very fast after an overestimated bolus and that basal rate is restored when the algorithm computes that IOB will bring glycaemia safely to target.
Fig. 7.

BG and average insulin injection for UVA/Padova T1DMS adolescents, for overestimated bolus injection with HFS controller
The tuning procedure made the control law conservative. Consequently, hypoglycaemia is totally avoided. The drawback of this tuning procedure is that the control law may be too conservative for some patients. For adolescents 1, 4, and 7, childs 1, 2 and 8, the HBGI is above 10 in the scenario with underestimates of the bolus injection and the time above 180 mg/dl is >25% in the scenario with overestimates of the bolus injection. Thus, for these patients, the tuning parameter k might be increased to improve the performance. An adaptive tuning is under research.
5 Conclusion
Hypoglycaemia avoidance and individualisation of the controller are still open problems in the AP project. In this study, a novel closed‐loop control algorithm is developed. This controller is simply individualised using the individual characteristics of the patient (CF, basal, and DIA). Thus, it is immediately comprehensive to physicians and patients.
The main feature of this control law is to ensure the positivity of trajectories. The authors have rigorously proven that this control law guarantees that the hypoglycaemia never occurs. This property allows the controller to cope with the positivity constraint of the insulin injection.
Robustness is a decisive issue as it ensures that the controller will work safely on the non‐nominal diabetic patient model (i.e. the real patient). A robustness analysis against parameters uncertainties is used to derive a tuning procedure of the single parameter k.
Finally, through in silico tests, the theoretical results are confirmed. The HFS algorithm is tested, as a proof of concept, in a hybrid closed loop in a more realistic scenario including meals where the patient wrongly estimated his pre‐meal boluses (both underestimation and overestimation). In all cases, and for all UVA/Padova virtual patients, hypoglycaemia is totally avoided. This makes the HFS a good candidate for automated basal/hybrid closed‐loop AP device.
The satisfactory in silico results obtained on a large cohort of virtual patients encourage clinical trials. A fully‐automated version is left for further research.
6 Acknowledgment
P.S.R. would like to thank the Departamento Administrativo de Ciencia, Tecnología e Innovación (COLCIENCIAS) from the Government of Colombia to partially support this work with grant no. 110180763081.
The complete model reads
| (31) | 
where r is the meal input, and are CHO rates [mg/min] in the duodenum and stomach, respectively. [dl–1] is a gain and [min] is the time constant of the digestion compartment. The CIR can be expressed as .
7 References
- 1. Kadish A.H.: ‘Automation control of blood sugar a servomechanism for glucose monitoring and control’, ASAIO J., 1963, 9, (1), pp. 363–367 [PubMed] [Google Scholar]
 - 2. Trevitt S. Simpson S., and Wood A.: ‘Artificial pancreas device systems for the closed‐loop control of type 1 diabetes: what systems are in development?’, J. Diabetes Sci. Technol., 2016, 10, (3), pp. 714–723 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 3. Medtronic. : ‘The 670 g system ‐ p160017’. Available at https://www.fda.gov/medical‐devices/recently‐approved‐devices/minimed‐670g‐system‐p160017s031
 - 4. Cobelli C. Renard E., and Kovatchev B.: ‘Artificial pancreas: past, present, future’, Diabetes, 2011, 60, (11), pp. 2672–2682 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 5. Gondhalekar R. Dassau E., and Doyle F.J.: ‘Periodic zone‐MPC with asymmetric costs for outpatient‐ready safety of an artificial pancreas to treat type 1 diabetes’, Diabetes, 2011, 60, (11), pp. 2672–2682 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 6. Thabit H. Tauschmann M., and Allen J.M. et al.: ‘Home use of an artificial beta cell in type 1 diabetes’, New Engl. J. Med., 2015, 373, pp. 2129–2140 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 7. Szablewski L.: ‘Glucose homeostasis‐mechanism and defects’ (INTECH Open Access Publisher, Rijeka (Croatia), 2011) [Google Scholar]
 - 8. Magdelaine N. Chaillous L., and Guilhem I. et al.: ‘A long‐term model of the glucose–insulin dynamics of type 1 diabetes’, IEEE Trans. Biomed. Eng., 2015, 62, (6), pp. 1546–1552 [DOI] [PubMed] [Google Scholar]
 - 9. Kovatchev B.P. Breton M., and Man C.D. et al.: ‘In silico preclinical trials: A proof of concept in closed‐loop control of type 1 diabetes’, J. Diabetes Sci. Technol., 2009, 3, (1), pp. 44–55 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 10. Kowalski A.: ‘Pathway to artificial pancreas system revisited: moving downstream’, Diabetes Care, 2015, 38, pp. 1036–1043 [DOI] [PubMed] [Google Scholar]
 - 11. Jeandidier N. Riveline J.P., and Tubiana‐Rufi N. et al.: ‘Treatment of diabetes mellitus using an external insulin pump in clinical practice’, Diabetes Metab., 2008, 34, (4), pp. 425–438 [DOI] [PubMed] [Google Scholar]
 - 12. Mohn A. Kavan C., and Bourcelot E. et al.: ‘Insulinothérapie fonctionnelle: un modèle d'approche éducative pour les patients ayant un diabète de type 1’, Méd. Maladies Métab., 2012, 6, (6), pp. 469–476 [Google Scholar]
 - 13. Esvant A. Guilhem I., and Campillo‐Gimenez B. et al.: ‘Assistants bolus: calcul de l'insuline active résiduelle (IAR), utilisation effective par les patients’, Diabetes Metab., 2013, 39, p. A64 [Google Scholar]
 - 14. Hinshaw L. Man C.D., and Nandy D.K. et al.: ‘Diurnal pattern of insulin action in type 1 diabetes, implications for a closed‐loop system’, Diabetes, 2013, 62, pp. 2223–2229 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 15. Henriksen E.J.: ‘Invited review: effects of acute exercise and exercise training on insulin resistance’, J. Appl. Physiol., 2002, 93, (2), pp. 788–796 [DOI] [PubMed] [Google Scholar]
 - 16. Nakamura T. Hirota Y., and Hashimoto N. et al.: ‘Diurnal variation of carbohydrate insulin ratio in adult type 1 diabetic patients treated with continuous subcutaneous insulin infusion’, J. Diabetes Investig., 2014, 5, (1), pp. 48–50 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 17. Walsh J. Roberts R., and Heinemann L.: ‘Confusion regarding duration of insulin action: A potential source for major insulin dose errors by bolus calculators’, J. Diabetes Sci. Technol., 2014, 8, (1), pp. 170–178 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 18. Ruan Y. Wilinska M.E., and Thabit H. et al.: ‘Modelling day‐to‐day variability of glucose‐insulin regulation over 12‐week home use of closed‐loop insulin delivery’, IEEE Trans. Biomed. Eng., 2017, 64, (6), pp. 1412–1419 [DOI] [PubMed] [Google Scholar]
 - 19. Kovács L.: ‘Robust fixed point transformation‐based approach for type 1 diabetes control’, Nonlinear Dyn., 2017, 84, (4), pp. 2481–2493 [DOI] [PMC free article] [PubMed] [Google Scholar]
 - 20. MohammadRidha T. Rivadeneira P.S., and Cardelli M. et al.: ‘Toward hypoglycemia prediction and avoidance for type 1 diabetic patients’. The IEEE 56th Conf. on Control and Decision Conf., Melbourne, 2017, pp. 4118–4123 [Google Scholar]
 - 21. Gonzalez A.H. Rivadeneira P.S., and Ferramosca A. et al.: ‘Impulsive zone MPC for type I diabetic patients based on a long‐term model’, IFAC‐PapersOnLine, 2017, 50, (1), pp. 14729–14734 [Google Scholar]
 - 22. Magdelaine N. Rivadeneira P.S., and Moog C. et al.: ‘US patent no. 62/407,723’, 2016.
 - 23. Castelan E.B., and Hennet J.C.: ‘On invariant polyhedra of continuous‐time linear systems’, IEEE Trans. Autom. Control, 1993, 38, (11), pp. 1680–1685 [Google Scholar]
 - 24. Dalla Man C. Rizza R.A., and Cobelli C.: ‘Meal simulation model of the glucose– insulin system’, IEEE Trans. Biomed. Eng., 2007, 50, (10), pp. 1740–1749 [DOI] [PubMed] [Google Scholar]
 - 25. Breton M., and Kovatchev B.: ‘Analysis, modeling, and simulation of the accuracy of continuous glucose sensors’, J. Diabetes Sci. Technol., 2008, 2, (5), pp. 853–862 [DOI] [PMC free article] [PubMed] [Google Scholar]
 

