You are on page 1of 4

Proceedings of the 2005 IEEE

Engineering in Medicine and Biology 27th Annual Conference


Shanghai, China, September 1-4, 2005

GLUCOSIM: Educational Software for Virtual


Experiments with Patients with Type 1 Diabetes
Baris U. Agar, Meriyan Eren, and Ali Cinar
Department of Chemical and Environmental Engineering
Illinois Institute of Technology
Chicago, IL 60616 USA cinar@iit.edu

Abstract-GLUCOSIM is an educational software of various types of insulin currently available in the market.
package that simulates blood glucose and insulin The body has been divided into several physiologic
dynamics in healthy individuals and patients with type 1 compartments
diabetes. It is being used to assist biomedical and
chemical engineering students in visualizing the dynamic
variations in blood glucose concentration in response to
external variations such as food consumption and insulin
administration. A nutritional database has been
integrated to GLUCOSIM to provide meal inputs to the
simulation. The simulator has been improved by the
modification of mathematical models, and it has been
adapted to include currently available commercial
insulin brands.

I. INTRODUCTION

Type 1 or insulin-dependent diabetes mellitus (IDDM) is


a disease characterized by insufficient secretion of insulin
from E-cells of pancreas, which results in elevated blood
glucose levels. Modeling glucose-insulin interaction in
human body requires an understanding of the physiological
and metabolic processes that influence the variations
observed over time in blood glucose concentration. A
software package, GLUCOSIM has been developed to
simulate blood glucose and insulin dynamics in healthy
individuals and patients with type 1 diabetes for educational
purposes. GLUCOSIM is being used to assist biomedical Fig. 1. Pharmacokinetic diagram of glucose
and chemical engineering students in visualizing the
dynamic variations in blood glucose and insulin
concentrations in response to external perturbations such as (tissues/organs) as illustrated in Fig. 1, and a mathematical
food consumption and insulin administration. It also model is developed by writing mass balance equations
provides an environment for students to perform virtual around each compartment for glucose and insulin. Mass
experiments with food choices, insulin injections and insulin balance for glucose around a specific tissue/organ can be
infusion by automated pumps. Virtual experiments become formulated as:
useful especially when the experiments are either too
expensive or too dangerous to carry out in real life. dGout 1
(Qin , g Gin  Qout , g Gout (1)
dt Vg
II. MODEL
 rproduction  rutilization )
Several compartmental models have been developed to
describe the dynamics of insulin and glucose levels in blood
where V, Q, and G represent the effective volume, effective
[1, 2]. GLUCOSIM utilizes the compartmental model
flow rate and blood glucose concentration respectively,
developed by Puckett [1] as a starting point. Equations have
subscripts “in” and “out” indicate inflow and outflow and
been added and model parameters have been modified to
subscript g indicates glucose. The rate of utilization and/or
simulate healthy individuals (insulin secretion) and effects
production of glucose within the compartment is denoted by

0-7803-8740-6/05/$20.00 ©2005 IEEE. 845

Authorized licensed use limited to: Wayne State University. Downloaded on May 17,2010 at 01:27:49 UTC from IEEE Xplore. Restrictions apply.
r. The mathematical model is currently being modified to using multiple daily insulin injections. Fig. 2 shows the GUI
incorporate more detailed descriptions of utilization and of the MATLAB version of GLUCOSIM. Here, the user has
production rates of glucose and insulin [2]. the flexibility in assigning different values to the input
The rate of change of glucose concentration in circulating variables such as:
blood (B) can be expressed as:

dG B 1
[Q H (G B  G H )  Q K (G K  G B ) (2)
dt VB
 Q NS (G N S  G B )  Q PR (G PR  G B )
 Q L G L  (Q HA  Q PN  QGT )G B ].

It is assumed that flow through each compartment is


