SlideShare ist ein Scribd-Unternehmen logo
1 von 46
Fuzzy logic
and application in AI
Innopolis University: ToC
Ildar Nurgaliev
History
Lotfi A. Zadeh
Introduced:
By Lotfi Zadeh in 1965
Problem:
Most classes are too precise.
We need to generalize that and
introduce a class whose
boundaries are un-sharp
History
"Fuzzy theory is wrong, wrong, and pernicious. What we need is more logical
thinking, not less. The danger of fuzzy logic is that it will encourage the sort of
imprecise thinking that has brought us so much trouble. Fuzzy logic is the
cocaine of science."
Professor William Kahan UC Berkeley
"’Fuzzification’ is a kind of scientific permissiveness."
Professor Rudolf Kalman UFlorida
History
Classical logic
Proposition - a sentence with a truth value.
Truth value - true (1 or T) or false (0 or F)
Classical logic
Logic operations:
Classical logic
Logic operations:
Classical logic
Logic formula:
● Each propositional variable is a formula
● If X is a formula, then ¬X is a formula
● If X and Y are formulas, then X * Y is a formula, where
* is any binary connective
Fuzzy logic
Truth value ranges between 0 (completely false)
and 1 ( completely true).
Fuzzy logic
Logic operations:
¬X = (1-truth(X))
X AND Y = minimum(truth(X), truth(Y))
X OR Y = maximum(truth(X), truth(Y))
X ⊃ Y = maximum(minimum(truth(X),truth(Y)),1-truth(X))
First order logic
-Fuzzy modifier
-Fuzzy Truth quantifier
-Linguistic variable
-Fuzzy predicate
Predicate
A “predicate” is a group of words like
applies to Objects
Socrates
Tree
Two
That hat
Predicates
is a man
is green
is less than
belongs to
Fuzzy Predicate
A fuzzy predicate is a predicate whose
definition contains ambiguity
“z is expensive.” “w is young.”
How to interpret Fuzzy Predicate?
-P(x) is a fuzzy set.
-evaluated by membership function μP(x)
“x is P” x - variable
P - ambiguity set
Membership function
Example:
Watson used these functions for reasoning degree of true
Conjunction rule: μA⋀B(x)=min[μA(x), μB(x)]
Disjunction rule: μA⋁B(x)=max[μA(x), μB(x)]
Negation rule: μㄱA(x)=1-μA(x)
Fuzzy Modifier
“w is young.”
Fuzzy Modifier
“w is young.”
add the modifier “very”
Fuzzy Modifier
“w is young.”
add the modifier “very”
Fuzzy Modifier
T(“Age”) = {young, very young, very very young, … }
μvery young(u) = (μyoung(u))2
“w is young.”
add the modifier “very”
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
x: name of variable
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
x: name of variable
T(x): set of linguistic terms which can be a value of the variable
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
x: name of variable
T(x): set of linguistic terms which can be a value of the variable
U: set of universe of discourse which defines the characteristics of the variable
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
x: name of variable
T(x): set of linguistic terms which can be a value of the variable
U: set of universe of discourse which defines the characteristics of the variable
G: syntactic grammar which produces terms in T(x)
Linguistic variable
Linguistic variable = (x, T(x), U, G, M)
x: name of variable
T(x): set of linguistic terms which can be a value of the variable
U: set of universe of discourse which defines the characteristics of the variable
G: syntactic grammar which produces terms in T(x)
M: semantic rules which map terms in T(x) to fuzzy sets in U
Linguistic variable
Linguistic variable
X={“Hot”, T(Hot), U,G(Hot), M(hot)}
name : “Hot”,
T(Hot) : (‘warm’, ‘hot’, ‘very hot’),
U : ( [0..100] ),
G(Hot) : { ‘warm’ } ∪ { ‘hot’ } ∪ Ti+1 = { ‘very’ . Ti } )
M(hot) = { (u, μhot(u)) | u •∊ U }
ps: Hot - linguistic variable
hot - predicate
Linguistic variable
Directions:
1. Empty contents into saucepan; add 4½ cups (1 L) cold
water.
2. Bring to a boil, stirring constantly.
3. Reduce heat; partially cover and simmer for 15
minutes, stirring occasionally.
4 to 6 servings, 4½ cups (1 L)
Example: Linguistic variables in soup instructions
Fuzzy Truth Values
The qualifiers in T define “fuzzy truth values” and they can be defined
by the μP(x) (membership functions).
Fuzzy Truth Values
fuzzy truth qualifier is defined in the universal set
U = {Q | Q ∊ [0,1]}.
The qualifiers in T define “fuzzy truth values” and they can be defined
by the μP(x) (membership functions).
Fuzzy Truth Values
fuzzy truth qualifier is defined in the universal set
U = {Q | Q ∊ [0,1]}.
T = {true, very true, fairly true, absolutely true, … , absolutely false, fairly false, false}
The qualifiers in T define “fuzzy truth values” and they can be defined
by the μP(x) (membership functions).
Truth qualifiers by μP(x)
LETS START PARTY!
The Application of Fuzzy logic in AI
-Knowledge Base (KB)
Inference and Knowledge
Representation
rule type: if-then
Inference and Knowledge
Representation
(1) Modus ponens
Fact: x is A
Rule: If (x is A) then (y is B)
Result: y is B
rule type: if-then
Inference and Knowledge
Representation
(1) Modus ponens
Fact: x is A
Rule: If (x is A) then (y is B)
Result: y is B
(2) Modus tollens
Fact: y is ㄱB
Rule: If (x is A) then (y is B)
Result: x is ㄱA
ps: The modus ponens is used in the forward inference and
the modus tollens is in the backward one.
rule type: if-then
Representation of Fuzzy Predicate
“x is P”, it is represented by:
- fuzzy set P(x)
- membership function μP(x)(x)
Representation of Fuzzy Predicate
“x is P”, it is represented by:
- fuzzy set P(x)
- membership function μP(x)(x)
Fuzzy Relation
R = { ( x, μR(x)) | μR(x) ⩾ 0, x •∊ A}
Representation of Fuzzy Predicate
“x is P”, it is represented by:
- fuzzy set P(x)
- membership function μP(x)(x)
Fuzzy Relation
R = { ( x, μR(x)) | μR(x) ⩾ 0, x •∊ A}
Represent a predicate by
fuzzy relation:
R(x) = P
Representation of Fuzzy Rule
If x is A, then y is B
or
If A(x), then B(y)
Representation of Fuzzy Rule
If x is A, then y is B
or
If A(x), then B(y)
R(x, y): If A(x), then B(y)
or
R(x, y): A(x)➝B(y)
R = { ( (x, y), μR(x, y)) | μR(x, y) ⩾ 0, x •∊ A, y ∊ B}
Inference
(1) Generalized modus ponens (GMP)
Fact: x is A : R(x)
Rule: If (x is A) then (y is B) : R(x, y)
Result: y is B : R(y) =
R(x) o R(x, y)
Inference Example
KB: (x is A)➝(y is B), x is A
I R(x,y) = A × B
II fact ‘x is A’ into the form R(x)
III R(y) = R(x) o R(x, y)
μR(y) = ⋁ [μR(x) š⋀ μR(x, y)]
x
Inference Example
KB: (x is A)➝(y is B), x is A
Fuzzy logic application
● household appliances
● animation systems
● industrial automation
● chemical industry
● aerospace
● robotics
● mining and metal
processing
● transportation
Thank you for attention
References:
1) ‘First Course on Fuzzy Theory and Applications’, Kwang H. Lee
2) ‘Linguistic Variables: Clear Thinking with Fuzzy Logic’, Walter Banks

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Bayes Belief Networks
Bayes Belief NetworksBayes Belief Networks
Bayes Belief Networks
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
fuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzificationfuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzification
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
L9 fuzzy implications
L9 fuzzy implicationsL9 fuzzy implications
L9 fuzzy implications
 
