You are on page 1of 6

AN ONLINE FUZZY GAIN SCHEDULING

FOR BLOOD PRESSURE REGULATION

Chi-Ngon Nguyen1, Olaf Simanski1, Agnes Schubert1,


Ralf Khler2, Bernhard Lampe1

1
Department of Electrical Engineering, Institute of Automation
2
Department of Mechanical Engineering, Sect. Measurement and Control
University of Rostock, Germany
nguyen-chi.ngon@ uni-rostock.de
Tel./Fax: +49 381 498 3556/3563

Abstract: This paper presents a method of fuzzy gain scheduling for a PID controller
applied to mean arterial pressure (MAP) regulation during general anesthesia by sodium
nitroprusside (SNP) infusion. A supervising algorithm is used for online updating the
fuzzy gain scheduler of the PID controller to act stronger against the body reaction. A
new model based on Slates model and Furutanis ideas was developed for testing the
controller. Simulation and clinical results in deep hypotensive controls at 40mmHg on
pigs indicate the safety and stability of designed controller. Copyright2005 IFAC

Keywords: Fuzzy control, fuzzy logic, PID control, scheduling algorithms, medical
systems, medical applications, blood pressure.

1. INTRODUCTION Sheppard,1982; Chen et al.,1997; Gao and Er, 2003).


