SlideShare a Scribd company logo
2
Most read
5
Most read
14
Most read
21
ForwardChaining
BACKWARDCHAINING
Subscribe
Inference Engine
 The inference engine is the component of the intelligent system in artificial intelligence, which
applies logical rules to the knowledge base to infer new information from known facts.
 Inference engine compares each rule stored in the knowledge base with facts contained in the
database. When the IF (condition) part of the rule matches a fact , the rule is fired and its
THEN (action) part is executed.
 Modus Ponens:
 The Modus Ponens rule is one of the most important rules of inference, and it states that if P
and P → Q is true, then we can infer that Q will be true.
 if P implies Q, then P is called the antecedent and Q is called the consequent.
 Example:
 A It is raining
 AB if it is raining then i will carry an umbrella.
 B I will carry an umbrella (new knowledge)
Forward and Backward Chaining
 The Inference engine can take two basic approaches to search for an answer. These are:
Subscribe
• Start with atomic sentences in the
knowledge base and applies inference rules
(Modus Ponens) in the forward direction to
extract more data until a goal is reached.
Forward
Chaining
• Starts with the goal and works backward,
chaining through rules to find known facts
that support the goal.
Backward
Chaining
Example:
Forward Chaining
A He exercises regularly.
AB if he is exercising regularly, he is fit.
B He is fit
Backward Chaining
B He is fit
AB if he is exercising regularly, he is fit.
A He exercises regularly.
Subscribe
Forward Chaining Logic
 Forward chaining is also known as a forward deduction or forward reasoning method
when using an inference engine. The Forward-chaining algorithm starts from known
facts, triggers all rules whose premises are satisfied, and add their conclusion to the
known facts. This process repeats until the goal is reached.
 Properties of Forward-Chaining:
 It is a down-up approach, as it moves from bottom to top.
 It is a process of making a conclusion based on known facts or data, by starting from
the initial state and reaches the goal state.
 Forward-chaining approach is also called as data-driven as we reach to the goal using
available data.
 Forward -chaining approach is commonly used in the business, and production rule
systems.
Subscribe
Example of Forward Chaining
 Suppose that the goal is to conclude the color of a pet named Fritz, given that he
croaks and eats flies, and that the rule base contains the following four rules:
1. If X croaks and X eats flies - Then X is a frog
2. If X chirps and X sings - Then X is a canary
3. If X is a frog - Then X is green
4. If X is a canary - Then X is yellow
Facts:
 Fritz croaks
 Fritz eats flies
With forward reasoning, the inference engine can derive that Fritz is green in a
series of steps:
Subscribe
Example of Forward Chaining
1. If X croaks and X eats flies - Then X is a frog
2. If X chirps and X sings - Then X is a canary
3. If X is a frog - Then X is green
4. If X is a canary - Then X is yellow
1.Since the base facts indicate that "Fritz croaks" and "Fritz eats flies", the
antecedent of rule 1 is satisfied by substituting Fritz for X, and the inference engine
concludes:
Fritz is a frog.
2. The antecedent of rule 3 is then satisfied by substituting Fritz for X, and the
inference engine concludes:
Fritz is green
Subscribe
Backward Chaining Logic
 Backward-chaining is also known as a backward deduction or backward reasoning method
when using an inference engine. A backward chaining algorithm is a form of reasoning,
which starts with the goal and works backward, chaining through rules to find known facts
that support the goal.
 Properties of Forward-Chaining:
 It is known as a top-down approach.
 Backward-chaining is based on modus ponens inference rule.
 In backward chaining, the goal is broken into sub-goal or sub-goals to prove the facts true.
 It is called a goal-driven approach, as a list of goals decides which rules are selected and
used.
 Backward -chaining algorithm is used in game theory, automated theorem proving tools,
inference engines, proof assistants, and various AI applications.
 The backward-chaining method mostly used a depth-first search strategy for proof.
Subscribe
Example of Backward Chaining
For example, suppose a new pet, Fritz, is delivered in an opaque box along with two facts
about Fritz:
 Fritz croaks
 Fritz eats flies