Fuzzy logic and its applications
Fuzzy logic and its applicationsFuzzy logic and its applications
Fuzzy logic and its applications
 
Defuzzification
DefuzzificationDefuzzification
Defuzzification
 
Chapter 5 of 1
Chapter 5 of 1Chapter 5 of 1
Chapter 5 of 1
 
Multilayer perceptron
Multilayer perceptronMultilayer perceptron
Multilayer perceptron
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Informed search
Informed searchInformed search
Informed search
 
Uncertainty in AI
Uncertainty in AIUncertainty in AI
Uncertainty in AI
 
Neural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) AlgorithmNeural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) Algorithm
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 
Multi Layer Network
Multi Layer NetworkMulti Layer Network
Multi Layer Network
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 

Andere mochten auch

Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of fuzzy logicViraj Patel
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real WorldBCSLeicester
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicAshique Rasool
 
Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Piyumal Samarathunga
 
Fuzzy logic and its application in environmental engineering
Fuzzy logic and its application in environmental engineeringFuzzy logic and its application in environmental engineering
Fuzzy logic and its application in environmental engineeringDrashti Kapadia
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligenceu053675
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relationsBaran Kaynak
 
Applications of artificial intelligence (AI) models for management decision m...
Applications of artificial intelligence (AI) models for management decision m...Applications of artificial intelligence (AI) models for management decision m...
Applications of artificial intelligence (AI) models for management decision m...The Higher Education Academy
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceGirish Naik
 