The need for improved care of patients requires
Maintaining the mean arterial pressure (MAP) at a automatic control. Regulating MAP systems using
substantially low level is of vital importance in many SNP on humans has been incessantly studied since
clinical situations. During cardiac surgery, it reduces the late 1970s. However, they have been only used
intraoperative bleeding, which causes the side effects, for hypertension (Slate and Sheppard, 1982; Chen et
such as increased risk of sepsis and organ failure. In al.,1997; Gao and Er, 2003) and normotension
patients postsurgery, it promotes healing (Furutani et (Furutani et al., 1995, 04) control purposes.
al., 1995, 04; Er and Gao, 2003; Chen et al., 1997). Moreover, due to the nonlinear nature of the
The MAP is often decreased by intravenous drug input/output response, the interaction of drugs, the
infusion of sodium nitroprusside (SNP). This drug is variation of response from patient to patient and the
a potent fast-acting vasodilator that can quickly relax variation in the same patient under different
the muscle of the peripheral vasculature, resulting in conditions, blood pressure regulation is an actual
reduction of MAP within minutes (Slate, 1980; Ying research topic.
and Sheppard, 1994). Great caution is required to
handle the wide range of patient sensitivities to the The objective of this paper is to develop an online
drugs because an overdose of SNP could, however, fuzzy gain scheduling method of PID controller for
cause toxic side effects (Er and Gao, 2003). Manual blood pressure regulation purpose, especially in deep
adjustment of the SNP infusion rate by clinical hypotension with special problems of body reaction.
personnel can be very tedious, time-consuming, and At 40mmHg of MAP, the overshoot response is
consequently of poor quality sometimes (Slate and dangerous, so the controller is firstly tested on pigs.
2. CONTROL STRUCTURE (Slate, 1980). Moreover, when the pump is stopped
the response time constant becomes longer, and the
The structure of the MAP regulation system uses two transport delay T1 is shorter, especially in reducing
computers. The management computer receives and MAP from normotension to deep hypotension
stores patients data from DATEX AS/3 monitor (40mmHg). The change in transport delay T1 was
system every 5 seconds. The current MAP will be investigated by Furutani et al., in blood pressure
sent to the control computer. Based on this feedback control using trimethaphan camsilate hypotensive
value, the controller on this computer generates a drug for dogs (Furutani et al., 1995, 04).
next infusion rate for a microinfusion pump (Graseby
3400) and the sodium nitroprusside drug (SNP) will Using Furutanis ideas, the model from Slate is
be delivered to combine with intravenous (IV) fluid modified as follows:
maintained at a constant rate. e Ts e T3s
MAP( s )
= K + (2)
SNP ( s ) 1 + s 1 + s
This control system was applied to 25 clinical 3
experiments on 7 pigs at Clinic of Anesthesiology
T decreasing MAP decreasing MAP
and Intensive Care, University of Rostock, Germany. T = 1 , = 1
The first results indicated the safety and stability of T2 increasing MAP 2 increasing MAP
the controller.
where the transport delay T is set to T1 when blood
pressure has been decreased, and set to T2 when it has
3. MODELING PROBLEM been increased. The response time constant also
changes similarly. A negative value of presents a
The well-known model of dynamic response of MAP factor of body reaction other than the recirculation
to SNP was obtained by Slate et al. This model is a fraction of drug ( 0) in Slates model. T3 and 3
linear first-order transfer function with two time delay describe the transport delay and the response time
components, which can be expressed in form of constant of body reaction, respectively.
(Slate, 1980; Slate and Sheppard, 1982)
Table 1 Parameters of Pigs (n=7)
MAP( s ) Ke T1s (1 + e T2 s )
= (1)
SNP ( s ) 1 + s Para. Ave. Min. Max. Unit
K -0.7 -0.1 -2.3 mmHg/ml/h
where MAP(s) and SNP(s) illustrate the change of -0.4 -0.05 -0.9 -
MAP and the drug infusion rate, respectively. K 1 40 30 75 sec
describes the patient sensitive to the drug. T1 and 2 290 225 390 sec
present the initial transport delay and the 3 375 300 425 sec
recirculation fraction of SNP, respectively. T2 is the T1 60 20 175 sec
recirculation time, and denotes the response time T2 15 1 30 sec
constant. T3 400 300 820 sec

Infusing period
SNP

T1

2
K, 1
MAP

Fig. 2. Simulink model of MAP response to SNP


, 3

T3 T2 Model ouput
80
Measured MA P
MAP (mmHg)

Time
70
Fig. 1. Model parameters for identification.
60
Clinical experiment results on pigs showed that when
the drug infusion rate is set at a constant level, after 50
reaching steady response, the MAP is increased by
the body reaction (Fig.1). This was not presented in 40
0 500 1000 1500 2000 2500 3000
Slates model. However, in the complete systems of Tim e (s )
Sheppard and Slate, it was considered as the impact
of respiration, the random variations due to Fig. 3. Measured MAP and model output for a
sympathetic stimulation and the angiotensin reflex rectangle infusion period of SNP at 40ml/h.
All individual parameters of this model are given in MAPmaxover
Table 1, obtained by statistics on the measured MAP
from 25 clinical experiments on 7 pigs. In Fig.2, the Fuzzy rules
simulation model in MATLAB/Simulink is presented. and reasoning Observer
The background activity in Fig.2 is the sum of an
initial MAP and stochastic activity illustrated in
MAP
Fig.9. The initial MAP is obtained from identification PID controller Patient
period. The stochastic activity was modeled similar to MAPref.+ - SNP
(Slate, 1980). A comparison between model output
and measured MAP is also demonstrated in Fig.3.
Fig. 4. PID control system with fuzzy gain scheduler.
4. PID CONTROLLER

The transfer function of an ideal PID controller has 5.2 Fuzzy gain scheduler design
the form
1 Selecting the ranges of Kp, Kd and Ki for the gain
Gc ( s ) = K p 1 + + Td s (3) scheduler requires estimating the dead time L and
Ti s slope R of the output response curve similar to
where Kp is proportional gain. Ti and Td present Ziegler-Nichols tuning method. However, in Ziegler-
integral and derivative time constants, respectively. Nichols, the identification of maximum slope R
takes a long time of waiting for the steady-state
A discrete-time version for PID control in this paper output response. For reducing identification time, this
k
Kd control system only determines the early slope R,
u (k ) = K p e(k ) + K i Ts e (i ) + T
i =1 s
e( k ) (4) when the MAP has decreased around 10mmHg
(Khler et al., 2004). Simulation results show that
is applied (Zhao et al., 1993). this method is at least 2 min. shorter than Ziegler-
Nichols for normal and sensitive pigs.
Where, Ki=Kp/Ti and Kd=KpTd. Ki and Kd are known
as the integral and derivative gains, respectively. u(k) Fig.5 illustrates a method of calculating the dead time
presents the control signal, e(k) denotes the error L and early slope R. The MAP response curve was
between the reference and process output, Ts is the inverted. Let h and hmax be the distance and maximum
sampling period, and e(k) = e(k) - e(k-1). distance between MAP curve and the base of a
triangle, respectively. L is determined at the time of
There are some methods for tuning the PID controller h=hmax (Khler et al., 2004). To reduce error of this
effectively, such as Ziegler-Nichols, Cohen-Coons, estimation method, it is important to cut the
etc.. However, in animal experiments, sometimes a overshoot behavior (the dash line in Fig.5).
fixed gain controller is not flexible enough to adapt to
different clinical conditions. The following section In animal experiments, this method is effective with
describes an online gain scheduling scheme of the normal and sensitive pigs. However, for insensitive
PID controller based on fuzzy logic. ones, the MAP is only decreased around 2-4mmHg
during identifying period, and it often reaches steady-
state response. In this case, R and L are determined
5. FUZZY GAIN SCHEDULING by Ziegler-Nichols method.

5.1 Overview 10
MAP (mmHg)

The PID control system with a fuzzy gain scheduler


applied to blood pressure regulation is presented in 5 R
Fig.4. In this diagram, the patients block is the
h=h
model shown in Fig.2, sampled in 5s intervals. The max
observer supervises the current infusion rate and 0 L
MAP for online updating the fuzzy gain scheduler.
0 10 20 30 40 50 60 70 (s)
It is assumed that the PID gains Kp, Kd and Ki are in
prescribed ranges [Kp,min, Kp,max], [Kd,min, Kd,max], Fig. 5. Identifying L and R of MAP response curve.
[Ki,min, Ki,max], respectively (Zhao et al., 1993). The
appropriate ranges are determined experimentally and After estimating R and L, the initial Kp*, Kd* and Ki*
will be given in (5). Based on the error between are calculated as shown in Table 2 and Table 3
setpoint and process output and the change of error, (Kd*=Kp*Td* and Ki*=Kp*/Ti*). These parameters are
the fuzzy gain scheduler adjusts for the suitable used to determine the ranges of Kp, Kd and Ki in
values of Kp, Kd and Ki in these ranges for the PID equation 5, which obtained by hand through
controller. simulations (Kp, Kd and Ki < 0):

K p [1.75K *p , 0.75K *p ]
NB NM NS Z0 P

K d [1.25K d* , 0.25K d* ] (5) a)