constant (Qin,g = Qout,g = Qg.), and the subscripts “in” and
“out” for G in (1) are replaced by the symbols of the
previous and succeeding compartments.
A similar pharmacokinetic diagram is utilized to
formulate the mass balance equations for insulin. A detailed
mathematical model is constructed based on mass balances
for the coupled glucose and insulin models, and a set of
simultaneous ordinary differential equations is obtained. A
simplified mathematical model is also derived by assuming
quasi-steady state in each compartment and this results in
two differential equations representing glucose and insulin
concentrations in blood.
Two different submodels for pancreatic insulin release [3, Fig. 2. Simulation window
4] have been integrated to the detailed mathematical model
to simulate glucose-insulin dynamics in a healthy
individual. In addition, a model modification for patients 1. Carbohydrate content of the meal: A nutritional
with type 1 diabetes performing moderate exercise is database is provided to determine the carbohydrate
incorporated. content of a specific meal.
2. Time of meal and insulin injection: The user can enter
III. SIMULATOR any value for the time of a meal or an insulin injection
within the duration of simulation.
GLUCOSIM is a software for the simulation of plasma 3. Insulin type and dose: The simulator has recently been
insulin and glucose dynamics in healthy individuals and modified to include various insulin types currently
patients with type 1 diabetes. The software is available in available in the market.
several platforms. The mathematical model and a graphical 4. Body weight
user interface (GUI) were initially developed in MATLAB 5. Duration of exercise: The exercise option, which is
platform [6]. A web-based version of GLUCOSIM is designed for moderate exercise is currently available
available at http://216.47.139.198/glucosim, and a stand for type 1 diabetic patients.
alone version has been developed for Windows-based PCs. 6. Duration of simulation
GLUCOSIM provides the users with three options to
perform virtual experiments: “Oral Glucose Tolerance Test” The inputs listed above are relevant for investigating the
(OGTT), “Healthy Person”, and “Patient with Type 1 effects of body weight, carbohydrate intake, insulin dosage,
Diabetes”. In the patient mode, the user can select between timing of meal and insulin injections, and duration of
insulin injections (open-loop control) and automatic exercise on glucose and insulin dynamics in patients with
feedback control pumps (closed-loop control) as means of type 1 diabetes.
insulin administration. In addition, a nutritional database to The output of the simulation displays the time course of
determine the carbohydrate content of a meal is embedded several variables of the system such as: glucose and insulin
in the software. concentrations in blood, liver glucose production rate, total
glucose uptake etc.
A. Insulin Injection Therapy
Multiple daily insulin injections is one of the B. Insulin Administration with Feedback Controlled Pumps
conventional therapy methods for type 1 diabetes. The use of insulin infusion pumps is becoming an
GLUCOSIM can simulate a typical type 1 diabetic person appealing therapy method for type 1 diabetes. The current

846

Authorized licensed use limited to: Wayne State University. Downloaded on May 17,2010 at 01:27:49 UTC from IEEE Xplore. Restrictions apply.
commercial use of the pumps is limited to external types the MPC. The MPC provides the best controlled response
where insulin infusion is regulated by the patient. with high levels of insulin release when the glucose
Development of an implantable insulin pump and a suitable concentration is increasing rapidly, followed by small
control algorithm coupled with a glucose sensor that can adjustment in the infusion rate as the glucose concentration
monitor blood glucose levels at frequent intervals is an stays inside the desired range.In addition, the user can
active research area in this field and is likely to yield the experiment with two different insulin administration routes:
artificial pancreas solution for type 1 diabetes. intraperitoneal and subcutaneous infusions. As expected, the
GLUCOSIM enables the user to experiment not only with intraperitoneal route gives better results because of lower
multiple insulin injections but also with futuristic automatic time delay in insulin absorption to the bloodstream.
control of insulin pumps. An important component of this
system is the controller algorithm that regulates the pump C. Nutritional Database
operation based on continuous blood glucose measurements. One of the inputs to the simulator is the carbohydrate
The control algorithms employed by GLUCOSIM are content of a meal, which may not be readily available for
proportional-integral-derivative (PID), internal model the user. For this purpose, a nutritional database with a user
control (IMC) and model predictive control (MPC). The friendly GUI is provided on the web incorporated with
user has the ability to devise several control strategies by GLUCOSIM. It provides a smart spreadsheet that
varying controller parameters or restructuring the controllers determines the carbohydrate content of a specific meal and
by modifying control equations that relate the difference assigns it as an input to GLUCOSIM. The user can enter the
between glucose measurements and desired values and the type of the meal (breakfast, lunch, snack or dinner), the
insulin flow rate from the pump. Fig. 3 shows the variations meal time, and can select any food item from the food
database. A food table is generated for each meal and the
selected foods are added automatically to the table. The
table shows the nutritional content (e.g. carbohydrate, fat,
cholesterol content) of individual food items as well as the
values for the whole meal (Fig.4). After creating the food
table, the user has an option to switch to GLUCOSIM by
choosing one of the simulator modes. The program is
capable of transferring carbohydrate content values from
food tables to GLUCOSIM where they are used as inputs to
the simulation. This way, the user can run GLUCOSIM and
the nutritional database together to inspect the effect of
different combination of foods on glycemic control. The
user can also create an account on the server where he/she
can store various meals for later use.