The goal is to decide whether Fritz is green, based on a rule base containing the following
four rules:
1. If X croaks and X eats flies - Then X is a frog
2. If X chirps and X sings - Then X is a canary
3. If X is a frog - Then X is green
4. If X is a canary - Then X is yellow
With backward reasoning, an inference engine can determine whether Fritz is green in four
steps.
Subscribe
Example of Backward Chaining
1. If X croaks and X eats flies - Then X is a frog
2. If X chirps and X sings - Then X is a canary
3. If X is a frog - Then X is green
4. If X is a canary - Then X is yellow
To start, the query is phrased as a goal assertion that is to be proved: "Fritz is green".
1. Fritz is substituted for X in rule 3 to see if its consequent matches the goal, so rule 3 becomes:
If Fritz is a frog - Then Fritz is green
Since the consequent matches the goal ("Fritz is green"), the rules engine now needs to see if the antecedent
("Fritz is a frog") can be proved. The antecedent, therefore, becomes the new goal:
Fritz is a frog
Subscribe
Continue…
1. If X croaks and X eats flies - Then X is a frog
2. If X chirps and X sings - Then X is a canary
3. If X is a frog - Then X is green
4. If X is a canary - Then X is yellow
2. Again substituting Fritz for X, rule 1 becomes:
If Fritz croaks and Fritz eats flies - Then Fritz is a frog
Since the consequent matches the current goal ("Fritz is a frog"), the inference engine now needs to
see if the antecedent ("Fritz croaks and eats flies") can be proved. The antecedent, therefore, becomes
the new goal: Fritz croaks and Fritz eats flies
Subscribe
Continue…
Subscribe
 3. Since this goal is a conjunction of two statements, the inference engine breaks it
into two sub-goals, both of which must be proved:
Fritz croaks and Fritz eats flies
 4.To prove both sub-goals, the inference engine sees that both sub-goals were given
as initial facts. Therefore, the conjunction is true:
Fritz croaks and Fritz eats flies
therefore, the antecedent of rule 1 is true and the consequent must be true:
 Fritz is a frog.
 therefore, the antecedent of rule 3 is true and the consequent must be true:
 Fritz is green.
Rule 1: If X croaks and X eats flies - Then X is a frog
Rule 3: If X is a frog - Then X is green.
SUMMARY
Subscribe
Comparison
Forward Chaining
 Forward chaining starts from known facts and
applies inference rule to extract more data unit it
reaches to the goal.
 Forward chaining is known as data-driven
inference technique as we reach to the goal using
the available data.
 It is a bottom-up approach.
 Forward chaining reasoning applies a breadth-
first search strategy.
 Forward chaining is suitable for the planning,
monitoring, control, and interpretation application.
 Forward chaining can generate an infinite number
of possible conclusions.
 Forward chaining is aimed for any conclusion.
Backward Chaining
 Backward chaining starts from the goal and works
backward through inference rules to find the required
facts that support the goal.
 Backward chaining is known as goal-driven
technique as we start from the goal and divide into
sub-goal to extract the facts.
 It is a top-down approach.
 Backward chaining reasoning applies a depth-first
search strategy.
 Backward chaining is suitable for diagnostic,
prescription, and debugging application.
 Backward chaining generates a finite number of
possible conclusions.
 Backward chaining is only aimed for the required
data.
Subscribe
Thanks For
Watching
Reference:
Artificial Intelligence
A Modern Approach Third Edition
Peter Norvig and Stuart J. Russell
Subscribe
Like
Share
OMega TechEd
About the Channel
This channel helps you to prepare for BSc IT and BSc computer science subjects.
In this channel we will learn Business Intelligence ,Artificial Intelligence, Digital Electronics,
Internet OF Things Python programming , Data-Structure etc.
Which is useful for upcoming university exams.
Gmail: omega.teched@gmail.com
Social Media Handles:
omega.teched
megha_with
Subscribe

More Related Content

PPTX
2. forward chaining and backward chaining
monircse2
 
PPTX
Rule based system
Dr. C.V. Suresh Babu
 
PPTX
Knowledge representation and Predicate logic
Amey Kerkar
 
PPTX
Forward Backward Chaining
QAU ISLAMABAD,PAKISTAN
 