K i [2.25K i* , 0.75K i* ]
Emin 0 Emax
x=E
Table 2 Calculating Td* and Ti* due to L
NB NM NS ZO PS PM PB

L (sec) [20-30] (31-60] (60-90] (90-175]


b)
Td* 0.75L 0.35L 0.2L 0.1L
Ti* 3.5Td* 3.5Td* 4Td* 4Td*
dEmin 0 dEmax
x=dE

Table 3 Calculating Kp* due to R S B

-R [min-.05] (.05-.4] (.4-1] (1-max] c)

Kp* 2/RL 6/RL 8/RL 12/RL


Notes: (*) presents that Kp*, Td* and Ti* are only initial values. Kmin Kmax
x = Kp or Kd or Ki
These ones are used for presetting the fuzzy gain scheduler other
than using for PID controller directly.
Fig. 6. a-b) membership functions for e(k) and e(k);
The fuzzy gain scheduler with 2 inputs and 3 outputs c) membership functions for Kp, Kd and Ki
is designed for estimating Kp, Kd and Ki within above
ranges. The membership functions of input fuzzy sets
(for e(k) and e(k)) and outputs (for Kp, Kd and Ki) Table 4 Fuzzy tuning rules for Kp, Kd and Ki
are given in Fig.6. In this figure, N presents negative,
P positive, S small, B big, M medium and ZO Kp
approximately zero. Thus NS stands for negative- Kd e(k)
small, NM for negative-medium, NB for negative- Ki NB NM NS ZO PS PM PB
big, PS for positive-small, PM for positive-medium S S S S S S S
and PB for positive-big. NB B B B B B B B
S S S S S S S
B S S S S S B
Before control action, the fuzzy sets of inputs and S S B B B S S
NM
outputs are calculated due to the reference level and B B S S S B B
the initial MAP measured in identifying period. Let B B S S S B B
MAPref be the setpoint, MAP0 be the initial MAP, and e(k) NS S S S B S S S
MAPmaxover be acceptable maximum overshoot. The B B B S B B B
input fuzzy sets are modified by changing the ranges B B B S B B B
of [Emin, Emax] and [dEmin, dEmax] in Fig.6. ZO S S S S S S S
B B B B B B B
E min = MAPref MAP0 [mmHg ] B B S S S B B
P S S S B S S S
E max = MAPmax over [mmHg ] (6) B B B S B B B
dE min = 1; dEmax = 1 Notes: Kp, Ki S & Kd B: risetime , overshoot

To prevent this situation, a supervising algorithm