IV. EDUCATIONAL ACTIVITIES

GLUCOSIM can be used to investigate glucose-insulin


dynamics in human body for educational purposes. It has
been tested by biomedical and chemical engineering
students in various course projects. As an educational tool,
GLUCOSIM provides a virtual experimental environment
for students to reason the combined or isolated effects of
diet, insulin and exercise on blood glucose levels. In these
projects the main objective of the students was to maintain
the glucose level within the normoglycemic range (80-120
mg/dl) by balancing the food intake, insulin dosage,
exercise and timing. Students were asked to respond to
Fig. 3. Variations in blood glucose concentration in response changes in one of these elements by deciding on necessary
to insulin infusion regulated by feedback-controlled adjustments on the others. In addition to the multiple daily
pumps for PID, IMC and MPC control systems
insulin injections, the simulator provides virtual
environment for closed-loop control of plasma glucose
in blood glucose concentration over time in response to concentration of patients with type 1 diabetes, where
insulin infusion regulated by feedback-controlled pumps for students can tune the controllers by modifying the controller
PID, IMC and MPC control systems. The dotted (red) line parameters and can examine the effect of different insulin
illustrates the injection rate and glucose concentration infusion routes. This type of studies can lead to the
response using a PID controller, the dashed (green) line improvement of their reasoning skills.
shows the effect of the IMC, and the dash-dotted (blue) line

847

Authorized licensed use limited to: Wayne State University. Downloaded on May 17,2010 at 01:27:49 UTC from IEEE Xplore. Restrictions apply.
Fig. 4 Food table generated by the nutritional database

GLUCOSIM can also be adapted for use by health-care REFERENCES


professionals to train their patients with diabetes. Using the
[1] W. R. Puckett, Dynamic Modeling of Diabetes Mellitus, Ph.D.
simulator, the patients can explore how the adjustment of Thesis, University of Wisconsin-Madison, Department of
diet, insulin dose and timing can affect their daily insulin Chemical Engineering, 1992.
regimen. However, the simulator does not take into account [2] J. T. Sorensen, A Physiologic Model of Glucose Metabolism in
intra- and inter-personal variations and it should not be used Man and Its Use to Design and Assess Improved Insulin
Therapies for Diabetes, Ph.D. Thesis, Massachusetts Institute of
for making medical decisions. GLUCOSIM should only be Technology, Department of Chemical Engineering, 1985.
used for educational purposes. . [3] M. Nomura, M. Shichiri, R. Kawamori, Y. Yamasaki, N.
Iwama, and H. Abe, A Mathematical Insulin-Secretion Model
V. CONCLUSIONS and Its Validation in Isolated Rat Pancreatic Islets Perfusion,
Computers and Biomedical Research, vol. 17, pp. 570–579,
1984.
As an educational software package GLUCOSIM has [4] E. R. Carson and D. G. Cramp, A Systems Model of Blood
been very useful for conducting virtual experiments to Glucose Control, International Journal of Bio-Medical
simulate blood glucose and insulin dynamics in healthy Computing, vol. 7, pp. 21–34, 1976.
[5] M. Berger, P. Berchtold, H. J. Cuppers, H. Drost, H. K. Kley,
individuals and patients with type 1 diabetes. It is being W. A. Muller, W. Wiegelmann, H. Zimmermann-Telschow, F.
used to assist undergraduate and graduate biomedical and A. Gries, H. L. Kruskemper, and H. Zimmermann, Metabolic
chemical engineering students in visualizing dynamic and Hormonal Effects of Muscular Exercise in Juvenile Type
variations in blood glucose concentration in response to Diabetics, Diabetologia, vol. 13, pp. 355–365, 1977.
[6] F.C. Erzen, Studies on Modelling Glucose Insulin Interaction in
external variations such as food consumption and testing the Human Body and Development of a Simulation Package, M.S.
performance of different control algorithms for automated Thesis, Illinois Institute of Technology, Chemical and
pumps for insulin infusion. Environmental Engineering Department, 2000.

ACKNOWLEDGMENT

The financial support provided by NSF (EEC-0080527) is


gratefully acknowledged.

848

Authorized licensed use limited to: Wayne State University. Downloaded on May 17,2010 at 01:27:49 UTC from IEEE Xplore. Restrictions apply.

You might also like