Artificial Intelligence in Power Systems
Artificial Intelligence in Power SystemsArtificial Intelligence in Power Systems
Artificial Intelligence in Power SystemsSowmya T
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentationlpaviglianiti
 
soft computing
soft computingsoft computing
soft computingAMIT KUMAR
 
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...Waqas Tariq
 

Andere mochten auch (20)

Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of fuzzy logic
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy Logic
 
Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)
 
Fuzzy logic and its application in environmental engineering
Fuzzy logic and its application in environmental engineeringFuzzy logic and its application in environmental engineering
Fuzzy logic and its application in environmental engineering
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
INTERNATIONAL FORUM TOWARD AI NETWORK SOCIETY
INTERNATIONAL FORUM TOWARD AI NETWORK SOCIETY INTERNATIONAL FORUM TOWARD AI NETWORK SOCIETY
INTERNATIONAL FORUM TOWARD AI NETWORK SOCIETY
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relations
 
Applications of artificial intelligence (AI) models for management decision m...
Applications of artificial intelligence (AI) models for management decision m...Applications of artificial intelligence (AI) models for management decision m...
Applications of artificial intelligence (AI) models for management decision m...
 
Fuzzy+logic
Fuzzy+logicFuzzy+logic
Fuzzy+logic
 
Fuzzy logic (vast 2015)
Fuzzy logic (vast 2015)Fuzzy logic (vast 2015)
Fuzzy logic (vast 2015)
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Intelligence in Power Systems
Artificial Intelligence in Power SystemsArtificial Intelligence in Power Systems
Artificial Intelligence in Power Systems
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
soft computing
soft computingsoft computing
soft computing
 
AI: AI & problem solving
AI: AI & problem solvingAI: AI & problem solving
AI: AI & problem solving
 
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...
A Fuzzy Arithmetic Approach for Perishable Items in Discounted Entropic Order...
 
Applications of AI
Applications of AIApplications of AI
Applications of AI
 

Ähnlich wie Fuzzy logic and application in AI

Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdfsmarwaneid
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfMuhammadUmerIhtisham
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFaiz Zeya
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Lecture 2 fuzzy inference system
Lecture 2  fuzzy inference systemLecture 2  fuzzy inference system
Lecture 2 fuzzy inference systemParveenMalik18
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) inventionjournals
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Basic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptBasic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptAshfaqAhmed693399
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfHrideshSapkota2
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptNobitaNobi489694
 

Ähnlich wie Fuzzy logic and application in AI (20)

Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
Lecture 2 fuzzy inference system
Lecture 2  fuzzy inference systemLecture 2  fuzzy inference system
Lecture 2 fuzzy inference system
 
Nested loop
Nested loopNested loop
Nested loop
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)
 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
FUZZY LOGIC
FUZZY LOGICFUZZY LOGIC
FUZZY LOGIC
 
Predicates
PredicatesPredicates
Predicates
 
Basic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptBasic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.ppt
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
 
Predicates Logic.pptx
Predicates Logic.pptxPredicates Logic.pptx
Predicates Logic.pptx
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Math
MathMath
Math
 