Here, dEmin and dEmax are determined by simulations.
based on results of Isaka et al. was developed (Isaka
A saturation block in range [-1, 1] is also used for the
and Sebald, 1993). During operations, when the MAP
input e(k). The output fuzzy sets are modified in the response does not reach the target, the output ranges
ranges given in (5). Moreover, these will be updated [Kmin, Kmax] in Fig.6 (output fuzzy sets) will be
during control by a supervising algorithm that will be updated for the controller acts stronger. And when
presented in following section. the overshoot appears, they will be changed to act
weaker. This algorithm can be described in a diagram
The fuzzy rules for tuning PID gains are described in given in Fig.7. The changes of PID gains Kp, Kd and
Table 4, which were experimentally selected from Ki are demonstrated in Fig.8 during a simulation.
simulations.

5.3 Supervising algorithm 6. SIMULATIONS

In animal trials, the MAP response reaches the The simulation results show that the MAP reaches the
setpoint within 5min. without overshoot. However, setpoint (40mmHg) after 5min from starting time
the controller was not strong enough against the body (Fig.9). Fig.9a presents the stochastic of the
reaction. background activity given in Fig.2. The MAP
responses have no overshoot and maintain at - The fuzzy gain scheduler is set.
reference level during control, see Fig 9b. A result of - The PID controller is turned on.
a traditional PID controller is also compared in - The supervising algorithm will be used for online
Fig.9c. updating the gain scheduler every 30s.

Simulation results under different conditions indicate


Begin the stability of the controller.

No
First? 1

Noise (mmHg)
Yes
0

=MAP-MAPref
-1
(a)
0 200 400 600 800 1000 1200 1400 1600 1800
Yes
-55 setpoint
80 Fuzzy-Gain PID

MAP (mmHg)
No Traditional PID
Kp*=102.5%Kp*
Yes
>5 Ki*=102.5%Ki* 60
Kd*=97.5%Kd*
No
40
Yes Kp*=97.5%Kp*
(b)
-MAPmaxover<-5 Ki*=97.5%Ki* 0 200 400 600 800 1000 1200 1400 1600 1800
Kd*=102.5%Kd* Fuzzy-Gain PID
f illing catheter
No 300
Traditional PID
SNP (ml/hr)

Identif y ing period


Stopping the pump 200
Delivering message
Setting the 100
fuzzy scheduler
(c) 0
Exit 0 200 400 600 800 1000 1200 1400 1600 1800
Tim e (s)

Fig. 7. Supervising algorithm diagram. Fig. 9. Simulation results A comparison between


fuzzy gain-scheduled (solid) and traditional (dot)
Patient No: #2004.07.22
PID Controller.
-1.5
Patient No: #2004.07.22
-2 120
Kp

MAP
100 setpoint
MAP (mmHg)

-2.5
0 200 400 600 800 1000 1200 1400 1600 1800 80
-5
60
-10
Kd

-15 40

-20 (a) 0 200 400 600 800 1000 1200 1400 1600 1800
0 200 400 600 800 1000 1200 1400 1600 1800 Time (s)

-0.03
1000 f illing catheter ref illed the sy ringe
Ki

-0.04
SNP (ml/hr)

-0.05 identif y ing period


500
0 200 400 600 800 1000 1200 1400 1600 1800
Time (s)

0
Fig. 8. PID parameters during control (b)
0 200 400 600 800 1000 1200 1400 1600 1800
Time (s)
Controlling progress can be summarized as follows:
- In first 15 seconds, the initial MAP is measured. Fig. 10. A result of clinical trial on pig.
- A high infusion rate at 300ml/h is generated in 1
sample (5s) to fill up the infusion catheter.
- An identifying period is started at the time of 25s 7. CLINICAL EXPERIMENTS
with infusion rate set at 30ml/h. This value is
maintained until MAP has decreased more than A selected result from clinical experiments on pigs is
10mmHg from initial level for normal and demonstrated in Fig.10. The MAP response reaches
sensitive patients, or until maximum time reached the reference level set at 40mmHg within 340s
(4-6min.) for insensitive ones. without overshoot. The results show that the
- The dead time L and early slope R are calculated. controller is safe, effective and stable. However, there
is a problem on increasing MAP every time of med. R. Hofmockel and Dr. med. M. Janda, Clinic of
changing a new syringe. Anesthesiology and Intensive Care, University of
Rostock, Germany for supporting materials and the
anaesthesia for the pigs.
8. DISCUSSION

In simulations and clinical experiments, there exist REFERENCES


