You are on page 1of 2

Proceedings of the Second Joint EMBS/BMES Conference

Houston, TX, USA • October 23-26, 2002

TYPE I DIABETES: MODELING, IDENTIFICATION AND NON-LINEAR


MODEL PREDICTIVE CONTROL
G. Schlotthauer, G. A. Nicolini, L. G. Gamero, M. E. Torres
Facultad de Ingeniería, Universidad Nacional de Entre Ríos, Paraná, Argentina.

Abstract-Patients with Diabetic Type I nearly always need a 1) Diabetic patient model: This model is composed of
therapy with insulin. The most desirable treatment would be to three subsystems. The first one represents subcutaneous
mimic the operation of a normal pancreas. In this work we insulin dynamics. The next one takes into account general
model a patient affected with this pathology, identify it with a metabolism, considering plasmatic, hepatic and pancreatic
neural network, and evaluate a control strategy known as
concentrations of glucose, insulin and glucagon. Finally, the
Nonlinear Model Predictive Control as an approach to
command an insulin pump using the subcutaneous route. last subsystem corresponds to the interactions between
Keywords - Diabetes, modeling, identification, non-linear plasmatic and subcutaneous glucose concentrations, and to
control, neural networks. the monitoring system. (Fig. 1.)

I. INTRODUCTION

Insulin-Dependent Diabetes Mellitus (IDDM) is a chronic


metabolic disorder, which is characterized by an increased
blood glucose level. When this level is sustained, it causes
several complications, like nephropathies, neuropathies and
retinopathies. This high level is caused by a decreased or Fig. 1. Patient Model. It is composed by three subsystems: the first one
models the s.c. insulin absorption into plasma. The second subsystem
absent pancreatic insulin production. In most of cases, models the glucose dynamics and its regulation, and the last one represents
patients who suffer Diabetes Type I need a therapy with the glucose evolution sensed in the s.c. tissue. The arrows represent inputs
several insulin injections a day or with an insulin pump. and outputs from these subsystems.
None of these approaches reach a physiological condition.
Due to this fact, our objective is to substitute the pancreas In the first subsystem we use the model proposed in [2]
function using a pump controlled by the current glucose and modified in [3] for the s.c. insulin absorption into the
level. In order to avoid complications related to continuous blood. However, this model only takes into account a single
vascular access, we intend to reach this goal using the injection. To simulate multiple injections we assume injected
subcutaneous (s.c.) route, both to sense glucose levels and to volumes Vsc1, Vsc2, ···, Vscn at times t1, t2, ···, tn, we have:
inject insulin. This approach would be by far superior to the  
di Bm  
intravenous route due to its management and safety. The =

 m(t − t1 ) dV +
dt V p  ∫ ∫
m(t − t 2 ) dV + L m(t − t n )dV  − K m ,
 (1)
system we want to control presents nonlinear dynamics. It  Vsc1 V sc 2 V scn 
also has time delays associated with insulin absorption from
subcutaneous tissue to blood and with the transfer rate where i is the plasmatic insulin concentration [mU l-1], m is
between plasmatic and subcutaneous glucose. Additionally the s.c. insulin concentration [mU l-1], Bm is the absorption
there are dead times due to the tubing in the monitoring rate constant [min-1], Vp is the volume of plasma insulin
system. compartment [l], and Km is the plasma insulin elimination
Model Predictive Control (MPC) is a control strategy that rate constant for insulin [min-1].
predicts system outputs based on an appropriate linear model The insulin absorption into plasma is a slow process. In
and calculates future control actions that are necessary to fit case of injections applied at a frequency of 1 injection/min,
a desired output, by mean of an optimization algorithm [1]. the evaluation of (1) is strongly slowed. We propose to
To accomplish this task, this strategy needs a precise model obtain an identification with an autorregresive model (AR)
of the system to be controlled. A linear model can not deal conferring simplicity and a faster computation. We adjusted
with this highly non-linear system. In order to overcome this an AR model with 500 input/output samples. If v(t) is the
problem we choose a neural network to model it. This injected volume, we have:
strategy, based on the MPC idea, is called Non-Linear Model 1.220
i (t ) = v (t ) (2)
Predictive Control (NMPC)[1]. In this preliminary paper we 1 − 0.988q −1
propose a new approach to the model, identification and A validation test was performed on the identified AR
control of the subcutaneous insulin administration in IDDM model [4]. The mean square error (MSE) evaluated in the
patient. validation was 1.23 10-8. We maintain this model due to its
simplicity and precision.
II. METHODOLOGY The model of the plasmatic glucose-insulin system is
based on [5]. The last subsystem is assumed as a first order
We can divide our problem in three parts: the diabetic linear system with dead time as in [6].
patient model, its identification using neural networks, and 2) Non-Linear Identification with Neural Networks: In
its control using the NMPC strategy. previous works [6] Radial Basis Function Networks (RBF)
have been used instead of Multilayer Perceptrons (MLP).

