Download presentation

Presentation is loading. Please wait.

Published byRaymundo Blaze Modified over 3 years ago

1
1 Chap 4: Fuzzy Expert Systems Part 2 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 10

2
2 Fuzzy Logic Unclear The formal systematic study of the principles of valid inference and correct reasoning a form of multi-valued logic derived from fuzzy set theory to deal with reasoning that is approximate rather than precise. (Wikipedia) a theoretical system used in mathematics, computing and philosophy to deal with statements which are neither true nor false (dictionary.cambridge.org)

3
3 Classical (Crisp) Set f A (x) called the characteristic function of A Principle of Dichotomy: a classic set theory imposes a sharp boundary f A (x): X {0, 1}, where

4
4 Fuzzy Set A(x): X [0, 1] where A(x) = 1 if x is totally in A; A(x) = 0 if x is not in A; 0 < A(x) < 1 if x is partly in A. A(x) : membership function of set A membership value (0<= degree <=1): shows the degree of membership Basic idea: an element belongs to a fuzzy set with a certain degree of membership fuzzy set is a set with fuzzy boundaries

5
5 Linguistic Variables IF THEN value object value object Examples: IF wind is strong THEN sailing is good IF speed is slow THEN stopping_distance is short IF project_duration is long THEN completion_risk is high Linguistic variable Linguistic value * linguistic variable == fuzzy variable

6
6 Hedges Andy quite likes Thai food hedges Mary looks very much like her mother Jim has been to several attractions in Thailand Hedges: terms that modify the shape of fuzzy sets e.g. very, somewhat, quite, more or less, and slightly

7
7 Representation of hedges in fuzzy logic Concentration dilation intensification

8
8 Operations of fuzzy sets The classical set theory developed in the late 19th century by Georg Cantor describes how crisp sets can interact. These interactions are called operations: - Complement - Containment - Intersection - Union

9
9 Operations of fuzzy sets

10
10 Set Properties The properties of set used in crisp sets can also be used in fuzzy sets Frequently used properties:- Commutativity Associatively Distributivity Idempotency Identity Involution Transitivity De Morgans Laws

11
11 How can we combine fuzziness to our rules ???

12
12 Fuzzy Rules Classical IF-THEN rule Rule 1: IF speed is > 100 THENstopping distance is long Rule 2: IF speed is < 70 THENstopping distance is short Fuzzy IF-THEN rule Rule 1: IF speed is fast THENstopping distance is long Rule 2: IF speed is slow THENstopping distance is short Fuzzy Rules: If the antecedent is true to some degree of membership, then the consequent is also true to that same degree.

13
13 How to reason? These fuzzy sets provide the basis for a weight estimation model. The model is based on a relationship between a mans height and his weight: IF height is tall THEN weight is heavy

14
14 How to reason? (cont.) The value of the output or a truth membership grade of the rule consequent can be estimated directly from a corresponding truth membership grade in the antecedent. This form of fuzzy inference uses a method called monotonic selection.

15
15 How about multiple antecedents?

16
16 Multiple Antecedents Examples IF project_duration is long ANDproject_staffing is large ANDproject_funding is inadequate THENrisk is high IF service is excellent ORfood is delicious THEN tip is generous

17
17 Multiple Consequences Example IFtemperature is hot THEN hot_water is reduced; cold_water is increased

18
18 Fuzzy Inference Fuzzy inference: a process of mapping from a given input to an output, using the theory of fuzzy sets Examples of inference techniques Mamdani-Style Inference Sugeno-Style Inference

19
19 Mamdani-Style Inference Linguistic variables and linguistic values must be identified Rule 1: IF project_funding is adequate ORproject_staffing is small THENrisk is low Rule 2: IF project_funding is marginal ANDproject_staffing is large THENrisk is normal Rule 3: IF project_funding is inadequate THENrisk is high Rule 1: IF x is A3 ORy is B1 THENz is C1 Rule 2: IF x is A2 ANDy is B2 THENz is C2 Rule 3: IF x is A1 THENz is C3

20
20 Mamdani-Style Inference (cont.) There are four steps Fuzzification Rule Evaluation Aggregation of the Rule Outputs Defuzzification

21
21 Mamdani-Style Inference (cont.) 1)Fuzzification Take crisp inputs Determine the degree of inputs

22
22 Mamdani-Style Inference (cont.) 2) Rule Evaluation Take fuzzified inputs Apply them to the antecedents of the fuzzy rules A B(x) = min [ A(x), B(x)], where x X A B(x) = max [ A(x), B(x)], where x X Rule 1: IF x is A3 (0.0) ORy is B1 (0.1) THENz is C1 C1(z) = max [ A3(x), B1(y)] = max[0.0, 0.1] = 0.1 Rule 2: IF x is A2 (0.2) ANDy is B2 (0.7) THENz is C2 C2(z) = min[ A2(x), B2(y)] = min[0.2, 0.7] = 0.2

23
23 Mamdani-Style Inference (cont.)

24
24 Mamdani-Style Inference (cont.) The result of the antecedent evaluation can be applied to the membership function of the consequent. – functions can be clipped or scaled

