5 Fuzzy Expert Systems

Decision Support System and Expert System · Unit 5 · 7 hrs

Fuzzy Expert Systems

Exam-focused notes for Fuzzy Expert Systems (Decision Support System and Expert System, CSC483): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Fuzzy Expert Systems in short

Classical expert systems reason with propositions that are either true or false, yet the knowledge an expert actually speaks is full of terms such as HIGH, WARM and RISKY that have no sharp boundary. This chapter covers the fuzzy machinery that lets a system reason with such terms: what a fuzzy rule is, how fuzzy reasoning works, why fuzzy expert systems are needed, the operations they use, the structure and process of a fuzzy inference system, the three standard types, and the fuzzy controller as the most common application.

Fuzzy Expert Systems: notes

Fuzzy Rule

A fuzzy set differs from a classical set in that membership is a matter of degree. Where a classical set assigns each element a membership of 0 or 1, a fuzzy set $A$ over a universe $X$ is defined by a membership function that assigns each element a degree of membership in the interval from zero to one,

$$\mu_A : X \to [0, 1]$$

so an element can belong partially. A temperature of 28 degrees might belong to the set WARM with degree 0.8 and to HOT with degree 0.3 at the same time. The membership function is usually triangular, trapezoidal, Gaussian or bell shaped, chosen for convenience of computation and ease of tuning.

A linguistic variable is a variable whose values are words rather than numbers. The linguistic variable temperature takes values LOW, MEDIUM and HIGH, each of which is a fuzzy set with its own membership function over the same numeric universe.

A fuzzy rule is an IF-THEN rule whose antecedent, and usually whose consequent, are expressed with fuzzy sets and linguistic variables rather than crisp values. Its general form is

$$\text{IF } x \text{ is } A \text{ THEN } y \text{ is } B$$

where $A$ and $B$ are fuzzy sets. Typical rules read: IF temperature is HIGH THEN fan speed is FAST; or IF age is YOUNG AND income is HIGH THEN loan risk is LOW. The terms HIGH, FAST, YOUNG and LOW are fuzzy linguistic terms defined by membership functions, not exact numbers, which is exactly what lets the rule capture how an expert speaks.

An antecedent may combine several conditions with the connectives AND, OR and NOT, and the consequent may set one or more output variables. A collection of such rules covering a domain is the rule base, and it is the fuzzy counterpart of the knowledge base in Unit 4.

Because membership is graded, a fuzzy rule does not simply fire or not fire. It fires to a degree, called its firing strength, and every rule whose antecedent has any non-zero membership contributes something to the result. That is the essential difference from a classical production rule and the reason fuzzy systems behave smoothly rather than jumping at a threshold.

Fuzzy Reasoning

Fuzzy reasoning, also called approximate reasoning or fuzzy inference, is the process of drawing conclusions from fuzzy rules and fuzzy or crisp inputs. It generalises classical logical inference so that a conclusion can be drawn to a degree from premises that hold to a degree.

The process runs in four stages.

Fuzzification converts crisp numerical inputs into degrees of membership in the relevant fuzzy sets, using the membership functions defined for each linguistic variable. A temperature of 35 degrees might map to membership 0.8 in the set HOT and 0.2 in WARM.

Rule evaluation, the inference step proper, applies every rule in the rule base to the fuzzified inputs and computes each rule's firing strength. Where an antecedent combines conditions, AND takes the minimum of the membership degrees and OR takes the maximum. Each rule's consequent fuzzy set is then modified by that firing strength, most often by clipping it at that height.

Aggregation combines the modified consequent sets of all the fired rules into a single output fuzzy set, normally with the maximum operator, so that the strongest support for each output value survives.

Defuzzification converts that aggregated fuzzy set back into a single crisp value that can be acted on. The most widely used method is the centroid, or centre of gravity, which takes the point under which the area of the membership function is balanced,

$$z^{*} = \frac{\int z , \mu(z) , dz}{\int \mu(z) , dz}$$

or, in the discrete form usually implemented,

$$z^{*} = \frac{\sum \mu(z) \cdot z}{\sum \mu(z)}$$

Other methods are the mean of maximum, which averages the values at which membership is greatest, and the largest of maximum, which takes the largest such value. Centroid is preferred where a smooth output is wanted, since it moves continuously as the inputs change.

A single rule illustrates the whole chain. For the rule IF $x$ is $A$ THEN $y$ is $B$, with a crisp input $x_0$, the system first finds the membership $\mu_A(x_0) = \alpha$, then applies the implication by clipping the output set $B$ at height $\alpha$ to give $B'$, and finally defuzzifies $B'$ to obtain the crisp output $y_0$.

Need of Fuzzy Expert Systems

