Unit 3
Unit 3
KNOWLEDGE REPRESENTATION
AND REASONING
What is knowledge?
• facts, information, and skills acquired through experience or education; the theoretical or
practical understanding of a subject.
• Knowledge = information + rules
Humans are best at understanding, reasoning, and interpreting knowledge. Human knows
things, which is knowledge and as per their knowledge they perform various actions in the
real world. But how machines do all these things comes under knowledge representation
and reasoning. Hence we can describe Knowledge representation as:
- Knowledge representation is not just storing data into some database, but it also
enables an intelligent machine to learn from that knowledge and experiences so that
it can behave intelligently like a human.
What to Represent:
● Facts: Facts are the truths about the real world and what we represent.
Types of knowledge:
1)Procedural Knowledge
● Procedural knowledge is a type of knowledge which is responsible for knowing
how to do something.
● It is also known as imperative knowledge.
● It can be directly applied to any task.
● It includes rules, strategies, procedures, agendas, etc.
● Procedural knowledge depends on the task on which it can be applied.
● Example - How to drive a car?
2)Declarative knowledge
● Declarative knowledge is to know about something.
● It includes concepts, facts, and objects.
● It is also called descriptive knowledge and expressed in declarative sentences.
● Example - Knowing that Paris is the capital of France.
3)Meta Knowledge
● Meta-knowledge is knowledge about knowledge, understanding which types of
knowledge to apply in different situations.
● Example - Knowing when to use a specific algorithm based on the problem at hand.
- The knowledge that blood pressure is more important for diagnosing a
medical condition than eye color.
4)Heuristic Knowledge
● Representing knowledge of some expert in a field or subject.
● Heuristic knowledge is rules of thumb based on previous experiences, awareness of
approaches, and which are good to work but not guaranteed.
● Example - Using an educated guess to approximate a solution when time is limited.
5)Structural Knowledge
● Structural knowledge is basic knowledge to problem-solving.
● It describes relationships between various concepts such as kind of, part of, and
grouping of something.
● It describes the relationship that exists between concepts or objects.
● Example - Understanding the hierarchy of concepts in a taxonomy or the
relationships between different entities in a semantic network.
- How various parts of a car fit together to make a car, or knowledge
structures in terms of concepts, sub concepts and objects.
AI knowledge cycle:
An Artificial intelligence system has the following components for displaying
intelligent behavior:
The above diagram is showing how an AI system can interact with the real world
and what components help it to show intelligence.
In the complete cycle, the main components are knowledge representation and
Reasoning.
These two components are involved in showing the intelligence in machine-like
humans. These two components are independent with each other but also coupled
together.
2. Inheritable knowledge:
● In the inheritable knowledge approach, all data must be stored into a
hierarchy of classes.
● All classes should be arranged in a generalized form or a hierarchal manner.
● In this approach, we apply inheritance property.
● Elements inherit values from other members of a class.
● This approach contains inheritable knowledge which shows a relation
between instance and class, and it is called instance relation.
● Every individual frame can represent the collection of attributes and its
value.
● In this approach, objects and values are represented in Boxed nodes.
● We use Arrows which point from objects to their values.
Example:
3. Inferential knowledge:
● Inferential knowledge approach represents knowledge in the form of formal
logics.
● This approach can be used to derive more facts.
● It guaranteed correctness.
Example: She's making herself a snack, so she must be hungry.
'He's taken his coat, so it must be cold outside. '
'They're an animal lover, so I bet they love cats too. '
4. Procedural knowledge:
● Procedural knowledge approach uses small programs and codes which
describe how to do specific things, and how to proceed.
● In this approach, one important rule is used which is the If-Then rule.
● In this knowledge, we can use various coding languages such as LISP
language and Prolog language.
● We can easily represent heuristic or domain-specific knowledge using this
approach.
● But it is not necessary that we can represent all cases in this approach.
Example: Making a cup of tea
A procedural knowledge representation for making tea could include the steps of boiling
water, adding a tea bag, pouring the hot water into a cup, and removing the tea bag.
Syntax:
● Syntaxes are the rules which decide how we can construct legal sentences in logic.
● It determines which symbol we can use in knowledge representation.
● How to write those symbols.
2. Semantics:
● Semantics are the rules by which we can interpret the sentence in the logic.
● Semantic also involves assigning a meaning to each sentence.
● Logical representation can be categorised into mainly two logics:
- Propositional Logics
- Predicate logics
Example: Following are some statements which we need to represent in the form of nodes
and arcs.
Statements:
Jerry is a cat.
Jerry is a mammal
Jerry is owned by Priya.
Jerry is white colored.
All Mammals are animals.
In the above diagram, we have represented the different types of knowledge in the form of
nodes and arcs. Each object is connected with another object by some relation.
3. Frame Representation
A frame is a record-like structure which consists of a collection of attributes and its values
to describe an entity in the world. Frames are the AI data structure which divides
knowledge into substructures by representing stereotypical situations. It consists of a
collection of slots and slot values. These slots may be of any type and sizes. Slots have
names and values which are called facets.
Facets: The various aspects of a slot are known as Facets. Facets are features of frames
which enable us to put constraints on the frames.
Example: IF-NEEDED facts are called when data of any particular slot is needed. A frame
may consist of any number of slots, and a slot may include any number of facets and facets
may have any number of values. A frame is also known as slot-filter knowledge
representation in artificial intelligence.
Example: 1
Let's take an example of a frame for a book
Example 2:
Let's suppose we are taking an entity, Peter. Peter is an engineer as a profession, and his age
is 25, he lives in city London, and the country is England. So following is the frame
representation for this:
4. Production Rules
Production rules system consists of (condition, action) pairs which mean, "If condition then
action". It has mainly three parts:
In production rules agent checks for the condition and if the condition exists then
production rule fires and corresponding action is carried out. The condition part of the rule
determines which rule may be applied to a problem. And the action part carries out the
associated problem-solving steps. This complete process is called a recognize-act cycle.
The working memory contains the description of the current state of problems-solving and
rule can write knowledge to the working memory. This knowledge match and may fire
other rules.
If there is a new situation (state) generates, then multiple production rules will be fired
together, this is called conflict set. In this situation, the agent needs to select a rule from
these sets, and it is called a conflict resolution.
Example:
● IF (at bus stop AND bus arrives) THEN action (get into the bus)
● IF (on the bus AND paid AND empty seat) THEN action (sit down).
● IF (on bus AND unpaid) THEN action (pay charges).
● IF (bus arrives at destination) THEN action (get down from the bus).
Knowledge agent
● An intelligent agent needs knowledge about the real world for taking decisions and
reasoning to act efficiently.
● Knowledge-based agents are those agents who have the capability of maintaining an
internal state of knowledge, reason over that knowledge, update their knowledge
after observations and take actions.
● These agents can represent the world with some formal representation and act
intelligently.
● It TELLS what it recognizes from the environment and what it needs to know to
the knowledge base.
● It ASKS what actions to do? and gets answers from the knowledge base.
● It TELLS which action is selected , then the agent will execute that action.
Algorithm :
If a percept is given, agent adds it to KB, then it will ask KB for the best action and then
tells KB that it has in fact taken that action.
--------------------------------------------------------------------------------------------
Logic
● One of the prime activities of the human intelligence is reasoning.
● The activity of reasoning involves construction, organization and manipulation of
statements to arrive at new conclusions.
● Thus logic can be defined as a scientific study of the process of reasoning.
● Logic is a formal language.
● Logic is basically classified in two main categories
– Propositional logic
– Predicate logic
Predicate logic
Predicate Logic deals with predicates, which are propositions, consisting of variables.
Predicates: Predicates are statements or propositions that can be either true or false
depending on the values of their arguments. They represent properties, relations, or
characteristics of objects.
Variables: Variables are symbols that can take on different values. In predicate logic,
variables are used to represent objects or entities in the domain of discourse. For example,
"x" in "IsHungry(x)" can represent any object in the domain, such as a person, animal, or
thing.
Constants: Constants are specific values that do not change. They represent particular
objects in the domain. For instance, in a knowledge base about people, "Alice" and "Bob"
might be constants representing specific individuals.
Quantifier:
The variable of predicates is quantified by quantifiers. There are two types of quantifier in
predicate logic - Existential Quantifier and Universal Quantifier.
● Existential Quantifier:
If p(x) is a proposition over the universe U. Then it is denoted as ∃x p(x) and read as
"There exists at least one value in the universe of variable x such that p(x) is true. The
quantifier ∃ is called the existential quantifier.
There are several ways to write a proposition, with an existential quantifier, i.e.,
(∃x∈A)p(x) or ∃x∈A such that p (x) or (∃x)p(x) or p(x) is true for some
x ∈A.
● Universal Quantifier:
If p(x) is a proposition over the universe U. Then it is denoted as ∀x,p(x) and read as "For
every x∈U,p(x) is true." The quantifier ∀ is called the Universal Quantifier.
Propositional logic
Propositional logic is a representational language that makes the assumption that the world
can be represented solely in terms of propositions that are true or false.
One of the main concerns of propositional logic is the study of rules by which new logic
variables can be produced as functions of some given logic variables.
Connectives
----------------------------------------------------------------------------------------------
-
Well-formed formulas (WFF)
A well-formed formula (WFF) in artificial intelligence (AI) is a syntactically correct
formula that uses propositional symbols, logical connectives, and parentheses.
WFFs are used in propositional logic and predicate logic.
Inference rule
The inference rules of propositional logic provide the means to perform logical proofs or
deductions.
Example:
If a conditional statement is true, and its consequent is false, then its antecedent must also
be false.
Example:
If two conditional statements are true, where the consequent of the first is the antecedent of
the second, then a third conditional statement combining the antecedent of the first and the
consequent of the second is also true.
Example:
4. Disjunctive Syllogism
If a disjunction (an “or” statement) is true, and one of the disjuncts (the parts of the “or”
statement) is false, then the other disjunct must be true.
Example:
Premise: It is either raining or sunny.
Premise: It is not raining.
Conclusion: It is sunny.
5. Conjunction
If two statements are true, then their conjunction (an “and” statement) is also true.
Example:
Premise: It is raining.
Premise: It is windy.
Conclusion: It is raining and windy.
6. Simplification
If a conjunction (an “and” statement) is true, then each of its conjuncts is also true.
Form:
If p ∧ q, then p
If p ∧ q, then q
Example:
7. Addition
If a statement is true, then the disjunction (an “or” statement) of that statement with any
other statement is also true.
Form:
If p, then p ∨ q
Example:
Premise: It is raining.
Conclusion: It is raining or sunny.
Forward chaining is fact-based, starts with available facts, and applies rules to derive new
information moving step-by-step toward a conclusion.
1. Fire Alarm Systems: Sensors detect smoke or heat (facts), and rules trigger alarms or
sprinklers (conclusions).
2. Recommendation Systems: Systems like Netflix or Amazon use user data (facts) to
apply rules and suggest products or content (conclusions).
3. Traffic Light Control :Sensors monitor vehicle flow (facts), and rules adjust traffic
signals (conclusions).
Fact: High traffic detected on Road A.
Rule: If Road A has high traffic, extend the green light duration.
Action: Green light on Road A stays longer.
4. Smart Home Systems: Sensors detect environmental changes (facts), and rules automate
device responses (conclusions).
Forward chaining is typically used in scenarios where data is available, and the system
needs to process all facts to reach a conclusion.
1. Medical Diagnosis: A doctor suspects a patient has diabetes (goal) and seeks evidence to
confirm it.
Both methods serve distinct purposes. Forward chaining is effective for knowledge
discovery, while backward chaining excels in hypothesis validation. Choosing the right
approach depends on the problem context and the available data structure.
A Boolean Circuit Agent in AI refers to an intelligent system that utilizes Boolean circuits
to process information, make decisions, or perform computations.
Boolean circuits are computational models made up of logic gates (AND, OR, NOT, XOR,
etc.) that take binary inputs (0s and 1s) and produce binary outputs.
Boolean Circuits:
Applications
● Digital Decision-Making: Used in robotics, automation, and embedded systems.
● Expert Systems: Implements rule-based AI using Boolean logic.
● Cryptography & Security: Used in circuit-based cryptographic protocols.
● Hardware AI: Optimized circuits in neuromorphic computing and logic-based AI.
Inputs:
● V (Vehicle sensor) – 1 if a vehicle is detected at the intersection, 0 otherwise.
● P (Pedestrian sensor) – 1 if a pedestrian is waiting to cross, 0 otherwise.
● T (Timer condition) – 1 if the light has been green for a minimum time, 0 otherwise.
Outputs:
● G (Green Light ON)
● R (Red Light ON)
● The green light (G) stays ON if no pedestrian is waiting OR the timer has not
expired:
G=(¬P)∨(¬T)
● The red light (R) turns ON if a pedestrian is waiting AND the timer has expired:
R=P∧T
Truth Table
How It Works
● If no pedestrian is detected (P=0), the light stays green.
● If a pedestrian is waiting and the timer has expired (P=1,T=1), the light turns red.
● Vehicles do not directly affect the decision but will experience the light change
when a pedestrian is waiting.
Here's a Boolean circuit diagram for the Traffic Light Controller using logic gates. 🚦
Circuit Components
Inputs:
● P (Pedestrian sensor)
● T (Timer condition)
Logic Gates:
● NOT gates to invert P and T.
● AND gate to compute R=P∧T.
● OR gate to compute G=¬P∨¬T.
Outputs:
● G (Green light)
● R (Red light)
Circuit Diagram
P ----\
| AND |---- R (Red Light)
T ----/
Explanation
1. The NOT gates invert P and T, ensuring that if no pedestrian is present or the timer
hasn't expired, the light stays green.
2. The OR gate combines ¬P and ¬T, controlling the Green Light (G).
3. The AND gate ensures the Red Light (R) turns on only when both P=1 and T=1.
● These systems operate on a set of predefined rules and logic to make decisions,
perform tasks, or derive conclusions.
● Despite the rise of more advanced AI methodologies, such as machine learning and
neural networks, rule-based systems remain crucial due to their transparency, ease
of use, and interpretability.
1. Rules: The core of the system, these are conditional statements that define the
system's behavior. A rule generally follows the format "IF condition THEN action."
For example, in an expert system for medical diagnosis, a rule might be "IF patient
has fever AND cough THEN consider flu."
2. Knowledge Base: This is the repository where all the rules and facts are stored. The
knowledge base is built from domain-specific knowledge and can be manually
curated or derived from expert input.
3. Inference Engine: The inference engine is the component that applies the rules to
the knowledge base to derive conclusions or make decisions. It interprets the rules,
processes them against the current facts or data, and determines the appropriate
actions or outputs.
4. Working Memory: This is a dynamic component that holds the current facts or data
being processed by the system. It is updated as the inference engine applies rules
and new information becomes available.
5. User Interface: In many rule-based systems, the user interface allows users to
interact with the system, input data, and receive outputs or recommendations.
When a customer interacts with the chatbot, the inference engine matches their query with
the appropriate rule and executes the corresponding action.
Structured Knowledge Reasoning
● Structured knowledge reasoning is a way of using knowledge that is organized into
structures to solve problems.
● It is used in artificial intelligence (AI) and can help systems understand, infer, and
act on information.
Knowledge structure
● Knowledge is structured when its components have logical relationships.
● For example, a description of the London underground system is structured by
listing stations and the connections between them.
Knowledge representation
● Knowledge is represented graphically using nodes and lines or arcs to show
relationships.
Reasoning
● Reasoning processes include comparing and contrasting, interpreting, and
generalizing.
Structured knowledge reasoning can help systems perform better predictions and
make better decisions.
Semantic Net
● Formalism for representing information about objects, people, concepts and specific
relationships between them.
● The commonly used links in semantic net are of the following types.
● Every human, animal and bird is a living thing who breathes and eats.
● All birds can fly.
● All men and women are humans who have two legs.
● Cats are animals and have fur.
● All animals have skin and can move.
● Giraffe is an animal who is tall and has long legs.
● Parrot is a bird and is green in color.
● Tom is a cat.
● Tom caught a bird.
● Tom is owned by John.
● Tom is ginger in color.
● Cats like cream.
● The cat sat on the mat.
● A cat is a mammal.
● A bird is an animal.
● All mammals are animals.
● Mammals have fur
Inheritance
- It also helps us to maintain the consistency of the knowledge base by adding new
concepts and members of existing ones.
● Output:Yes, if the object has the desired property else return false
● Procedure:
Frames:
What Are Frames in AI?
● Frames are data structures used in AI to represent stereotypical situations or
scenarios.
● They encapsulate information about objects, events, and their interrelationships
within a particular context.
● Each frame consists of a set of attributes and values, forming a template for
understanding specific situations.
For instance, a "restaurant" frame might include attributes such as "menu," "waitstaff," and
"tables," each with its own set of details.
● Frames are designed to provide a structured way to capture the essential aspects of a
situation, facilitating easier retrieval and manipulation of information.
● They are akin to schemas or blueprints that organize knowledge into manageable
chunks.
4. Procedures:
- Procedures are methods or functions associated with frames that define how
the information within the frame should be processed or utilized.
1. Slots:
Title: "To Kill a Mockingbird"
Author: "Harper Lee"
Publication Year: 1960
SBN: "978-0-06-112008-4"
Genre: "Fiction"
2. Facets:
Publication Year:
Type: Integer
Range: 1450 to current year (reasonable range for publication years)
ISBN:
Format: 13-digit number
4. Procedures:
Check Availability: A method to check if the book is currently available in the library.
Inheritance in Frames
● Suppose we want to know nationality or phone of an instance-frame
frame13 of renuka.
● These informations are not given in this frame.
● Search will start from frame13 in upward direction till we get our
answer or have reached root frame.
● The frames can be easily represented in prolog by choosing predicate
name as frame with two arguments.
● First argument is the name of the frame and second argument is a list of
slot - facet pair.
It should be noted that this representation is same for different saying with the same
meaning. For example
– I gave the man a book,
– The man got book from me,
– The book was given to man by me etc.
Few conventions
● Arrows indicate directions of dependency
● Double arrow indicates two way link between actor and action.
O – for the object case relation
R – for the recipient case relation
P – for past tense
D - destination
--------------------------------------------------------------------------------------------------------------
Reasoning Under Uncertainty:
Examples:
1. There are Six Tea Cups on top of the table if one falls down and how many are
remaining?
=> 5
Note Most Intelligence Systems have some degree of uncertainty associated with them.
2. All birds Fly !!!
Most of the birds Fly !!! ; 95% of the birds Fly !!!
Source of Uncertainty:
● Uncertain Inputs :
1. Missing data
2. Noisy data
3. Incomplete data
4. Unreliable data
5. Inconsistent data
6. Imprecise data
7. Guess data
8. Default data
● Uncertain Knowledge :
1. Multiple causes leads to multiple effects
2. Incomplete knowledge
3. Theoretical ignorance
4. Practical ignorance
● Uncertain Outputs :
1. Abduction, induction are uncertain
2. Default reasoning
3. Incomplete deduction inference
Example: Consider again the bus schedule. What’s the utility function?
Bayes Theorem
Bayes' theorem and Bayesian networks are crucial in AI for reasoning under uncertainty,
allowing systems to update beliefs based on new evidence and make informed decisions.
Bayes' theorem is also known as Bayes' rule, Bayes' law, or Bayesian reasoning, which
determines the probability of an event with uncertain knowledge.
In probability theory, it relates the conditional probability and marginal probabilities of two
random events.
What is Bayes Theorem?
Bayes Theorem is a method of calculating conditional probability.
● The traditional method of calculating conditional probability (the probability that
one event occurs given the occurrence of a different event) is to use the conditional
probability formula, calculating the joint probability of event one and event two
occurring at the same time, and then dividing it by the probability of event two
occurring.
● However, conditional probability can also be calculated in a slightly different
fashion by using Bayes Theorem.
When calculating conditional probability with Bayes theorem, you use the following steps:
❖ Determine the probability of condition B being true, assuming that condition A is
true.
❖ Determine the probability of event A being true.
❖ Multiply the two probabilities together.
❖ Divide by the probability of event B occurring.
❖ This means that the formula for Bayes Theorem could be expressed like this:
Where,
- P(A) and P(B) are the probabilities of events A and B also
- P(B) is never equal to zero,
- P(A|B) is the probability of event A when event B happens,
- P(B|A) is the probability of event B when A happens.
Case Study: Medical Diagnosis Expert systems built with the help of doctors and with
statistical records. Each disease has some symptoms.
Using a Bayesian network we can infer the probability of a certain disease given the
presence of specific symptoms.
Differential diagnostic tools, like DXPlain, use the Bayesian inference decision process to
take into account symptoms or lab results and then calculate the statistical probabilities of
various diagnoses.
By combining attributes from the patient’s file with clinical expertise, external data, it
identifies potential treatment plans for a patient.
--------------------------------------------------------------------------------------------------------
Certainty Factor
The Certainty Factor (CF) is a numeric value which tells us about how likely an event or a
statement is supposed to be true.
● It was introduced for systems which works on AI.
● CF is a measure of Uncertainty.
● It is based on the numbers of observations.
● Confidence tells about how likely the statement is true or false.
Confidence can be measured in 2 ways:
1. Measure of Belief
2. Measure of Disbelief
● CF is always lies between in the interval 1 and -1
● If CF is -1 then the statement never be true
● +1 then the statement is always true
Measure of Belief
It is always denoted as MB[H,E], where H is Hypothesis & E is Evidence
If MB[H,E]=0 then the H is false for E
If MB[H,E]=1 then the H is True for E
It always lies between interval[0,1]
Measure of Disbelief
MD[H,E]
MD[H,E]=0, then H supports Evidence
MD[H,E]=1, then H Does not supports Evidence
MB[H,E], MD[H,E]
Formulae for CF
Multiple Evidences and single Hypothesis
• MB[H,E1 and E2 ]=MB[H,E1]+ MB[H,E2]*[1- MB[H,E1]]
• MD[H,E1 and E2 ]=MD[H,E1]+ MD[H,E2]*[1- MD[H,E1]]
• CF[H,E1 and E2]= MB[H,E1 and E2 ]- MD[H,E1 and E2 ]
Now calculate CF
If MB[H,E]=1(True) then MD[H,E]=0
CF[H,E]=1
If MB[H,E]=0(False) then MD[H,E]=1
CF[H,E]=0
EXAMPLE
FOR E1 EVIDENCE:
MB[H,E1]=0.4
MD[H,E1]=0
FOR E2 EVIDENCE:
MB[H,E21]=0.3
MD[H,E2]=0.1
MB[H,E1 and E2 ]=MB[H,E1]+ MB[H,E2]*[1- MB[H,E1]
= 0.4+0.3*(1-0.4)
=0.4+0.3*0.6
=0.58
MD[H,E1 and E2 ]=MD[H,E1]+ MD[H,E2]*[1- MD[H,E1]
= 0+0.1*(1-0)
=0.1
CF=0.58-0.1= 0.48
Dempster-Shafer theory
Dempster-Shafer Theory was given by Arthur P. Dempster in 1967 and his student Glenn
Shafer in 1976.
This theory was released because of the following reason:-
• Bayesian theory is only concerned about single evidence.
• Bayesian probability cannot describe ignorance.
• DST is an evidence theory, it combines all possible outcomes of the problem.
Hence it is used to solve problems where there may be a chance that a piece of different
evidence will lead to some different result.
The uncertainty in this model is given by:-
• Consider all possible outcomes.
• Belief will lead to belief in some possibility by bringing out some evidence. (What is this
supposed to mean?)
• Possibility will make evidence compatible with possible outcomes.
• Example: Let us consider a room where four people are present, A, B, C, and D. Suddenly
the lights go out and when the lights come back, B has been stabbed in the back by a knife,
leading to his death. No one came into the room and no one left the room. We know that B
has not committed suicide. Now we have to find out who the murderer is.
To solve these there are the following possibilities:
• Either {A} or {C} or {D} has killed him.
• Either {A, C} or {C, D} or {A, D} have killed him.
• Or the three of them have killed him i.e; {A, C, D}
• None of them have killed him {o} (let’s say).
• There will be possible evidence by which we can find the murderer by the measure of
possibility.
Using the above example we can say:
Set of possible conclusion (P): {p1, p2….pn}
where P is a set of possible conclusions and cannot be exhaustive, i.e. at least one
(p) I must be true.
(p)I must be mutually exclusive.
Power Set will contain 2n elements where n is the number of elements in the possible set.
For eg:- If P =3 { a, b, c}, then Power set is given as {o, {a}, {b}, {c}, {a, d}, {d ,c}, {a, c},
{a, c ,d }}= 2 elements.
Application
● It is used in the aerospace field for altitude control of spacecraft and satellites.
● It has been used in the automotive system for speed control, traffic control.
● It is used for decision-making support systems and personal evaluation in the large
company business.
● It has application in the chemical industry for controlling the pH, drying, chemical
distillation process.
● Fuzzy logic is used in Natural language processing and various intensive
applications in Artificial Intelligence.
● Fuzzy logic is extensively used in modern control systems such as expert systems.
● Fuzzy Logic is used with Neural Networks as it mimics how a person would make
decisions, only much faster. It is done by Aggregation of data and changing it into
more meaningful data by forming partial truths as Fuzzy sets.