Trusted answers to developer questions

What is fuzzy logic?

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

Fuzzy logic is a model of reasoning that utilizes relative truth values to make decisions and statements. This type of logic is utilized to capture human thinking in machines.

Let’s say we have a machine that analyzes if a tree is tall. With traditional logic, the machine would assign a tree 00 (not tall) or 11 (tall) if the tree passes a certain height.

With fuzzy logic, the machine would return an inclusive value between 00 and 11 that would determine the relative truth value of the statement.

svg viewer

Unlike traditional logic, the machine utilizing fuzzy logic can say if the tree is extremely tall, somewhat tall, somewhat short, or really short based on its relative value. Fuzzy logic models allow people to use imprecise and vague data to determine partial truths.

For example, people can describe a house as big or small without precise numbers or a dataset. Machines can similarly use fuzzy logic to replicate human thinking.

How it works

svg viewer

Rules: This is the decision-making system that contains a collection of rules and the if-then conditions developed by experts.

Fuzzification: This step is used to convert crisp inputs, such as data measured by monitors and sensors, into fuzzy datasets.

Inference engine: It determines the rules that will be fired based on the input, and then determines the matching degree of the fuzzy input to each rule being compared. Based on the fired rules, the control actions are determined.

Defuzzification: This step converts the output of fuzzy sets by the inference engine into crisp values.

How it’s used

Since fuzzy data can make judgments when dealing with imprecise or distorted info, it has considerable potential in various fields. These include:

  • Control systems for vehicles, kitchen appliances, etc.

  • Image processing

  • Route-planning and decision-making

RELATED TAGS

fuzzy logic
machine learning
logic
inference
ai

CONTRIBUTOR

Aaron Xie
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?