SlideShare a Scribd company logo
Expert System With Python
Ahmad Hussein
ahmadhussein.ah7@gmail.com
Lecture 1: Introduction
CONTENT OVERVIEW
• What is knowledge?
• Presenting Knowledge
• The main players in the development team
• Uses of Expert Systems
• Prominent Expert Systems
• Basic structure of a rule-base expert system
• Can expert systems make mistakes?
• Comparison of expert systems with conventional systems and human experts
• Forward chaining and backward chaining
• How do we choose between forward and backward chaining?
• Advantages and Disadvantages of rule-base expert systems
What is knowledge?
• Knowledge is a theoretical or practical understanding of a subject or
domain. Knowledge is also the sum of what is currently known, and
apparently knowledge is power. Those who possess knowledge are
called experts.
• Anyone can be considered a domain expert if he/she has deep
knowledge (of both fact and rules) and strong practical experience in
a particular domain. The area of the domain may be limited. In
general, an expert is a skillful person who can do things other people
cannot.
Presenting Knowledge
knowledge representation techniques:
• Rules
• Frames
• Semantic Nets
Presenting Knowledge
Rules:
• The term rule in AI, which is the most commonly used type of
knowledge representation, can be defined as an IF-THEN structure
that release given information or facts in the IF part to some action in
the THEN part. A rule provides some description of how to solve a
problem. Rules are relatively easy to create and understand.
• Any rule consists of two parts: the IF part, called the antecedent
(premise or condition) and the THEN part called consequent
(conclusion or action).
Presenting Knowledge
Rules:
• IF <condition> THEN <action>
• A rule can have multiple antecedents joined by the keywords AND
(conjunction), OR (disjunction) or a combination of both.
IF <condition1> AND <condition2> OR <condition3>
THEN <action>
Presenting Knowledge
Frames:
• Frames are also useful for representing knowledge. As frames allow
nodes to have structures they can be regarded as representations of
knowledge.
• A frame is similar to a record structure and corresponding to the
fields and values are slots and slot fillers.
Presenting Knowledge
Frames:
• A frame for a book is given below:
Slots Fillers
publisher Dana
title Expert Systems
author Ahmad
edition Third
year 2018
pages 600
Presenting Knowledge
Semantic Nets:
• semantic net (or semantic network) is a knowledge representation
technique used for propositional information. So it is also called a
propositional net. Semantic nets convey meaning. Mathematically a
semantic net can be defined as a labelled directed graph.
• Semantic nets consist of:
• Nodes
• Links (edges)
• Link labels
Presenting Knowledge
Semantic Nets:
Example:
Manar
Mammals
Female Persons
Persons
Male Persons
Karim
Subset of Subset of
Member ofMember of
Sister of
The main players in the development team
• There are five members of the expert system development team:
• The domain expert
• The knowledge engineer
• The programmer
• The project manager
• The end user
• The success of their expert system entirely depends on how well the
members work together.
The main players in the development team
Uses of Expert Systems
• Very useful to companies with a high-level of experience and expertise
that cannot easily be transferred to other members.
• Solves problems that would normally be tackled by a medical or other
professional.
• Currently used in fields such as accounting, medicine, process control,
financial service, production, and human resources.
Prominent Expert Systems
• MYCIN – used to diagnose infectious blood diseases and recommend
antibiotics.
• DENDRAL – embedded a chemist’s knowledge of mass spectrometry rules
to use in analysis.
• CADUCEUS – used to analyze blood-borne infectious bacteria
• CLIPS, JESS, Prolog and Pyknow programming languages are all used in
expert systems
• The Age of Empire game uses CLIPS to control its AI
Basic structure of a rule-base expert system
Basic structure of a rule-base expert system
• The knowledge base contains the domain knowledge useful for
problem solving. In a rule-based expert system, the knowledge is
represented as a set of rules. Each rule specifies a relation,
recommendation, directive, strategy or heuristic and has the IF
(condition) THEN (action) structure. When the condition part of a rule
is said to fire and the action part is executed.
• The database includes a set of facts used to match against the IF
(condition) part of rules stored in the knowledge base.
Basic structure of a rule-base expert system
• The inference engine carries out the reasoning whereby the expert
system reaches a solution. It links the rules given in the knowledge
base with the facts provided in the database.
• The explanation facilities enable the user to ask the expert system
how a particular conclusion is reached and why a specific fact is
needed. An expert system must be able to explain its reasoning and
justify its advice, analysis or conclusion.
• The user interface is the means of communication between a user
seeking a solution to problem and an expert system.
Can expert systems make mistakes?
Even a brilliant expert is only a human and thus can make mistakes.
This suggests that an expert system built to perform at a human expert
level also should be allow to make mistakes. But we still trust experts,
even we recognize that their judgements are sometimes wrong.
Likewise, at least in most cases, we can rely on solutions provided by
expert systems, but mistakes are possible and we should be aware of
this.
Comparison of expert systems with conventional systems
and human experts
Comparison of expert systems with conventional systems
and human experts
Forward chaining and backward chaining
• In rule-based expert system, the domain knowledge is represented by
a set of IF-THEN production rules and data is represented by a set of
facts about the current situation. The 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.
• The matching of the rule IF parts to the facts produces inference
chains. The inference chain indicates how an expert system applies
the rules to reach conclusion.
Inference engine cycle via a match-fire produce
Forward chaining
• Forward chaining is the data-driven reasoning. The reasoning starts
from the known data and proceeds forward with that data. Each time
only the topmost rule is executed. When fired, the rule adds a new
fact in the database. Any rule can be executed only once. The match-
fire cycle be executed only once. The match-fire cycle stops when no
further rules can be fired.
• forward chaining is a technique for gathering information and the
inferring for it whatever can be inferred.
Forward chaining
• However, in forward chaining, many rules may be executed that have
nothing to do with the established goal.
• therefore, if our goal is to infer only one particular fact, the forward
chaining inference technique would not be efficient.
Backward chaining
• Backward chaining is the goal-driven reasoning. In backward
chaining, an expert system has the goal (a hypothetical solution) and
the inference engine attempts to find the evidence to prove it. First,
the knowledge base is searched to find rules that might have the
desired solution. Such rules must have the goal in their THEN (action)
parts. If such a rule is found and its IF (condition) part matches data in
the database, then the rule is fired and the goal is proved. However,
this is rarely the case.
Backward chaining
• Thus the inference engine puts side rule it is working with (the rule is
said stack) and sets up a new goal, a subgoal, to prove the IF part of
this rule. Then the knowledge base is searched again for rules that
can prove the subgoal. The inference engine repeats the process of
stacking the rules until no rules are found in the knowledge base to
prove the current subgoal.
How do we choose between forward and
backward chaining?
• If an expert first needs to gather some information and then tries to
infer from it whatever can be inferred, choose the forward chaining
inference engine.
• However, if your expert begins with a hypothetical solution and then
attempts to find facts to prove it, choose the backward chaining
inference engine.
Advantages of rule-base expert systems
• Natural knowledge representation. An expert usually explains the
problem-solving procedure with such expressions as this: “In such-
and-such situation, I do so-and-so”. These expressions can be
represented quite naturally as IF-THEN production rules.
• Uniform structure. Production rules have the uniform IF-THEN
structure. Each rule is an independent piece of knowledge. The very
syntax of production rules enables them to be self-documented.
Advantages of rule-base expert systems
• Separation of knowledge from its processing. The structure of rule-
base expert system provides an effective separation of the knowledge
base from the inference engine. This makes it possible to develop
different applications using the same expert system shell.
• Dealing with incomplete and uncertain knowledge. Most rule-based
expert systems are capable of representing and reasoning with
incomplete and uncertain knowledge.
Disadvantages of rule-based expert systems
• Opaque relations between rules. Although the individual production
rules are relatively simple and self-documented, their logical
interactions within the large set of rules may be opaque. Rule-base
systems make it difficult to observe how individual rules serve the
overall strategy.
• Ineffective search strategy. The inference engine applies an
exhaustive search through all the production rules during each cycle.
Expert systems with a large set of rules (over 100 rules) can be slow,
and thus large rules-based systems can be unsuitable for real-time
applications.
Disadvantages of rule-based expert systems
• Inability to learn. In general, rule-based expert systems do not have
an ability to learn from the experience. Unlike a human expert, who
knows when to “break the rules”, an expert system can’t
automatically modify its knowledge base, or adjust existing rules or
add new ones. The knowledge engineer is still responsible for revising
and maintaining the system.

