Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Fuzzy Logic

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

Introduction to Fuzzy Logic

The term fuzzy refers to things that are not clear or are in vague form. In the real world, most of the times we encounter a situation where we can’t determine whether the given state is true or false, then fuzzy logic provides valuable flexibility for reasoning. In this way, we can consider the incorrectness and uncertainties of any situation. So it is an approach for variable processing that allows for multiple values to be processed through the same variable. Sometimes there is a situation in real life, where we cannot decide that the given problem or statement is either true or false. At that point in time, the concept of fuzzy provides many values between true and false and gives the flexibility to find the best solution to that problem.

In this article, we will learn the concept of fuzzy logic, fuzzy sets and fuzzy logic and different types of fuzzy sets along with algorithm and architecture.


History of Fuzzy Logic Systems

Although, the concept of fuzzy logic had been introduced in the 1920s. The term fuzzy logic was first used in 1965 by Lotfi Zadeh, a professor at UC Berkeley in California. He observed that conventional computer logic was not capable of manipulating data that are represented by subjective or unclear human ideas.


Fuzzy Logic Meaning

Fuzzy logic comes from mathematics that helps us to study concepts of fuzzy, which also involves fuzzy sets of data. Mathematicians may use different types of terms when they are referring to fuzzy concepts and fuzzy analysis. Broadly these terms can be classified as fuzzy semantics. Fuzzy logic meaning is to attempt and solve problems with an open, imprecise spectrum of data which makes it possible to obtain an array of accurate conclusions. Fuzzy logic is designed to solve problems by considering all available information and makes the best possible decision from the given input.


Fuzzy Logic Definition

In the boolean system truth value, 1.0 represents absolute truth-value whereas 0.0 represents the absolute false value. If we consider the fuzzy system, there is no logic for the absolute truth and absolute false value. If we refer to fuzzy logic, there is an intermediate value to present which is partially true and partially false.


[Image will be uploaded soon]


In practice, these constructs allow for multiple values of the "true" condition. Instead of True, the numerical equivalent is 1 and False whose equivalent is 0 (or vice versa). The true condition could be any number having values less than one and greater than zero. With the help of these algorithms to make decisions based on ranges of price data as opposed to one discrete data point.


Why Do We Need Fuzzy Logic?

Fuzzy logic is mostly used for commercial and practical purposes.

  • It can control machines and consumer products.

  • It may not give accurate reasoning, but it can provide acceptable reasoning.

  • Fuzzy logic helps to deal with different types of uncertainty in engineering.


Fuzzy Logic System

Fuzzy Logic Systems Architecture

It has four main parts as shown :


[Image will be uploaded soon]


Fuzzification Module − It transforms the system inputs, which are in crisp numbers, into fuzzy sets. We can split the input signal into five steps such as −

LP - x is Large Positive

MP - x is Medium Positive

S - x is Small

MN - x is Medium Negative

LN - x is a Large Negative

Knowledge Base − It stores IF-THEN rules that are provided by the experts.

Inference Engine − It simulates the human reasoning process by making fuzzy inference on the inputs and IF-THEN rules.

De fuzzification Module − It transforms the fuzzy set that is obtained by the inference engine into a crisp value.


Example of a Fuzzy Logic System

Let us consider an air conditioning system that has a 5-level of a fuzzy logic system. This system can adjust the temperature of the air conditioner by comparing the room temperature and the target temperature value.


[Image will be uploaded soon]


Advantages of Fuzzy Logic System

  • This system is applicable for any type of inputs whether it is imprecise, distorted or noisy input information.

  • The construction of Fuzzy Logic Systems is easy and in an understandable form.

  • Fuzzy logic is a mathematical concept of set theory and the reasoning of that is quite simple.

  • It provides a very efficient solution to complex problems in all fields of life because it resembles human reasoning and decision making.

  • The algorithms can be described with the help of little data, so little memory is required.

  • The structure of Fuzzy Logic Systems is designed in such a way that it is easy and understandable.

  • Fuzzy logic in AI helps you to control machines and consumer products.

  • It may not offer accurate reasoning, but the only acceptable reasoning.

  • Fuzzy logic in Data Mining helps you to deal with the uncertainty in engineering.

  • Mostly robust as no precise inputs required.

  • It can be programmed in the situation when the feedback sensor stops working.

  • It can easily be modified to improve or alter the system performance.

  • inexpensive sensors can be used which helps you to keep the overall system cost and complexity low.

  • It provides the most effective solution to complex issues.


The Architecture of Fuzzy Logic

Its Architecture contains four parts :


