Soft Computing Notes PDF
Soft Computing Notes PDF
Syllabus
Introduction to Soft Computing, Artificial Neural Networks, Fuzzy Logic and Fuzzy systems,
Genetic Algorithms, hybrid systems.
Expected Outcome
Student is able to
1 Learn about soft computing techniques and their applications.
. Analyze various neural network architectures.
2 Define the fuzzy systems.
. Understand the genetic algorithm concepts and their applications.
3 Identify and select a suitable Soft Computing technology to solve the problem; construct a
. Solution and implement a Soft Computing solution.
4
Text Books
.
[Link] and [Link], Principles of soft computing-Wiley India.
51
Timothy J. Ross, Fuzzy Logic with engineering applications-Wiley India.
..
2
References
.
1. N. K. Sinha and M. M. Gupta, Soft Computing & Intelligent Systems: Theory &
Applications-Academic Press /Elsevier. 2009.
2. Simon Haykin, Neural Network- A Comprehensive Foundation- Prentice Hall International,
Inc.
3. R. Eberhart and Y. Shi, Computational Intelligence: Concepts to Implementation, Morgan
Kaufman/Elsevier, 2007.
4 Ross T.J. , Fuzzy Logic with Engineering Applications- McGraw Hill.
. Driankov D., Hellendoorn H. and Reinfrank M., An Introduction to Fuzzy Control- Narosa
5 Pub.
.6 Bart Kosko, Neural Network and Fuzzy Systems- Prentice Hall, Inc., Englewood Cliffs
. Goldberg D.E., Genetic Algorithms in Search, Optimization, and Machine Learning
7 AddisonWesley.
.
Course Plan
[Link]
Module Contents Hours
Marks%
Introduction to Soft Computing
Artificial neural networks - biological neurons, Basic models
I of artificial neural networks – Connections, Learning, 08 15%
network.
methods.
SECOND INTERNAL EXAM
Truth values and Tables in Fuzzy Logic, Fuzzy propositions,
characteristics – classification.
Module – 3
• Fuzzy logic
• Fuzzy sets
o Properties
o Operations on fuzzy sets
• Fuzzy relations
o Operations on fuzzy relations
Figure 3.1: A fuzzy logic system accepting imprecise data and providing a decision
In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. This new logic for
representing and manipulating fuzzy terms was called fuzzy logic, and Zadeh
became the Master/Father of fuzzy logic.
Fuzzy logic is the logic underlying approximate, rather than exact, modes of reasoning. It
operates on the concept of membership. The membership was extended to possess various
"degrees of membership" on the real continuous interval [0, l].
In fuzzy systems, values are indicated by a number (called a truth value) ranging from 0 to
where 0.0 represents absolute falseness and 1.0 represents absolute truth.
A classical set is a collection of objects with certain characteristics. For example, the
user may define a classical set of negative integers, a set of persons with height less
than 6 feet, and a set of students with passing grades. Each individual entity in a set is
called a member or an element of the set.
There are several ways for defining a set. A set may be defined using one of the following:
xi+1
A={xi= 5 ,i=1 to 10, where xi=1}
4. The set may be defined onthebasisofthe resultsof a logical operation.
Example A = {x|x is an element belonging to P AND Q} There exists a membership
5. function, which may also be used to define a set. The membership is denoted by
the letter 𝜒 and the membership function for a set A is given by (for all values of x).
1, 𝑖𝑓 𝑥∈𝐴
𝜒𝐴(𝑥) = {
0, 𝑖𝑓 𝑥∉𝐴
The set with no elements is defined as an empty set or nullset. It is denoted by symbol Ø.
The set which consist of all possible subsetofa given setAis called power set
2.14.1 Properties
1. Commutativity
𝐴∪𝐵=𝐵∪𝐴; 𝐴∩𝐵=𝐵∩𝐴
2. Associativity
𝐴∪(𝐵∪𝐶)=(𝐴∪𝐵)∪𝐶; 𝐴∩(𝐵∩𝐶)=(𝐴∩𝐵)∩𝐶
3. Distributivity
𝐴∪(𝐵∩𝐶)=(𝐴∪𝐵)∩(𝐴∪𝐶)
𝐴∩(𝐵∪𝐶)=(𝐴∩𝐵)∪(𝐴∩𝐶)
4. Idempotency
𝐴∪𝐴=𝐴; 𝐴∩𝐴=𝐴
5. Transitivity
𝐴∪∅=𝐴, 𝐴∩∅=∅
𝐴∪𝑋=𝑋, 𝐴∩𝑋=𝐴
7. Involution (double negation)
?̿?̿=𝐴
8. Law of excluded middle
𝐴∪?̅?̅=𝑋
9. Law of contradiction
𝐴∩?̅?̅=∅
10. DeMorgans law
|𝐴̅̅̅̅̅∩̅̅̅𝐵̅̅|=?̅?̅∪?̅?̅; |𝐴̅̅̅̅̅∪̅̅̅𝐵̅̅|=?̅?̅∩?̅?̅;
1. Union
The union between two sets gives all those elements in the universe that belong
to either set A or set B or both sets A and B. The union operation can be termed
as a logical OR operation. The union of two sets A and B is given as
𝐴∪𝐵={𝑥|𝑥 ∈𝐴 𝑜𝑟 𝑥∈𝑏}
2. Intersection
The intersection between two sets represents all those elements in the universe
that simultaneously belong to both the sets. The intersection operation can be
termed as a logical AND operation. The intersection of sets A and B is given by
3. Complement
?̅?̅={𝑥|𝑥 ∉𝐴,𝑥∈𝑋}
where X is the universal set and A is a given set formed from universe X. The
complement operation of set A is show below
4. Difference (Subtraction)
The difference of set A with respect to ser B is the collection of all elements
in the universe that belong to A but do not belong to B , i . e ., the difference
set consists of all elements that belong to A bur do not belong to B . It is
denoted by A l B or A - B and is given by
(A) (B)
Figure 3.6: (A) DifferenceA|Bor(A-B);(B) Difference B|A or (B-A)
1, 𝑥∈
𝜒𝐴(𝑥) = { 𝐴
0, 𝑥∉
𝐴
where 𝜒𝐴 is the membership in set A for element x in the universe. The membership
concept represents mapping from an element x in universe X to one of the two
elements in universe
Y (either to element 0 or 1).
Let A and B be two sets in universe X. The function-theoretic forms of operations perform
between these two sets are given as follows:
1. Union
2. Intersection
3. Complement
𝜒?̅?̅(𝑥)=1−𝜒𝐴(𝑥)
where µ(𝑥) is the degree of membership of x in 𝐴 and it indicates the degree that x belongs to
𝐴
~ ~
𝐴 . In the fuzzy theory, fuzzy set A of universe X is defined by function µ(𝑥) called the
~ 𝐴
~
membership function of set A.
µ(𝑥): X
𝐴
→ [0, 1], where µ(𝑥) = 1
𝐴
if x is totally in A;
~ ~
µ(𝑥) = 0 if x is not in A;
𝐴
~
This set allows a continuum of possible choices. For any element x of universe X, membersh
function A(x) equals the degree to which x is an element of set A. This degree, a value
between 0 and 1, represents the degree of membership, also called membership value, of
element x in set A.
From figure 3.7 it can be noted that "a" is clearly a member of fuzzy set P, "c" is clearly
not a member of fuzzy set P and the membership of "b" is found to be vague. Hence "a"
can take membership value 1, "c" can take membership value 0 and "b" can take
membership value between 0 and 1 [0 to 1], say 0.4, 0.7, etc. This is said to be a
partial membership of fuzzy set P.
There are other ways of representation of fuzzy sets; all representations allow partial
membership to be expressed. When the universe of discourse U is discrete and finite, fu
set 𝐴 is given as follows:
~
𝑛
µ(𝑥)
𝐴 1 µ(𝑥)
𝐴 2 µ(𝑥)
𝐴 3 µ𝐴(𝑥𝑖)
𝐴={~ 1 +~ +~ +⋯}= {∑~ }
~ 𝑥 𝑥2 𝑥3 𝑥𝑖
𝑖=1
2.15.1 Properties
Fuzzy sets follow the same properties as crisp sets except for the law of excluded middle
and law of contradiction.
𝐴∪𝐴=𝑈; 𝐴∩𝐴=∅
~ ~ ~ ~
1. Commutativity
𝐴∪𝐵=𝐵∪𝐴; 𝐴∩𝐵=𝐵∩𝐴
~ ~ ~ ~ ~ ~ ~ ~
2. Associativity
𝐴∪(𝐵∪𝐶)=(𝐴∪𝐵)∪𝐶
~ ~ ~ ~ ~ ~
𝐴∩(𝐵∩𝐶)=(𝐴∩𝐵)∩𝐶
~ ~ ~ ~ ~ ~
3. Distributivity
𝐴∪(𝐵∩𝐶)=(𝐴∪𝐵)∩(𝐴∪𝐶)
~ ~ ~ ~ ~ ~ ~
𝐴∩(𝐵∪𝐶)=(𝐴∩𝐵)∪(𝐴∩𝐶)
~ ~ ~ ~ ~ ~ ~
4. Idempotency
𝐴∪𝐴=𝐴; 𝐴∩𝐴=𝐴
~ ~ ~ ~ ~ ~
5. Transitivity
𝐼𝑓 𝐴⊆𝐵⊆𝐶,𝑡ℎ𝑒𝑛 𝐴⊆𝐶
~ ~ ~ ~ ~
6. Identity
𝐴=𝐴
~ ~
8. DeMorgans law
|𝐴∩̅̅̅𝐵|=𝐴∪𝐵; |𝐴∪̅̅̅𝐵|=𝐴∩𝐵;
~ ~ ~ ~ ~ ~ ~ ~
1. Union
𝐴 and 𝐵, denoted by 𝐴
The union of fuzzy sets
~ ~ ~
∪𝐵is defined as
~
where∨ indicates max operator. The Venn diagram for union operation of fuzzy set
𝐴and𝐵 is shown below figure.
~ ~
𝐴 and 𝐵, denoted by 𝐴
The union of fuzzy sets
~ ~ ~
∩𝐵, is defined as
~
where∧ indicates min operator. The Venn diagram for intersection operation of fuzzy
sets 𝐴and 𝐵is shown below figure.
~ ~
𝐴and 𝐵
Figure 3.9: Intersection of fuzzy sets
~
~
3. Complement
𝐴 is
The Venn diagram for complement operation of fuzzy shown below figure.
set
~
The algebraic sum (𝐴+𝐵 ) of fuzzy sets, fuzzy sets 𝐴𝑎𝑛𝑑 𝐵isdefined as
~ ~ ~ ~
𝜇𝐴+𝐵(𝑥)=µ𝐴(𝑥)+µ𝐵(𝑥)− µ𝐴(𝑥).µ𝐵(𝑥)
~ ~ ~ ~ ~ ~
b. Algebraic product
𝜇𝐴⊕𝐵(𝑥)=min {1,µ𝐴(𝑥)+µ𝐵(𝑥)}
~ ~ ~ ~
d. Bounded difference
𝜇𝐴⊙𝐵(𝑥)=max {0,µ𝐴(𝑥)−µ𝐵(𝑥)}
~ ~ ~ ~
𝑋×𝑌={(𝑥,𝑦)| 𝑥∈𝑋,𝑦∈𝑌}
Here the Cartesian product forms an ordered pair of every𝑥 ∈𝑋 with every 𝑦∈𝑌.
Every element in X is completely related to every element inY. The characteristic
function, denoted by χ, gives the strength of the relationship betweenordered
pair of elements in each universe. If it takes unity as its value, then complete
relationship is found; if the value is zero, then there is no relationship, i.e.,
1, (𝑥,𝑦)∈𝑋×𝑌
𝜒𝑋×𝑌 (𝑥,𝑦) = { (𝑥,𝑦)∉𝑋×𝑌
0,
When the universes or sets are finite, then the relation is represented by a
matrix called relation matrix. An r-dimensional relation matrix represents an
r-ary relation. Thus, binary relations are represented by two-dimensional
matrices.
Consider the elements defined in the universes X and Y as follows:
X={2,4,6} Y= {p,q,r}
X × Y= {(p, 2), (p, 4), (p, 6), (q, 2), (q, 4), (q, 6), (r, 2), (r, 4), (r, 6)}
R P Q R
2 1 0 0
4 0 1 1
6 0 0 1
The relation between sets X and Y may also be expressed by mapping representations
shown in below figure.
A binary relation in which each element from set Xisnot mapped to more than one elemen
in second set Y is called a function and is expressedas
𝑅:𝑋→𝑌
1, (𝑥, 𝑦) ∈ 𝑅
𝜒𝑅(𝑥, 𝑦) = {
0, (𝑥, 𝑦) ∉ 𝑅
(A) (B)
Then universal relation (UA) and identity relation (IA) are given as follows:
UA = {(2,2),(2,4),(2,6),(4,2),(4,4),(4,6),(2,6),(4,6),(6,6)}
IA = {(2,2),(4,4),(6,6)}
𝑛𝑃(𝑋 ×𝑌 ) = 2 (𝑛 𝑋 𝑛 𝑌 )
Let R and S be two separate relations on the Cartesian universe X ×Y. The null
relation and the complete relation are defined by the relation matrices ØR and ER.
An example of a 3 X 3 form of the ØR and ER matrices is given below:
0 0 0 1 1 1
and
∅𝑅 = [0 0 0] 𝐸𝑅 = [1 1 1]
0 0 0 1 1 1
1. Union
R∩S→χR∩S(x,y):χR∩S(x,y)=min[χR(x,y),χS(x,y)]
3. Complement
R̅̅ →χR̅ ̅(x,y)∶ χR̅ ̅(x,y)=1−χR̅ ̅(x,y)
4. Containment
R⊂S→χR(x,y):χR(x,y)≤χS(x,y)
5. Identity
Let R be a relation that maps elements from universe X to universe an e a relation that ma
elements from universe Y to universe Z
1. Max-min composition
The max-min composition is defined by the function theoretic expression as
𝑇=𝑅∘𝑆
𝜒𝑇(𝑥,𝑧)= ⋁𝑦∈𝑌[χR(x,y) ∧ χS(y,z)]
2. Max-product composition
The max-product composition is defined by the function theoretic expression as
𝑇=𝑅∘𝑆
𝜒𝑇(𝑥,𝑧)= ⋁𝑦∈𝑌[χR(x,y) . χS(y,z)]
A fuzzy relation is a fuzzy set defined on the Cartesian product of classical sets {XI, X2,
... Xn} where tuples (x1, x2, xn) may have varying degrees of membership µR (x1,x2,
.. , xn) within the
relation.
𝑅(𝑋1,𝑋2,…,𝑋𝑛) = ∫ µ(𝑥1 𝑅 ,𝑥2,… , 𝑥𝑛)|(𝑥1,𝑥2,… , 𝑥𝑛), 𝑥𝑖 ∈ 𝑋𝑖
𝑋1 ,𝑋2 ,…,𝑋𝑛
A fuzzy relation between two sets X and Y is called binary fuzzy relation and is
denoted by R(X,Y). A binary relation R(X,Y) is referred to as bipartite graph when
X ≠Y. The binary relation on a single set X is called directed graph or digraph. This
relation occurs when X=Y and is denoted as R(X,X) or R(X2).
Let
𝑋
~
= {𝑥1 ,𝑥2,…,𝑥𝑛} 𝑎𝑛𝑑 𝑌
~
= {𝑦1 ,𝑦2,…,𝑦𝑛}
1. Union
2. Intersection
3. Complement
µ𝑅̅(x,y)=1− µ𝑅(x,y)
~ ~
4. Containment
𝑅⊂𝑆→µ𝑅(x,y)≤µ𝑆(x,y)
~ ~ ~ ~
5. Inverse
The inverse of a fuzzy relation R on X × Y is denoted by R-1. It is a relation on Y
× X
defined by 𝑅−1(𝑦,𝑥)=𝑅(𝑥,𝑦) for all pairs(𝑦,𝑥) ∈𝑌×𝑋.
6. Projection
For a fuzzy relation R(X,Y), let [𝑅 ↓𝑌] denote the projection of R onto Y[𝑅↓𝑌]
. Then
(𝑥,𝑦)=𝑚𝑎𝑥𝜇𝑅(𝑥,𝑦)
𝜇[𝑅↓𝑌] 𝑥 ~
• Fuzzy Composition
Let 𝐴 be a fuzzy set on universe X and 𝐵 be a fuzzy set on universe Y. The Cartesian
~ ~
product over 𝐴 and 𝐵 results in fuzzy relation 𝑅 and is contained within the entire
~ ~ ~
(complete) Cartesian space, i.e.,
𝐴×𝐵 = 𝑅
~ ~ ~
where
𝑅⊂𝑋×𝑌
~
There also exists fuzzy min-max composition method, but the most
commonly used technique is fuzzy max-min composition. Let 𝑅 be fuzzy
~
relation
space 𝑋×𝑌on Cartesian
, and 𝑆 be fuzzy relation on Cartesian space𝑌×𝑍.
~
µ𝑇(x,z)= µ𝑅°𝑆(x,z)=max{min[µ𝑅(x,y),µ𝑆(y,z)]}
~ ~~ y∈Y ~ ~
µ𝑇(x,z)= µ𝑅°𝑆(x,z)=min{max[µ𝑅(x,y),µ𝑆(y,z)]}
~ ~~ y∈Y ~ ~
µ𝑇(x,z)= µ𝑅 ~. ~𝑆(x,z)=min[µR(x,y).µ𝑆(y,z)]
~ y∈Y ~ ~
= ⋁𝑦∈𝑌[µ𝑅(x,y).µ𝑆(y,z)]
~ ~
𝑅 ° 𝑆≠ 𝑆 ° 𝑅
~ ~ ~ ~
−1
(𝑅 ° 𝑆) = 𝑆−1 ° 𝑅−1
~ ~ ~ ~
(𝑅 ° 𝑆)° 𝑀=𝑅° (𝑆 ° 𝑀)
~ ~ ~ ~ ~ ~
9. Fails safely.
10. Modified and tweaked easily.
8. Automobile and other vehicle subsystems, such as automatic transmissions, ABS and crui
control (e.g. Tokyo monorail).
9. Air conditioners. 10. Auto focus on cameras. 11. Digital image processing, such
as edge detection. 12. Rice cookers. 13. Dishwashers. 14. Elevators. 15. Washing
machines and other home appliances. 16. Video game artificial intelligence. 17.
Language filters on message boards and chat rooms for filtering out offensive
text. 18. Pattern recognition in Remote Sensing. 19. Fuzzy logic has also been
incorporated into some microcontrollers and microprocessors. 20. Bus Time
Tables. 21. Predicting genetic traits. (Genetic traits are a fuzzy situation for more
than one reason). 22. Temperature control (heating/cooling). 23. Medical
diagnoses. 24. Predicting travel time. 25. Antilock Braking System.
Membership function defines the fuzziness in a fuzzy set irrespective of the elements
in the set, which are discrete or continuous. A fuzzy set 𝐴 in the universe of discourse X
~
can
as a be
setdefined
of ordered pairs:
𝐴= {(𝑥,µ𝐴(𝑥)) | 𝑥 ∈𝑋}
~ ~
the range of the membership function is a subset of the non-negative real numbers whose
supremum is finite.
The three main basic features involved in characterizing membership function are the follow
1. Core
The core of a membership function for some fuzzy set 𝐴 is defined as that region of
~
universe that is characterized by complete membership in the set 𝐴 . The core has elemen
~
of the universe such that
µ𝐴(𝑥)=1
~
2. Support
The support of a membership function for a fuzzy set 𝐴 is defined as that region of
~
universe that is characterized by a non zero membership in the set 𝐴 .
~
µ𝐴(𝑥)>0
~
0<𝜇𝐴(𝑥)<1
The boundary elements are those which possess partial membership in the𝐴fuzzy
. set
~
A fuzzy set whose membership function has at least one element x in the universe
whose membership value is unity is called normal fuzzy set. The element for which the
membership is equal to 1 is called prototypical element. A fuzzy set where no
membership function has its value equal to 1 is called subnormal fuzzy set.
Figure 4.2: (A) Normal fuzzy set and (B) subnormal fuzzy set
A convex fuzzy set has a membership function whose membership values are strictly
monotonically increasing or strictly monotonically decreasing or strictly monotonically
Department of CSE, ICET 69
increasing than strictly monotonically decreasing with increasing elements in the
universe. A fuzzy set possessing characteristics opposite to that of convex fuzzy set
is called non convex fuzzy set.
Figure 4.3: (A) Convex normal fuzzy set and (B) Nonconvex normal fuzzy set
The convex normal fuzzy set can be defined in the following way. For elements x1, x2 and x3
a fuzzy set 𝐴 , if the following relation between x1, x2 and x3 holds. i.e.,
~
µ𝐴(𝑥2)≥min[µ𝐴(𝑥1),µ𝐴(𝑥3)]
~ ~ ~
The element in the universe for which a particular fuzzy set 𝐴 has its value equal to 0.5 is
~
called crossover point of a membership function. The membership value of a crossover poin
a fuzzy set is equal to 0.5, ie., µ𝐴(𝑥)=0.5. There can be more than one crossover point in a
~
fuzzy set. The maximum value of the membership function in a fuzzy set 𝐴 is called as th
~
height of the fuzzy set. For a normal fuzzy set, the height is equal to 1, because the maximu
value of the membership function allowed is 1. Thus, if the height of a fuzzy set is less than
then the fuzzy set is called subnormal fuzzy set.
It is the process of transforming crisp set to a fuzzy set or a fuzzy set to a fuzzifier set. For a
𝐴
~
= 𝜇1𝑄(𝑥1) + 𝜇2𝑄(𝑥2) + ⋯ + 𝜇𝑛 𝑄(𝑥𝑛)
where the symbol ~ means fuzzified. This process of fuzzification iscalled support fuzzificatio
(s-fuzzification). There is another method of fuzzification calledgrade fuzzification (g-
fuzzification) where xi is kept constant and µi is expressed as a fuzzy set. Thus, using the
methods, fuzzification is carried out.
4.3.1 Intuition
4.3.2 Inference
𝑈={(𝑋,𝑌,𝑍)| 𝑋≥𝑌≥𝑍≥0;𝑋+𝑌+𝑍=180}
𝑇= other triangles
~
1 ○
µ(𝑅𝑋,𝑌,𝑍)=1−
~
90○|𝑋−90|
𝐼𝑅=𝐼∩𝑅
~ ~ ~
and it is given by
µ𝐼𝑅(𝑋,𝑌,𝑍)=𝑚𝑖𝑛[µ𝐼(𝑋,𝑌,𝑍),µ𝑅(𝑋,𝑌,𝑍)]
~ ~ ~
1
µ𝐸(𝑋,𝑌,𝑍)=1−
~ 180○|𝑋−𝑍|
𝑇, is the
The membership function of other triangles, denoted by complement of the logical
~
union of 𝐼,𝑅 𝑎𝑛𝑑 𝐸, i.e.
~ ~ ~
𝑇=𝐼∪𝑅∪𝐸
~ ~ ~ ~
𝑇=𝐼̅∩𝑅̅∩𝐸̅
~ ~ ~ ~
The formation of government is based on the polling concept; to identify a best stude
ranking may be performed; to buy a car, one can ask for several opinions and so on.
Consider a fuzzy set 𝐴 . The set 𝐴𝜆(0< 𝜆<1), called the lambda (𝜆 ) -cut (or alpha[𝛼] -cut)
~
set, is a crisp set of the fuzzy set and is defined as follows:
𝐴𝜆={(𝑥,𝜇𝐴(𝑥)≥𝜆)} 𝜆∈[0,1]
~
The set 𝐴𝜆 is called weak lambda-cut set if it consists of all theelements of a fuzzy set
whose membership function have values greater than or equal to thespecified
[Link]
called The setlambda
𝐴𝜆 is cutif it consistofall elements ofa fuzzy setwhose membership functions
have values strictlygreater thanaspecified value.A strong
𝜆 – cutsetis givenby
𝐴𝜆={(𝑥,𝜇𝐴(𝑥)>𝜆)} 𝜆∈[0,1]
~
The propertiesof
𝜆 cutareasfollows
Figure 4.7: (A) First part of fuzzy output, (B) second part of fuzzy output (C) union of parts (A)and (B)
This method is also known as height method and is limited to peak output functions. Th
method is given by the algebraic expression
𝜇𝑐(𝑥)≥𝜇𝑐(𝑥)
∗ 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑥∈𝑋
~ ~
This method is also known as center of mass, center of area or center of gravity method. I
the most commonly used defuzzification method. The defuzzified output x* is defined as
∫ 𝜇𝑐(𝑥). 𝑥𝑑𝑥
𝑥∗= ~
∫ 𝜇𝑐(𝑥)𝑑𝑥
~
This method is valid for symmetrical output membership functions only. Each members
is weighted by its maximum membership value. The output is given by,
where ∑ denotes algebraic sum and ?̅?̅𝑖 is the maximum of the i th membership
function. The method is illustrated in figure 4.10, where two fuzzzy sets are
considered. From the figure
the defuzzified output is given by
0.5𝑎 + 0.8𝑏
𝑥∗=
0.5 + 0.8
This method is also known as the middle of the maxima. This is closely related to
method, except that the locations of the maximum membership can be
nonunique. The output here is given by
∗
∑𝑛
𝑖=1?̅?̅𝑖
𝑥 =
𝑛
The method is illustrated in figure 4.11, where two fuzzzy sets are considered. From th
figure the defuzzified output is given by
𝑎+𝑏
𝑥∗= 2
This method employs sum of the individual fuzzy subsets instead of their union.
The calculations here are very fast, bur the main drawback is that intersecting areas
are added twice. The defuzzified value x* is given by
∫ 𝑥 ∑ 𝑛𝑖=1 𝜇𝑐(𝑥)𝑑𝑥
~
𝑥∗ =
∫ 𝑥𝑥 ∑ 𝑛 𝜇 𝑐(𝑥)𝑑𝑥
𝑖=1 ~
Figure 4.12 illustrates the center of sums method. In center of sums method, the
weights are the areas of the respective membership functions, whereas in the
weighted average method the weights are individual membership values.
This method is adopted when the output consist of atleast two convex fuzzy
subsets which are not overlapping. The output is biased towards a side of one
membership function. When the output of fuzzy set has atleast two convex
regions, then the center of gravity of the convex fuzzy sub region having the
largest area is to obtain the defuzzified value x*.
∫ 𝜇𝑐𝑖(𝑥). 𝑥𝑑𝑥
𝑥∗= ~
∫ 𝜇𝑐𝑖(𝑥)𝑑𝑥
~
where 𝑐𝑖 is the convex subregion that has the largest area making up𝑐𝑖 . Figure 4.13
~ ~
illustrates the center of largest area.
This method uses the overall output or union of all individual output fuzzy set 𝑐𝑖 for
~
determining the smallest value of the domain with maximized membership in 𝑐𝑗· The ste
~
used for obtaining x* are:
Module – 5
Fuzzy logic uses linguistic variables. The values of a linguistic variable are words or
sentences in a natural or artificial language. For example, height is a linguistic
variable if it takes values such as tall, medium, short and so on. Consider the
statement “John is tall” implies that the linguistic variable John takes the linguistic
value tall. The linguistic variable provides approximate characterization of a complex
problem. The name of the variable, the universe of discourse and a fuzzy subset of
universe of discourse characterize a fuzzy variable. The range of possible values of a
linguistic variable represents the universe of discourse of that variable. For example,
the universe of discourse of the linguistic variable speed might have the range
between 0 and 220 km/h and may include such fuzzy subsets as very slow, slow,
medium, fast, and very fast.
A linguistic variable is a variable of a higher order than a fuzzy variable and its values are
taken to be fuzzy variables. A linguistic variable is characterized by
A linguistic variable carries with it the concept of fuzzy set qualifiers, called hedges. Hedges
are terms that modify the shape of fuzzy sets. In the fuzzy set "very tall", the word "very" is a
linguistic hedge. A few popular linguistic hedges include: very, highly, slightly, moderatel
plus, minus, fairly, rather.
If it is not take the complement of membership value. For example not very short then ta
the complement of very short.
Truth tables define logic functions of two propositions. Let X and Y be two propositions
either of which can be true or false. The basic logic operations performed over the
propositions are the following:
On the basis of these operations on propositions, inference rules can be formulated. Few
inference rules are as follows:
[𝑋 ∧ (𝑋 =>𝑌)] => 𝑌
[?̅?̅∧(𝑋=>𝑌)]=>?̅?̅
[(𝑋 =>𝑌) ∧ (𝑌 =>𝑍)] => (𝑋 =>𝑍)
The above rules produce certain propositions that are always true irrespective of the tr
values of propositions X and Y. Such propositions are called tautologies.
The truth values of propositions in fuzzy logic are allowed to range over the unit interval [
1]. The truth value of the proposition '' Z is A," or simply the truth value of A, denoted by
1. Fuzzy predicates
In fuzzy logic thepredicates can be fuzzy, for example, tall, short, quick. Hence,
we have proposition like "Peter is tall." It is obvious that most of the predicates in
natural language are fuzzy rather than crisp.
2. Fuzzy-predicate modifiers
In fuzzy logic, there existsa wide range of predicate modifiers that act as
hedges, for example, very, fairly, moderately, rather, slightly. These
predicate modifiers are necessary for generating the values of a linguistic
variable. An example can be the proposition "Climate is moderately cool,"
where "moderately" is the fuzzy predicate modifier.
[Link] quantifiers: The fuzzy quantifiers such as most, several, many, frequently are use
in fuzzy logic. Employing these we can have proposition like "Many people are educated
A fuzzy quantifier can be interpreted as a fuzzy number or a fuzzy proposition.
4. Fuzzy qualifiers: There are four modes of qualification in fuzzy logic, which are as
follows:
It is expressed as "x is τ," in which τ is a fuzzy truth value. A fuzzy truth value claims
the degree of truth of a fuzzy proposition. Consider the example,
Here the qualified proposition is (Paul is Young) and the qualifying fuzzy truth value is
"NOT Very True."
The general way of representing human knowledge is by forming natural language express
given by
The above expression is referred to as the IF- THEN rule based form. There are three gene
forms that exist for any linguistic variable. They are: (a) assignment statements; (b) conditio
statements; (c) unconditional statements.
2. Conditional statements
The following are some examples.
IF y is very cool THEN stop.
IF A is high THEN B is low ELSE B is not low.
IF temperature is high THEN climate is hot.
The conditional statements use the "[Link]" rule-based form.
3. Unconditional statements
They can be ofthe form
Goto sum.
Stop.
Divide by a.
Turn the pressure low.
2. Multiple disjunctiveantecedents
𝐼𝐹 𝑥 𝑖𝑠 𝐴1 𝑂𝑅 𝑥 𝑖𝑠 𝐴2,…𝑂𝑅 𝑥 𝑖𝑠 𝐴 𝑛 𝑇𝐻𝐸𝑁 𝑦 𝑖𝑠 𝐵𝑚
~
~ ~ ~
This can be written as
𝐼𝐹 𝑥 𝑖𝑠 𝐴𝑛
~
𝑇𝐻𝐸𝑁 𝑦 𝑖𝑠 𝐵𝑚
~
𝜇 ~𝐴 𝑚 (𝑥) = 𝑚𝑎𝑥[𝜇 𝐴1
~
(𝑥),𝜇 ~𝐴 2 (𝑥),…,𝜇 ~𝐴 𝑛 (𝑥)]
which is based on fuzzy union operation.
𝐼𝐹 𝐴1 𝑇𝐻𝐸𝑁 𝐵1
~ ~
𝑂𝑅
𝐼𝐹 𝑁𝑂𝑇 𝐴1
~
𝑇𝐻𝐸𝑁 ~𝐵2
𝐼𝐹 𝐴1 (𝑇𝐻𝐸𝑁 𝐵1) 𝑈𝑁𝐿𝐸𝑆𝑆 𝐴2
~ ~ ~
can be decomposed as
𝐼𝐹 𝐴1 𝑇𝐻𝐸𝑁𝐵1
~ ~
𝑂𝑅
𝐼𝐹 𝐴2 𝑇𝐻𝐸𝑁𝑁𝑂𝑇𝐵 1
~ ~
𝐼𝐹 𝐴1 𝐴𝑁𝐷 𝐴2 𝑇𝐻𝐸𝑁 𝐵1
~ ~ ~
Thus, based on all the above mentioned methods compound rules can be decomposed
series of canonical simple rules.
Aggregation of rules is the process of obtaining the overall consequents from the
individual consequents provided by each rule. The following two methods are
used for aggregation of fuzzy rules:
𝑦=𝑦1 𝑜𝑟 𝑦2 𝑜𝑟 …𝑜𝑟 𝑦𝑛
or
𝑦=𝑦1 ∪ 𝑦2 ∪ …∪ 𝑦𝑛
Fuzzy rule based systems, fuzzy models, and fuzzy expert systems are generally
known as systems. The key unit of a fuzzy logic system is FIS. The primary work of
this system is decision making. FIS uses "IF ... THEN" rules along with connectors
"OR" or "AND" for making necessary decision rules. The input to FlS may be fuzzy or
crisp, but the output from FIS is always a fuzzy set.
Initially, in the fuzzification unit, the crisp input is convened into a fuzzy input. Various
fuzzification methods are employed for this. After this process, rule base is formed. Datab
and rule base are collectively called the knowledge base. Finally, defuzzification process is
carried out to produce crisp output. Mainly, the fuzzy rules are formed in the rule base a
suitable decisions are made in the decision-making unit.
Ebsahim Mamdani proposed this system in the year 1975 to control a steam
engine and boiler combination by synthesizing a set of fuzzy rules obtained
from people working on the system. In this case, the output membership
functions are expected to be fuzzy sets. After aggregation process, each
output variable is a fuzzy set, hence defuzzification is important at the output
stage. The steps include:
Step 1: Determine a set of fuzzy rules.
Step 2: Make the inputs fuzzy using input membership functions.
Step 3: Combine the inputs according to the fuzzy rules for establishing a rule strength.
Step 4: Determine the consequent of the rule by combining the rule strength and the out
membership function.
Step 5: Combine all the consequents to get an output distribution.
Step 6: Finally, a defuzzified output distribution is obtained.
The fuzzy rules are formed using "IF-THEN" statements and "AND/OR'' connectives. The
consequence of the rule can be obtained in two steps:
1. By computing the rule strength completely using the fuzzified inputs from the fuzzy
combination.
2. By clipping the output membership function at the rule strength
The outputs of all the fuzzy rules are combined to obtain one fuzzy output distribution. Fro
FIS, it is desired to get only one crisp output. This crisp output may be obtained from
defuzzification process. The common techniques of defuzzification used are center of m
and mean of maximum.
Sugeno fuzzy method was proposed by Takagi, Sugeno and Kang in the year 1985. Th
format of the fuzzy rule of a Sugeno fuzzy model is given by
where AB are fuzzy sets in the antecedents and z = f (x,y) is a crisp function.
The main difference between Mamdani and Sugeno methods lies in the output
membership functions. The Sugeno output membership functions are either
linear or constant. The difference also lies in the consequents of their fuzzy rules
as a result their aggregation and defuzzification procedures differ suitably. A
large number of fuzzy rules must be employed in Sugeno method for
approximating periodic or highly oscillatory functions. The configuration of
Sugeno fuzzy systems can be reduced and it becomes smaller than that of
Mamdani fuzzy systems if nontriangular or nontrapezoidal fuzzy input sets are
used. Sugeno controllers have more adjustable parameters in the rule
consequent and the number of parameters grows exponentially with the increase
of the number of input variables. There exist several mathematical results for
Sugeno fuzzy controllers than for Mamdani controllers. Formation of Mamdani
Department of CSE, ICET 93
FIS is easier than Sugeno FIS.
• The main advantage of Mamdani method are:
1. It has widespread acceptance.
2. It is well-suitable for human input.
3. It is intuitive.
• The advantages of Sugeno method include:
1. It is computationally efficient.
2. It is compact and works well with linear technique, optimization technique and
adaptive technique.
3. Itis best suited for analysis.
4. Ithas a guaranteed continuity of the output surface.
It is a learning mechanism that utilizes the training and learning algorithms from
neural networks to find parameters of a fuzzy system (i.e., fuzzy sets, fuzzy rules,
fuzzy numbers, and so on). The neuro-fuzzy is divided into two areas:
5.7.2 Characteristics
1. Cooperative NFSs.
In this type of system, both artificial neural network (ANN) and fuzzy system work
independently from each other. Four different kinds of cooperative fuzzy neural
networks are shown in figure 5.5.
The FNN in figure 5.5(A) learns fuzzy set from the given training data. This is done,
usually, by fining membership functions with a neural network; the fuzzy sets then
being determined offline. This is followed by their utilization m form the fuzzy
system by fuzzy rules that are given, and not learned. The NFS in figure 5.5 (B)
determines, by a neural network, the fuzzy rules from the training data. Here
again, the neural networks learn offline before the fuzzy system is initialized. The
rule learning happens usually by clustering on self-organizing feature maps. There
is also the possibility of applying fuzzy clustering methods to obtain rules.
For the neuro-fuzzy model shown in figure 5.5 (C), the parameters of membership
function are learnt online, while the fuzzy system is applied. This means that,
initially, fuzzy rules and membership functions must be defined beforehand.
Also, in order to improve and guide the learning step, the error has to be
measured. The model shown in figure 5.5 (D) determines the rule weights for all
fuzzy rules by a neural network. A rule is determined by its rule weight-
interpreted as the influence of a rule. They are then multiplied with the rule
output.
Membership functions expressing the linguistic terms of the inference rules should
be formulated for building a fuzzy controller. However, in fuzzy systems, no formal
approach exists to define these functions. Any shape, such as Gaussian or
triangular
Department or bell shaped or
of CSE, ICET 97
trapezoidal, can be considered as a membership function with an arbitrary set of
parameters. Thus for fuzzy systems, the optimization of these functions in terms
of generalizing the data is very important; this problem can be solved by using
neural networks. Using learning rules, the neural network must optimize the
parameters by fixing a distinct shape of the membership functions; for example,
triangular. But regardless of the shape of the membership functions, training data
should also be available.
The neuro fuzzy hybrid systems can also be modeled in another method. In this
case, the training data is grouped into several clusters and each cluster is
designed to represent a particular rule. These rules are defined by the crisp data
points and are not defined linguistically. The testing can be carried out by
presenting a random testing sample to the trained neural network.