Professional Documents
Culture Documents
Open Access
Fating State
Postprandial
Glucose
Minimum
Value
(mg/dl)
Glucose
Maximum
Value
(mg/dl)
2-3 Hours
after Eating
(mg/dl)
Hypoglycemia
< 59
< 60
Early hypoglycemia
60
79
60 - 70
Normal
80
100
< 140
Early diabetes
101
126
140-200
Diabetic
> 126
> 200
99
g t = P1 + v t g t + P1 g b
()
() ()
()
()
(() )
v t = P2 v t + P3 i t ib
.
(1)
i t = n i t + g t h t
()
()
()
w(t) =
1
w(t) + u(t)
a
(2)
400
g(t)
Basal Level
350
300
g(t) [mg/dl]
250
200
150
3.
REVIEW
ON
CONTROLLERS
100
20
40
60
80
100
120
time [min]
140
160
180
200
x = Ax + Bu
y = Cx + Du
x: is the state vector
() ()
x1 = P1 x1 (t) x1 t x2 t + P1 g b
(3)
x4
P x
1 2
0
Jx =
t
0
x1
P2
P3
0
0
J u = 0
1
a x=x , u=u
0
0
n
() () ()
1
1
= x (t ) + u (t )
a
a
x3 = tx1 t nx3 t + x4 t ht
.
(5)
where
Define
PID
50
GAIN-SCHEDULED
0
0
and
1
1
a x=x0 , u=u0
(4)
(6)
Ground 1
u(t)
Manual Switch
Out 1
In 1
Out 2
Ground 2
Manual Switch
In 3
Out 4
gb
Out 1
In 2
Out 3
In 1
101
gb
Out 2
In 4
Out 5
In 5
Ground 3
Out 6
Manual Switch
Out 3
In 6
Out 7
In 7
Out 8
In 1
Out 4
In 8
Ground 4
Manual Switch
In 9
Merge
Out 1
In 2
Scope
Subsystem (Patient )
Out 5
In 10
In 11
Ground 5
Manual Switch
Out 6
In 12
In 13
70
Out 7
Merge
In 14
Ground 6
Manual Switch
In 15
Out 8
In 16
Ground 7
Ground 8
Manual Switch
Manual Switch
If Action Case
Subsystem
case [ 0 1 ]:
case [ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Clock
]:
case [ 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
... ]:
case [ 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
u1
case [ 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
... ]:
... ]:
case [ 121 122 123 124 125 126 127 128 129 130 131 132
... ]:
case [ 151 152 153 154 155 156 157 158 159 160 161 162
... ]:
... ]:
Switch Case
Fig. (2). Regime-switching control scheme wiring diagram using PID controllers.
350
g(t)
Basal Level
Hypoglycemia level
300
g(t) [mg/dl]
250
200
150
100
50
20
40
60
80
100
120
140
160
180
200
time [min]
Fig. (3). Plot of glucose level g(t) when only PID Controllers gC1 , gC20 , gC40 and gC60 are executed.
(A
= n j n 1 2
(12)
P3,4
= 2P1,2
(13)
(7)
x =
P1,2
BK x
(8)
( )
(9)
0
t = 1 minute:
1 2 and t = 4
Mp = e
s
n
(10)
t = 20 minutes:
ln M
p
=
2
ln M
p
1+
( )
( )
4
and n =
ts
The dominant poles are calculated by
0
859.6667
0
0
0
0.0081
0.00000401
0
A1 =
0.0024
0
0.23
1
0
0
0.5
0
K1 = 0.4 4702.2 0.1 0.7
0
131.33
0
0
0
0.0081
0.000004010
0
A =
0.048
20
0
0.23
1
0
0
0.5
0
K = 2.5 4693.8 0.1 0.7
20
t = 40 minutes:
(11)
0
112.17
0
0
0.0081
0.00000401
A40 =
0.096
0
0.23
0
0
0
K 40 = 2.9 4684.8 0.1 0.7
0
0
1
0.5
350
350
300
300
250
250
200
200
g(t) [mg/dl]
g(t) [mg/dl]
150
100
150
100
50
50
-50
-50
-100
20
40
60
80
100
120
time [min]
140
160
180
-100
200
20
40
350
350
300
300
250
250
200
200
g(t) [mg/dl]
g(t) [mg/dl]
400
150
100
50
0
-50
-50
40
60
80
100
120
time [min]
140
100
120
time [min]
140
160
180
200
160
180
200
100
20
80
150
50
60
-100
103
160
180
200
-100
20
40
60
80
100
120
time [min]
140
Fig. (4). Response curves to initial conditions at operating points t = 1, 20, 90 and 182 minutes.
t = 60 minutes:
0
105.78
0
0
0.0081
0.00000401
A60 =
0.1440
0
0.23
0
0
0
K 60 = 3.0 4675.9 0.1 0.7
t = 150 minute:
0
0
1
0.5
K150
t = 90 minutes:
0
101.52
0
0
0.0081
0.00000401
A90 =
0.2160
0
0.23
0
0
0
K 90 = 3.1 4662.5 0.1 0.7
A120
K120
0
0
1
0.5
t = 182 minute:
0
0
1
0.5
A182
K182
t = 120 minutes:
0
99.39
0
0
0.0081
0.00000401
=
0.288
0
0.23
0
0
0
= 3.2 4649.1 0.1 0.7
A150
0
98.11
0
0
0.0081
0.00000401
=
0.36
0
0.23
0
0
0
= 3.2 4635.7 0.1 0.7
0
0
1
0.5
0
97.21
0
0
0.0081
0.00000401
=
0.4368
0
0.23
0
0
0
= 3.2 4621.4 0.1 0.7
0
0
1
0.5
X dot
B* u
B
X
C* u
1
s
Integrator
Scope
A* u
[gb 0 Ib 2]
Desired X
K* u
K
B* u
X dot hat
X hat
1
s
Integrator1
C* u
C
A* u
A
K*u
Ke
x = Ax + Bu + K e y Cx
u = Kx
(14)
(15)
x =
A K eC BK x + K e y
(16)
C 1 0
CA 0
Ke = A 2
CA 0
CA3 1
( )
T
K e = K e1 K e2 K e3 K e4
1.2620
0.0017
K e1 =
22.4977
58.8582
t = 20 minutes:
K e20
t = 40 minutes:
K e40
1.2620
0.0128
=
172.3436
451.0869
t = 60 minutes:
K e60
t = 90 minutes:
(17)
K e90
1.2620
0.0141
=
190.3134
498.4084
1.2620
0.0109
=
147.2340
385.2770
1.2620
0.0135
=
182.7124
478.3364
t = 120 minutes:
K e120
1.2620
0.0144
=
194.3246
509.0897
400
400
g(t)
Basal Level
350
350
300
300
250
250
g(t) [mg/dl]
g(t) [mg/dl]
g(t)
Basal Level
200
200
150
150
100
100
50
50
0
0
20
40
60
80
100
120
time [min]
140
160
180
200
20
40
60
80
100
120
time [min]
140
160
180
200
400
400
g(t)
Basal Level
g(t)
Basal Level
350
350
300
300
250
250
g(t) [mg/dl]
g(t) [mg/dl]
105
200
200
150
150
100
100
50
50
0
0
20
40
60
80
100
120
time [min]
140
160
180
200
20
40
60
80
100
120
time [min]
140
160
180
200
Fig. (6). Observer-based state feedback controller output, glucose level g(t), at operating points t = 1, 20, 90 and 182 minutes.
t = 150 minutes:
K e150
1.2620
0.0146
=
196.7916
515.7316
4.3. Individual
Controllers
t = 182 minutes:
K e182
Observer-Based
State
In1
gb
Out1
In2
1.2620
0.0147
=
198.5401
520.5064
Subsystem (Patient)1
g(t)
[gb 0 Ib 2]
Scope
Desired X 1
K20* u
Feedback
K
K*u
X dot hat
1
s
Integrator1
X hat
K*u
C
A20* u
A
K*u
Ke
400
g(t)
Basal Level
350
300
g(t) [mg/dl]
250
200
150
100
50
0
0
20
40
60
80
100
120
140
160
180
200
time [min]
Fig. (8). Observer-based state feedback control output, glucose level g(t), for nonlinear system at t =20 minutes.
g(t) for nonlinear system at overshoot = 1%
400
350
g(t)
Basal Level
5% zone
350
300
300
250
250
g(t) [mg/dl]
g(t) [mg/dl]
400
g(t)
Basal Level
5% zone
200
200
150
150
100
100
50
50
20
40
60
80
100
120
time [min]
140
160
180
200
20
40
100
120
time [min]
140
160
180
200
400
g(t)
Basal Level
5% zone
350
g(t)
Basal Level
5% zone
350
300
300
250
250
g(t) [mg/dl]
g(t) [mg/dl]
80
200
150
200
150
100
100
50
50
0
0
20
40
60
80
100
120
time [min]
140
160
180
200
40
60
80
100
120
time [min]
140
160
180
200
400
400
g(t)
Basal Level
5% zone
350
20
g(t)
Basal Level
5% zone
350
300
300
250
g(t) [mg/dl]
250
g(t) [mg/dl]
60
200
200
150
150
100
100
50
50
0
20
40
60
80
100
120
time [min]
140
160
180
200
20
40
60
80
100
120
time [min]
140
160
180
200
Fig. (9). Observer-based state feedback control output, glucose level g(t), for nonlinear system at t =20 minutes for various maximum
overshoots.
107
Kp
Ki
Kd
-4
0.00444
2.0094x10
5.59
20
0.21600
0.0031
28.40
40
0.23740
0.0061
32.70
60
0.24830
0.0095
35.90
90
0.23310
0.0138
36.40
120
0.22340
0.0187
37.90
150
0.20320
0.0229
37.70
182
0.1870
0.0281
38.50
Time to Enter
Steady State Zone
(min)
Time to Reach
Steady State
(min))
95
110
82
100
75
80
61
72
49
55
10
44
47
On the other hand, in comparison to individual observerbased state feedback controllers, the glucose level reaches
the basal level and the design specifications were met by
using only one controller at operating point t = 20 minutes,
(see Fig. 8). In comparing with the PID controller, the PID
control-switching scheme achieves the design specifications
by using the first four PID controllers at operating point t =
1, 20, 40 and 60 minutes, (see Fig. 3).
Also this paper investigates the output of the observerbased state feedback controller with various overshoots and
compares the result. As it can be seen from Table 3, the
smaller the overshoot the longer it takes for the glucose level
to reach the steady state. From the above study we can
conclude that the observer-based state feedback controller
can give a better performance than the adaptive PID
controller. From the control point of view and the
complexity of the design, the observer-based state feedback
controller is simpler and the design is less complex,
compared with the PID regime-switching controllers. It was
noted the graphs of the output of the PID regime-witching
controllers, (see Fig. 3), and the observer-based state
feedback, (see Fig. 8), give a similar high performance and
meet the design specification. However, the observer-based
state feedback reduces the complexity of the control circuit.
The control components such as the switching case, the if
action case system, the 8-intput-1-output merge block,
and the eight manual switches are eliminated when the
observer-based state feedback is used and that eliminates the
switching strategy that is required in the PID design. Also
the PID design requires four controllers while the observerbased state feedback design requires only one controller
which reduces the cost to build up the control circuit.
APPENDIX
Ackermanns Formula Derivation
( )
s = 1 , s = 2 , s = 3 , and s = 4 .
Multiplying
both
sides
1
by B AB A2 B A3 B yields
A satisfies its
A = A 4 + 1 A 3 + 2 A 2 + 3 A + 4 I = 0
( )
( )
I= I
A = A BK
2
(IV)
1
K = 0 0 0 1 B AB A2 B A3 B A
( )
None declared.
( )
CONFLICT OF INTEREST
1 A3 A2 BK ABKA BKA 2 +
2
None declared.
ABK BKA + 3 A BK + 4 I
) (
(V)
REFERENCES
[1]
[2]
2 A2 2 ABK 2 BKA + 3 A 3 BK + 4 I
( )
A = A4 + 1 A3 + 2 A2 + 3 A + 4 I
[3]
(VI)
[4]
[5]
A = A A3 BK A2 BK ABKA BKA 2
[6]
( )
( )
(VII)
[7]
( )
[8]
( )
(VIII)
AB 1 KA + 2 K + KA + A B K + 1 K + A3 B K
(XII)
(
(A
0 0
(
) = A ABK BKA
3
A 3 = ( A BK ) = A3 A2 BK ABKA BKA 2
4
A 4 = ( A BK ) = A4 A3 BK A2 BK ABKA BKA 2 BKA 3
A = A BK
(IX)
(III)
2
equation
( )
sI A = s4 + 1s3 + 2 s2 + 3s + 4 = 0
The Cayley-Hamilton theorem states that
characteristic equation as
of
( )
[9]
[11]
[12]
[13]
[14]
[15]
[16]
[17]
[18]
[19]
[20]
[21]
[22]
[23]
[24]
[25]
[26]
[27]
[28]
[29]
[30]
[31]
[32]
[33]
[34]
[35]
109
type i diabetics. Med. Biol. Eng. Comput., vol 44, no. 1-2, pp. 69
78, 2006.
P.A. Insel, J.E. Liljenquist, J.D. Tobin, R.S. Sherwin, P. Watkins,
R. Andres, and M. Berman, Insulin control of glucose metabolism
in man, J. Clin. Invest., vol 5, no. 5, pp. 1057-1066, 1975.
G.M. Grodsky, A threshold distribution hypothesis for packet
storage of insulin and its mathematical modeling, J. Clin. Invest.,
vol. 51, no. 8, pp. 2047-2059, 1972.
R.S. Sherwin, K.J. Kramer, J.D. Tobin, P.A. Insel, J.E. Liljenquist,
M. Berman, and R. Andres, A model of the kinetics of insulin in
man, J. Clin. Invest., vol 53, pp. 1481-1492, 1974.
R.C. Turner, R.R. Holman, D. Mathews, T. D. R. Hockaday, and J.
Peto, Insulin deficiency and insulin resistance interaction in
diabetes: estimation of their relative contribution by feedback
analysis from basal insulin and glucose concentrations, Metab.
Clin. Exp., vol 28, no. 11, pp. 1086-1096, 1979.
R.L. Lerner, and D. Porte Jr., Relationships between intravenous
glucose loads, insulin responses and glucose disappearance rate, J.
Clin. Endocrinol. Metab., vol 33, no. 3, pp. 409-417, 1971.
R. Hovorka, V. Canonico, L.J. Chassin, U. Haueter, M. MassiBenedetti, M. Orsini-Federici, T.R. Pieber, H.C. Schaller, L.
Schaupp, T. Vering, and M.E. Wilinska, Nonlinear Model
predictive control of glucose concentration in subjects with type i
diabetes, Physiol. Meas., vol. 25, no. 4, pp. 905-920, 2004.
E. Liu, and J.M. Yuanet, Dynamic sensitivity and control analyses
of metabolic insulin signalling pathways, IET Sysl. Biol., vol. 4,
no. 1, pp 64-81, 2010.
Blood-Sugar Chart, Health Calculators http://www.medindia.net,
October 2011.
Hypoglycemia: Low Blood Sugar Causes, Symptoms, Diagnosis,
and Treatement http://www.emedicinehealth.com, October 2011
V.W. Bolie, Coefficients of normal blood glucose regulation, J.
Appl. Physiol., vol 16, no. 5, pp. 783-788, 1961.
A.C. Guyton, and J.E. Hall, Text book of Medical Physiology, 9th
ed., Saunders, 1996.
Diabetic Conversion Factors, Available at: http://www.diabetesexplained.com., 2006.
A.M. Hariri, and L.Y. Wang, Identification and low-complexity
regime-switching insulin control of type i diabetic patients, J.
Biomed. Sci. Eng., vol. 4, no. 4, pp. 297-314, 2011.
K. Ogata, Modern Control Engineering, 4th ed. Prentice Hall,
2002.