SlideShare a Scribd company logo
1 of 65
Download to read offline
Handling Uncertainty with
Fuzzy Logic
1
Outline
• Uncertainty and imprecisions
• Introduction to Fuzzy Logic
• Fuzzy Sets
• Membership Functions
• Logical Operations
• Rules
• Fuzzy Inference Process
• Example
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Modeling Real World
18
Fuzzy Logic
• Fuzzy logic is superset of conventional (Boolean) logic that has been
extended to handle the concept of partial truth.
• Central notion of fuzzy systems is that truth values (in fuzzy logic) or
membership values (in fuzzy sets) are indicated by a value on the
range [0.0, 1.0], with 0.0 representing absolute Falseness and 1.0
representing absolute Truth.
• Deals with real world vagueness
19
Fuzzy Logic
• Fuzzy logic is all about the relative importance of precision: How
important is it to be exactly right when a rough answer will do?
`
• Vague world:
• Medical diagnosis is an excellent example of vagueness and uncertainty.
• Applications: Medical instrumentation, decision-support systems
20
Classical Sets
Law of the Excluded Middle:
• any element X, must be either in set A or in set not-A.
• It cannot be in both.
• And these two sets, set A and set not-A should contain the entire universe
between them.
21
Classical Sets
 X = universe of discourse = the set of all objects with the same characteristics.
 Let nx = cardinality = total number of elements in X.
 For crisp sets A and B in X, we define:
 x A  x belongs to A.
 x  A  x does not belong to A.
 For sets A and B on X:
 A  B  xA, xB.
 A  B  A is fully contained in B.
 A = B  A  B and B  A.
 The null set, , contains no elements.
22
Operations on Classical Sets
 Union:
 AB = {x | x  A or x  B}.
 Intersection:
 AB = {x | x  A and x  B}.
 Complement:
 Ac = {x | x  A, x  X}.
23
Fuzzy Sets
• Fuzzy sets, unlike classical sets, do not restrict themselves to
something lying wholly in either set A or in set not-A.
24
Fuzzy Sets
 Transition between membership and non-membership can be gradual.
 Fuzzy set contains elements which have varying degrees of
membership.
 Degree of membership measured by a function.
 Function maps elements to a real numbered value on the interval 0 to 1,
A[0,1].
 Elements in a fuzzy set can also be members of other fuzzy sets on the
same universe.
25
Fuzzy Sets
• Classical set theory
– An object is either in or not in the set
• Sets with smooth boundary
– Not completely in or out – somebody 6” is 80% tall
• Fuzzy set theory
– An object is in a set by matter of degree
– 1.0 => in the set
– 0.0 => not in the set
– 0.0 < object < 1.0 => partially in the set
• Provides a way to write symbolic rules with terms like “medium” but
evaluate them in a quantified way
26
Fuzzy logic represents partial truth
• In fuzzy logic, the truth of any statement becomes matter of degree
-- Q: Is Saturday a weekend day?
-- A: 1 (yes, or true)
– Q: Is Tuesday a weekend day?
– A: 0 (no, or false)
– Q: Is Friday a weekend day?
– A: 0.7 (for the most part yes, but not completely)
– Q: Is Sunday a weekend day?
– A: 0.9 (yes, but not quite as much as Saturday)
27
Membership Function
• A membership function (MF) is a curve that defines how each point in
the input space is mapped to a membership value (or degree of
membership) between 0 and 1.
28
Membership Function
29
Membership Functions
• The only condition a membership function must really satisfy is that it
must vary between 0 and 1.
• The function itself can be an arbitrary curve whose shape we can
define as a function that suits us from the point of view of simplicity,
convenience, speed, and efficiency.
• A classical set might be expressed as
A = {x | x > 6}
• If X is the universe of discourse and its elements are denoted by x,
then a fuzzy set A in X is defined as a set of ordered pairs.
A = {x, µA(x) | x ∈ X}
• µA(x) is called the membership function (or MF) of x in A.
• The membership function maps each element of X to a membership
value between 0 and 1.
30
Membership Functions
31
Membership Functions
32
Summary of Membership Functions
• Fuzzy sets describe vague concepts (e.g., fast runner, hot weather,
weekend days).
• A fuzzy set admits the possibility of partial membership in it. (e.g.,
Friday is sort of a weekend day, the weather is rather hot).
• The degree an object belongs to a fuzzy set is denoted by a
membership value between 0 and 1. (e.g., Friday is a weekend day to
the degree 0.8).
• A membership function associated with a given fuzzy set maps an
input value to its appropriate membership value.
33
Example Fuzzy Variable
• Each function tells us how
much we consider a
character in the set if it has
a particular aggressiveness
value
• Or, how much truth to
attribute to the statement:
“The character is nasty (or
meek, or neither)?”
Aggressiveness
Membership
(Degree of Truth)
1.0
0.0 10.5
Medium
NastyMeek
-1 -0.5
34
Fuzzy vs. probability
• both operate over the same range [0.0 to 1.0].
• In probability theory:
There is a 20% chance that Amber belongs to the set of old people,
there’s an 80% chance that she doesn’t belong to the set of old people.
• In fuzzy terminology:
Amber is definitely not old or some other term corresponding to the
value 0.2. But there are certainly no chances involved, no guess work
left for the system to classify Amber as young or old.
35
Fuzzy vs. probability
• Crisp Facts – distinct boundaries
• Fuzzy Facts – imprecise boundaries
• Probability - incomplete facts
• Example – Scout reporting an enemy
– “Two tanks at grid NV 123456“ (Crisp)
– “A few tanks at grid NV 123456” (Fuzzy)
– “There might be 2 tanks at grid NV 54 (Probabilistic)
36
Logical and Fuzzy Operators
• Logical operators
• Fuzzy Operators
37
Logical and Fuzzy Operators
38
The Basic Tipping Problem
• Given a number between 0 and 10 that represents the quality of service at
a restaurant (where 10 is excellent), and another number between 0 and 10
that represents the quality of the food at that restaurant (again, 10 is
excellent), what should the tip be?
• The three golden rules of tipping:
If the service is poor or the food is rancid, then tip is cheap.
If the service is good, then tip is average.
If the service is excellent or the food is delicious, then tip is generous.
• Assume that an average tip is 15%, a generous tip is 25%, and a cheap tip
is 5%.
39
Fuzzy Rules (If-Then Rules)
• Fuzzy sets and fuzzy operators are the subjects and verbs
of fuzzy logic.
• if-then rule statements are used to formulate the conditional
statements that comprise fuzzy logic.
• A single fuzzy if-then rule assumes the form
if x is A then y is B
where A and B are linguistic values defined by fuzzy sets on the ranges
(universes of discourse) X and Y, respectively.
The if-part of the rule "x is A" is called the antecedent or premise, while
the then-part of the rule "y is B" is called the consequent or conclusion.
40
Fuzzy Rules (If-Then Rules)
• Example: If service is good then tip is average
• the input to an if-then rule is the current value for the input variable (in this case,
service) and the output is an entire fuzzy set (in this case, average). This set will
be defuzzified, assigning one value to the output.
• Interpreting an if-then rule involves distinct parts:
• evaluating the antecedent (which involves fuzzifying the input and applying any
necessary fuzzy operators) and
• applying that result to the consequent (known as implication).
• In binary logic: p → q (p and q are either both true or both false.)
• In fuzzy logic: 0.5 p → 0.5 q (Partial antecedents provide partial implication.)
41
Fuzzy Rules (If-Then Rules)
• The consequent specifies a fuzzy set be assigned to the output.
• The implication function then modifies that fuzzy set to the degree specified by
the antecedent.
• The most common ways to modify the output fuzzy set are truncation using the
min function (where the fuzzy set is truncated) or scaling using the prod
function (where the output fuzzy set is squashed).
42
Fuzzy Rules (If-Then Rules)
43
Summary of If-Then Rules
Interpreting if-then rules is a three-part process.
• Fuzzify inputs:
• Resolve all fuzzy statements in the antecedent to a degree of membership between 0 and 1.
• If there is only one part to the antecedent, then this is the degree of support for the rule.
• Apply fuzzy operator to multiple part antecedents:
• If there are multiple parts to the antecedent, apply fuzzy logic operators and resolve the
antecedent to a single number between 0 and 1.
• This is the degree of support for the rule.
• Apply implication method:
• Use the degree of support for the entire rule to shape the output fuzzy set.
• The consequent of a fuzzy rule assigns an entire fuzzy set to the output.
• This fuzzy set is represented by a membership function that is chosen to indicate the
qualities of the consequent.
• If the antecedent is only partially true, (i.e., is assigned a value less than 1), then the output
fuzzy set is truncated according to the implication method.
44
Steps by Step Approach
• The above steps are summarized into three main stages
• Fuzzification
• Membership functions used to graphically describe a situation
• Evaluation of Rules
• Application of the fuzzy logic rules
• Diffuzification
• Obtaining the crisp results
45
Fuzzy Inference Process
• Fuzzy inference is the process of formulating the mapping from a given input
to an output using fuzzy logic.
• The mapping then provides a basis from which decisions can be made, or
patterns discerned.
• The process of fuzzy inference involves all of the pieces that are described in
Membership Functions, Logical Operations, and If-Then Rules.
• To implement a Fuzzy inference system, five steps must be followed:
1.Fuzzification using input membership functions
2.Apply Fuzzy Operand
3.Apply Implication method on each rule
4.Aggregate all Outputs
5.Defuzzification of output set 46
Fuzzy Inference System
47
Example: Tipping
48
Step 1. Fuzzify Inputs
• The first step is to take the inputs and determine the degree to which
they belong to each of the appropriate fuzzy sets via membership
functions.
• Fuzzification of the input amounts to either a table lookup or a
function evaluation.
• each input is fuzzified over all the qualifying membership functions
required by the rules.
𝑓 𝑥 =
𝑥 − 5.5
5
, 5.5 ≤ 𝑥 ≤ 9
1, 𝑥 > 0
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
49
Step 2. Apply Fuzzy Operator
• If the antecedent of a given rule has more than one part, the fuzzy
operator is applied to obtain one number that represents the result of
the antecedent for that rule
• This number is then applied to the output function.
• The input to the fuzzy operator is two or more membership values
from fuzzified input variables.
• The output is a single truth value.
• Logical operators: AND, OR
• AND methods: minimum, product
• OR methods: Maximum, probabilistic OR
• probor(a,b) = a + b - ab
50
Apply Fuzzy Operator
51
3. Apply Implication Method
• Before applying the implication method, you must determine the rule's weight.
• Every rule has a weight (a number between 0 and 1), which is applied to the number given
by the antecedent.
• Generally, this weight is 1 (as it is for this example) and thus has no effect at all on the
implication process.
• After proper weighting has been assigned to each rule, the implication method is
implemented.
• A consequent is a fuzzy set represented by a membership function, which weights
appropriately the linguistic characteristics that are attributed to it.
• The consequent is reshaped using a function associated with the antecedent (a single
number).
• The input for the implication process is a single number given by the antecedent, and the
output is a fuzzy set.
• Implication is implemented for each rule.
• Two methods are widely used, and they are the same functions that are used by the AND
method: min (minimum), which truncates the output fuzzy set, and prod (product), which
scales the output fuzzy set.
52
Apply Implication Method
53
Step 4. Aggregate All Outputs
• Aggregation is the process by which the fuzzy sets that represent the outputs of
each rule are combined into a single fuzzy set.
• Aggregation only occurs once for each output variable, just prior to the fifth and
final step, defuzzification.
• The input of the aggregation process is the list of truncated output functions
returned by the implication process for each rule.
• The output of the aggregation process is one fuzzy set for each output variable.
• As long as the aggregation method is commutative (which it always should be),
then the order in which the rules are executed is unimportant.
• Three methods are widely used:
• max (maximum)
• probor (probabilistic OR)
• sum (simply the sum of each rule's output set)
54
Aggregate All Outputs
55
Step 5. Defuzzify
• The input for the defuzzification process is a fuzzy set (the aggregate output fuzzy
set) and the output is a single number.
• As much as fuzziness helps the rule evaluation during the intermediate steps, the
final desired output for each variable is generally a single number.
• However, the aggregate of a fuzzy set encompasses a range of output values, and so
must be defuzzified in order to resolve a single output value from the set.
• There are five defuzzification methods:
• centroid,
• bisector,
• middle of maximum (the average of the maximum value of the output set),
• largest of maximum,
• smallest of maximum.
• Perhaps the most popular defuzzification method is the centroid calculation, which
returns the center of area under the curve
56
Fuzzy Inference Diagram
57
58
Types of Fuzzy System
• two types of fuzzy inference systems:
• Mamdani
• Sugeno
• Fuzzy inference systems have been successfully applied in fields such
as automatic control, data classification, decision analysis, expert
systems, and computer vision.
• Because of its multidisciplinary nature, fuzzy inference systems are
associated with a number of names, such as fuzzy-rule-based systems,
fuzzy expert systems, fuzzy modeling, fuzzy associative memory,
fuzzy logic controllers, and simply (and ambiguously) fuzzy systems.
59
Sugeno-Type Fuzzy Inference
• The main difference between Mamdani and Sugeno is that the Sugeno output
membership functions are either linear or constant.
• A typical rule in a Sugeno fuzzy model has the form:
If Input 1 = x and Input 2 = y, then Output is z = ax + by + c
For a zero-order Sugeno model, the output level z is a constant (a = b = 0).
60
61
Comparison of Sugeno and Mamdani Systems
• Advantages of the Sugeno Method
• It is computationally efficient.
• It works well with linear techniques (e.g., PID control).
• It works well with optimization and adaptive techniques.
• It has guaranteed continuity of the output surface.
• It is well suited to mathematical analysis.
• Advantages of the Mamdani Method
• It is intuitive.
• It has widespread acceptance.
• It is well suited to human input.
62
Advantages of FLSs
• Mathematical concepts within fuzzy reasoning are very simple.
• You can modify a FLS by just adding or deleting rules due to
flexibility of fuzzy logic.
• Fuzzy logic Systems can take imprecise, distorted, noisy input
information.
• FLSs are easy to construct and understand.
• Fuzzy logic is a solution to complex problems in all fields of life,
including medicine, as it resembles human reasoning and
decision making.
63
Disadvantages of FLSs
• There is no systematic approach to fuzzy system designing.
• They are understandable only when simple.
• They are suitable for the problems which do not need high
accuracy.
64
Applications in Medicine
1. Fuzzy control of a total artificial heart (TAH) , Rau et al. (1995).
• Fuzzy rules are used to control the filling phase and the ejection phase of the heart.
• The fuzzy rule base consists of twenty-five rules
• A sample rule is
IF Filling is fast AND Pump rate is good
THEN Pump rate a little faster
2. Intelligent alarms for use in cardioanesthesia.
• monitor vital parameters such as blood
pressure, temperature, and blood gases.
• The alarm sounds if the parameters are outside
of an acceptable state, but it is up to the
anesthesiologist to make the decision regarding
changes in treatment (Becker et al., 1997).
65

More Related Content

What's hot (20)

Fuzzy relations
Fuzzy relationsFuzzy relations
Fuzzy relations
 
Crisp sets
Crisp setsCrisp sets
Crisp sets
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
 
Fuzzy set and its application
Fuzzy set and its applicationFuzzy set and its application
Fuzzy set and its application
 
Hebb network
Hebb networkHebb network
Hebb network
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Mc culloch pitts neuron
 
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation Network
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance Theory
 
Fuzzy+logic
Fuzzy+logicFuzzy+logic
Fuzzy+logic
 
Fuzzy Logic and Neural Network
Fuzzy Logic and Neural NetworkFuzzy Logic and Neural Network
Fuzzy Logic and Neural Network
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy Logic
 
L7 fuzzy relations
L7 fuzzy relationsL7 fuzzy relations
L7 fuzzy relations
 
Introduction to fuzzy logic
Introduction to fuzzy logicIntroduction to fuzzy logic
Introduction to fuzzy logic
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
 
Semantic Networks
Semantic NetworksSemantic Networks
Semantic Networks
 
Structured Knowledge Representation
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge Representation
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 

Similar to Lec 5 uncertainty

Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logicAdPatel5
 
Fuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with ImplementationFuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with ImplementationBhaumik Parmar
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaMuhammad Warraich
 
Fuzzy logicintro by
Fuzzy logicintro by Fuzzy logicintro by
Fuzzy logicintro by Waseem Abbas
 
Fuzzy Logic Controller.pptx
Fuzzy Logic Controller.pptxFuzzy Logic Controller.pptx
Fuzzy Logic Controller.pptxMahuaPal6
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemDigiGurukul
 
Varaiational formulation fem
Varaiational formulation fem Varaiational formulation fem
Varaiational formulation fem Tushar Aneyrao
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series editedProf Dr S.M.Aqil Burney
 
It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values Ramjeet Singh Yadav
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfRamya Nellutla
 
Applications of analytic functions and vector calculus
Applications of analytic functions and vector calculusApplications of analytic functions and vector calculus
Applications of analytic functions and vector calculusPoojith Chowdhary
 
Introduction tocausalinference april02_2020
Introduction tocausalinference april02_2020Introduction tocausalinference april02_2020
Introduction tocausalinference april02_2020Viswanath Gangavaram
 
Neural_Networks_scalability_consntency.ppt
Neural_Networks_scalability_consntency.pptNeural_Networks_scalability_consntency.ppt
Neural_Networks_scalability_consntency.pptVGaneshKarthikeyan
 

Similar to Lec 5 uncertainty (20)

Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with ImplementationFuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with Implementation
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logicintro by
Fuzzy logicintro by Fuzzy logicintro by
Fuzzy logicintro by
 
Fuzzy Logic Controller.pptx
Fuzzy Logic Controller.pptxFuzzy Logic Controller.pptx
Fuzzy Logic Controller.pptx
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th Sem
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Varaiational formulation fem
Varaiational formulation fem Varaiational formulation fem
Varaiational formulation fem
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series edited
 
Fuzzy logic member functions
Fuzzy logic member functionsFuzzy logic member functions
Fuzzy logic member functions
 
It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdf
 
Applications of analytic functions and vector calculus
Applications of analytic functions and vector calculusApplications of analytic functions and vector calculus
Applications of analytic functions and vector calculus
 
UNIT 5-ANN.ppt
UNIT 5-ANN.pptUNIT 5-ANN.ppt
UNIT 5-ANN.ppt
 
9966850
99668509966850
9966850
 
Introduction tocausalinference april02_2020
Introduction tocausalinference april02_2020Introduction tocausalinference april02_2020
Introduction tocausalinference april02_2020
 
Neural_Networks_scalability_consntency.ppt
Neural_Networks_scalability_consntency.pptNeural_Networks_scalability_consntency.ppt
Neural_Networks_scalability_consntency.ppt
 

More from Eyob Sisay

Lec 9 conclusion
Lec 9  conclusionLec 9  conclusion
Lec 9 conclusionEyob Sisay
 
Lec 8 ai implementation
Lec 8  ai implementationLec 8  ai implementation
Lec 8 ai implementationEyob Sisay
 
Lec 7 genetic algorithms
Lec 7 genetic algorithmsLec 7 genetic algorithms
Lec 7 genetic algorithmsEyob Sisay
 
Lec 6 learning
Lec 6 learningLec 6 learning
Lec 6 learningEyob Sisay
 
Lec 4 expert systems
Lec 4  expert systemsLec 4  expert systems
Lec 4 expert systemsEyob Sisay
 
Lec 3 1 reasoning
Lec 3  1 reasoningLec 3  1 reasoning
Lec 3 1 reasoningEyob Sisay
 
Lec 3 knowledge acquisition representation and inference
Lec 3  knowledge acquisition representation and inferenceLec 3  knowledge acquisition representation and inference
Lec 3 knowledge acquisition representation and inferenceEyob Sisay
 
Lec 2 1 informed search
Lec 2 1  informed searchLec 2 1  informed search
Lec 2 1 informed searchEyob Sisay
 
Lec 0 about the course
Lec 0 about the courseLec 0 about the course
Lec 0 about the courseEyob Sisay
 
Lec 1 introduction
Lec 1  introductionLec 1  introduction
Lec 1 introductionEyob Sisay
 
Security and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsSecurity and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsEyob Sisay
 
A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)Eyob Sisay
 

More from Eyob Sisay (13)

Lec 9 conclusion
Lec 9  conclusionLec 9  conclusion
Lec 9 conclusion
 
Lec 8 ai implementation
Lec 8  ai implementationLec 8  ai implementation
Lec 8 ai implementation
 
Lec 7 genetic algorithms
Lec 7 genetic algorithmsLec 7 genetic algorithms
Lec 7 genetic algorithms
 
Lec 6 learning
Lec 6 learningLec 6 learning
Lec 6 learning
 
Lec 4 expert systems
Lec 4  expert systemsLec 4  expert systems
Lec 4 expert systems
 
Lec 3 1 reasoning
Lec 3  1 reasoningLec 3  1 reasoning
Lec 3 1 reasoning
 
Lec 3 knowledge acquisition representation and inference
Lec 3  knowledge acquisition representation and inferenceLec 3  knowledge acquisition representation and inference
Lec 3 knowledge acquisition representation and inference
 
Lec 2 1 informed search
Lec 2 1  informed searchLec 2 1  informed search
Lec 2 1 informed search
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Lec 0 about the course
Lec 0 about the courseLec 0 about the course
Lec 0 about the course
 
Lec 1 introduction
Lec 1  introductionLec 1  introduction
Lec 1 introduction
 
Security and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsSecurity and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing Environments
 
A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)
 

Recently uploaded

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

Lec 5 uncertainty

  • 2. Outline • Uncertainty and imprecisions • Introduction to Fuzzy Logic • Fuzzy Sets • Membership Functions • Logical Operations • Rules • Fuzzy Inference Process • Example 2
  • 3. 3
  • 4. 4
  • 5. 5
  • 6. 6
  • 7. 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11. 11
  • 12. 12
  • 13. 13
  • 14. 14
  • 15. 15
  • 16. 16
  • 17. 17
  • 19. Fuzzy Logic • Fuzzy logic is superset of conventional (Boolean) logic that has been extended to handle the concept of partial truth. • Central notion of fuzzy systems is that truth values (in fuzzy logic) or membership values (in fuzzy sets) are indicated by a value on the range [0.0, 1.0], with 0.0 representing absolute Falseness and 1.0 representing absolute Truth. • Deals with real world vagueness 19
  • 20. Fuzzy Logic • Fuzzy logic is all about the relative importance of precision: How important is it to be exactly right when a rough answer will do? ` • Vague world: • Medical diagnosis is an excellent example of vagueness and uncertainty. • Applications: Medical instrumentation, decision-support systems 20
  • 21. Classical Sets Law of the Excluded Middle: • any element X, must be either in set A or in set not-A. • It cannot be in both. • And these two sets, set A and set not-A should contain the entire universe between them. 21
  • 22. Classical Sets  X = universe of discourse = the set of all objects with the same characteristics.  Let nx = cardinality = total number of elements in X.  For crisp sets A and B in X, we define:  x A  x belongs to A.  x  A  x does not belong to A.  For sets A and B on X:  A  B  xA, xB.  A  B  A is fully contained in B.  A = B  A  B and B  A.  The null set, , contains no elements. 22
  • 23. Operations on Classical Sets  Union:  AB = {x | x  A or x  B}.  Intersection:  AB = {x | x  A and x  B}.  Complement:  Ac = {x | x  A, x  X}. 23
  • 24. Fuzzy Sets • Fuzzy sets, unlike classical sets, do not restrict themselves to something lying wholly in either set A or in set not-A. 24
  • 25. Fuzzy Sets  Transition between membership and non-membership can be gradual.  Fuzzy set contains elements which have varying degrees of membership.  Degree of membership measured by a function.  Function maps elements to a real numbered value on the interval 0 to 1, A[0,1].  Elements in a fuzzy set can also be members of other fuzzy sets on the same universe. 25
  • 26. Fuzzy Sets • Classical set theory – An object is either in or not in the set • Sets with smooth boundary – Not completely in or out – somebody 6” is 80% tall • Fuzzy set theory – An object is in a set by matter of degree – 1.0 => in the set – 0.0 => not in the set – 0.0 < object < 1.0 => partially in the set • Provides a way to write symbolic rules with terms like “medium” but evaluate them in a quantified way 26
  • 27. Fuzzy logic represents partial truth • In fuzzy logic, the truth of any statement becomes matter of degree -- Q: Is Saturday a weekend day? -- A: 1 (yes, or true) – Q: Is Tuesday a weekend day? – A: 0 (no, or false) – Q: Is Friday a weekend day? – A: 0.7 (for the most part yes, but not completely) – Q: Is Sunday a weekend day? – A: 0.9 (yes, but not quite as much as Saturday) 27
  • 28. Membership Function • A membership function (MF) is a curve that defines how each point in the input space is mapped to a membership value (or degree of membership) between 0 and 1. 28
  • 30. Membership Functions • The only condition a membership function must really satisfy is that it must vary between 0 and 1. • The function itself can be an arbitrary curve whose shape we can define as a function that suits us from the point of view of simplicity, convenience, speed, and efficiency. • A classical set might be expressed as A = {x | x > 6} • If X is the universe of discourse and its elements are denoted by x, then a fuzzy set A in X is defined as a set of ordered pairs. A = {x, µA(x) | x ∈ X} • µA(x) is called the membership function (or MF) of x in A. • The membership function maps each element of X to a membership value between 0 and 1. 30
  • 33. Summary of Membership Functions • Fuzzy sets describe vague concepts (e.g., fast runner, hot weather, weekend days). • A fuzzy set admits the possibility of partial membership in it. (e.g., Friday is sort of a weekend day, the weather is rather hot). • The degree an object belongs to a fuzzy set is denoted by a membership value between 0 and 1. (e.g., Friday is a weekend day to the degree 0.8). • A membership function associated with a given fuzzy set maps an input value to its appropriate membership value. 33
  • 34. Example Fuzzy Variable • Each function tells us how much we consider a character in the set if it has a particular aggressiveness value • Or, how much truth to attribute to the statement: “The character is nasty (or meek, or neither)?” Aggressiveness Membership (Degree of Truth) 1.0 0.0 10.5 Medium NastyMeek -1 -0.5 34
  • 35. Fuzzy vs. probability • both operate over the same range [0.0 to 1.0]. • In probability theory: There is a 20% chance that Amber belongs to the set of old people, there’s an 80% chance that she doesn’t belong to the set of old people. • In fuzzy terminology: Amber is definitely not old or some other term corresponding to the value 0.2. But there are certainly no chances involved, no guess work left for the system to classify Amber as young or old. 35
  • 36. Fuzzy vs. probability • Crisp Facts – distinct boundaries • Fuzzy Facts – imprecise boundaries • Probability - incomplete facts • Example – Scout reporting an enemy – “Two tanks at grid NV 123456“ (Crisp) – “A few tanks at grid NV 123456” (Fuzzy) – “There might be 2 tanks at grid NV 54 (Probabilistic) 36
  • 37. Logical and Fuzzy Operators • Logical operators • Fuzzy Operators 37
  • 38. Logical and Fuzzy Operators 38
  • 39. The Basic Tipping Problem • Given a number between 0 and 10 that represents the quality of service at a restaurant (where 10 is excellent), and another number between 0 and 10 that represents the quality of the food at that restaurant (again, 10 is excellent), what should the tip be? • The three golden rules of tipping: If the service is poor or the food is rancid, then tip is cheap. If the service is good, then tip is average. If the service is excellent or the food is delicious, then tip is generous. • Assume that an average tip is 15%, a generous tip is 25%, and a cheap tip is 5%. 39
  • 40. Fuzzy Rules (If-Then Rules) • Fuzzy sets and fuzzy operators are the subjects and verbs of fuzzy logic. • if-then rule statements are used to formulate the conditional statements that comprise fuzzy logic. • A single fuzzy if-then rule assumes the form if x is A then y is B where A and B are linguistic values defined by fuzzy sets on the ranges (universes of discourse) X and Y, respectively. The if-part of the rule "x is A" is called the antecedent or premise, while the then-part of the rule "y is B" is called the consequent or conclusion. 40
  • 41. Fuzzy Rules (If-Then Rules) • Example: If service is good then tip is average • the input to an if-then rule is the current value for the input variable (in this case, service) and the output is an entire fuzzy set (in this case, average). This set will be defuzzified, assigning one value to the output. • Interpreting an if-then rule involves distinct parts: • evaluating the antecedent (which involves fuzzifying the input and applying any necessary fuzzy operators) and • applying that result to the consequent (known as implication). • In binary logic: p → q (p and q are either both true or both false.) • In fuzzy logic: 0.5 p → 0.5 q (Partial antecedents provide partial implication.) 41
  • 42. Fuzzy Rules (If-Then Rules) • The consequent specifies a fuzzy set be assigned to the output. • The implication function then modifies that fuzzy set to the degree specified by the antecedent. • The most common ways to modify the output fuzzy set are truncation using the min function (where the fuzzy set is truncated) or scaling using the prod function (where the output fuzzy set is squashed). 42
  • 43. Fuzzy Rules (If-Then Rules) 43
  • 44. Summary of If-Then Rules Interpreting if-then rules is a three-part process. • Fuzzify inputs: • Resolve all fuzzy statements in the antecedent to a degree of membership between 0 and 1. • If there is only one part to the antecedent, then this is the degree of support for the rule. • Apply fuzzy operator to multiple part antecedents: • If there are multiple parts to the antecedent, apply fuzzy logic operators and resolve the antecedent to a single number between 0 and 1. • This is the degree of support for the rule. • Apply implication method: • Use the degree of support for the entire rule to shape the output fuzzy set. • The consequent of a fuzzy rule assigns an entire fuzzy set to the output. • This fuzzy set is represented by a membership function that is chosen to indicate the qualities of the consequent. • If the antecedent is only partially true, (i.e., is assigned a value less than 1), then the output fuzzy set is truncated according to the implication method. 44
  • 45. Steps by Step Approach • The above steps are summarized into three main stages • Fuzzification • Membership functions used to graphically describe a situation • Evaluation of Rules • Application of the fuzzy logic rules • Diffuzification • Obtaining the crisp results 45
  • 46. Fuzzy Inference Process • Fuzzy inference is the process of formulating the mapping from a given input to an output using fuzzy logic. • The mapping then provides a basis from which decisions can be made, or patterns discerned. • The process of fuzzy inference involves all of the pieces that are described in Membership Functions, Logical Operations, and If-Then Rules. • To implement a Fuzzy inference system, five steps must be followed: 1.Fuzzification using input membership functions 2.Apply Fuzzy Operand 3.Apply Implication method on each rule 4.Aggregate all Outputs 5.Defuzzification of output set 46
  • 49. Step 1. Fuzzify Inputs • The first step is to take the inputs and determine the degree to which they belong to each of the appropriate fuzzy sets via membership functions. • Fuzzification of the input amounts to either a table lookup or a function evaluation. • each input is fuzzified over all the qualifying membership functions required by the rules. 𝑓 𝑥 = 𝑥 − 5.5 5 , 5.5 ≤ 𝑥 ≤ 9 1, 𝑥 > 0 0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 49
  • 50. Step 2. Apply Fuzzy Operator • If the antecedent of a given rule has more than one part, the fuzzy operator is applied to obtain one number that represents the result of the antecedent for that rule • This number is then applied to the output function. • The input to the fuzzy operator is two or more membership values from fuzzified input variables. • The output is a single truth value. • Logical operators: AND, OR • AND methods: minimum, product • OR methods: Maximum, probabilistic OR • probor(a,b) = a + b - ab 50
  • 52. 3. Apply Implication Method • Before applying the implication method, you must determine the rule's weight. • Every rule has a weight (a number between 0 and 1), which is applied to the number given by the antecedent. • Generally, this weight is 1 (as it is for this example) and thus has no effect at all on the implication process. • After proper weighting has been assigned to each rule, the implication method is implemented. • A consequent is a fuzzy set represented by a membership function, which weights appropriately the linguistic characteristics that are attributed to it. • The consequent is reshaped using a function associated with the antecedent (a single number). • The input for the implication process is a single number given by the antecedent, and the output is a fuzzy set. • Implication is implemented for each rule. • Two methods are widely used, and they are the same functions that are used by the AND method: min (minimum), which truncates the output fuzzy set, and prod (product), which scales the output fuzzy set. 52
  • 54. Step 4. Aggregate All Outputs • Aggregation is the process by which the fuzzy sets that represent the outputs of each rule are combined into a single fuzzy set. • Aggregation only occurs once for each output variable, just prior to the fifth and final step, defuzzification. • The input of the aggregation process is the list of truncated output functions returned by the implication process for each rule. • The output of the aggregation process is one fuzzy set for each output variable. • As long as the aggregation method is commutative (which it always should be), then the order in which the rules are executed is unimportant. • Three methods are widely used: • max (maximum) • probor (probabilistic OR) • sum (simply the sum of each rule's output set) 54
  • 56. Step 5. Defuzzify • The input for the defuzzification process is a fuzzy set (the aggregate output fuzzy set) and the output is a single number. • As much as fuzziness helps the rule evaluation during the intermediate steps, the final desired output for each variable is generally a single number. • However, the aggregate of a fuzzy set encompasses a range of output values, and so must be defuzzified in order to resolve a single output value from the set. • There are five defuzzification methods: • centroid, • bisector, • middle of maximum (the average of the maximum value of the output set), • largest of maximum, • smallest of maximum. • Perhaps the most popular defuzzification method is the centroid calculation, which returns the center of area under the curve 56
  • 58. 58
  • 59. Types of Fuzzy System • two types of fuzzy inference systems: • Mamdani • Sugeno • Fuzzy inference systems have been successfully applied in fields such as automatic control, data classification, decision analysis, expert systems, and computer vision. • Because of its multidisciplinary nature, fuzzy inference systems are associated with a number of names, such as fuzzy-rule-based systems, fuzzy expert systems, fuzzy modeling, fuzzy associative memory, fuzzy logic controllers, and simply (and ambiguously) fuzzy systems. 59
  • 60. Sugeno-Type Fuzzy Inference • The main difference between Mamdani and Sugeno is that the Sugeno output membership functions are either linear or constant. • A typical rule in a Sugeno fuzzy model has the form: If Input 1 = x and Input 2 = y, then Output is z = ax + by + c For a zero-order Sugeno model, the output level z is a constant (a = b = 0). 60
  • 61. 61
  • 62. Comparison of Sugeno and Mamdani Systems • Advantages of the Sugeno Method • It is computationally efficient. • It works well with linear techniques (e.g., PID control). • It works well with optimization and adaptive techniques. • It has guaranteed continuity of the output surface. • It is well suited to mathematical analysis. • Advantages of the Mamdani Method • It is intuitive. • It has widespread acceptance. • It is well suited to human input. 62
  • 63. Advantages of FLSs • Mathematical concepts within fuzzy reasoning are very simple. • You can modify a FLS by just adding or deleting rules due to flexibility of fuzzy logic. • Fuzzy logic Systems can take imprecise, distorted, noisy input information. • FLSs are easy to construct and understand. • Fuzzy logic is a solution to complex problems in all fields of life, including medicine, as it resembles human reasoning and decision making. 63
  • 64. Disadvantages of FLSs • There is no systematic approach to fuzzy system designing. • They are understandable only when simple. • They are suitable for the problems which do not need high accuracy. 64
  • 65. Applications in Medicine 1. Fuzzy control of a total artificial heart (TAH) , Rau et al. (1995). • Fuzzy rules are used to control the filling phase and the ejection phase of the heart. • The fuzzy rule base consists of twenty-five rules • A sample rule is IF Filling is fast AND Pump rate is good THEN Pump rate a little faster 2. Intelligent alarms for use in cardioanesthesia. • monitor vital parameters such as blood pressure, temperature, and blood gases. • The alarm sounds if the parameters are outside of an acceptable state, but it is up to the anesthesiologist to make the decision regarding changes in treatment (Becker et al., 1997). 65