Mehr von Ildar Nurgaliev

Анализ маркетинговой деятельности ООО “БАРС ГРУП”
Анализ маркетинговой деятельности  ООО “БАРС ГРУП”Анализ маркетинговой деятельности  ООО “БАРС ГРУП”
Анализ маркетинговой деятельности ООО “БАРС ГРУП”Ildar Nurgaliev
 
Kotlin compiler construction (very brief)
Kotlin compiler construction (very brief)Kotlin compiler construction (very brief)
Kotlin compiler construction (very brief)Ildar Nurgaliev
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural networkIldar Nurgaliev
 
Social dynamic simulation
Social dynamic simulationSocial dynamic simulation
Social dynamic simulationIldar Nurgaliev
 

Mehr von Ildar Nurgaliev (7)

Presentation
PresentationPresentation
Presentation
 
CloSapn
CloSapnCloSapn
CloSapn
 
Анализ маркетинговой деятельности ООО “БАРС ГРУП”
Анализ маркетинговой деятельности  ООО “БАРС ГРУП”Анализ маркетинговой деятельности  ООО “БАРС ГРУП”
Анализ маркетинговой деятельности ООО “БАРС ГРУП”
 
Scala syntax analysis
Scala syntax analysisScala syntax analysis
Scala syntax analysis
 
Kotlin compiler construction (very brief)
Kotlin compiler construction (very brief)Kotlin compiler construction (very brief)
Kotlin compiler construction (very brief)
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Social dynamic simulation
Social dynamic simulationSocial dynamic simulation
Social dynamic simulation
 