PDF
Artificial Intelligence Notes Unit 2
DigiGurukul
 
PPTX
knowledge representation using rules
Harini Balamurugan
 
PPTX
Artificial Intelligence Notes Unit 5
DigiGurukul
 
PPT
Knowledge Representation in Artificial intelligence
Yasir Khan
 
2. forward chaining and backward chaining
monircse2
 
Rule based system
Dr. C.V. Suresh Babu
 
Knowledge representation and Predicate logic
Amey Kerkar
 
Forward Backward Chaining
QAU ISLAMABAD,PAKISTAN
 
Artificial Intelligence Notes Unit 2
DigiGurukul
 
knowledge representation using rules
Harini Balamurugan
 
Artificial Intelligence Notes Unit 5
DigiGurukul
 
Knowledge Representation in Artificial intelligence
Yasir Khan
 

What's hot (20)

PPT
Conceptual dependency
Jismy .K.Jose
 
PDF
AI 7 | Constraint Satisfaction Problem
Mohammad Imam Hossain
 
PDF
Informed search
Amit Kumar Rathi
 
PDF
I. AO* SEARCH ALGORITHM
vikas dhakane
 
PPTX
Probabilistic Reasoning
Junya Tanaka
 
PPTX
AI: Logic in AI
DataminingTools Inc
 
PPT
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
PPTX
Heuristics Search Techniques in AI
Bharat Bhushan
 
PPTX
Knowledge representation in AI
Vishal Singh
 
PPTX
Frames
amitp26
 
PPTX
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
PPTX
Predicate logic
Harini Balamurugan
 
PPTX
Uninformed search /Blind search in AI
Kirti Verma
 
PPTX
Propositional logic
Rushdi Shams
 
PPTX
Control Strategies in AI
Bharat Bhushan
 
PPT
predicate logic example
SHUBHAM KUMAR GUPTA
 
PDF
Problem Solving
Amar Jukuntla
 
PPTX
AI: Learning in AI
DataminingTools Inc
 
PPTX
Semantic Networks
Jenny Galino
 
Conceptual dependency
Jismy .K.Jose
 
AI 7 | Constraint Satisfaction Problem
Mohammad Imam Hossain
 
Informed search
Amit Kumar Rathi
 
I. AO* SEARCH ALGORITHM
vikas dhakane
 
Probabilistic Reasoning
Junya Tanaka
 
AI: Logic in AI
DataminingTools Inc
 
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Heuristics Search Techniques in AI
Bharat Bhushan
 
Knowledge representation in AI
Vishal Singh
 
Frames
amitp26
 
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
Predicate logic
Harini Balamurugan
 
Uninformed search /Blind search in AI
Kirti Verma
 
Propositional logic
Rushdi Shams
 
Control Strategies in AI
Bharat Bhushan
 
predicate logic example
SHUBHAM KUMAR GUPTA
 
Problem Solving
Amar Jukuntla
 
AI: Learning in AI
DataminingTools Inc
 
Semantic Networks
Jenny Galino
 
Ad

Similar to Forward and Backward chaining in AI (20)

PPTX
Module 5 - Expert System-in artificial intelligence
veronica380506
 
PPTX
Rule Engine -backward chaining
Karthikeyan Sivapragassam
 
PPTX
AI PPT.pptx
TheMusicFever
 
PDF
9.-Forward-Chaining-and-Backward-Chaining.pdf
nietjrajichellam
 
PPTX
Expert System (Forward and Backward Chaining)
Sohail Ahmed
 
PPTX
Ai lecture 07 inference engine
Ahmad sohail Kakar
 
DOCX
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
JohnLeonard Onwuzuruigbo
 
PDF
Expert Systems: Definition, Functioning, and Development Approach - [Part: 2]
HoussemEddineDEGHA
 
PDF
AI_5 Resolution/ Channing
Khushali Kathiriya
 
PPT
Artificial Intelligence Lecture Slide-04
asmshafi1
 
PDF
artificial intelligence presentation.pdf
UsmanBilalMehmood
 
PDF
First Order Logic
Amar Jukuntla
 
PPTX
Artificial intelligence and machine learning
abishakathiresan1712
 