Classical expert systems require every fact to be definitely true or definitely false and every rule boundary to be sharp. Real domains do not oblige, and the mismatch produces the need for fuzzy systems.

  • Human knowledge is expressed in vague terms. An expert says a patient has a high fever or that a bearing is running hot, not that the temperature exceeds a stated threshold. Forcing the expert to invent a threshold discards information and introduces an arbitrary number that the expert does not actually believe in.
  • Sharp thresholds behave badly at the boundary. A rule that fires at 38.0 degrees and not at 37.9 makes the system's advice change abruptly on a difference that is within measurement error. Graded membership removes that discontinuity.
  • Measurements are imprecise and incomplete. Sensors drift, readings are noisy, and some inputs are estimates. A system that can act on a partially satisfied condition degrades gracefully where a crisp system fails outright.
  • Uncertainty is intrinsic, not a defect to be removed. Fuzzy logic models vagueness in the meaning of a term, which is a different thing from probability, which models uncertainty about which of several definite states obtains. Many expert judgements are vague rather than probabilistic.
  • Rule bases stay small and readable. Covering a continuous domain with crisp rules requires a large number of narrow rules; a handful of overlapping fuzzy rules covers the same domain, and each of them reads like something a person would say.
  • Systems are easy to build and tune. A fuzzy controller can be built from a verbal description of how an operator runs a process, without a mathematical model of the process, and tuned by adjusting membership functions.
  • The reasoning remains explainable. Because rules are stated in linguistic terms, the system can justify its output in words, which matters in advisory and diagnostic use.

What this unit covers

  • Fuzzy Rule
  • Fuzzy Reasoning
  • Need of Fuzzy Expert Systems
  • Operations on Fuzzy Expert Systems
  • Fuzzy Inference Systems
  • Fuzzy Inference Process
  • Types of Fuzzy Expert Systems
  • Fuzzy Controller

Fuzzy Rule

2080 · 5 marks

What is fuzzy rule? How fuzzy reasoning is done in expert system? [5]

Show solved answer

Fuzzy Rule and Fuzzy Reasoning in Expert Systems

Fuzzy Rule

A fuzzy rule is an IF-THEN rule that uses fuzzy sets and linguistic variables instead of crisp (precise) values. It captures human-like reasoning by allowing partial truth values between 0 and 1.

General Form:

IF <fuzzy antecedent> THEN <fuzzy consequent>

Example:

IF temperature is HIGH THEN fan speed is FAST
IF age is YOUNG AND income is HIGH THEN loan risk is LOW

Here, "HIGH", "FAST", "YOUNG", "LOW" are fuzzy linguistic terms defined by membership functions, not exact numbers.


Fuzzy Reasoning in Expert Systems

Fuzzy reasoning (also called approximate reasoning or fuzzy inference) is the process of drawing conclusions from fuzzy rules and fuzzy inputs. It is done through the following steps:

Step 1: Fuzzification

  • Convert crisp (real-world) input values into fuzzy values using membership functions.
  • Example: Temperature = 75°C is mapped to membership degree: μ(HIGH) = 0.7, μ(MEDIUM) = 0.3

Step 2: Rule Evaluation (Applying Fuzzy Rules)

  • Each fuzzy rule in the knowledge base is evaluated.
  • For rules with multiple antecedents:
    • AND operation: take the minimum of membership values
    • OR operation: take the maximum of membership values
  • Example:
    IF temperature is HIGH (0.7) AND pressure is LOW (0.4)
    THEN output membership = min(0.7, 0.4) = 0.4
    

Step 3: Aggregation

  • Combine the outputs of all fired rules into a single fuzzy output set.
  • Typically done using the maximum operator across all rule outputs.

Step 4: Defuzzification

  • Convert the aggregated fuzzy output back into a single crisp value for action.
  • Common method: Centroid (Center of Area) method $$z^* = \frac{\sum \mu(z) \cdot z}{\sum \mu(z)}$$

Role in Expert Systems

ComponentRole
Knowledge BaseStores fuzzy IF-THEN rules
Inference EngineApplies fuzzy reasoning (min/max operations)
FuzzifierConverts crisp inputs to fuzzy values
DefuzzifierConverts fuzzy output to crisp decision

Summary

Fuzzy reasoning allows expert systems to handle uncertainty and vagueness in real-world problems by using linguistic rules and partial truth values, making them more flexible and human-like compared to classical rule-based systems.

Open this answer on its own page →

Types of Fuzzy Expert Systems

2080 · 5 marks

Explain types of fuzzy expert systems in detail. [5]

A fuzzy expert system is a knowledge-based system whose knowledge is held as fuzzy IF-THEN rules and whose inference engine reasons with fuzzy logic instead of classical Boolean logic, so it can work directly with vague linguistic terms such as HIGH temperature or LOW pressure. Every fuzzy expert...

Open this answer on its own page →

2079 · 5 marks

Discuss various types of fuzzy expert systems. [5]

A fuzzy expert system stores expert knowledge as fuzzy IF-THEN rules and reasons over them with fuzzy logic, which lets it handle linguistic and imprecise information that a Boolean expert system cannot express. All of them are rule-based and all of them fuzzify the inputs, evaluate the rules and...

Open this answer on its own page →

Fuzzy Reasoning

2079 · 5 marks

Discuss fuzzy reasoning process. [5]

Fuzzy reasoning (also called approximate reasoning or fuzzy inference) is a method of drawing conclusions from fuzzy premises using fuzzy logic. It extends classical logical reasoning to handle imprecise, vague, or uncertain information expressed in natural language. --- The fuzzy reasoning proce...

Open this answer on its own page →