Kürzlich hochgeladen

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Kürzlich hochgeladen (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

Fuzzy logic and application in AI

  • 1. Fuzzy logic and application in AI Innopolis University: ToC Ildar Nurgaliev
  • 2. History Lotfi A. Zadeh Introduced: By Lotfi Zadeh in 1965 Problem: Most classes are too precise. We need to generalize that and introduce a class whose boundaries are un-sharp
  • 3. History "Fuzzy theory is wrong, wrong, and pernicious. What we need is more logical thinking, not less. The danger of fuzzy logic is that it will encourage the sort of imprecise thinking that has brought us so much trouble. Fuzzy logic is the cocaine of science." Professor William Kahan UC Berkeley "’Fuzzification’ is a kind of scientific permissiveness." Professor Rudolf Kalman UFlorida
  • 5. Classical logic Proposition - a sentence with a truth value. Truth value - true (1 or T) or false (0 or F)
  • 8. Classical logic Logic formula: ● Each propositional variable is a formula ● If X is a formula, then ¬X is a formula ● If X and Y are formulas, then X * Y is a formula, where * is any binary connective
  • 9. Fuzzy logic Truth value ranges between 0 (completely false) and 1 ( completely true).
  • 10. Fuzzy logic Logic operations: ¬X = (1-truth(X)) X AND Y = minimum(truth(X), truth(Y)) X OR Y = maximum(truth(X), truth(Y)) X ⊃ Y = maximum(minimum(truth(X),truth(Y)),1-truth(X))
  • 11. First order logic -Fuzzy modifier -Fuzzy Truth quantifier -Linguistic variable -Fuzzy predicate
  • 12. Predicate A “predicate” is a group of words like applies to Objects Socrates Tree Two That hat Predicates is a man is green is less than belongs to
  • 13. Fuzzy Predicate A fuzzy predicate is a predicate whose definition contains ambiguity “z is expensive.” “w is young.”
  • 14. How to interpret Fuzzy Predicate? -P(x) is a fuzzy set. -evaluated by membership function μP(x) “x is P” x - variable P - ambiguity set
  • 15. Membership function Example: Watson used these functions for reasoning degree of true Conjunction rule: μA⋀B(x)=min[μA(x), μB(x)] Disjunction rule: μA⋁B(x)=max[μA(x), μB(x)] Negation rule: μㄱA(x)=1-μA(x)
  • 17. Fuzzy Modifier “w is young.” add the modifier “very”
  • 18. Fuzzy Modifier “w is young.” add the modifier “very”
  • 19. Fuzzy Modifier T(“Age”) = {young, very young, very very young, … } μvery young(u) = (μyoung(u))2 “w is young.” add the modifier “very”
  • 21. Linguistic variable Linguistic variable = (x, T(x), U, G, M) x: name of variable
  • 22. Linguistic variable Linguistic variable = (x, T(x), U, G, M) x: name of variable T(x): set of linguistic terms which can be a value of the variable
  • 23. Linguistic variable Linguistic variable = (x, T(x), U, G, M) x: name of variable T(x): set of linguistic terms which can be a value of the variable U: set of universe of discourse which defines the characteristics of the variable
  • 24. Linguistic variable Linguistic variable = (x, T(x), U, G, M) x: name of variable T(x): set of linguistic terms which can be a value of the variable U: set of universe of discourse which defines the characteristics of the variable G: syntactic grammar which produces terms in T(x)
  • 25. Linguistic variable Linguistic variable = (x, T(x), U, G, M) x: name of variable T(x): set of linguistic terms which can be a value of the variable U: set of universe of discourse which defines the characteristics of the variable G: syntactic grammar which produces terms in T(x) M: semantic rules which map terms in T(x) to fuzzy sets in U
  • 27. Linguistic variable X={“Hot”, T(Hot), U,G(Hot), M(hot)} name : “Hot”, T(Hot) : (‘warm’, ‘hot’, ‘very hot’), U : ( [0..100] ), G(Hot) : { ‘warm’ } ∪ { ‘hot’ } ∪ Ti+1 = { ‘very’ . Ti } ) M(hot) = { (u, μhot(u)) | u •∊ U } ps: Hot - linguistic variable hot - predicate
  • 28. Linguistic variable Directions: 1. Empty contents into saucepan; add 4½ cups (1 L) cold water. 2. Bring to a boil, stirring constantly. 3. Reduce heat; partially cover and simmer for 15 minutes, stirring occasionally. 4 to 6 servings, 4½ cups (1 L) Example: Linguistic variables in soup instructions
  • 29. Fuzzy Truth Values The qualifiers in T define “fuzzy truth values” and they can be defined by the μP(x) (membership functions).
  • 30. Fuzzy Truth Values fuzzy truth qualifier is defined in the universal set U = {Q | Q ∊ [0,1]}. The qualifiers in T define “fuzzy truth values” and they can be defined by the μP(x) (membership functions).
  • 31. Fuzzy Truth Values fuzzy truth qualifier is defined in the universal set U = {Q | Q ∊ [0,1]}. T = {true, very true, fairly true, absolutely true, … , absolutely false, fairly false, false} The qualifiers in T define “fuzzy truth values” and they can be defined by the μP(x) (membership functions).
  • 33. LETS START PARTY! The Application of Fuzzy logic in AI -Knowledge Base (KB)
  • 35. Inference and Knowledge Representation (1) Modus ponens Fact: x is A Rule: If (x is A) then (y is B) Result: y is B rule type: if-then
  • 36. Inference and Knowledge Representation (1) Modus ponens Fact: x is A Rule: If (x is A) then (y is B) Result: y is B (2) Modus tollens Fact: y is ㄱB Rule: If (x is A) then (y is B) Result: x is ㄱA ps: The modus ponens is used in the forward inference and the modus tollens is in the backward one. rule type: if-then
  • 37. Representation of Fuzzy Predicate “x is P”, it is represented by: - fuzzy set P(x) - membership function μP(x)(x)
  • 38. Representation of Fuzzy Predicate “x is P”, it is represented by: - fuzzy set P(x) - membership function μP(x)(x) Fuzzy Relation R = { ( x, μR(x)) | μR(x) ⩾ 0, x •∊ A}
  • 39. Representation of Fuzzy Predicate “x is P”, it is represented by: - fuzzy set P(x) - membership function μP(x)(x) Fuzzy Relation R = { ( x, μR(x)) | μR(x) ⩾ 0, x •∊ A} Represent a predicate by fuzzy relation: R(x) = P
  • 40. Representation of Fuzzy Rule If x is A, then y is B or If A(x), then B(y)
  • 41. Representation of Fuzzy Rule If x is A, then y is B or If A(x), then B(y) R(x, y): If A(x), then B(y) or R(x, y): A(x)➝B(y) R = { ( (x, y), μR(x, y)) | μR(x, y) ⩾ 0, x •∊ A, y ∊ B}
  • 42. Inference (1) Generalized modus ponens (GMP) Fact: x is A : R(x) Rule: If (x is A) then (y is B) : R(x, y) Result: y is B : R(y) = R(x) o R(x, y)
  • 43. Inference Example KB: (x is A)➝(y is B), x is A I R(x,y) = A × B II fact ‘x is A’ into the form R(x) III R(y) = R(x) o R(x, y) μR(y) = ⋁ [μR(x) š⋀ μR(x, y)] x
  • 44. Inference Example KB: (x is A)➝(y is B), x is A
  • 45. Fuzzy logic application ● household appliances ● animation systems ● industrial automation ● chemical industry ● aerospace ● robotics ● mining and metal processing ● transportation
  • 46. Thank you for attention References: 1) ‘First Course on Fuzzy Theory and Applications’, Kwang H. Lee 2) ‘Linguistic Variables: Clear Thinking with Fuzzy Logic’, Walter Banks