0-7803-7612-9/02/$17.00 © 2002 IEEE 226


The RBF network has a theoretical support that favors them
and it offers training times one to three orders of magnitude
faster than the standard back-propagation algorithm used for
the MLP of similar power and generality. However, it should
be kept in mind that these advantages are important in a
mathematical sense and in the training stage. The economy
of the implementation can be considered more critical in an
engineering application. In our specific case, the MLP
separates the space of features with less units than the RBF
network, being more economical. Additionally, we use the
Levenberg-Marquardt algorithm, which is faster than the
classical Back-Propagation algorithm.
3) Non-Linear Model Predictive Control: The MPC and
the NMPC are based on: a) the explicit utilization of a model
to predict the process' output in future time instants
(horizon), b) the calculation of a control sequence
minimizing a target function, and c) a sliding strategy, i.e. at Fig. 2. OGTT response after an intake of 50 g of glucose. a) Glucose
each time instant the horizon is shifted and the first control absorption from gut to plasma, in [g/min]. b) Glucose in plasma evolution.
signal of the sequence is applied. It can be used to control a A maximum of 142.58 [mg/dl] and a minimum of 76.01 [mg/dl] are
reached c) Insulin injections, as results of the NMPC.
wide range of processes, including systems with large time
delays, non-minimum phase systems and unstable systems. glucose concentration is 142.58 [mg/dl] after 95 minutes
Additionally, it have an intrinsic compensation for dead from the intake, and the minimum is 76.01 [mg/dl], not
times and it can compensate measurable perturbations in a reaching the hypoglycemia. The parameters were set as:
natural way. For these reasons, this method is suitable for N1=11, N2=80, and Γu=0.0015.
our problem. It is very important to take into account that we
can not inject negative quantities of insulin, so here we have IV. DISCUSSION AND CONCLUSION
a strong restriction. Furthermore, the patient who reaches a
hypoglycemia (a low level of glucose in blood) for several The NMPC strategy can be used as a method to control
minutes could die. this highly non-linear system, considering the dead time and
the restrictions. It is important to remark that the intake of
III. RESULTS glucose is not a normal behavior of a diabetic patient, who is
imposed to strict diets. Thus, in real situations, we can think
The identification of the patient model was achieved with that this kind of control would be appropriate. There are
a MLP neural network using 12 input units (6 for insulin some problems associated with this method that are still not
injections and 6 for subcutaneous glucose concentration) and completely resolved, such as instability depending on the
15 hidden units. An acceptable long time prediction was parameters.
reached, with a MSE of 10-3 in a 40-steps ahead prediction.
This identification was validated following [4]. REFERENCES
With this non-linear model, we can use the NMPC
technique, which decides the future control variable value [1] E. Camacho and C. Bordons, Model Predictive Control.
over the control horizon minimizing a target function and Springer, 1999.
predicting the future system's output using the trained MLP. [2] E. Mosekilde, K. Jensen, C. Binder, S. Pramming, and B.
The chosen function is shown in (3). This is a quadratic Thorsteinsson, “Modelling absorption kinetics of
function of the difference between the predicted and desired subcutaneous injected soluble insulin,” J. Pharmakokinetic
output at instant t+j (ej), and penalizes the abrupt changes of Biopharm., vol. 17, pp. 67-87, 1989.
the control variable (∆u) with a factor Γu. Nu is the control [3] P. Wach, Z. Trajanoski, P. Kotanko, and F. Skrabal,
horizon (we use Nu =1 for a faster computation). N1 and N2 “Numerical approximation of mathematical model for
are the minimum and maximum prediction horizons. N1 is absorption of subcutaneously injected insulin,” Med. & Biol.
fixed as the dead time and N2 is extended as long as possible Eng. & Comput., vol. 33, pp. 18-23, 1995.
in order to obtain a more stable control. Γu value was [4] S.A. Billings and W.S.F. Voon, “Correlation based
adopted by trial and error. model validity tests for non-linear models,” Int. J. Control,
In Fig. 2 can be seen the results from the control in a vol. 44, pp. 235-244, 1986.
diabetic patient model, with basal glycemia of 91.5 [mg/dl] [5] C. Cobelli, G. Nucci, and S.D. Prato, “A physiological
after the oral intake of 50 g of glucose. The maximum simulation model of the glucose-insulin system in type I
N2 N u −1
diabetes,” Comp. in Diab., pp. 11-78, 1998.
J= ∑ (e Tj e j ) + ∑ (∆u T (t + j)Γu ∆u (t + j ))
j = N1 j =0
(3)
[6] Z. Trajanoski and P. Wach, “Neural predictive controller
for insulin delivery using the subcutaneous route,” IEEE
Trans. Biomed. Eng. vol. 45, pp. 1122-1134, 1998.

227

You might also like