Introduction to Fuzzy Logic and Fuzzy Sets — Beginner-Friendly Notes
1. Why Fuzzy Logic Exists
Classical sets/logic are crisp: hot or not, true or false. Real language is vague: "warm", "tall", "high temperature" are matters of degree. Fuzzy logic formalises degrees of truth in [0,1].
Crisp: is 0 or 1. Fuzzy: is degree of membership.
2. Fuzzy Sets — Core Idea
A fuzzy set is characterised by membership function .
Example — Temperature:
- Crisp: → 30.1°C is hot, 29.9°C is not (brittle edge).
- Fuzzy: rises gradually: , , — no sharp boundary.
Common membership shapes: triangular, trapezoidal, Gaussian.
3. Operations (like sets, but on membership degrees)
For fuzzy sets at element :
- Complement: $μ_{
eg A}(x)=1-μ_A(x)$ - Intersection (AND): (often )
- Union (OR): (often )
- Product alternative: (also used)
4. Fuzzy Logic — Rules and Inference (concept)
Fuzzification: crisp input → fuzzy degrees (e.g., temp 32°C → Hot 0.7, Warm 0.3).
Fuzzy rules: IF is Hot AND is High THEN is Fast (linguistic rules).
Inference: combine rule premises via , then aggregate consequents.
Defuzzification: fuzzy result → crisp action (e.g., centroid of output fuzzy set → fan speed 78%).
Pipeline:
Crisp inputs → Fuzzify → Rule Evaluation → Aggregate → Defuzzify → Crisp output
Example — AC controller: inputs: temp/membership, humidity/membership → rules like "if hot and humid then cool high" → defuzzify to compressor power.
5. Fuzzy vs Probability (exam must-distinguish)
- Probability: uncertainty about whether event occurs (randomness) — e.g., .
- Fuzziness: degree to which property holds (vagueness) — e.g., "rain is heavy" to degree 0.6.
Both use [0,1] but mean different things.
6. Where Used
- Control systems (washing machines, AC, cement kilns), early expert systems, Japanese trains, consumer electronics — where human-like vague rules suffice without precise models.
7. One-Line Summary
Fuzzy sets generalise crisp sets with membership and fuzzy logic reasons with linguistic if-then rules via fuzzification, inference and defuzzification, modelling vagueness rather than randomness.
8. Quick Self-Check
- Give for a triangular Hot that starts at 20, peaks at 40.
- Why is "tall person = 180cm threshold" crisp but inadequate?