[Image will be uploaded soon]


  • Rule Base: It contains the set of rules and the IF-THEN conditions provided by the experts to govern the decision-making system, based on linguistic information. Recent developments in fuzzy theory provide several effective methods for the design and tuning of fuzzy controllers. Most of these developments help us to reduce the number of fuzzy rules.

  • Fuzzification: It is used to convert inputs i.e. crisp numbers into fuzzy sets. Crisp inputs are the exact inputs that are measured by sensors and passed into the control system for processing, such as temperature, pressure, rpm’s, etc.

  • Inference Engine: It determines the matching degree of the current fuzzy input with respect to each rule and then decides which rules are to be fired according to the input field. After that, the fired rules are combined to form the control actions.

  • De fuzzification: It is used to convert the fuzzy sets obtained by the inference engine into a crisp value. There are several de fuzzification methods available and that are best-suited used with a specific expert system to reduce the error.


Fuzzy Algorithm

A fuzzy logic algorithm helps to solve a problem after considering all available data. Then it takes the best possible decision for the given input. The FL method provides the way of decision making in a human which considers all the possibilities between digital values T and F.

A fuzzy algorithm is applicable to various fields, from control theory to AI. It was designed to allow the computer to determine the dissimilarity among data which is neither true nor false. Something similar to the process of human reasoning. Like a little dark, some brightness, etc.


Fuzzy Control System

A control system is an arrangement of physical components that are designed to alter another physical system so that this system exhibits certain desired characteristics. Given below are some reasons for using Fuzzy Logic in Control Systems −


  • While applying traditional control, we need to know about the model and the objective function formulated in precise terms. This makes it very difficult to apply in most cases.

  • By applying fuzzy logic for control, we can utilize human expertise and experience for designing a controller.

  • The fuzzy control rules basically consist of the IF-THEN rules, and they can be best utilized in designing a controller.


The Architecture of Fuzzy Logic Control

Given diagram below represents the architecture of Fuzzy Logic Control (FLC).


[Image will be uploaded soon]


Major Components of FLC

Followings are the major components of the FLC architecture−

  • Fuzzifier − The role of the fuzzifier is to convert the crisp input values into fuzzy values.

  • Fuzzy Knowledge Base − It stores the knowledge about all the input and output fuzzy relationships. It also has the membership function which determines the input variables to the fuzzy rule base and the output variables to the plant that are under control.

  • Fuzzy Rule Base − It stores the knowledge about the operation of the process of the domain.

  • Inference Engine − It acts as a kernel of an FLC system. Basically, it simulates human decision making by performing approximate reasoning.

  • De fuzzifier − The role of fuzzified is to convert the fuzzy values into crisp values getting from the fuzzy inference engine.


Fuzzy Set

Fuzzy logic is based on this theory, which is a generalisation of the classical theory of sets (i.e., crisp set) that was introduced by Zadeh in 1965.

A fuzzy set is a collection of values that exist between 0 and 1. We can denote or represent fuzzy sets by the tilde (~) character. In the fuzzy set, partial membership also exists. This theory was released as an extension of classical set theory.

Mathematically, this theory is denoted as a fuzzy set (Ã) is a pair of U and M, where U is the Universe of discourse and M is the membership function that takes on values in the interval [ 0, 1 ]. The universe of discourse (U) is also denoted by the symbol Ω or X

\[\tilde{A}= \left \{ (x,\mu _{\tilde{A}}(x)) x\in X\right \}\]


Conclusion

As we have discussed, the term fuzzy means things that are not very clear or vague. It is flexible and easy to implement machine learning technique. It should not be used when you can use common sense. We have also discussed architecture that consists of four main parts: Rule Basse, Fuzzification, Inference Engine and De fuzzification. Fuzzy logic takes truth degrees as a mathematical basis, which is based on the model of the vagueness while probability is a mathematical model of ignorance

FAQs on Fuzzy Logic

1. What is Fuzzy Logic Theory?

Ans: Fuzzy logic is an approach that is based on the fuzzy computing of "degrees of truth" rather than the usual "true or false". Boolean logic (1 or 0) on which the modern computer is based. It may help us to see fuzzy logic in the similar way reasoning really works and binary or Boolean logic is simply a special case of it.

2. What are the Properties of Fuzzy Sets?

Ans: Following are the properties of fuzzy sets:

  • A fuzzy set is a set having degrees of membership between 1 and 0. 

  • Partial membership exists when members of one fuzzy set can also be a part of other fuzzy sets in the same universe.

  • The degree of membership or truth is not the same as probability, fuzzy truth represents membership in vaguely defined sets.

3. What are the Disadvantages of Fuzzy Logic Systems?

Ans: Following are the disadvantages of the fuzzy logic system:

  • Many researchers proposed different ways to solve a given problem through fuzzy logic that lead to ambiguity. There is no systematic approach to solve a given problem with the help of fuzzy logic.

  • Proof of its characteristics is difficult or impossible in most cases because every time we do not get a mathematical description of our approach.

  • As fuzzy logic works on precise as well as imprecise data so most of the time we have to compromise with accuracy.