AppsGuidesAI DictionarySmall FixesOn RecordAboutFollow the lab

Fuzzy logic

Fuzzy logic lets a computer treat things as partly true, like "fairly hot" or "a bit dirty", instead of forcing every answer into yes or no.

The basicsCurious

In plain words

Normal computer logic is strict: a statement is true or false, 1 or 0. But people don't think that way. Is 32°C hot? Sort of. Mostly. Is 26°C hot? A little.

Fuzzy logic lets a computer say exactly that. Instead of only true or false, every statement gets a score from 0 to 1. So 32°C might count as 0.7 hot, and 26°C as 0.1 hot. The machine can then follow rules written in everyday words, such as "if the room is hot, run the fan fast", and blend them smoothly rather than jumping between settings.

It was invented in 1965 by Lotfi Zadeh, a professor at the University of California, Berkeley. Engineers took it up for control systems, and it has been used in air conditioners, washing machines, rice cookers and car gearboxes. It is usually hand-written and rule-based, closer to the older symbolic side of AI than to systems that learn from data.

Everyday example

Adding sugar to chai

Nobody making chai says "sweet: yes or no". You taste it and think: not sweet enough, add a little. Very bland, add more. Almost right, add a pinch. Your rule is vague, but the amount you add changes smoothly with how far off it tastes. A fuzzy controller in a washing machine does the same with how dirty the water looks.

Where the example breaks: You judge sweetness by feel and experience. A fuzzy system's scores and rules are set by an engineer in advance; it does not taste, learn or improve on its own.

Go deeper

How it actually works

Fuzzy logic rests on Zadeh's fuzzy sets: groups that things can belong to by degree, rather than being simply in or out.

  1. Fuzzify the input

    A sensor reading such as 32°C is turned into degrees of membership: say 0.7 "hot", 0.3 "warm", 0 "cold". Each word is defined by a curve that an engineer draws over the temperature range.

  2. Apply plain-language rules

    The system holds rules such as "if hot, fan high" and "if warm, fan medium". Every rule fires a little or a lot, in proportion to how true its condition is.

  3. Defuzzify the output

    The partial results are combined into one exact setting, for example by taking the balance point (centroid) of the blended result. Out comes a single number: a fan speed, a brake pressure, a wash time.

  4. Where it sits in AI

    Like an expert system, it captures human know-how as rules, but tolerates vagueness. It is different from probability: 0.7 hot means "fairly hot", not "70% chance of being hot". Unlike machine learning, classic fuzzy control learns nothing from data.

Invented
1965, Lotfi Zadeh's paper "Fuzzy Sets" in the journal Information and Control
Inventor
Lotfi Zadeh, UC Berkeley (died 2017, aged 96)
Famous early use
Sendai's Namboku subway line in Japan, opened 1987, with fuzzy control of acceleration and braking designed by Hitachi engineers
Everyday uses
Air conditioners, washing machines, rice cookers, car transmissions

Questions people ask

What is fuzzy logic in simple words?

A way for computers to handle "partly true". Instead of yes or no, each statement gets a score between 0 and 1, so a machine can follow vague human rules like "if it's quite hot, cool a bit more".

Where is fuzzy logic used in daily life?

Mostly in control systems inside machines: air conditioners, washing machines, rice cookers and car gearboxes have used it to adjust smoothly instead of switching between fixed steps. A famous early use was automatic train control on Sendai's subway in Japan from 1987.

Is fuzzy logic the same as probability?

No. Probability says how likely something is. Fuzzy logic says how much something is true. A glass that is half full is 0.5 full, with no uncertainty about it at all.

Is fuzzy logic artificial intelligence?

It is usually counted as part of AI, especially the older rule-based side, because it lets machines reason with human-style vague rules. It does not learn from data the way machine learning does.

Who invented fuzzy logic?

Lotfi Zadeh, a professor at the University of California, Berkeley, in his 1965 paper "Fuzzy Sets". The paper has been cited more than 90,000 times.

Was this clear?

1 is confusing, 5 is crystal clear. One tap, no account needed.

Spotted something wrong, or know a better example? Suggest a change

Further reading