25
25 Mamdani-Style Inference (cont.) Correlation Minimum (clipping): cut the consequent membership function at the level of the antecedent truth Correlation Product (scaling): multiplying all membership degrees of the rule consequent by the rule antecedent

26
26 Mamdani-Style Inference (cont.) 3) Aggregation of the rule outputs Combine all outputs into a single fuzzy set

27
27 Mamdani-Style Inference (cont.) 4) Defuzzification Centroid technique (or centre of gravity – COG): find the point where a vertical line would slice the aggregate set into two equal masses

28
28 Mamdani-Style Inference (cont.) 4) Defuzzification (cont.) A reasonable estimate can be obtained by calculating it over a sample of points.

29
29 Mamdani-Style Inference (cont.)

30
30 Fuzzy Inference Examples of inference techniques Mamdani-Style Inference Sugeno-Style Inference

31
31 Sugeno-Style Inference uses a single spike (singleton) as the member function of the rule consequent Singleton: a fuzzy set with a membership function that is unity at a single particular point on the universe of discourse and zero everywhere else Format of rules:- IF x is A ANDy is B THENz is f(x,y) where x, y and z are linguistic variables; A and B fuzzy sets on universe of discourses X and Y respectively; f(x,y) a mathematical function

32
32 Sugeno-Style Inference (cont.) Four steps of Sugeno 1.Fuzzification -> similar to Mamdani Style 2.Rule Evaluation IF x is A ANDy is B THENz is k the output is constant which makes all outputs to be spikes 3.Aggregation of the Rule Outputs -> similar to Mamdani Style

33
33 Sugeno-Style Inference (cont.)

34
34 Sugeno-Style Inference (cont.) 4. Defuzzification: use weighted average (WA)

35
35 Mamdani VS Sugeno Mamdani Capture expert knowledge Express knowledge in more human-like manner Not computationally efficient Sugeno Computationally effective Work well with optimisation and adaptive techniques Suitable for control problems and dynamic nonlinear systems

36
36 Building Fuzzy Expert Systems 1. Specify the problem and define linguistic variables. 2. Determine fuzzy sets. 3. Elicit and construct fuzzy rules. 4. Encode the fuzzy sets, fuzzy rules and procedures to perform fuzzy inference into the expert system. 5. Evaluate and tune the system.

37
37 Building Fuzzy Expert Systems (cont.) Case study A service centre keeps spare parts and repairs failed ones. A customer brings a failed item and receives a spare of the same type Failed parts are repaired, placed on the shelf, and thus become spares. The objective here is to advise a manager of the service centre on certain decision policies to keep the customers satisfied

38
38 Building Fuzzy Expert Systems (cont.) 1)Specify the problem and define linguistic variables average waiting time (mean delay) m repair utilisation factor of the service centre number of servers s initial number of spare parts n

39
39 Building Fuzzy Expert Systems (cont.)

40
40 Building Fuzzy Expert Systems (cont.) 2) Determine Fuzzy Sets fuzzy sets can have a variety of shapes a triangle or a trapezoid are widely used due to the simplification of the computational process Key point – to maintain sufficient overlap in adjacent fuzzy sets for the fuzzy system to respond smoothly

41
41 Building Fuzzy Expert Systems (cont.)

42
42 Building Fuzzy Expert Systems (cont.) 3) Elicit and construct fuzzy rules Knowledge acquisition such as Ask experts Books Flow diagrams Observation Rule construction

43
43 Building Fuzzy Expert Systems (cont.)

44
44 Building Fuzzy Expert Systems (cont.)

45
45 Building Fuzzy Expert Systems (cont.)

46
46 Building Fuzzy Expert Systems (cont.) 4) Encode the fuzzy sets, fuzzy rules and procedures to perform fuzzy inference into the expert system. Possible methods DIY by using programming languages e.g. C, C++ fuzzy logic development tool such as MATLAB Fuzzy Logic Toolbox or Fuzzy Knowledge Builder

47
47 Building Fuzzy Expert Systems (cont.) 5) Evaluate and tune the system To check if the system meets the requirements Use tools to analyse the system performance

48
48 Building Fuzzy Expert Systems (cont.) Tuning systems Review model input and output variables e.g. redefine their ranges Review the fuzzy sets e.g. define additional sets on the universe of discourse Provide sufficient overlap between neighbouring sets Review the existing rules e.g. modify rules, rewrite hedge rules Adjust the rule execution weights Revise shapes of the fuzzy sets.

49
49 Applications of Fuzzy Logic Air Conditioning Digital Image Processing e.g. edge detection Automobile and other vehicle subsystems, such as automatic transmissions, ABS and cruise control (e.g. Tokyo monorail) Home appliances e.g. rice cookers, washing machines, dish washers

Similar presentations

Presentation is loading. Please wait....

OK

Pole Placement.

Pole Placement.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on no use of plastic bags Ppt on afforestation and deforestation Extraocular muscles anatomy and physiology ppt on cells Ppt on current account deficit and exchange Ppt on network security using quantum cryptography Ppt on water resources in india Download ppt on measures of dispersion Ppt on how to improve communication skills in english Ppt on solar eclipse and lunar eclipse Memory games for kids ppt on batteries