More Related Content

What's hot (20)

PDF
Expert system with python -2
Ahmad Hussein
 
PPT
Knowledge Representation & Reasoning
Sajid Marwat
 
PPTX
Water jug problem ai part 6
Kirti Verma
 
PPTX
Propositional logic
Rushdi Shams
 
PPTX
Reasoning in AI
Gunjan Chhabra
 
PPTX
Forward and Backward chaining in AI
Megha Sharma
 
PPTX
Lect6 Association rule & Apriori algorithm
hktripathy
 
PPTX
Frames
amitp26
 
PPTX
Knowledge representation and Predicate logic
Amey Kerkar
 
PPTX
Data Mining: Mining ,associations, and correlations
Datamining Tools
 
PPTX
Uncertainty in AI
Amruth Veerabhadraiah
 
PDF
Loan approval prediction based on machine learning approach
Eslam Nader
 
PDF
Naive Bayes Classifier Tutorial | Naive Bayes Classifier Example | Naive Baye...
Edureka!
 
PPT
Conceptual dependency
Jismy .K.Jose
 
PPT
Rule Based System
Suresh Sambandam
 
PDF
Naive Bayes
CloudxLab
 
ODP
NAIVE BAYES CLASSIFIER
Knoldus Inc.
 
PPTX
Data science unit2
varshakumar21
 
