Fuzzy Logic and Fuzzy Systems
Introduction
What Question Does It Ask?
Fuzzy logic drops the sharp line between belonging and not belonging to a set; it gives each element a degree of membership between 0 and 1. Rules can then be written with linguistic terms such as "hot" or "fairly fast", and these rules produce a numeric decision or control signal.
At a glance
partial membership and linguistic rules
measurements, expert rules
control signal or decision
control quality, expert agreement
low-medium: set theory
little; expert knowledge
Introduction
A Short History
Zadeh publishes "Fuzzy Sets", introducing sets with partial membership.
Zadeh introduces linguistic variables and approximate reasoning with fuzzy IF-THEN rules.
Mamdani and Assilian control a steam engine with the first fuzzy controller.
Takagi and Sugeno propose the fuzzy model whose rule outputs are functions (TS model).
The Sendai subway in Japan opens, accelerating and braking under fuzzy control.
Jang publishes ANFIS, which trains fuzzy rules like a neural network.
The Course
Core Concepts
Each element has a membership degree between 0 and 1.
Triangle, trapezoid, Gaussian: maps a value to a degree.
A variable whose values are words: low, medium, high.
Minimum for AND, maximum for OR, 1-µ for NOT.
Rules like IF temperature is high THEN fan is fast.
Rule outputs are fuzzy sets, later defuzzified.
Rule outputs are functions of the inputs; fast to compute.
Reducing the fuzzy result to one number: the centroid.
The Course
A Typical Workflow
The Course
What Does the Course Cover?
- Crisp and fuzzy sets; degree of membership
- Membership functions: triangular, trapezoidal, Gaussian
- Fuzzy set operations; t-norms and t-conorms
- Fuzzy relations and max-min composition
- The extension principle and fuzzy numbers
- Linguistic variables and hedges
- Fuzzy IF-THEN rules and approximate reasoning
- Mamdani inference and defuzzification methods
- Takagi-Sugeno inference
- Fuzzy controller design; comparison with PID
- Fuzzy clustering: fuzzy c-means
- Neuro-fuzzy systems: ANFIS
Skills you will gain
A typical semester; the order and coverage vary between universities.
Try It
Fuzzy Rules Run the Air Conditioner
The air conditioner follows verbal rules such as "if it is hot and humid, run the fan fast". Change temperature and humidity; watch how strongly each rule fires and the resulting fan speed.
Context
Prerequisites
Courses worth knowing before this one, and why they are needed.
| Course | Why it is needed |
|---|---|
| Artificial Intelligence | approximate reasoning |
| Discrete Mathematics | sets, relations and propositional logic |
| Programming | writing functions and building simple simulations |
| Control Systems | feedback and the PID controller |
Context
Are You Ready for This Course?
Ask yourself; for every "no", the right-hand column shows where to start.
| Ask yourself | If not, start with |
|---|---|
| Can you explain union, intersection and complement of sets? | Sets and propositional logic from discrete mathematics |
| Can you compute the area under a piecewise-defined function? | Integrals and the centroid from calculus |
| Can you explain a feedback loop and what a PID controller does? | An intro to control systems: feedback and PID |
| Can you write Python functions and step through a simple simulation? | An intro programming course, then a short NumPy tutorial |
Context
Neighbouring Courses
Overlap
Overlapping Courses
| Relation | Course | Shared ground |
|---|---|---|
| subfield | This course is a subfield of Artificial Intelligence | approximate reasoning |
| shares methods | Shares methods with Expert Systems and Knowledge Representation | IF-THEN rule base, inference engine |
| shares methods | Shares methods with Robotics and Robot Vision | fuzzy controllers |
Differences
Where It Differs (1/2)
| Criterion | Fuzzy Logic | Probability & Statistics | Expert Systems |
|---|---|---|---|
| Core question | How do we reason with concepts like "hot" or "fast" that have no sharp boundary? | How is uncertainty measured, and how do we draw reliable conclusions from limited data? | How is an expert's knowledge written down and used for inference? |
| Approach | partial membership and linguistic rules | probability models and inference | symbolic logic and rules |
| Input | measurements, expert rules | sample data | facts and expert rules |
| Output | control signal or decision | estimate, confidence interval, test result | conclusion with justification |
| Success measure | control quality, expert agreement | unbiasedness, power, significance | expert agreement, explainability |
| Math load | low-medium: set theory | the theory itself | low: propositional and predicate logic |
| Data needs | little; expert knowledge | a sample | little; a knowledge base |
- Probability & Statistics: Probability measures uncertainty about whether an event will happen; this course measures how far a concept applies, that is, a vague boundary.
- Expert Systems: Expert systems mostly run rules with crisp logic; this course builds approximate reasoning where rules can be partly true.
Differences
Where It Differs (2/2)
| Criterion | Fuzzy Logic | Robotics | Neural Networks |
|---|---|---|---|
| Core question | How do we reason with concepts like "hot" or "fast" that have no sharp boundary? | How does a machine sense the physical world, know where it is and move? | How do networks of simple units learn by adjusting their weights? |
| Approach | partial membership and linguistic rules | sense-plan-act loop | network of simple weighted units |
| Input | measurements, expert rules | sensor measurements | numeric feature vector |
| Output | control signal or decision | motor commands, path | class or numeric prediction |
| Success measure | control quality, expert agreement | task success, safety | loss and accuracy |
| Math load | low-medium: set theory | high: transformations, control | medium-high: derivatives, matrices |
| Data needs | little; expert knowledge | physical experiments and simulation | moderate |
- Robotics: Robotics covers control as a whole; this course teaches the fuzzy controller as a model-free option.
- Neural Networks: Neural networks learn rules from data as unreadable weights; a fuzzy system's rules come from an expert and are readable.
Practice
Applications
Washing machines, air conditioners, rice cookers.
Subway acceleration and braking, automatic gearboxes.
Kiln temperature, cement and chemical processes.
Autofocus and image stabilization.
Risk assessment, supplier selection.
Approximate diagnosis from symptoms, dose advice.
Practice
Risks and Ethics
Who placed the corners of a triangle, and why, is rarely documented; other shapes make the same rules decide differently.
Rule count grows exponentially with inputs and terms; on combinations nobody wrote, the controller gives unforeseen outputs.
A controller tuned by trial and error is seldom proven stable in closed loop, which is risky in systems such as brakes.
A fuzzy score in medicine or credit, presented as an exact measurement, turns an expert's bias into a scientific-looking number.
In depth: Explainable AI and AI Ethics.
Practice
Tools and Datasets
Tools and libraries
Classic benchmark problems
Practice
Common Misconceptions
| Common belief | In fact |
|---|---|
| Fuzzy logic is imprecise, sloppy logic. | Rules use vague concepts, but the computation is exact; the same input always gives the same output. |
| A membership degree is a probability. | 0.7 is the degree of being "hot", not the chance of being hot; degrees need not sum to 1. |
| Fuzzy logic is an old, abandoned field. | It is widely used in appliances and industrial control, and its combination with neural networks continues. |
| A fuzzy system learns from data. | A basic fuzzy system takes its rules from an expert; learning is added by hybrid methods such as ANFIS. |
Next Steps
After This Course
Courses that build on or extend this one
Related careers
Next Steps
Further Reading
- Zadeh, "Fuzzy Sets", Information and Control 8(3), 1965.
- Klir and Yuan, Fuzzy Sets and Fuzzy Logic: Theory and Applications, Prentice Hall, 1995.
- Ross, Fuzzy Logic with Engineering Applications, 4th ed., Wiley, 2017.
- Jang, Sun and Mizutani, Neuro-Fuzzy and Soft Computing, Prentice Hall, 1997.