Artificial Intelligence CIS 342 - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

Artificial Intelligence CIS 342

Description:

Unlike Boolean logic, fuzzy logic is multi-valued. Fuzzy logic represents degrees of membership ... Reduce vibrations in camcorders ... – PowerPoint PPT presentation

Number of Views:57
Avg rating:3.0/5.0
Slides: 28
Provided by: ETS38
Category:

less

Transcript and Presenter's Notes

Title: Artificial Intelligence CIS 342


1
Artificial IntelligenceCIS 342
  • The College of Saint Rose
  • David Goldschmidt, Ph.D.

March 20, 2008
2
Fuzzy Logic
  • Unlike Boolean logic, fuzzy logic is multi-valued
  • Fuzzy logic represents degrees of membershipand
    degrees of truth
  • Things can be part true and part false at the
    same time

3
Linguistic Variables Hedges
  • Hedges are qualifying terms that modifythe shape
    of fuzzy sets

4
Fuzzy Set Operations
  • Complement
  • To what degree do elements not belong to this set?

mA(x) 1 mA(x)
5
Fuzzy Set Operations
  • Containment
  • Which sets belong to other sets?

Each element of the fuzzy subset has smaller
membership than in the containing set
6
Fuzzy Set Operations
  • Intersection
  • To what degree is the element in both sets?

mAnB(x) min mA(x), mB(x)
7
Fuzzy Set Operations
  • Union
  • To what degree is the element in either or both
    sets?

mA?B(x) max mA(x), mB(x)
8
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

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

10
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 speed is slow THEN stopping distance
is short
11
Fuzzy Expert Systems
  • A fuzzy expert system is an expert system
    thatuses fuzzy rules, fuzzy logic, and fuzzy
    sets
  • Many (or all) rules in a fuzzy logic system fire
    to some extent
  • If the antecedent is true to some degree of
    membership, then the consequent is true to the
    same degree

12
Fuzzy Expert Systems
  • Two distinct fuzzy sets describing tall and heavy

13
Fuzzy Expert Systems
  • IF height is tall
  • THEN weight is heavy

14
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

15
Fuzzy Expert Systems
  • Other examples (multiple consequents)
  • e.g. IF temperature is hot
  • THEN hot water is reduced
  • cold water is increased

16
Fuzzy Inference
  • Aptly named after Ebrahim Mamdani, theMamdani
    method for fuzzy inference is
  • 1. Fuzzification of the input variables
  • 2. Rule evaluation
  • 3. Aggregation of the rule outputs
  • 4. Defuzzification

17
Fuzzy Inference Example
  • Rule 1IF x is A3OR y is B1THEN z is C1
  • Rule 2IF x is A2AND y is B2THEN z is C2
  • Rule 3IF x is A1THEN z is C3
  • Rule 1IF project funding is
    adequateOR project staffing is
    smallTHEN risk is low
  • Rule 2IF project funding is
    marginalAND project staffing is
    largeTHEN risk is normal
  • Rule 3IF project funding is
    inadequateTHEN risk is high

18
Fuzzy Inference Example
  • 1. Fuzzification

project funding
project staffing
inadequate
small
marginal
large
19
Fuzzy Inference Example
  • 2. Rule 1 evaluation

risk
project staffing
project funding
adequate
small
low
20
Fuzzy Inference Example
  • 2. Rule 2 evaluation

project funding
project staffing
risk
marginal
large
normal
21
Fuzzy Inference Example
  • 2. Rule 3 evaluation

risk
project funding
inadequate
high
22
Fuzzy Inference Example
  • 3. Aggregation of the rule outputs

risk
high
normal
low
23
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?

24
Fuzzy Inference Example
  • 4. Defuzzification
  • Calculate the centre of gravity (cog)

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

26
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

27
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/fu
    zzy/fuzzy_appl.de20.htm
  • Handwriting recognition, OCR
  • Predictive and diagnostic systems (e.g. cancer)
Write a Comment
User Comments (0)
About PowerShow.com