PDF
Uncertain Knowledge in AI from Object Automation
Object Automation
 
Expert system with python -2
Ahmad Hussein
 
Knowledge Representation & Reasoning
Sajid Marwat
 
Water jug problem ai part 6
Kirti Verma
 
Propositional logic
Rushdi Shams
 
Reasoning in AI
Gunjan Chhabra
 
Forward and Backward chaining in AI
Megha Sharma
 
Lect6 Association rule & Apriori algorithm
hktripathy
 
Frames
amitp26
 
Knowledge representation and Predicate logic
Amey Kerkar
 
Data Mining: Mining ,associations, and correlations
Datamining Tools
 
Uncertainty in AI
Amruth Veerabhadraiah
 
Loan approval prediction based on machine learning approach
Eslam Nader
 
Naive Bayes Classifier Tutorial | Naive Bayes Classifier Example | Naive Baye...
Edureka!
 
Conceptual dependency
Jismy .K.Jose
 
Rule Based System
Suresh Sambandam
 
Naive Bayes
CloudxLab
 
NAIVE BAYES CLASSIFIER
Knoldus Inc.
 
Data science unit2
varshakumar21
 
Uncertain Knowledge in AI from Object Automation
Object Automation
 

Similar to Expert System With Python -1 (20)

PPTX
expert system for IGCSE students study material
RanjithS158967
 
PDF
Lecture 6 expert systems
Vajira Thambawita
 
PDF
Lec 4 expert systems
Eyob Seyfu
 
PPTX
Expert system
Sayeed Far Ooqui
 
PPTX
Artificial Intelligence for Automated Decision Support Project
Valerii Klymchuk
 
PPTX
Expert Systems in Artificial Inteligence
Mallikarjun Rao
 
PPTX
Artificial Intelligence Approaches
Jincy Nelson
 
PPTX
AI System.pptx
GloriaShweSinMinn
 
PPTX
Knowledge Representation in AI.pptx
Dr. Jasmine Beulah Gnanadurai
 
PPT
Chapter 4.ppt mizan Tepi university student population
MalichaGalma
 
