Documente Academic
Documente Profesional
Documente Cultură
ISA Transactions
journal homepage: www.elsevier.com/locate/isatrans
Department of Electrical and Electronic Engineering, Universiti Teknologi PETRONAS, 31750 Tronoh, Perak, Malaysia
Department of Electrical and Computer Engineering, Ryerson University, Toronto, Ontario, Canada M5B 2K3
art ic l e i nf o
a b s t r a c t
Article history:
Received 11 April 2014
Received in revised form
21 May 2014
Accepted 2 June 2014
Available online 21 June 2014
This paper was recommended for
publication by Dr. Jeff Pieper
Keywords:
Intelligent control
Type-2 Fuzzy Logic
Fuzzy Logic Control
Optimization
Robotic arm
1. Introduction
Fuzzy Logic Control (FLC) has demonstrated superiority over
classical control, namely Proportional-Integral-Derivate (PID) controllers, especially in applications where imprecision and uncertainty are present in the system [1]. Generally, FLC has proven to be
more superior in terms of (1) noise rejection, (2) exibility, (3) the
use of human knowledge, not accurate mathematical models, and
(4) sensitivity to disturbances, which nally yields (5) overall better
system performance [2]. Type-2 Fuzzy Logic (T2FL) was introduced
to generalize Type-1 Fuzzy Logic (T1FL) [34]. T2FL is able to model
uncertainty and imprecision in a much better way [5], which makes
Type-2 Fuzzy Logic Control (T2FLC) ideal for control applications.
However, T2FL is more difcult to understand and implement than
the conventional T1FL [6]. The lack of systematic design procedures
for T2FL controllers, as well as T1FL controllers, has been a
challenge to researchers and engineers and is considered as one
of the drawbacks of T2FLC and FLC.
Various designs of T2FL controllers were reported in the
literature, most of which were designed based on heuristic
methods. For example, in [7], a T2FL controller was designed to
n
Corresponding author. Department of Electrical and Electronic Engineering,
Universiti Teknologi PETRONAS, Block 23, 31750 Tronoh, Perak, Malaysia.
Tel.: 60 53687882.
E-mail addresses: haytham.fayek@ieee.org (H.M. Fayek),
irraivan_elamvazuthi@petronas.com.my (I. Elamvazuthi).
http://dx.doi.org/10.1016/j.isatra.2014.06.001
0019-0578/& 2014 ISA. Published by Elsevier Ltd. All rights reserved.
1584
2. Proposed techniques
2.1. Type-2 Fuzzy Logic
Zadeh introduced Type-2 Fuzzy Sets (T2FS) as an extension to
Type-1 Fuzzy Sets (T1FS) [17,18]. T2FS are able to handle uncertainty in a much better way, which make T2FS ideal for control
applications. A T2FS, is characterized by a type-2 membership
function A~ z; z; where zA Z and A J z D 0; 1; as follows:
A~ fz; z; A~ z; zj 8 z A Z; 8 z A J z D 0; 1g
RR
where, J z D 0; 1,
resembles union over all admissible z and
(z) [20] and Jz is called primary membership of z. Concretely, a
type-2 membership function comprises an inferior membership
function and a superior membership function; each function is
represented by a type-1 membership function. The superior
membership function is denoted as Upper Membership Function
(UMF), while the inferior membership function is denoted as
Lower Membership Function (LMF) [21] as in Fig. 1. The interval
between these two membership functions represents the Footprint Of Uncertainty (FOU), which distinguishes the T2FS [22].
An Interval Type-2 Fuzzy Set (IT2FS) is the most widely used
type of the T2FS [19]. It can be considered as a special case of T2FS,
whereas an IT2FS is one in which the membership grade of every
domain point is a crisp set whose domain is some interval
contained in the interval [0,1]. The membership grade of an IT2FS
is an interval set with a unity value for each secondary grade in
that set [23]. The IT2FS was used in this work.
A Type-2 Fuzzy Inference System (T2FIS) has the same IF-THEN
rules as the conventional type-1 Fuzzy Inference System (FIS) except
that the antecedent and consequent are in type-2 form as follows:
l
l
Rl : IF x1 is V~ 1 AND xn is V~ n
~ l;
THEN y is W
l 1; ; M
l
~ l is a
where, V~ n is a type-2 antecedent, yAY is the output, and W
type-2 consequent. The structure of a T2FL system, which is shown in
Fig. 2, is very similar to a T1FL system. A T2FL system comprises a
type-2 fuzzier, a type-2 rule-base, a type-2 inference engine, and
substitutes the type-1 defuzzier with an output processor which
includes a type reducer and a type-2 defuzzier [24].
The Extension Principle [25] is used to extend each type-1
defuzzication method for the corresponding type-reduced set.
A type-reducer combines the output sets in some way and then
performs a centroid calculation on this T2FS, which leads to a T1FS
that is called the type-reduced set. Type-2 defuzzication methods
used in this paper are [25,26]
Centroid: The centroid type-reducer combines all the ruleoutput T2FS by nding their union as in Eq. (4).
B~ y [ M
8yAY
l 1 B~ l y
f y1 1 f yN N
5
N
1 A J y1
N A J yN
i 1 i
where, i1,, N, and N,Jyi,fyi are associated with B~ y.
Center of sums: The center of sums type-reducer combines the
type-2 rule output sets by adding their secondary membership
1585
functions by using Eq. (6) and then nds the centroid of the
resulting set using Eq. (5).
M
B~ y B~ l y 8 y A Y
l1
f y1 1 f yM M
7
M
l 1 y1
1 A J y1
M A J yM
where, yl is the point having maximum membership in the lth
output set and l ; J yl ; f yl are associated with ~ l yl . This
B
TM
l 1 C l dl
d1 A C ~ l
G
dM A C ~ M
T M
l 1 E l el
,G
e1 A E1
M
l 1 dl el
M
e
l1 l
eM A EM
G~
10
Several modications have been reported since the introduction of this algorithm such as swarm regeneration, velocity
clamping, constriction factor, etc. The addition of a linearly
decreasing inertia weight to Eq. (9), as shown in Eq. (11), to ensure
convergent behavior and to optimally tradeoff exploration and
exploitation has proven to be a signicant modication [29] to the
original algorithm and is used in this work.
vij wtvij t c1 r 1j tyij t xij t c2 r 2j t y^ ij t xij t
11
1586
Table 1
Rule-base.
E/DE
BN
MN
N
Z
P
MP
BP
BN
BN
BN
BN
BN
MN
N
Z
MN
BN
MN
MN
MN
N
Z
P
N
BN
MN
N
N
Z
P
P
Z
MN
MN
N
Z
P
MP
MP
P
N
N
Z
P
P
MP
BP
MP
N
Z
P
MP
MP
MP
BP
BP
Z
P
MP
BP
BP
BP
BP
taking into account the number of membership function associated to each input or output and the number of inputs and
outputs of the controller, which will result in an excessively large
total number of points. The authors propose to represent the
type-2 membership function using only four parameters denoted
as a, b, c, and as shown in Fig. 5b, where represents the FOU.
Eq. (12) denes the relationship between a1, a2, b1, b2, c1, c2 and
a, b, c, .
P 1 P j P 2 P j 8 fP; P 1 ; P 2 g fa; a1 ; a2 ; b; b1 ; b2 ; c; c1 ; c2 g
12
Only two parameters are considered in the optimization
process for each membership function, which are the apex of the
membership function and the FOU, denoted as b and respectively. The bases of the membership function, denoted as a and c
are xed and distributed equally over the unity universe of
discourse to ensure robustness of the optimal controller over a
wider range of operating conditions and reduce the number of
parameters considered in this optimization problem. The apex of
the middle membership function (denoted as Z in Table 1) is
excluded from the optimization problem and is xed to zero to
minimize any steady state error. Two inequality constraints were
enforced during the optimization process as shown in Eq. (13)
Fig. 4. Seven type-2 triangular membership functions.
1 o a o bo c o 1
of integral function in PD's control nature. All inputs and output
are associated with seven triangular-shaped membership functions over a unity universe of discourse of interval [ 1, 1].
Mamdani method also known as MaxMin method was used.
The rule-base is based on the MacVicar-Whelan rule-base [34] as
listed in Table 1, where, BN is Big Negative, MN is Medium
Negative, N is Negative, Z is Zero, P is Positive, MP is Medium
Positive, and BP is Big Positive. The symmetry of the rule-base is to
ensure stability and robustness of the controller after the optimization process.
The proposed design procedure incorporates two stages. The
rst stage is optimizing the gains associated with the inputs (k1
and k2) and output (k3) of the controller. During this stage the
membership functions are xed and distributed equally over the
unity universe of discourse with an overlap of 50% between
adjacent membership functions as shown in Fig. 4, which is the
most natural and unbiased choice [7]. This optimization problem is
solved using linearly decreasing inertia weight PSO due to the
relative large area of the search space and its rough surface, where
PSO was reported to have excelled in the presence of such
conditions [27,35].
The second stage of the design process is the optimization of
the membership functions. Consider a type-2 membership function shown in Fig. 5a, where it can be dened using six points,
denoted as a1, a2, b1, b2, c1, and c2. Considering all six points in the
optimization problem of each membership function is very computationally expensive and may not result in an optimum solution
13
0 o o 0:2
Oi IAE jekj;
14
8 i 1; 2
15
k1
1587
Table 2
Specications of the Hitec Hs-311 servomotor.
Motor type
Bearing type
Speed (4.8 V/6.0 V)
Torque, kg/cm (4.8 V/6.0 V)
3 Pole
None
0.19/0.15 s (601)
3.0/3.7
Table 3
Optimal gains of the OT2FLC, OT1FLC and PI
controller.
Controller
Optimal gains
OT2FLC
OT1FLC
PI
u s s2 11:77s 44:38
16
1588
1589
Table 4
Performance of OT2FLC with various type-2 defuzzication methods.
Defuzzication method
Centroid
Center of sums
Height
Center of sets
DC servomotor was controlled using an Arduino Uno R3 microcontroller board, which is based on the ATmega328 chip. The
microcontroller was used to interface the servomotor with Matlab/
Simulink environment. Fig. 9 illustrates the block diagram of the
entire system, while; Fig. 10 depicts the complete Simulink block
diagram of the system. A photograph of the hardware setup is
shown in Fig. 11. The sampling rate was set to 0.1 s.
IAE
Run 1
Run 2
Run 3
410.3
406.8
453.1
442.6
399.2
421.9
442.0
447.4
419.9
452.1
437.9
458.4
0.00703
0.00683
0.00553
0.00829
the IAE and the execution time. The execution time is the average
total time taken by the controller to compute the output at a single
point. The computer used in this work has an Intel i3 M380,
2.53 GHz processor and 3 GB of RAM. Table 4 depicts the IAE for
three runs, as well as the execution time for each defuzzication
method. The performance of the best run of each method is
plotted in Fig. 12.
It is conspicuous from the results obtained in Table 4 and Fig. 12
that the Centroid method yields the least error and the best
results. It has a fast response and relatively lower sensitivity to
noise compared to the other methods. However, the Height
method has the fastest execution time, which can be very useful
in high-speed applications that require small sampling time.
Subsequently, the performance of the OT1FLC, as well as the
performance of the PI controller to control the servomotor under
the same system conditions were recorded. Both the OT2FLC and
the OT1FLC use the Centroid defuzzication method. Table 5
depicts the IAE for three runs, as well as the execution time for
each controller. The performance of the best run of each controller
is plotted in Fig. 13.
1590
Table 6
Performance of OT2FLC, OT1FLC and PI controller with a heavy free hanging load.
Defuzzication method
OT2FLC
OT1FLC
PI
IAE
Run 1
Run 2
Run 3
455.4
516.9
594.7
462.6
497.9
575.1
461.8
524.9
577.2
Table 5
Performance of OT2FLC, OT1FLC and PI controller.
Defuzzication method
OT2FLC
OT1FLC
PI
IAE
Run 1
Run 2
Run 3
410.3
515.9
512.6
399.2
536
573.1
419.9
499.7
552.6
0.00703
0.00293
0.00029
Fig. 14. Performance of OT2FLC, OT1FLC and PI controller with a heavy free
hanging load.
Ultimately, the robotic arm was much more robust and had a
smoother and more natural movement when the OT2FLC was
employed. The controller was able to suppress chattering movements, which are caused by noise. The performance improvements
that the OT2FLC offers, comes at the expense of a slower execution
time. With the current hardware advancements and intelligent
programming techniques, this issue should not be problematic.
The slow execution time did not cause any issues when running
the system in real-time at a sampling rate of 0.1 s. Furthermore, in
high speed applications where a much smaller sampling rate is
needed, selecting a faster defuzzication method or even decreasing the number of membership functions, which would decrease
the number of rules in the rule-base signicantly, will improve the
execution time.
5. Conclusion
Fig. 13. Performance of OT2FLC, OT1FLC and PI controller.
Acknowledgment
The authors would like to express their gratitude to Universiti
Teknologi PETRONAS (UTP) for supporting this work. The authors
would also like to extend their appreciation to Professor Oscar
Castillo for his authorization to use Interval Type-2 Fuzzy Logic
Control Toolbox.
References
[1] Juang J-G, Liu W-K, Lin R-W. A hybrid intelligent controller for a twin rotor
MIMO system and its hardware implementation. ISA Trans 2011;50:60919.
[2] Khongkoom N, Kanchanathep A, Nopnakeepong S, Tanuthong S, Tunyasrirut S,
Kagwa R. Control of the position DC servo motor by fuzzy logic. TENCON
2000;3:3547.
[3] Zadeh LA. The concept of a linguistic variable and its application to approximate reasoning-I. Inf Sci 1975;8:199249.
[4] Zadeh LA. The concept of a linguistic variable and its application to approximate reasoning-II. Inf Sci 1975;8:30157.
[5] Mendel JM. Computing with words: Zadeh, Turing, Popper and Occam. IEEE
Comput Intell 2007;2:107.
[6] Liang Q, Mendel JM. Interval type-2 fuzzy logic systems: theory and design.
IEEE Trans Fuzzy Syst 2000;9:53550.
[7] Tushir M, Srivastava S. Type-2 fuzzy logic controller implementation for
tracking control of DC motor. Inl J Comput Netw Secur (IJCNS) 2008;3:3441.
[8] Kayacan E, Kaynak O, Abiyev R, Trresen J, Hvin M, Glette K. Design of an
adaptive interval type-2 fuzzy logic controller for the position control of a
servo motor with an intelligent sensor. In: Proceedings of IEEE world congress
on computational intelligence, FUZZ-IEEE, Barcelona, Spain; 2010.
[9] Fayek HM, Elamvazuthi I. Type-2 fuzzy logic PI (T2FLPI) based DC servomotor
control. J Appl Sci Res 2012;8:256474.
[10] Castillo O, Aguilar L, Cazarez N, Cardenas S. Systematic design of a stable type2 fuzzy logic controller. Appl Soft Comput 2008;8:12749.
[11] Margaliot M, Langholz G. New approaches to fuzzy modeling and control:
design and analysis. Singapore: World Scientic; 2000.
[12] Wu D, Tan WW. A simplied type-2 fuzzy logic controller for real-time
control. ISA Trans 2006;45:50316.
[13] Cazarez-Castro NR, Aguilar LT, Castillo O. Hybrid genetic-fuzzy optimization of
a type-2 fuzzy logic controller. In: Proceedings of the hybrid intelligent
systems, HIS '08; 2008. p. 21621.
[14] Maldonado Y, Castillo O, Melin P. Particle swarm optimization of interval type2 fuzzy systems for FPGA applications. Appl Soft Comput 2013;13:496508.
[15] Hagras HA. A hierarchical type-2 fuzzy logic control architecture for autonomous mobile robots. IEEE Trans Fuzzy Syst 2004;12:52439.
[16] Fayek HM, Elamvazuthi I. Real-time implementation of a type-2 fuzzy logic
controller to control a DC servomotor with different defuzzication methods.
In: Proceedings of the international conference on methods and models in
automation and robotics (MMAR); 2013. p. 8691.
[17] Zadeh LA. Fuzzy logic. Computer 1988;1:8393.
[18] Karnik NN, Mendel JM. Introduction to type-2 fuzzy logic systems, Fuzzy
systems proceedings, In: 1998 IEEE International Conference on computational intelligence. vol. 2, No. 49, May 1998, p. 915,920.
1591
[19] Cazarez-Castro NR, Aguilar LT, Castillo O. Designing type-1 and type-2 fuzzy
logic controllers via fuzzy lyapunov synthesis for nonsmooth mechanical
systems. Eng Appl Artif Intell 2012;25:9719.
[20] Mendel JM, John R. Type-2 fuzzy sets made simple. IEEE Trans Fuzzy Syst
2002;10:11727.
[21] Robandi I, Kharisma B. Design of interval type-2 fuzzy logic based power
system stabilizer. Int J Electr Electron Eng 2009;3:593600.
[22] Birkin PAS, Garibaldi JM. A comparison of type-1 and type-2 fuzzy controllers
in a micro-robot context. In: Proceedings of the IEEE international conference
on fuzzy systems; 2009. p. 185762.
[23] Siahkali H, Vakilian M. Interval type-2 fuzzy modeling of wind power
generation in Genco's generation scheduling. Electric Power Syst Res
2011;81:1696708.
[24] Castillo O, Melin P, Castro JR. Computational intelligence software for interval
type-2 fuzzy logic. In: Proceedings of the 2008 workshop on building
computational intelligence and machine learning virtual organizations;
2008 p. 913.
[25] Mendel JM. Uncertain rule-based fuzzy logic systems, introduction and new
directions. Upper Saddle River, NJ: Prentice Hall; 2001; 26572.
[26] Karnik NN, Mendel JM, Liang Q. Type-2 fuzzy logic system. IEEE Trans Fuzzy
Syst 1999;7:64358.
[27] Engelbrecht AP. Fundamentals of computational swarm intelligence. England:
John Wiley; 2005.
[28] Das TK, Venayagamoorthy GK. Optimal design of power system stabilizer
using a small population based PSO. IEEE PES General Meeting; 2006.
[29] Zhang L, Yu H, Hu S. A new approach to improve particle swarm optimization.
In: Proceedings of the international conference on genetic and evolutionary
computation. Chicago, IL, USA, July 1216, 2003. p. 1349.
[30] Holland J. Adaptation in natural and articial systems: an introductory
analysis with applications to biology, control, and articial intelligence. MIT
Press; 1992.
[31] Herreros A, Baeyens E, Pern JR. Design of PID-type controllers using multiobjective genetic algorithms. ISA Trans 2002;41:45772.
[32] Goldberg DE. Genetic algorithms in search, optimization and machine learning. Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc.; 1989.
[33] Haupt RL, Haupt SE. Practical genetic algorithms. New York, USA: John Wiley &
Sons, Inc.; 1998.
[34] Macvicar-Whelan PJ. Fuzzy sets for manmachine interaction. Int J ManMach
Stud 1976;8:68797.
[35] Castillo O, Melin P. A review on the design and optimization of interval type-2
fuzzy controllers. Appl Soft Comput 2012;12:126778.
[36] HS-311 Hitec RCD, Available: http://www.hitecrcd.com/products/servos/ana
log/standard-sport/hs-311.html [1.12.12].
[37] Wada T, Ishikawa M, Ryohei, R Maruta, I, Sugie T. Practical modeling and
system identication of R/C servo motors. In: Proceedings of the 18th IEEE
conference on control applications; 2009. p. 137883.
[38] Castro JR, Castillo O, Melin P. An interval type-2 fuzzy logic toolbox for control
applications. In: Proceedings of the conference on fuzzy systems, IEEE-FUZZ;
2007. p. 16.
[39] Castro JR, Castillo O, Melin P, Rodriguez-Diaz A. Building fuzzy inference
systems with a new interval type-2 fuzzy logic. Trans Comput Sci I
2008:10414.