Professional Documents
Culture Documents
Correspondence
A New Methodology for Designing To assist with this problem, a second fine look up table is usually
a Fuzzy Logic Controller used for the static period [l], [2], [5], which, however, increases the
complexity of the system and difficulties of tuning.
Han-Xiong Li and H. B. Gatland Based on the above points, new methodologies for designing and
tuning the FLC are presented in this paper. Attention is focused on
the following approaches:
Absstracf-A new methodology is proposed for designing a fuzzy logic
0 A new methodology for building a rule base for FLC
controller (FLC). A phase plane is used to bridge the gap between the
time-response and rule base. The rule base can be easily built using the A phase-plane method can bridge the gap between the process
general dynamics of the process, and then readily updated to contain the dynamics and the rule base of FLC. The sign of the control rules can
delayed information for reducing the deadtime effects of the process. An be determined by this method. Then the rule base can be built more
adaptive gain method is also proposed to help the data base design and easily using the general performance of the process as the basis. The
the controller tuning. Much of the FLC design can be shifted to the design
and tuning of gain. A good performance can be achieved both in transient result will be more universal and less subjective. For a long time-
state and steady state without use of multi-decision tables. Application of delay process, this rule base is easily modified to contain the delay
FLC with these new methodologies is presented for a thermal process information, so that the delay effects can be reduced.
with a varying deadtime to show the robust performance of FLC and the 0 FLC with adaptive gain design and adjustment
effectiveness of these methodologies.
A theoretical explanation is given for the relation between the
control resolution and fuzziness of inputloutput variables. Based on
I. INTRODUCTION this theory, the guidance for designing and tuning the scaling gains
Fuzzy control was first introduced in the early 1970’s [7] in an is given. With the adaptive gain method, excellent performance in
attempt to design controllers for systems that are structurally difficult both the transient and static period can be achieved without using
to model due to naturally existing nonlinearities and other modelling multi-decision tables. Therefore, much of FLC design can be shifted
complexities. During the past years, fuzzy control has emerged as one to the design and tuning of scaling, which becomes much easier and
of the most active and fruitful areas for research in the application convenient, just as with a conventional PI controller.
of fuzzy set theory [8]. 0 Applying the new methodologies to FLC of a thermal process
When designing a control system, an initial step is to obtain a Experimental results are presented to show the stability and per-
mathematical model for the plant and the controller. This model formance robustness of FLC to the system variations, with particular
represents the formulation of prior information into an analytic reference to variable plant deadtime.
structure, but many real world systems have unknown parameters or
highly complex and nonlinear characteristics. Attempts to overcome II. FUZZY LOGIC CONTROL (FLC)
these difficulties have led to research into very complex controllers,
which may cause difficulties when applied. A, Fuzzy Control Architecture
Fuzzy logic control (FLC)appears very useful when the processes
A schematic of a fuzzy control system for a regulation control task
are too complex for analysis by conventional quantitative techniques.
is shown in Fig. 1. This uses two dimensional fuzzy control. The crisp
Experiences show that the FLC yields results superior to those
output error time sequences: error e and change of the error Ae, are
obtained by conventional control algorithms in the complex situation
first converted to fuzzy variables. The error signals are defined as:
where the system model or parameters are difficult to obtain [I],
[2], [5]. In recent years, the technology of FLC has been developed e k = set point (kth sample time)
successfully. Applications of FLC on practical processes exist every- - output (kth sample time)
where [6]. The fuzzy logic inference unit produced by OMRON is
already in the market. Aek = e k - ek--l
FLC design is involved with two important stages: knowledge base These variables evaluate the control rules using the compositional
design and FLC tuning. However, at present there is no systematic rule of inference, and the appropriately computed control action is
procedure for the design of the knowledge base and the tuning then reconverted to the crisp value required to regulate the process.
of FLC. The control rules are normally extracted from practical So, designing fuzzy controllers may include: 1) defining input and
experience, which may make the result rather subjective. It is also output variables, 2) fixing the process in which the input variables
difficult to design a data base because of the many uncertainties are converted to fuzzy sets, 3) determining the knowledge base, 4)
which need to be considered. The scaling gains are used with the designing the computational unit that accesses the fuzzy rules and 5)
inputloutput of FLC to form fuzzy-PI control [l], [3] and some devising an appropriate transformation of fuzzy control actions into
explanations are given which have been based on experiments [9]. crisp control actions. Among these, designing the knowledge base is
However, a more theoretical explanation is needed as guidance for one of the most important and difficult tasks.
designing and tuning these gains. Practically, it is also difficult to
achieve excellent performance in both the transient and static periods. B. Fuzzy PI Control Algorithm
Manuscript received November 1, 1993; revised April 27, 1994. An integral action is normally needed to achieve the best perfor-
H.-X. Li and H. B. Gatland are with the Department of Electrical & Elec-
tronic Engineering, The School of Engineering, The University of Auckland, mance in the practical control situation. As it is two dimensional
Auckland, New Zealand. fuzzy control, a practical FLC should possess Proportional-Integral
IEEE Log Number 9406071. (PI) control effect.
0018-9472/95$04.00 0 1995 IEEE
I
506 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995
~ I . .. . .
~~
... .. .. . .
:
..
J
~
I
variables or their MFs.
KNOWLEDGE BASEDESIGN
111. CONTROL
The knowledge base of an FLC is composed of two components,
namely, a data base and a fuzzy control rule base [4].
..I
IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH !995 507
I
eqLivalent
F,'(E) = s,,-,
E,
P1(E)IE
= /"'
N(e,-a) { 5a + (1 - .)}/E
where E Z R = 0 , E p s = - E N S = A,EPM = - E N M =
2A, E P L = - E N L = 3A.
Similarly, suppose e is another linguistic control input variable
which is associated with a same label set as E , with each label defined
on the universe of discourse U , = [-3a, 3a].The grade of each label Similarly,
is described by a fuzzy set F,(e) = p , ( e ) / e ( i = N L , . . . , P L ) ,
which again is a triangle-shaped MF similar to F, ( E ) in Fig. 3. Then,
these primary fuzzy sets, or MFs, can be described similarly as in
(5). Their left side and right side of the MFs for each label, F,'(e)
F,'(E) = L:+* pF(E)/E= /N(eaCR) &(e)/E
Ne,
(9)
E )p z ( e ) ,
p C L Z (= for every support
Eande(E=N*e)
This means fuzzy sets F, ( E ) can give the equivalent result as Fa( e )
when E = N * e . Then variable E can achieve same fuzziness as
e. The practical meaning of the above result is shown in Fig. 4.
By adjusting scaling N, variable e can achieve equivalent results by
(7) using F ( E ) instead of F ( e ) .
N = 1, when F ( e ) has the same fuzziness as F ( E ) .
N > 1,when F ( e ) is more fine than F (E).With the larger N, the
where e z R = 0, e p s = - e N S = a , epM = -eNM = 2a, epL =
finer F ( e ) can be implemented by F ( E ) .
-eNL = 3a. N < 1, when F ( e ) is more coarse than F ( E ) . With the smaller
The fuzziness of the MF for each label depends on the distribution
N, the coarser F ( e ) can be implemented by F ( E ) .
of p over its support. If two MFs have the same p values for
This is very important because by adjusting the scaling gain N , a
their supports, then these two MFs have the same fuzziness. When
fuzzy variable with coarse MFs can achieve the result equivalent to
the universe of discourse is continuous, the larger spread has more
a fuzzy variable with fine MFs as long as their MFs have the same
support and wider distribution, which causes more fuzziness.
shape, and vice versa.
When A = N*a,UE is N times U, (N is a constant). We can
2) Control output variable: The control output can be obtained
easily obtain:
from the centre of gravity method in (10).
when N = 1, F , ( E ) has the same degree of fuzziness as F,(e)
) every support of E in UE and e in
because of p C L , ( E=) p L , ( e for
U,, i.e., variables E and e have the same degree of fuzziness.
when N > 1, F, ( E ) is more coarse than F, ( e )because of the larger
spread and wider distribution of p (A > a), i.e., variable E is more
coarse than variable e.
when N < 1, Fa(E) is more fine than F, (e) because of the smaller
spread and narrower distribution of p ( A< a), i.e., variable E is where p, is the grade of j t h output MF, AU, is the output label
more fine than variable e. for the value contributed by the j t h MF, AU is the output variable,
The fuzziness of variables can be adjusted by controlling their m is the number of contributions from the rules. We can define the
scaling, Le. the sumorts of their MFs in the universe of discourse. fuzziness of the output variable as:
I
~
508 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995
A coarse fuzzy output variable has less labels while a fine one
has more labels on the same universe of discourse.
The fuzziness of the output variable determines the output magnitude.
For the same grade of MFs, a coarse variable produces a large output
and a fine variable produces a small one. By adjusting the output
scaling gain in ( l l ) , the output magnitude produced by a coarse
0 IO 20 30
output variable can be reduced; the output magnitude produced by a time
fine one can be increased. L
4
ID
c1: Ae=O,e<O cz: Ae=O,e>O By analyzing the phase-plane trajectory, we can obtain some more
detailed rules for the third metarule.
It is easily found that the type D response also occupies these four 3.1) Rules for cross-over points { b l , b z } :
areas, the type C only occupies A1 and A2 areas, and the type A The control increment has the same sign as Ae.
just occupies A1 area. 3.2) Rules for peak-valley points ( c 1 , c ~ ) :
IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995 509
Oele NL N M NS ZR PS P M PL
. . . . . . . . . . . . . . . . . I . ............
PL : .
. .. .
..
PM i Ag * . . .. .
i.
:. . b2ii
. . . A4 :
ps :.. . . . . . . . . . . . .. . ...., . ... . . ... -. ................
.. . ..
... .. ...
...I.. . . . . .cl.. . . . . . .‘.“....a,.
. .
.. . ..
.Q.. ... .!. . . . . . :,
.. . ..
. .
. . ... . .. . . .... . . . . . . . .
. .. . .. *
. .. - .. .
0 5 10 15 20 25 30 5
Fig. 7. The frame of the rule base. The Ae may have relatively large influence on overshoot when le1
is relatively small (i.e. ZR, NS, P S ) . Therefore, C can be chosen
to allow control Iul become smaller and prevent any overshoot.
TABLE I Correcting for Deadtime: When the system has a very long time
RELATIONBETWEEN WHENAe = ZR
AND ERROR
CONTROL delay, the controller receives very delayed information so that the
e NL NM NS ZR PS PM PL performance is badly affected. To overcome this, it may be helpful
uo NL NM NS ZR PS PM PL to introduce some delay information into the rule base.
From the time response analysis in Fig. 8, it can be seen that
...
510 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995
TABLE LI
functiondgain
coarse tuning
Ii,
TUNING
small
STRATEGY
h-i
small
I<
large
t
fine tuning large large small
TABLE III
FLC PARAMETERS FOR A THERMAL
PROCESS
functiondgain
coarse tuning
fine tuning
Ii,
30
90
I(,
1
5
h'
0.016
0.003 t z.os/Div 1
Fig. 11. PID performance under delay Lz = 0.5 sec.
Oe/e NL N M NS ZR PS PM PL
........ ............................... .........................
PL ; zr PS ps :;pmit
.. pm pi pl I
PM i m zT ps : i p s : :pm pi pi
PS inm ns i i ps ;..........................
........ .................. .
j ps pl pl i
.-.-.- .-
ZR ; n l nm f l ~;mi ps pm pl!
........ ................. .........................
NS nl nl m :.. ..j m ..;.. ;ZT ps pm
NM i d d m ; ..
'. . fls
ns& ps :
Z.Os/Div
NL t......... nl mf:mjj
n l ............... m 11s zr i
.....................................
!
Fig. 12. PID performance under delay L3 = 0.8 sec.
Fig. 9. The rule base for the thermal process. There are three steps to tune these scaling gains:
Step 1: To obtain an initial second set of gains ( h - pIi11,
~ , Kz)
without adaptive gain adjustment:
1) tune A' to have reasonable steady-state performance
2) tune K I ,K p to improve steady performance
Step 2: To obtain an initial first set of gain (K,l, K I I ,K l ) with
adaptive gain adjustment.
Keep the gains obtained from step 1 as second set of gain, then
1) tune hT1 to have a reasonable transient response.
2) tune Kp1,K I to~ improve the transient response.
Step 3: Final tuning
Tune both sets of gain by a trial and error process to improve the
t
I
2.0dDiv
I
I
overall performance.
111 1
IEEE TRANSACTIONS ON SYSTEMS,MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995 511
I 1 t+ t
f ._
hi
u t
2.0sDiv Z.Os/Div
Fig. 13. FLC performance under delay L1 = 0.1 sec. Fig. 16. PID performance under delay L3 = 0.8 sec. after re-tuning.
I 1
t t t t
I :
2.o s m v
tI
2.0smv
""1 I
Fig. 14. FLC performance under delay L2 = 0.5 sec. Fig. 17. FLC performance under delay L3 = 0.8 sec. with the delayed rule
base.
t t Oele NL NM NS ZR PS PM PL
.........................
pl pl PI i
pl pl pl ;
........................ pl pl pl i
.......................
! nl nm .mi ps pm P I /
i
t
1
tis
......................... .........................
2.OsDiv
.............................................................
changing their parameters to test their performance robustness. 3)
Re-tune both PID and FLC under the long deadtime situation.
PID controller can be tuned using Ziegler-Nichols method. Fig. 18. The delayed rule base for the long delay process.
A fuzzy-PI control is used as shown in Fig. 2. The MFs for input
variables are triangle-shaped as shown in Fig. 3. Its rule base is given nevertheless it shows more robustness to system variations and has
in Fig. 9, which is obtained from the frame of rule base in Fig. 7, large stability range. It is stable under all situations maintaining
heuristic rule (12) and practical experiments. The compensation term reasonable performance.
C in (12) is chosen Z R in most cases. When le1 is relatively small, After re-tuning both controllers under the long deadtime (L3)
to prevent any overshoot, sometimes it is necessary to chose C small situation, the experimental results are shown in Figs. 16-17. FLC
and opposite in sign to Ae. Through a trial and error process, the with the delayed rule base shown in Fig. 18 can achieve still better
FLC scaling gains for small deadtime condition are determined as results.
shown in Table 111.
The experimental results are shown in Figs. 10-15. PID works
well when the system has short deadtime, but the performance VI. CONCLUSIONS
deteriorates as the deadtime increases, becoming unstable with the The phase-plane is very useful for designing the rule base for
long deadtime. Although the process is really too simple for FLC, FLC. Under this methodology, the rule base can be easily built and
I
512 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. 25, NO. 3, MARCH 1995
11. A MODIFIEDDYNAMICLEARNINGRATE
The standard back-propagation training algorithm is given by the
An Adaptive Training Algorithm following equations:
for Back-Propagation Neural Networks
Hsi-Chin Hsin, Ching-Chung Li, Mingui Sun, and Robert J. Sclabassi
1
Abstract- A dynamic learning rate for back-propagation training zf =
of artificial neural networks is proposed as a weighted average of 1 + exp (--X(net;)}
direction cosines of the incremental weight vectors of the current and
previous steps. Experiments on training an EEG-based sleep state pattern
recognition scheme have demonstrated its improved performance.
Manuscript received August 28, 1992; revised May 12, 1993 and May 6,
1994. for output layer (5)
H.-C. Hsin and C.-C. Li are with Department of Electrical Engineering,
University of Pittsburgh, Pittsburgh, PA 15261 USA.
M. Sun and R. J. Scalabassi are with the Department of Neurological
Surgery, University of Pittsburgh, Pittsburgh, PA 15261 USA.
IEEE Log Number 9406067. for hidden layer (6)