Fuzzy sets & fuzzy control

Step 10 of 13 in Classical AI · Build · Medium

In fuzzy logic a value belongs to a set by degree (22°C is 0.7 'warm'). Rules like 'if hot then fan fast' are combined and defuzzified into one control output.

Build it

  1. Fan controller

    Membership functions for temperature and humidity, 6 rules, centroid defuzzification, no libraries.

    Done when: Smooth output as inputs sweep; matches scikit-fuzzy within 1% on 5 inputs.

Case study: Sendai Subway (1987)

  • Fuzzy control ran acceleration and braking.
  • Rides were smoother and used less energy than with human drivers.
  • Fuzzy rules let engineers encode operator know-how directly.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map