Artificial Intelligence CIS 342

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Advertisements

 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy Expert System  An expert might say, “ Though the power transformer is slightly overloaded, I can keep this load for a while”.  Another expert.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Lecture 4 Fuzzy expert systems: Fuzzy logic
Fuzzy Inference and Defuzzification
CS 561, Sessions This time: Fuzzy Logic and Fuzzy Inference Why use fuzzy logic? Tipping example Fuzzy set theory Fuzzy inference.
Soft Computing. Per Printz Madsen Section of Automation and Control
Chapter 14.7 Russell & Norvig. Fuzzy Sets  Rules of thumb frequently stated in “fuzzy” linguistic terms. John is tall. If someone is tall and well-built.
Fuzzy Expert System Fuzzy Logic
1 What is a fuzzy rule? A fuzzy rule can be defined as a conditional statement in the form: IF x is A THEN y is B where x and y are linguistic variables;
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Fuzzy Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
FUZZY SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
Lecture 07 Fuzzy Reasoning
Fuzzy Expert System.
Chapter 18 Fuzzy Reasoning.
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
09th October 2006 Dr Bogdan L. Vrusias
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
BEE4333 Intelligent Control
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
Fuzzy logic Introduction 2 Fuzzy Sets & Fuzzy Rules Aleksandar Rakić
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Fuzzy Expert Systems. 2 Fuzzy Logic Four types of fuzzy logics Classic logic Crisp setence: Height(John, 180) → Weight(John, 60) Crisp data: Height(John,
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Sugeno fuzzy inference Case study.
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy expert systems Chapter #9.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Expert Systems. 2 Motivation On vagueness “Everything is vague to a degree you do not realise until you have tried to make it precise.” Bertrand.
Fuzzy Inference (Expert) System
1 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 9.
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Fuzzy Sets and Control. Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived frommulti-valued logic fuzzy setfuzzy set theory.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Fuzzy Expert System Fuzzy Inference دكترمحسن كاهاني
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Chapter 19. Fuzzy Reasoning
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Lecture 4 Fuzzy expert systems: Fuzzy logic n Introduction, or what is fuzzy thinking? n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy.
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
Introduction to Fuzzy Logic and Fuzzy Systems
What is a fuzzy rule? IF x is A THEN y is B
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic 11/6/2001.
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Logic and Fuzzy Sets
Artificial Intelligence and Adaptive Systems
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Fuzzy System Structure
Dr. Unnikrishnan P.C. Professor, EEE
Intelligent Systems and Soft Computing
This time: Fuzzy Logic and Fuzzy Inference
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
This time: Fuzzy Logic and Fuzzy Inference
Fuzzy Inference Systems
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Presentation transcript:

Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.

Fuzzy Logic Expert knowledge often uses vague and inexact terms Fuzzy Logic describes fuzziness by specifying degrees e.g. degrees of height, speed, distance, temperature, beauty, intelligence, etc.

Fuzzy Logic Unlike Boolean logic, fuzzy logic is multi-valued Fuzzy logic represents degrees of membership and degrees of truth Things can be part true and part false at the same time

Linguistic Variables A linguistic variable is a fuzzy variable e.g. the fact “John is tall” implies linguistic variable “John” takes the linguistic value “tall” Use linguistic variables to form fuzzy rules: IF ‘project duration’ is long THEN risk is high IF risk is very high THEN ‘project funding’ is very low

Qualifiers & Hedges What about linguistic values with qualifiers? e.g. very tall, extremely short, etc. Hedges are qualifying terms that modify the shape of fuzzy sets e.g. very, somewhat, quite, slightly, extremely, etc.

Representing Hedges

Representing Hedges

Representing Hedges

Representing Hedges

Linguistic Variables & Hedges write a function or method called very() that modifies the degree of membership e.g. double x = very( tall( 185 ) ); Linguistic Variables & Hedges

Crisp Set Operations Crisp set operations developed by Georg Cantor in the late 19th century:

Crisp Set Operations Crisp set operations developed by Georg Cantor in the late 19th century (continued):

Fuzzy Set Operations Complement To what degree do elements not belong to this set? m¬A(x) = 1 – mA(x)

Fuzzy Set Operations Containment Which sets belong to other sets? Each element of the fuzzy subset has smaller membership than in the containing set

mA∩B(x) = min[ mA(x), mB(x) ] Fuzzy Set Operations Intersection To what degree is the element in both sets? mA∩B(x) = min[ mA(x), mB(x) ]

mAB(x) = max[ mA(x), mB(x) ] Fuzzy Set Operations Union To what degree is the element in either or both sets? mAB(x) = max[ mA(x), mB(x) ]

Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic http://www.cs.berkeley.edu/~zadeh 1973 paper outlined a new approach to capturing human knowledge and designing expert systems using fuzzy rules

Fuzzy Rules A fuzzy rule is a conditional statement in the familiar form: IF x is A THEN y is B x and y are linguistic variables A and B are linguistic values determined by fuzzy sets on the universe of discourses X and Y, respectively

Linguistic Variables A linguistic variable is a fuzzy variable e.g. the fact “John is tall” implies linguistic variable “John” takes the linguistic value “tall” Use linguistic variables to form fuzzy rules: IF ‘project duration’ is long THEN ‘risk’ is high IF risk is very high THEN ‘project funding’ is very low

Fuzzy Expert Systems A fuzzy expert system is an expert system that uses fuzzy rules, fuzzy logic, and fuzzy sets Many rules in a fuzzy logic system will fire to some extent If the antecedent is true to some degree of membership, then the consequent is true to the same degree

Fuzzy Expert Systems Two distinct fuzzy sets describing tall and heavy:

Fuzzy Expert Systems IF height is tall THEN weight is heavy

Fuzzy Expert Systems Other examples (multiple antecedents): e.g. IF ‘project duration’ is long AND ‘project staffing’ is large AND ‘project funding’ is inadequate THEN risk is high e.g. IF service is excellent OR food is delicious THEN tip is generous

Fuzzy Expert Systems Other examples (multiple consequents): e.g. IF temperature is hot THEN ‘hot water’ is reduced; ‘cold water’ is increased

Fuzzy Inference Named after Ebrahim Mamdani, the Mamdani method for fuzzy inference is: 1. Fuzzify the input variables 2. Evaluate the rules 3. Aggregate the rule outputs 4. Defuzzify

Fuzzy Inference – Example x, y, and z are linguistic variables A1, A2, and A3 are linguistic values on X B1 and B2 are linguistic values on Y C1, C2, and C3 are linguistic values on Z Fuzzy Inference – Example Rule 1: IF x is A3 OR y is B1 THEN z is C1 Rule 2: IF x is A2 AND y is B2 THEN z is C2 Rule 3: IF x is A1 THEN z is C3 Rule 1: IF ‘project funding’ is adequate OR ‘project staffing’ is small THEN risk is low Rule 2: IF ‘project funding’ is marginal AND ‘project staffing’ is large THEN risk is normal Rule 3: IF ‘project funding’ is inadequate THEN risk is high

Fuzzy Inference – Example 1. Fuzzification project funding project staffing inadequate small marginal large

Fuzzy Inference – Example 2. Rule 1 evaluation risk project staffing project funding adequate small low

Fuzzy Inference – Example 2. Rule 2 evaluation project funding project staffing risk marginal large normal

Fuzzy Inference – Example 2. Rule 3 evaluation risk project funding inadequate high

Fuzzy Inference – Example 3. Aggregation of the rule outputs risk low normal high

Fuzzy Inference – Example 4. Defuzzification e.g. use the centroid method in which a vertical line slices the aggregate set into two equal halves How can we calculate this?

Fuzzy Inference – Example 4. Defuzzification Calculate the centre of gravity (cog): x dx

Fuzzy Inference – Example 4. Defuzzification Use a reasonable sampling of points

Applications of Fuzzy Logic Why use fuzzy expert systems or fuzzy control systems? Apply fuzziness (and therefore accuracy) to linguistically defined terms and rules Lack of crisp or concrete mathematical models exist When do you avoid fuzzy expert systems? Traditional approaches produce acceptable results Crisp or concrete mathematical models exist and are easily implemented

Applications of Fuzzy Logic Real-world applications include: Control of robots, engines, automobiles, elevators, etc. Cruise-control in automobiles Temperature control Reduce vibrations in camcorders http://www.esru.strath.ac.uk/Reference/concepts/fuzzy/fuzzy_appl.de20.htm Handwriting recognition, OCR Predictive and diagnostic systems (e.g. cancer)