PPTX
Expert system
Sagar Sharma
 
PDF
17 2 expert systems
Tianlu Wang
 
PPT
Chapter3vmgvvh,vh,vvj,vdjvdsjvhdsvhgkvdd
talobaf607
 
PPT
m7-logic.ppt
CarlosUmaa32
 
PPT
Wk8of2
Adeel Qadri
 
PPTX
Artificial intelligence- Logic Agents
Nuruzzaman Milon
 
PPT
Expert Systems & Prolog
Fatih Karatana
 
Module 5 - Expert System-in artificial intelligence
veronica380506
 
Rule Engine -backward chaining
Karthikeyan Sivapragassam
 
AI PPT.pptx
TheMusicFever
 
9.-Forward-Chaining-and-Backward-Chaining.pdf
nietjrajichellam
 
Expert System (Forward and Backward Chaining)
Sohail Ahmed
 
Ai lecture 07 inference engine
Ahmad sohail Kakar
 
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
JohnLeonard Onwuzuruigbo
 
Expert Systems: Definition, Functioning, and Development Approach - [Part: 2]
HoussemEddineDEGHA
 
AI_5 Resolution/ Channing
Khushali Kathiriya
 
Artificial Intelligence Lecture Slide-04
asmshafi1
 
artificial intelligence presentation.pdf
UsmanBilalMehmood
 
First Order Logic
Amar Jukuntla
 
Artificial intelligence and machine learning
abishakathiresan1712
 
Expert system
Sagar Sharma
 
17 2 expert systems
Tianlu Wang
 
Chapter3vmgvvh,vh,vvj,vdjvdsjvhdsvhgkvdd
talobaf607
 
m7-logic.ppt
CarlosUmaa32
 
Wk8of2
Adeel Qadri
 
Artificial intelligence- Logic Agents
Nuruzzaman Milon
 
Expert Systems & Prolog
Fatih Karatana
 
Ad

More from Megha Sharma (20)

PPTX
Designing Printed Circuit boards, Software Choices, The Design Process
Megha Sharma
 
PPTX
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
Megha Sharma
 
PPTX
Business Model, make thing, sell thing, subscription, customization, Key Reso...
Megha Sharma
 
PPTX
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
Megha Sharma
 
PPTX
Sketch, Iterate and Explore, Nondigital Methods.
Megha Sharma
 
PPTX
CNC Milling, Software, Repurposing and Recycling.
Megha Sharma
 
PPTX
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
Megha Sharma
 
PPTX
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
Megha Sharma
 
PPTX
Memory management, Types of memory, Making the most of your RAM.
Megha Sharma
 
PPTX
Performance and Battery Life, Libraries, Debugging.
Megha Sharma
 
PPTX
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
Megha Sharma
 
PPTX
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
Megha Sharma
 
PPTX
Open Source versus Closed Source in IOT in IOT
Megha Sharma
 
PPTX
Why closed? Why Open? Mixing open and closed source
Megha Sharma
 
PPTX
Model Performance Metrics. Accuracy, Precision, Recall
Megha Sharma
 
PPTX
Graceful Degradation and Affordance in IOT
Megha Sharma
 
PPTX
Web thinking connected device, Small Pieces Loosely joined.
Megha Sharma
 
PPTX
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
Megha Sharma
 
PPTX
Whose data is it anyways? Public vs Private data collection.
Megha Sharma
 
PPTX
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...
Megha Sharma
 
Designing Printed Circuit boards, Software Choices, The Design Process
Megha Sharma
 
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
Megha Sharma
 
Business Model, make thing, sell thing, subscription, customization, Key Reso...
Megha Sharma
 
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
Megha Sharma
 
Sketch, Iterate and Explore, Nondigital Methods.
Megha Sharma
 
CNC Milling, Software, Repurposing and Recycling.
Megha Sharma
 
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
Megha Sharma
 
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
Megha Sharma
 
Memory management, Types of memory, Making the most of your RAM.
Megha Sharma
 
Performance and Battery Life, Libraries, Debugging.
Megha Sharma
 
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
Megha Sharma
 
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
Megha Sharma
 
