SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances (20)

Defuzzification
DefuzzificationDefuzzification
Defuzzification
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
Introduction to soft computing
 Introduction to soft computing Introduction to soft computing
Introduction to soft computing
 
Soft computing
Soft computingSoft computing
Soft computing
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic
Fuzzy logicFuzzy logic
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
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Fuzzy set and its application
Fuzzy set and its applicationFuzzy set and its application
Fuzzy set and its application
 
Fuzzy sets
Fuzzy sets Fuzzy sets
Fuzzy sets
 
Soft Computing
Soft ComputingSoft Computing
Soft Computing
 
Crisp sets
Crisp setsCrisp sets
Crisp sets
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy Logic
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Soft computing
Soft computingSoft computing
Soft computing
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 

En vedette

Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of fuzzy logicViraj Patel
 
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
 
fuzzy logic application
fuzzy logic applicationfuzzy logic application
fuzzy logic applicationAnkur Mahajan
 
Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9Randa Elanwar
 

En vedette (20)

Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of 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
 
fuzzy logic application
fuzzy logic applicationfuzzy logic application
fuzzy logic application
 
Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9
 
Swaroop.m.r
Swaroop.m.rSwaroop.m.r
Swaroop.m.r
 

Similaire à Fuzzy logic and application in AI

Similaire à 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
 
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
 
Logic
LogicLogic
Logic
 

Plus de 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
 

Plus de 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
 

Dernier

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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Dernier (20)

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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

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

Notes de l'éditeur

  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