PPT
Expert system
Tilakpoudel2
 
PPTX
Expert systems
Dr. C.V. Suresh Babu
 
PPT
Expert system
Adil Mehmoood
 
PPT
Neural network Artificial intelligence ppt
Mahima788170
 
PPT
Neural network Artificial intelligence ppt
Mahima788170
 
PPTX
Expert System Development.pptx
vrajESHsHaH33
 
PPT
Introduction to Expert Systems {Artificial Intelligence}
FellowBuddy.com
 
PPTX
Expert Systems
Amir NikKhah
 
PPTX
Expert system xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
VIGNESHTV8
 
PPTX
Expert system (unit 1 &amp; 2)
Lakshya Gupta
 
expert system for IGCSE students study material
RanjithS158967
 
Lecture 6 expert systems
Vajira Thambawita
 
Lec 4 expert systems
Eyob Seyfu
 
Expert system
Sayeed Far Ooqui
 
Artificial Intelligence for Automated Decision Support Project
Valerii Klymchuk
 
Expert Systems in Artificial Inteligence
Mallikarjun Rao
 
Artificial Intelligence Approaches
Jincy Nelson
 
AI System.pptx
GloriaShweSinMinn
 
Knowledge Representation in AI.pptx
Dr. Jasmine Beulah Gnanadurai
 
Chapter 4.ppt mizan Tepi university student population
MalichaGalma
 
Expert system
Tilakpoudel2
 
Expert systems
Dr. C.V. Suresh Babu
 
Expert system
Adil Mehmoood
 
Neural network Artificial intelligence ppt
Mahima788170
 
Neural network Artificial intelligence ppt
Mahima788170
 
Expert System Development.pptx
vrajESHsHaH33
 
Introduction to Expert Systems {Artificial Intelligence}
FellowBuddy.com
 
Expert Systems
Amir NikKhah
 
Expert system xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
VIGNESHTV8
 
Expert system (unit 1 &amp; 2)
Lakshya Gupta
 
Ad

More from Ahmad Hussein (6)

PDF
Knowledge Representation Methods
Ahmad Hussein
 
PDF
Knowledge-Base Systems Homework - 2019
Ahmad Hussein
 
PDF
Design Patterns
Ahmad Hussein
 
PDF
Knowledge based systems homework
Ahmad Hussein
 
PDF
Python introduction 2
Ahmad Hussein
 
PDF
Python introduction 1
Ahmad Hussein
 
Knowledge Representation Methods
Ahmad Hussein
 
Knowledge-Base Systems Homework - 2019
Ahmad Hussein
 
Design Patterns
Ahmad Hussein
 
Knowledge based systems homework
Ahmad Hussein
 
Python introduction 2
Ahmad Hussein
 
Python introduction 1
Ahmad Hussein
 
Ad

Recently uploaded (20)

PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
PPTX
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
PPTX
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 
PDF
AI Prompts Cheat Code prompt engineering
Avijit Kumar Roy
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
Best Web development company in india 2025
Greenusys
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Is Framer the Future of AI Powered No-Code Development?
Isla Pandora
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
Library_Management_System_PPT111111.pptx
nmtnissancrm
 
PDF
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
PDF
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 
AI Prompts Cheat Code prompt engineering
Avijit Kumar Roy
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
Best Web development company in india 2025
Greenusys
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Is Framer the Future of AI Powered No-Code Development?
Isla Pandora
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Library_Management_System_PPT111111.pptx
nmtnissancrm
 
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 

