Thorough Testing of Predictive Functional Control On A Well Validated in Silico Model of Type I Diabetic Patients
Thorough Testing of Predictive Functional Control On A Well Validated in Silico Model of Type I Diabetic Patients
Thorough Testing of Predictive Functional Control On A Well Validated in Silico Model of Type I Diabetic Patients
Computer Aided for Process Engineering Group (CAPEG). French-Argentine International Center for Information
and Systems Sciences (CIFASIS-CONICET-UNR-AMU). 27 de Febrero 210 bis, S2000EZP Rosario, Argentina
b
Universidad Tecnol
ogica Nacional (UTN). Facultad Regional Rosario (FRRo). Zeballos 1341, S2000BQA Rosario,
Argentina - campetelli, [email protected]
c
Bone Biology Laboratory, School of Medicine, Rosario National University (UNR-CONICET), Rosario, Argentina
Abstract
Diabetes technology has been focused since three decades ago on developing the Artificial Pancreas
(AP) through several closed-loop control algorithms linking glucose measurements and insulin delivery. This work presents the first well testing capabilities of the Predictive Functional Control (PFC)
algorithm for deciding about the correct insulin dosage under meals intake disturbances in the context
of AP.
The study is done by applying the PFC in a well validated model of the endocrine system, as
a substitute to animal trial. The tests were done in silico using the parameters of 30 patients: 10
children, 10 adolescents, and 10 adults. To realistically represent the full closed loop system, a model
of a subcutaneous glucose sensor was added and the constraints related to the insulin pump were taken
into account by the PFC design.
The performance of the controller is evaluated by means of the Control Variability Grid Analysis
(CVGA) technique under different scenarios and finally it is confronted with the Adaptive Predicted
Control with Robust Filter (APCwRF) strategy showing satisfactory results for all the studied patients.
Keywords: Artificial Pancreas, Diabetes Technology, PFC, 30 Virtual Patients, CVGA.
1. Introduction
Adult #3
300
200
Loop Closed
150
100
50
18
21
24
03
06
09
12
Time [hr]
15
18
21
24
250
(1)
ym (k) = xm (k)
Calling the inputs of the manipulated variable
u(n) (insulin from the pump) and the perturbation d(n) (a meal), the FOTD model response at
the coincidence point (n + H) becomes:
H
y(n + H) = m
xmi (n) + dH xmd (n) + . . .
H1
X
H1j
m
Kmi (1 m )u(j + n) + . . .
j=0
H1
X
j=0
(10)
future error at the coincidence horizon by specific kind of extrapolation, allows to improve the
The model output is the sum of the free (L)
model prediction. Within PFC, feedforward and and forced (F) responses:
feedback control actions can be jointly designed
and constraints are taken into account in a very
ym (n + H) = yF (n + H) + yL (n + H)
(11)
natural way.
The control law for first order with time delay
H
(FOTD) models on both process between blood
ym (n + H) = m
ymi (n) + dH ymd (n) + . . .
H
glucose concentration (controlled variable) and in + Kmi (1 m
)u(n) + Kdi (1 dH )d(n) (12)
sulin infusion (manipulated variable)(Gmi ) and blood
glucose concentration affected by meal intake (perTherefore the control equation is obtained by
turbation) (Gdi ) will be developed. Meanwhile,
the following steps:
the glucose entering to the system in any standard
(n + H) = (n)H
(13)
way such as oral glucose tolerance test (OGTT),intra
3T
s
venous glucose tolerance test (IVGTT) or meal
(14)
= e CLT R
intake are considered as typical disturbances.
The reference trajectory, defines an expected
closed loop response to track the set point, it is
usually selected as a first order dynamic given by:
mi s
Kmi e
1 + Tmi s
Kdi edi s
Gdi =
1 + Tdi s
Gmi =
Applying Z-transform:
(
(1m )
Gmi (z) = Kmi (z
m)
m = exp(Ts /Tmi )
(5)
(6)
(7)
(1d )
Gdi (z) = Kdi (z
d)
d = exp(Ts /Tdi )
(8)
4
H
ymi (n)
m
Free responses
dH ymd (n)
H
Kmi (1 m
)u(n)
Forced responses (17)
H
Kdi (1 d )d(n)
(n) = C(n) yp (n)
(18)
(n + H) = C(n) yr (n + H)
K0 =
K1 =
and considering:
p (H) = (C(n) yp (n))(1 H )
(20)
K3 =
p (H) = m (H)
(C(n) yp (n))(1 H ) = ym (n + H) ym (n)
(21)
Then,
K4 =
(1 H )
H)
Kmi (1 m
H
m
H)
Kmi (1 m
dH
H)
Kmi (1 m
Kdi (1 dH )
H)
Kmi (1 m
1
H)
Kmi (1 m
(24)
(25)
(26)
(27)
(28)
(29)
H
(C(n) yp (n))(1 H ) = m
ymi (n) + . . .
U (z)
K0 (z m )
=
(z)
(z 1)
H
+ dH ymd (n) + +Kmi (1 m
)u(n) + . . .
(30)
u(n + i) =
Nb
X
K (n)U BK (i)
(31)
K=1
(32)
(33)
(34)
where:
5
Adult #3
25
20
15
10
0
18
21
24
03
06
09
12
Time [hr]
15
18
21
24
Gmi =
(36)
(37)
an important role in the tuning of closed-loop glucose control algorithms and also in the comparison of their performances (Hinshaw et al., 2013).
So, it is a method for visualization of the extreme
glucose excursions caused by a control algorithm
in a group of subjects, with each subject represented by one data point for any given observation period. To differentiate among the groups of
patients, in all the CVGA plots they are represented as follows: adults with circles, adolescents
with diamonds, and children with pentagrams. In
this work, six case studies are presented where the
information at the top of each diagram is useful
to compare the achievements with each scenario
and strategy.
6. Results
The Control-Variability Grid Analysis (CVGA)
is a graphical representation of min/max glucose
values in a population of patients either real or
virtual. The CVGA provides a simultaneous assessment of the quality of glycaemic regulation in
all patients. As such, it has the potential to play
Parameter
CLT R L,
CLT R H,
Delta,
Umin ,
Umax ,
( dU
) ,
dt max
Kmi ,
Tmi ,
mi ,
Kdi ,
Tdi ,
di ,
H,
H1 ,
H2 ,
Ts ,
Children
100.5
2010
30
0
150
dU
( dt )max
-1.899
201
104
42.243
146
7.9
1
104
707
5
Adolescents
184.5
3690
30
0
150
dU
( dt )max
-0.573
369
121
44.753
164.5
6.7
1
121
1228
5
Adults
167.5
3350
30
0
150
dU
( dt )max
-1.283
335
137.5
53.471
174.5
6.3
1
137.5
1142.5
5
same used case study 1. It can be seen that, although the 30 patients are in the safe zone, they
have all gone closer to the lower bound (to the
right - 70 mg/dl of blood glucose), with a bigger
risk of undergoing an hypoglycaemic episode. It
is remarkable that Case Study 1 is misleading because it seems that the controller performed better than in this case which is just a matter of
randomness (because of the sensor noise and error some patients crossed the line between zone
B and A). Hence, is very important to do firstly
the analysis of the sensor characteristics before
performing the experiments to have a real picture
about the quality of data is provided by this device. Particularly, a fault diagnosis and identification (FDI) study plays an important rol for diabetes care as it was demonstrated at (Campetelli
et al., 2011).
Mean
150.8
3016.7
30
0
150
dU
( dt )max
-1.2517
301.7
120.8
46.822
161.7
6.97
1
120.8
1025.8
5
Units
[min]
[min]
[%]
[pmol/min]
[pmol/min]
[pmol/min2 ]
[(mg/dl)/(pmol/min)]
[min]
[min]
[(mg/dl)/(mg/kg/min)]
[min]
[min]
[dimensionless]
[min]
[min]
[min]
10
(d) CVGA when the patients eat 50 % more
food
Figure 11: Case Study 6: CVGA study of wrong intakes
information.
7. Conclusions
This work presented a deep study to give the
first results about the PFC implementation for diabetes care, tested in a well-known mathematical
model of the glucose-insulin system, accounting
for the physiological variability of different patients of distinct age groups. The PFC demonstrated to be able of giving very good performance
in all the scenarios proposed here and behaved
better than a more sophisticated MPC strategy
like the APCwRF.
From the proposed tests for comparison purposes different realistic scenarios were analyzed.
In addition, the use of CVGA gives the opportunity to rigorously comparing with other control
strategies since it is helpful to handle the information of the 30 patients and to present a picture about the achievements of each one. The
fifth case studied, corresponding to the meal announcement given in advance, reported the highest performance since zone A achieved 40 %. As
an example of the dynamic behavior obtained by
the PFC implementation in Fig. 1 was shown the
evolution of a type 1 diabetic adult after the virtual protocol defined in Section 3. The insulin
infusion rate calculated by the PFC controller to
keep this patient within the normal glucose range
is shown in Fig. 5.
It must be remarked that the PFC results very
intuitive for selecting all the adjusting parameters
involved in this technique as was shown in Section 5.2. Additionally, since PFC has been widely
proved in industries its design is mature enough
to be a good candidate for AP implementation.
Hence, even though a more sophisticated implementation of this kind of MPC philosophy could
be applied, the results obtained here demonstrate
the PFC potentiality for these types of complex
problems. It has been proved that the robustness of the control algorithm is capable of dealing
with inter-patient variability and, to a certain extent, typical mistakes of the user of an AP. Taking the same parameters within the same group
of patients resulted in a very good performance
of the control algorithm. So, it gives more simplicity and seems to be robust enough to be use-
value to reduce quickly the error between the desired trajectory and the blood glucose measure.
The APCwRF was also improved with Meal Announcement (60 minutes in advance) which is handled by a family of 3 FIR models generated by
the information of food intake (perturbation) as
input and the knowledge of blood glucose impact
(output).
In Fig. 12, the CVGA corresponding to the
application of APCwRF using a Meal Announcement strategy in advance, the same scenario analyzed for Case Study 5, can be seen. At the top of
Fig. 12 the summary of the results indicates that
APCwRF presents 30% of the patients inside zone
A (the best) meanwhile Fig. 10 reports 40% for
PFC in the same zone. Even though both results
are encouraging PFC reports a clear advantage
respect to APCwRF. Probably, the most important contribution on the extended APCwRF was
given through the introduction of a control zone
which was part of the PFC philosophy since its
original conception. This capability present on
both strategies could explain the successful comparison reported by PFC. As a summary of this
last test, the very good performance of PFC can
be achieved with the associated benefit of its simpler way to tune and more intuitive for the users
who are not trained on adjusting MPC strategies.
In addition, the PFC algorithm is already developed for industrial applications, so it is prepared
to demonstrate enough robustness to be implemented in the context of the artificial pancreas.
11
ful for a group of models corresponding to different patients. Moreover, even when the subjects
gave wrong information related to the amount of
food ingested and when the announcement was
given with delay, the PFC technique gave very
good results. Probably this good result obeys to
the control zone implementation. From the set of
30 patients considered here, the results are very
promising, however in future would be useful to
check this statement with more patients.
References
Breton, M., Kovatchev, B., 2008. Analysis, modeling, and
simulation of the accuracy of continuous glucose sensors. J. Diabetes Sci. Technol. 2, 853862.
Campetelli, G., Lombarte, M., Basualdo, M.S., Rigalli, A.,
2013a. Extended adaptive predictive controller with robust filter to enhance blood glucose regulation in type i
diabetic subjects. Computers & Chemical Engineering
59, 243 251. Selected papers from ESCAPE-22 (European Symposium on Computer Aided Process Engineering - 22), 17-20 June 2012, London, UK.
Campetelli, G., Lombarte, M., Basualdo, M.S., Rigalli,
A., 2013b. Scaling the endocrine system from rats to
humans, in: Kraslawski, A., Turunen, I. (Eds.), 23rd
European Symposium on Computer Aided Process Engineering, pp. 145150.
Campetelli, G., Zumoffen, D., Basualdo, M., 2011. Improvements on non-invasive blood glucose biosensors using wavelets for quick faults detection. Journal of Sensors 2011, 11.
Campetelli, G., Zumoffen, D., Basualdo, M., Rigalli, A.,
2010. Testing PFC controller on a well validated in silico
model of a type I diabetic patient, in: 9th International
Symposium on Dynamics and Control of Process Systems, Leuven, Belgium.
Carson, E.R., Cobelli, C., Finkelstein, L., 1982. The Mathematical Modeling of Metabolic and Endocrine Systems. Wiley-Interscience.
Dassau, E., Zisser, P.H.H., Jovanovi`e, B.A.B.L., Dalla
Man, C., Cobelli, C., Veh, J., Doyle III, F.J., 2008. Implications of meal library & meal detection to glycemic
control of type 1 diabetes mellitus through MPC control, in: 17th IFAC World Congress, Seoul, Korea.
Daz, R.G., Aguerre, S., Roldan, G., Basualdo, M., 2005.
A decision support system based on a closed loop PFC
applied for type 1 diabetes, in: 16th IFAC World
Congress, Praha. Czech Rep.
Ellingsen, C., 2008. Safety constraints in an artificial cell: an implementation of Model Predictive Control
MPC with Insulin-on-Board IOB. Masters thesis. Norwegian University of Science and Technology.
Hinshaw, L., Dalla Man, C., Nandy, D.K., Saad, A.,
Bharucha, A.E., Levine, J.A., Rizza, R.A., Basu, R.,
12