Open Source versus Closed Source in IOT in IOT
Megha Sharma
 
Why closed? Why Open? Mixing open and closed source
Megha Sharma
 
Model Performance Metrics. Accuracy, Precision, Recall
Megha Sharma
 
Graceful Degradation and Affordance in IOT
Megha Sharma
 
Web thinking connected device, Small Pieces Loosely joined.
Megha Sharma
 
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
Megha Sharma
 
Whose data is it anyways? Public vs Private data collection.
Megha Sharma
 
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...
Megha Sharma
 

Recently uploaded (20)

PPTX
CDH. pptx
AneetaSharma15
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
CDH. pptx
AneetaSharma15
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Virus sequence retrieval from NCBI database
yamunaK13
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 

Forward and Backward chaining in AI

  • 2. Subscribe Inference Engine  The inference engine is the component of the intelligent system in artificial intelligence, which applies logical rules to the knowledge base to infer new information from known facts.  Inference engine compares each rule stored in the knowledge base with facts contained in the database. When the IF (condition) part of the rule matches a fact , the rule is fired and its THEN (action) part is executed.  Modus Ponens:  The Modus Ponens rule is one of the most important rules of inference, and it states that if P and P → Q is true, then we can infer that Q will be true.  if P implies Q, then P is called the antecedent and Q is called the consequent.  Example:  A It is raining  AB if it is raining then i will carry an umbrella.  B I will carry an umbrella (new knowledge)
  • 3. Forward and Backward Chaining  The Inference engine can take two basic approaches to search for an answer. These are: Subscribe • Start with atomic sentences in the knowledge base and applies inference rules (Modus Ponens) in the forward direction to extract more data until a goal is reached. Forward Chaining • Starts with the goal and works backward, chaining through rules to find known facts that support the goal. Backward Chaining
  • 4. Example: Forward Chaining A He exercises regularly. AB if he is exercising regularly, he is fit. B He is fit Backward Chaining B He is fit AB if he is exercising regularly, he is fit. A He exercises regularly. Subscribe
  • 5. Forward Chaining Logic  Forward chaining is also known as a forward deduction or forward reasoning method when using an inference engine. The Forward-chaining algorithm starts from known facts, triggers all rules whose premises are satisfied, and add their conclusion to the known facts. This process repeats until the goal is reached.  Properties of Forward-Chaining:  It is a down-up approach, as it moves from bottom to top.  It is a process of making a conclusion based on known facts or data, by starting from the initial state and reaches the goal state.  Forward-chaining approach is also called as data-driven as we reach to the goal using available data.  Forward -chaining approach is commonly used in the business, and production rule systems. Subscribe
  • 6. Example of Forward Chaining  Suppose that the goal is to conclude the color of a pet named Fritz, given that he croaks and eats flies, and that the rule base contains the following four rules: 1. If X croaks and X eats flies - Then X is a frog 2. If X chirps and X sings - Then X is a canary 3. If X is a frog - Then X is green 4. If X is a canary - Then X is yellow Facts:  Fritz croaks  Fritz eats flies With forward reasoning, the inference engine can derive that Fritz is green in a series of steps: Subscribe
  • 7. Example of Forward Chaining 1. If X croaks and X eats flies - Then X is a frog 2. If X chirps and X sings - Then X is a canary 3. If X is a frog - Then X is green 4. If X is a canary - Then X is yellow 1.Since the base facts indicate that "Fritz croaks" and "Fritz eats flies", the antecedent of rule 1 is satisfied by substituting Fritz for X, and the inference engine concludes: Fritz is a frog. 2. The antecedent of rule 3 is then satisfied by substituting Fritz for X, and the inference engine concludes: Fritz is green Subscribe
  • 8. Backward Chaining Logic  Backward-chaining is also known as a backward deduction or backward reasoning method when using an inference engine. A backward chaining algorithm is a form of reasoning, which starts with the goal and works backward, chaining through rules to find known facts that support the goal.  Properties of Forward-Chaining:  It is known as a top-down approach.  Backward-chaining is based on modus ponens inference rule.  In backward chaining, the goal is broken into sub-goal or sub-goals to prove the facts true.  It is called a goal-driven approach, as a list of goals decides which rules are selected and used.  Backward -chaining algorithm is used in game theory, automated theorem proving tools, inference engines, proof assistants, and various AI applications.  The backward-chaining method mostly used a depth-first search strategy for proof. Subscribe
  • 9. Example of Backward Chaining For example, suppose a new pet, Fritz, is delivered in an opaque box along with two facts about Fritz:  Fritz croaks  Fritz eats flies The goal is to decide whether Fritz is green, based on a rule base containing the following four rules: 1. If X croaks and X eats flies - Then X is a frog 2. If X chirps and X sings - Then X is a canary 3. If X is a frog - Then X is green 4. If X is a canary - Then X is yellow With backward reasoning, an inference engine can determine whether Fritz is green in four steps. Subscribe
  • 10. Example of Backward Chaining 1. If X croaks and X eats flies - Then X is a frog 2. If X chirps and X sings - Then X is a canary 3. If X is a frog - Then X is green 4. If X is a canary - Then X is yellow To start, the query is phrased as a goal assertion that is to be proved: "Fritz is green". 1. Fritz is substituted for X in rule 3 to see if its consequent matches the goal, so rule 3 becomes: If Fritz is a frog - Then Fritz is green Since the consequent matches the goal ("Fritz is green"), the rules engine now needs to see if the antecedent ("Fritz is a frog") can be proved. The antecedent, therefore, becomes the new goal: Fritz is a frog Subscribe
  • 11. Continue… 1. If X croaks and X eats flies - Then X is a frog 2. If X chirps and X sings - Then X is a canary 3. If X is a frog - Then X is green 4. If X is a canary - Then X is yellow 2. Again substituting Fritz for X, rule 1 becomes: If Fritz croaks and Fritz eats flies - Then Fritz is a frog Since the consequent matches the current goal ("Fritz is a frog"), the inference engine now needs to see if the antecedent ("Fritz croaks and eats flies") can be proved. The antecedent, therefore, becomes the new goal: Fritz croaks and Fritz eats flies Subscribe
  • 12. Continue… Subscribe  3. Since this goal is a conjunction of two statements, the inference engine breaks it into two sub-goals, both of which must be proved: Fritz croaks and Fritz eats flies  4.To prove both sub-goals, the inference engine sees that both sub-goals were given as initial facts. Therefore, the conjunction is true: Fritz croaks and Fritz eats flies therefore, the antecedent of rule 1 is true and the consequent must be true:  Fritz is a frog.  therefore, the antecedent of rule 3 is true and the consequent must be true:  Fritz is green. Rule 1: If X croaks and X eats flies - Then X is a frog Rule 3: If X is a frog - Then X is green.
  • 14. Comparison Forward Chaining  Forward chaining starts from known facts and applies inference rule to extract more data unit it reaches to the goal.  Forward chaining is known as data-driven inference technique as we reach to the goal using the available data.  It is a bottom-up approach.  Forward chaining reasoning applies a breadth- first search strategy.  Forward chaining is suitable for the planning, monitoring, control, and interpretation application.  Forward chaining can generate an infinite number of possible conclusions.  Forward chaining is aimed for any conclusion. Backward Chaining  Backward chaining starts from the goal and works backward through inference rules to find the required facts that support the goal.  Backward chaining is known as goal-driven technique as we start from the goal and divide into sub-goal to extract the facts.  It is a top-down approach.  Backward chaining reasoning applies a depth-first search strategy.  Backward chaining is suitable for diagnostic, prescription, and debugging application.  Backward chaining generates a finite number of possible conclusions.  Backward chaining is only aimed for the required data. Subscribe
  • 15. Thanks For Watching Reference: Artificial Intelligence A Modern Approach Third Edition Peter Norvig and Stuart J. Russell Subscribe Like Share
  • 16. OMega TechEd About the Channel This channel helps you to prepare for BSc IT and BSc computer science subjects. In this channel we will learn Business Intelligence ,Artificial Intelligence, Digital Electronics, Internet OF Things Python programming , Data-Structure etc. Which is useful for upcoming university exams. Gmail: [email protected] Social Media Handles: omega.teched megha_with Subscribe