Expert System With Python -1

  • 1. Expert System With Python Ahmad Hussein [email protected] Lecture 1: Introduction
  • 2. CONTENT OVERVIEW • What is knowledge? • Presenting Knowledge • The main players in the development team • Uses of Expert Systems • Prominent Expert Systems • Basic structure of a rule-base expert system • Can expert systems make mistakes? • Comparison of expert systems with conventional systems and human experts • Forward chaining and backward chaining • How do we choose between forward and backward chaining? • Advantages and Disadvantages of rule-base expert systems
  • 3. What is knowledge? • Knowledge is a theoretical or practical understanding of a subject or domain. Knowledge is also the sum of what is currently known, and apparently knowledge is power. Those who possess knowledge are called experts. • Anyone can be considered a domain expert if he/she has deep knowledge (of both fact and rules) and strong practical experience in a particular domain. The area of the domain may be limited. In general, an expert is a skillful person who can do things other people cannot.
  • 4. Presenting Knowledge knowledge representation techniques: • Rules • Frames • Semantic Nets
  • 5. Presenting Knowledge Rules: • The term rule in AI, which is the most commonly used type of knowledge representation, can be defined as an IF-THEN structure that release given information or facts in the IF part to some action in the THEN part. A rule provides some description of how to solve a problem. Rules are relatively easy to create and understand. • Any rule consists of two parts: the IF part, called the antecedent (premise or condition) and the THEN part called consequent (conclusion or action).
  • 6. Presenting Knowledge Rules: • IF <condition> THEN <action> • A rule can have multiple antecedents joined by the keywords AND (conjunction), OR (disjunction) or a combination of both. IF <condition1> AND <condition2> OR <condition3> THEN <action>
  • 7. Presenting Knowledge Frames: • Frames are also useful for representing knowledge. As frames allow nodes to have structures they can be regarded as representations of knowledge. • A frame is similar to a record structure and corresponding to the fields and values are slots and slot fillers.
  • 8. Presenting Knowledge Frames: • A frame for a book is given below: Slots Fillers publisher Dana title Expert Systems author Ahmad edition Third year 2018 pages 600
  • 9. Presenting Knowledge Semantic Nets: • semantic net (or semantic network) is a knowledge representation technique used for propositional information. So it is also called a propositional net. Semantic nets convey meaning. Mathematically a semantic net can be defined as a labelled directed graph. • Semantic nets consist of: • Nodes • Links (edges) • Link labels
  • 10. Presenting Knowledge Semantic Nets: Example: Manar Mammals Female Persons Persons Male Persons Karim Subset of Subset of Member ofMember of Sister of
  • 11. The main players in the development team • There are five members of the expert system development team: • The domain expert • The knowledge engineer • The programmer • The project manager • The end user • The success of their expert system entirely depends on how well the members work together.
  • 12. The main players in the development team
  • 13. Uses of Expert Systems • Very useful to companies with a high-level of experience and expertise that cannot easily be transferred to other members. • Solves problems that would normally be tackled by a medical or other professional. • Currently used in fields such as accounting, medicine, process control, financial service, production, and human resources.
  • 14. Prominent Expert Systems • MYCIN – used to diagnose infectious blood diseases and recommend antibiotics. • DENDRAL – embedded a chemist’s knowledge of mass spectrometry rules to use in analysis. • CADUCEUS – used to analyze blood-borne infectious bacteria • CLIPS, JESS, Prolog and Pyknow programming languages are all used in expert systems • The Age of Empire game uses CLIPS to control its AI
  • 15. Basic structure of a rule-base expert system
  • 16. Basic structure of a rule-base expert system • The knowledge base contains the domain knowledge useful for problem solving. In a rule-based expert system, the knowledge is represented as a set of rules. Each rule specifies a relation, recommendation, directive, strategy or heuristic and has the IF (condition) THEN (action) structure. When the condition part of a rule is said to fire and the action part is executed. • The database includes a set of facts used to match against the IF (condition) part of rules stored in the knowledge base.
  • 17. Basic structure of a rule-base expert system • The inference engine carries out the reasoning whereby the expert system reaches a solution. It links the rules given in the knowledge base with the facts provided in the database. • The explanation facilities enable the user to ask the expert system how a particular conclusion is reached and why a specific fact is needed. An expert system must be able to explain its reasoning and justify its advice, analysis or conclusion. • The user interface is the means of communication between a user seeking a solution to problem and an expert system.
  • 18. Can expert systems make mistakes? Even a brilliant expert is only a human and thus can make mistakes. This suggests that an expert system built to perform at a human expert level also should be allow to make mistakes. But we still trust experts, even we recognize that their judgements are sometimes wrong. Likewise, at least in most cases, we can rely on solutions provided by expert systems, but mistakes are possible and we should be aware of this.
  • 19. Comparison of expert systems with conventional systems and human experts
  • 20. Comparison of expert systems with conventional systems and human experts
  • 21. Forward chaining and backward chaining • In rule-based expert system, the domain knowledge is represented by a set of IF-THEN production rules and data is represented by a set of facts about the current situation. The 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. • The matching of the rule IF parts to the facts produces inference chains. The inference chain indicates how an expert system applies the rules to reach conclusion.
  • 22. Inference engine cycle via a match-fire produce
  • 23. Forward chaining • Forward chaining is the data-driven reasoning. The reasoning starts from the known data and proceeds forward with that data. Each time only the topmost rule is executed. When fired, the rule adds a new fact in the database. Any rule can be executed only once. The match- fire cycle be executed only once. The match-fire cycle stops when no further rules can be fired. • forward chaining is a technique for gathering information and the inferring for it whatever can be inferred.
  • 24. Forward chaining • However, in forward chaining, many rules may be executed that have nothing to do with the established goal. • therefore, if our goal is to infer only one particular fact, the forward chaining inference technique would not be efficient.
  • 25. Backward chaining • Backward chaining is the goal-driven reasoning. In backward chaining, an expert system has the goal (a hypothetical solution) and the inference engine attempts to find the evidence to prove it. First, the knowledge base is searched to find rules that might have the desired solution. Such rules must have the goal in their THEN (action) parts. If such a rule is found and its IF (condition) part matches data in the database, then the rule is fired and the goal is proved. However, this is rarely the case.
  • 26. Backward chaining • Thus the inference engine puts side rule it is working with (the rule is said stack) and sets up a new goal, a subgoal, to prove the IF part of this rule. Then the knowledge base is searched again for rules that can prove the subgoal. The inference engine repeats the process of stacking the rules until no rules are found in the knowledge base to prove the current subgoal.
  • 27. How do we choose between forward and backward chaining? • If an expert first needs to gather some information and then tries to infer from it whatever can be inferred, choose the forward chaining inference engine. • However, if your expert begins with a hypothetical solution and then attempts to find facts to prove it, choose the backward chaining inference engine.
  • 28. Advantages of rule-base expert systems • Natural knowledge representation. An expert usually explains the problem-solving procedure with such expressions as this: “In such- and-such situation, I do so-and-so”. These expressions can be represented quite naturally as IF-THEN production rules. • Uniform structure. Production rules have the uniform IF-THEN structure. Each rule is an independent piece of knowledge. The very syntax of production rules enables them to be self-documented.
  • 29. Advantages of rule-base expert systems • Separation of knowledge from its processing. The structure of rule- base expert system provides an effective separation of the knowledge base from the inference engine. This makes it possible to develop different applications using the same expert system shell. • Dealing with incomplete and uncertain knowledge. Most rule-based expert systems are capable of representing and reasoning with incomplete and uncertain knowledge.
  • 30. Disadvantages of rule-based expert systems • Opaque relations between rules. Although the individual production rules are relatively simple and self-documented, their logical interactions within the large set of rules may be opaque. Rule-base systems make it difficult to observe how individual rules serve the overall strategy. • Ineffective search strategy. The inference engine applies an exhaustive search through all the production rules during each cycle. Expert systems with a large set of rules (over 100 rules) can be slow, and thus large rules-based systems can be unsuitable for real-time applications.
  • 31. Disadvantages of rule-based expert systems • Inability to learn. In general, rule-based expert systems do not have an ability to learn from the experience. Unlike a human expert, who knows when to “break the rules”, an expert system can’t automatically modify its knowledge base, or adjust existing rules or add new ones. The knowledge engineer is still responsible for revising and maintaining the system.