some problems that require more discussions:
1. For very insensitive pigs, the identifying period of Behbehani, K. and R. R. Cross (1991). A controller
dead time L and early slope R can be disturbed by for regulation of mean arterial blood pressure
noises. Although a Wavelets filter is used, using optimum nitroprusside infusion rate. IEEE
estimating result of dead time L has a little error. Trans. on Biomed. Eng., 38, 513-521.
2. The ranges of Kp, Kd and Ki in equation 5 require Chen, C. T., W. L. Lin, T. S. Kuo, and C.Y. Wang
optimization, which were only determined by (1997). Adaptive control of arterial blood
hand through simulations. pressure with a learning controller based on
3. For an insensitive pig, a high infusion rate is multilayer neural networks. IEEE Transactions
involved, which makes the syringe-50ml empty on Biomedical Engineering, 44, 601-609.
after a short time. Although the other syringe was Er, M. J. and Y. Gao (2003). Adaptive control
only changed in a short time, the MAP was strategy for blood pressure regulation using a
increased too fast (Fig.10). To avoid this problem, fuzzy neural network. IEEE Int. Conference on
it would be better to use an infusion pump with 2 Systems, Man and Cybernetics, 3, 2120-2125.
syringes. When the first one is empty it could Furutani, E., M. Araki, T. Sakamoto and S. Maetani
switch to the second one automatically. (1995). Blood pressure control during surgical
4. When the infusion rate reaches the saturation operations, IEEE Transactions on Biomedical
(1200ml/h for Graseby 3400 infusion pump), the Engineering, 42, 999-1006.
MAP will be increased (in Fig.10, after the time Furutani, E., M. Araki, S. Kan, T. Aung, H. Onodera,
of 30min., MAP is increased). For this case, we M. Imamura, G. Shirakami and S. Maetani
plan to use two infusion pumps. The second one (2004). An automatic control system of the
will be started when the first one is saturated. blood pressure of patients under surgical
However, an overdose of SNP is dangerous, so operation. International Journal of Control,
another drug may be used. Automation, and Systems, 2, 39-54.
Gao, Y. and M. J. Er (2003). Adaptive fuzzy control
of mean arterial pressure through sodium
9. CONCLUSIONS nitroprusside infusion. Proceedings 42nd IEEE
Conference Decision and Control, Hawaii,
The paper summarizes the method of MAP control by USA, 2198-2203.
SNP infusion using online fuzzy gain scheduling of Isaka, S. and A. V. Sebald (1993). Control strategies
PID controller. The model of MAP response to SNP for arterial blood pressure regulation. IEEE
was modified based on Slates model and Furutanis Trans. on Biomed. Engineering, 40, 353-363.
ideas. It was not only used for designing and testing Khler, R., M. Janda, C. Beck, O. Simanski (2004).
the PID controller but also for seeking the parameters Kontrollierte Hypotension mit Natrium
of the fuzzy gain scheduler. The solution of nitroprussid, Proc. 11. Symposium Maritime
calculating the dead time L and early slope R of the Elektrotechnik, Elektronik und Informat.,
MAP response curve for tuning the controller was Universitt Rostock, 534-04, 145-151.
also presented. In animal experiments, this was Slate, J. B. (1980). Model-based design of a
effective in reducing identification period. Isakas controller for infusion sodium nitroprusside
supervising algorithm for online updating the fuzzy during postsurgical hypertension. PhD Thesis,
sets of the gain scheduler illustrated a good way to University of Wisconsin-Madison.
handle the body reactions during surgeries, especially Slate, J. B. and L. C. Sheppard (1982). Automatic
in deep hypotension control. control of blood pressure by drug infusion, IEE
Proceedings, 129, 639-645.
Although laboratory animal testing results indicate Ying, H., L. Sheppard and D. Tucker (1988). Expert-
that designed controller is effective, safe and stable, system-based fuzzy control of arterial pressure
there exist some problems presented in the discussion by drug infusion. Medical Progress Through
that require solving in further works. Technology, 13, 203215.
Ying, H. and L.C. Sheppard (1994). Regulating Mean
Arterial Pressure in Postsurgical Cardiac
ACKNOWLEDGMENTS Patients. A fuzzy logic system to control
administration of sodium nitroprusside. IEEE
The research was supported by a grant from the Eng. in Medicine and Biology, 13, 671-677.
Ministry of Education & Training of Vietnam within Zhao, Z. Y., M. Tomizuka and S. Isaka (1993). Fuzzy
the Higher Education Project sponsored by the gain scheduling of PID controllers. IEEE Trans.
World Bank. The authors are also grateful to PD. Dr. on Syst., Man and Cybernetics, 23, 1392-1398.

You might also like