Hinweis der Redaktion

  1. … Classical logic proposition: a sentence having truth value true (1) or false (0) truth value: proposition o {0, 1} logic variable: variable representing a proposition … Logic operation negation (NOT):CP conjunction (AND): a š b disjunction (OR): a › b implication (o): a o b … Logic function logic function logic primitive logic formula Fuzzy logic fuzzy logic formula fuzzy proposition 214 8. Fuzzy Logic truth value: fuzzy proposition o [0, 1] … Fuzzy logic operation negation (NOT):CP conjunction (AND): a š b disjunction (OR): a › b implication (o): Min(1, 1 b a)
  2. Tautology tautology: logic formula whose value is always true inference: developing new facts by using the tautology … Deductive inference modus ponens modus tollens hypothetical syllogism … Predicate logic predicate predicate logic predicate proposition: proposition consist of predicate and object evaluation of proposition … Quantifier universal quantifier: (for all) existential quantifier: (there exists) … Fuzzy predicate fuzzy predicate: predicate represented by fuzzy sets fuzzy truth value [0, 1] fuzzy modifier … Fuzzy truth qualifier fuzzy truth value: true, very true, fairly true, etc. Pvery true(v) = (true(v))2 value of “P is very true” is 0.81 when value of P is 0.9
  3. As we know now, a predicate proposition in the classical logic has the following form. “x is a man.” “y is P.” x and y are variables, and “man” and “P” are crisp sets. The sets of individuals satisfying the predicates are written by “man(x)” and “P(y)”. Definition (Fuzzy predicate) .A fuzzy predicate is a predicate whose definition contains ambiguity Ƒ Example 8.16 For example, “z is expensive.” “w is young.” The terms “expensive” and “young” are fuzzy terms. Therefore the sets “expensive(z)” and “young(w)” are fuzzy sets. Ƒ When a fuzzy predicate “x is P” is given, we can interpret it in two ways. (1) P(x) is a fuzzy set. The membership degree of x in the set P is defined by the membership function PP(x). (2) PP(x) is the satisfactory degree of x for the property P. Therefore, the truth value of the fuzzy predicate is defined by the membership function. Truth value = PP(x)
  4. The membership function of a fuzzy set is a generalization of the indicator function in classical sets. In fuzzy logic, it represents the degree of truth as an extension of valuation. Degrees of truth are often confused with probabilities, although they are conceptually distinct, because fuzzy truth represents membership in vaguely defined sets, not likelihood of some event or condition. ps: In mathematics, an indicator function or a characteristic function is a function defined on a set X that indicates membership of an element in a subset A of X, having the value 1 for all elements of A and the value 0 for all elements of X not in A.
  5. Knowledge Base is a physical system so we have to represent Predicate to another form for presenting in KB. For this reason we use Fuzzy Relation.
  6. The fuzzy rule may include fuzzy predicates in the antecedent and consequent,
  7. The operation used in the reasoning is denoted by the notation “o”, and thus the result is represented by the output of the composition when we use the GMP.
  8. Fuzzy Relation