Lecture 8 - Fuzzy Logic Architecture
Lecture 8 - Fuzzy Logic Architecture
“As complexity rises, precise statements lose meaning and meaningful statements lose precision”
― Lotfi A. Zadeh
Many tasks are simple for humans, but they create a continuous challenge for machines. Examples
of such systems include walking through a cluttered environment, lifting fragile objects or parking
a car. The ability of humans to deal with vague and imprecise data makes such tasks easy for us.
Therefore, if we aim to replicate the control actions of a human operator, we must be able to model
the activities of the operator and not of the plant itself. Our model must be built so that it is
capable of dealing with vague information.
A is old – true or false. binary logic
What Is Fuzzy Logic?
The 'Fuzzy' word means the things that are not clear or are vague. Sometimes, we cannot decide
in real life that the given problem or statement is either true or false. At that time, this concept
provides many values between the true and false and gives the flexibility to find the best solution
to that problem.
EIT 4350 Neural Network- BSMD
This concept provides the possibilities which are not given by computers, but similar to the range
of possibilities generated by humans.
In the Boolean system, only two possibilities (0 and 1) exist, where 1 denotes the absolute truth
value and 0 denotes the absolute false value. But in the fuzzy system, there are multiple
possibilities present between the 0 and 1, which are partially false and partially true.
1. This concept is flexible and we can easily understand and implement it.
2. It is used for helping the minimization of the logics created by the human.
3. It is the best method for finding the solution of those problems which are suitable for
approximate or uncertain reasoning.
4. It always offers two values, which denote the two possible solutions for a problem and
statement.
5. It allows users to build or create the functions which are non-linear of arbitrary complexity.
6. In fuzzy logic, everything is a matter of degree.
7. In the Fuzzy logic, any system which is logical can be easily fuzzified.
8. It is based on natural language processing.
9. It is also used by the quantitative analysts for improving their algorithm's execution.
10. It also allows users to integrate with the programming.
In the architecture of the Fuzzy Logic system, each component plays an important role. The
architecture consists of the different four components which are given below.
1. Rule Base
2. Fuzzification
3. Inference Engine
4. Defuzzification
EIT 4350 Neural Network- BSMD
1. Rule Base
Rule Base is a component used for storing the set of rules and the If-Then conditions given by
the experts are used for controlling the decision-making systems. There are so many updates
that come in the Fuzzy theory recently, which offers effective methods for designing and tuning
of fuzzy controllers. These updates or developments decreases the number of fuzzy set of rules.
2. Fuzzification
Fuzzification is a module or component for transforming the system inputs, i.e., it converts the
crisp number into fuzzy steps. The crisp numbers are those inputs which are measured by the
sensors and then fuzzification passed them into the control systems for further processing. This
component divides the input signals into following five states in any Fuzzy Logic system:
o Large Positive (LP)
o Medium Positive (MP)
o Small (S)
o Medium Negative (MN)
o Large negative (LN)
EIT 4350 Neural Network- BSMD
3. Inference Engine
This component is a main component in any Fuzzy Logic system (FLS), because all the
information is processed in the Inference Engine. It allows users to find the matching degree
between the current fuzzy input and the rules. After the matching degree, this system
determines which rule is to be added according to the given input field. When all rules are fired,
then they are combined for developing the control actions.
4. Defuzzification
Defuzzification is a module or component, which takes the fuzzy set inputs generated by
the Inference Engine, and then transforms them into a crisp value. It is the last step in the
process of a fuzzy logic system. The crisp value is a type of value which is acceptable by the user.
Various techniques are present to do this, but the user has to select the best one for reducing the
errors.
Membership Function
The membership function is a function which represents the graph of fuzzy sets, and allows users
to quantify the linguistic term. It is a graph which is used for mapping each element of x to the
value between 0 and 1.
This function of Membership was introduced in the first papers of fuzzy set by Zadeh. For the
Fuzzy set B, the membership function for X is defined as: μB:X → [0,1]. In this function X, each
element of set B is mapped to the value between 0 and 1. This is called a degree of membership or
membership value.
1. This theory is a class of those sets having 1. This theory is a class of those sets having un-sharp
sharp boundaries. boundaries.
2. This set theory is defined by exact 2. This set theory is defined by ambiguous
boundaries only 0 and 1. boundaries.
3. In this theory, there is no uncertainty about 3. In this theory, there always exists uncertainty about
the boundary's location of a set. the boundary's location of a set.
EIT 4350 Neural Network- BSMD
4. This theory is widely used in the design of 4. It is mainly used for fuzzy controllers.
digital systems.
• Fuzzy logic is not always accurate, so The results are perceived based on assumption, so it
may not be widely accepted.
• Fuzzy systems don’t have the capability of machine learning as-well-as neural network
type pattern recognition
• Validation and Verification of a fuzzy knowledge-based system needs extensive testing
with hardware
• Setting exact, fuzzy rules and, membership functions is a difficult task
• Some fuzzy time logic is confused with probability theory and the terms
• Example: In edge detection, fuzzy logic can be used to classify pixels as part of an edge or
not, based on their intensity gradients, providing more accurate results than traditional
methods.
4. Decision Support Systems
Fuzzy logic is employed in decision support systems to make informed decisions based on
incomplete or uncertain information. These systems assist in various domains, including finance,
healthcare, and industrial management.
• Example: In financial decision-making, fuzzy logic can be used to evaluate the risk and
return of investment options under uncertain market conditions.
5. Natural Language Processing (NLP)
Fuzzy logic aids in the interpretation and generation of human language by handling the inherent
ambiguity and imprecision of natural language.
• Example: In sentiment analysis, fuzzy logic can be used to evaluate the sentiment of a text
based on the degrees of positive, negative, and neutral sentiments expressed in the words and
phrases.
6. Robotics
In robotics, fuzzy logic is used for path planning, obstacle avoidance, and decision-making
processes. It enables robots to operate effectively in uncertain and dynamic environments.
• Example: Autonomous robots use fuzzy logic to navigate through environments by making
real-time decisions about speed, direction, and obstacle avoidance.
7. Industrial Automation
Fuzzy logic is applied in industrial automation for process control, quality assurance, and
predictive maintenance. It helps in managing complex industrial processes that are difficult to
model mathematically.
Following are the different application areas where the Fuzzy Logic concept is widely used:
1. It is used in Businesses for decision-making support system.
EIT 4350 Neural Network- BSMD
2. It is used in Automative systems for controlling the traffic and speed, and for improving
the efficiency of automatic transmissions. Automative systems also use the shift
scheduling method for automatic transmissions.
3. This concept is also used in the Defence in various areas. Defence mainly uses the Fuzzy
logic systems for underwater target recognition and the automatic target recognition of
thermal infrared images.
4. It is also widely used in the Pattern Recognition and Classification in the form of Fuzzy
logic-based recognition and handwriting recognition. It is also used in the searching of
fuzzy images.
5. Fuzzy logic systems also used in Securities.
6. It is also used in microwave oven for setting the lunes power and cooking strategy.
7. This technique is also used in the area of modern control systems such as expert systems.
8. Finance is also another application where this concept is used for predicting the stock
market, and for managing the funds.
9. It is also used for controlling the brakes.
10. It is also used in the industries of chemicals for controlling the ph, and chemical
distillation process.
11. It is also used in the industries of manufacturing for the optimization of milk and cheese
production.
12. It is also used in the vacuum cleaners, and the timings of washing machines.
13. It is also used in heaters, air conditioners, and humidifiers.
Fuzzy Logic has various advantages or benefits. Some of them are as follows:
1. The methodology of this concept works similarly as the human reasoning.
2. Any user can easily understand the structure of Fuzzy Logic.
3. It does not need a large memory, because the algorithms can be easily described with fewer
data.
EIT 4350 Neural Network- BSMD
4. It is widely used in all fields of life and easily provides effective solutions to the problems
which have high complexity.
5. This concept is based on the set theory of mathematics, so that's why it is simple.
6. It allows users for controlling the control machines and consumer products.
7. The development time of fuzzy logic is short as compared to conventional methods.
8. Due to its flexibility, any user can easily add and delete rules in the FLS system.
Fuzzy Logic has various disadvantages or limitations. Some of them are as follows:
1. The run time of fuzzy logic systems is slow and takes a long time to produce outputs.
2. Users can understand it easily if they are simple.
3. The possibilities produced by the fuzzy logic system are not always accurate.
4. Many researchers give various ways for solving a given statement using this technique
which leads to ambiguity.
5. Fuzzy logics are not suitable for those problems that require high accuracy.
6. The systems of a Fuzzy logic need a lot of testing for verification and validation.
Fuzzy logic examples
• Temperature control: Fuzzy logic can be used to control the temperature in a room by
using sensors to detect the current temperature and adjust the heating or cooling systems
accordingly. The fuzzy logic system can consider variables such as room size, insulation,
and the desired temperature to decide when to turn the heating or cooling systems on or
off.
• Image processing: Fuzzy logic can improve images’ quality by removing noise and
enhancing features. For example, these systems can identify the edges in a picture and
adjust the brightness and contrast to make the image clearer.
experience, education, and personal qualities. The system could assign a degree of
membership to each candidate based on how well they meet the criteria and use this
information to recommend who should be hired.
• Control systems: Fuzzy logic can control complex systems, such as robots or autonomous
vehicles, using sensory input to decide how to act. For example, a system could be used to
control a robot’s movements, adjusting its speed and direction based on the proximity of
obstacles and other factors.
1. What are the most effective evaluation metrics for ANN models?
2. Discuss various types of artificial neural networks, common activation functions
3. Artificial neural networks (ANN), and its applications, working of ANN.
4. Ethical considerations for neural networks and other machine learning algorithms.
5. Implement Logic Gates with Perceptron