Unit 5
Unit 5
INTRODUCTION
Expert systems (ES) are one of the prominent research domains of AI. It is introduced by the researchers
at Stanford University, Computer Science Department.
Definition: “The expert systems are the computer applications developed to solve complex problems in a
particular domain, at the level of extra-ordinary human intelligence and expertise.”
Characteristics:
1. Expertise: An ES should exhibit expert performance, have high level of skill, and possess adequate
robustness. The high-level expertise and skill of an ES aids in problem solving & makes the system cost
effective.
2. Symbolic Reasoning: Knowledge in an ES is represented symbolically which can be easily reformulated &
reasoned.
3. Self Knowledge: A system should be able to explain & examine its own reasoning.
4. Learning Capability: A system should learn from its mistakes & mature as it grows. Flexibility provided by
the ES helps it grow incrementally.
5. Ability to provide Training: Every ES should be capable of providing training by explaining the reasoning
process behind solving a particular problem using relevant knowledge.
6. Predictive Modelling Power: This is one of the important features of ES. The system can act as an
information processing model of problem solving. It can explain how new situation led to the change, which
helps users to evaluate the effect of new facts & understand their relationship to the solution.
Advantages: The Expert Systems are capable of the following:
Advising
Instructing and assisting human in decision making
Demonstrating
Deriving a solution
Diagnosing
Explaining
Interpreting input
Predicting results
Justifying the conclusion
Suggesting alternative options to a problem
1
Disadvantages: The Expert Systems are incapable of the following:
Substituting human decision makers
Possessing human capabilities
Producing accurate output for inadequate knowledge base
Refining their own knowledge
The use of knowledge is vital. Data is used more efficiently than knowledge.
These are capable of explaining how a particular These are not capable of explaining a particular
conclusion is reached and why requested conclusion for a problem. These systems try to
information is needed during a process. solve in a straight forward manner.
3
ARCHITECTURE OF EXPERT SYSTEM (or) COMPONENTS OF EXPERT SYSTEM (or) RULE
BASED EXPERT SYSTEMS
I/O Interface:
The I/O Interface permits the user to communicate with the system in a simple way.
Knowledge Base:
The Knowledge Base is one of the important components of Expert System.
The Knowledge Base consists of a set of production rules & facts (already proven results) along with its
solutions.
For Example, if a student fails to get ≥66% in attendance then declare that student as detained.
Inference Engine:
Inference Engine is also called as Rule Interpreter.
It performs the task of matching, from the responses given by the user & the rules.
Finally it picks up a suitable rule.
The process is as follows
4
Explanation Module:
Explanation Module consists of the Answers for the Questions of ‘How’ & ‘Why’.
To respond to a ‘How’ query, the Explanation Module traces the chain of rules.
To respond to a ‘Why’ query, the Explanation Module must be able to explain why certain information is
needed to complete a step.
Working Memory:
These are the one which are handled at the current situation by the system.
It is also called as Temporary Storage Area.
Case History File:
Case History File consists of all the Input & Output transactions.
This consists of all the inputs given by various users & the outputs given by the system based upon the
input.
Learning Module:
When the data is concerned with Case History File then, the system performs the learning Module.
Editor:
Editor module is used to insert (or) delete the data in the knowledge base.
Knowledge Acquisition & Validation:
One of the most difficult tasks in building knowledge base is in the acquisition & encoding of requisite domain
knowledge.
The main modules of Blackboard System are as follows. It consists of 3 main components:
Knowledge Sources
Blackboard
Control Shell
6
Fig: Blackboard System
Knowledge Sources:
A KS is regarded to be a specialist at solving certain aspects of the overall application and is separate and
independent of all other KSs in the blackboard system.
Once it obtains the information required by it on the Blackboard, it can proceed further without any
assistance from other KSs.
It is possible to add additional KSs to the Blackboard system and upgrade or even remove existing KSs.
Each KS is aware of the conditions under which it can contribute toward solving a particular problem. This
knowledge in problem solving is known as triggering condition.
Blackboard:
Blackboard represents a global data repository & shared data structure available to all KSs.
It contains several important constituents such as raw input data, partial solutions, alternatives & final
solutions, control information, communication medium used in various phrases in problem solving.
An advantage of the blackboard system is that the system can retain the results of problems that have been
solved earlier, thus avoiding the task of re-computing them later.
Control Component:
The control Shell, directs the problem-solving process by allowing KSs to respond to changes made to the
black board.
In a classical blackboard system control approach, the currently executing KS Activation (KSA) generates
events as it makes changes on the blackboard.
These events are ranked & maintained until the executing KSA is completed.
7
Fig: Blackboard System Control Cycle
8
If a formula is a theorem for a particular formal theory, then that formula remains a theorem for any
augmented theory obtained by adding axioms to the theory.
For instance, if a property P is a theorem of T & if T is augmented to T 1 by additional axioms, then P
remains a theorem of T1. Further, if an axiom A is added to a theory T to build a theory T 1, then all the theorems
of T are also theorems of T1.
In Monotonic Reasoning, the world of axioms continually increases in size & keeps on expanding. An
example of monotonic form of reasoning is predicate logic.
Non-Monotonic System & Logic:
In non-monotonic systems, truths that are present in the system can be retracted whenever contradictions
arise. Hence, the number of axioms can increase as well as decrease. The system is continually updated
depending upon the changes in knowledge base. In non-monotonic logic, if a formula is a theorem for a formal
theory, then it need not be theorem for an augmented theory. Common sense reasoning is an example of non-
monotonic reasoning.
9
Follow_from: This function takes 2 arguments namely, a literal (L) and a premise set (Ʃ) and returns the values
yes, no or unknown. If yes is returned, then the TMS guarantees that L follows from the Ʃ and internal
constraints. If no is returned, then the TMS guarantees that L does not follows from the Ʃ and internal
constraints. If TMS is unable to determine, then it returns unknown.
Interface Functions: these compute justifications. There are 2 interface functions used to generate such proofs
namely justifying literals & justifying constraints.
Let us consider an example with a premise set Ʃ = {P, W} and an internal constraint set {P → Q, (P Λ
W) → R, (Q Λ R) → S}.
Justification Literals Derived Literals Justifying Constraints
{P, W} R (P Λ W) → R
{P} Q P→Q
{Q, R} S (Q Λ R) → S
Non-monotonic TMS:
The basic operation of a TMS is to attach a justification to a fact. A fact can be linked with any
component of program knowledge which is to be connected with other components of program information.
Support List is defined as SL (IN-node) (OUT-node), where IN-node represents a list of all IN-nodes
(propositions) that support the considered node as true.
Here, IN means that the belief is true. OUT-node is a list of all OUT-nodes that do not support the
considered node as true.
OUT means that the belief is not true for considered node.
10
For example
Application Description
Design Domain Camera lens design, automobile design.
Medical Domain Diagnosis Systems to deduce cause of disease from observed data,
conduction medical operations on humans.
Prediction Perform the task of inferring the likely consequences of a
situation like weather prediction for rains, storms, prediction of crops,
share market etc.
Monitoring Systems Comparing data continuously with observed system or with prescribed
behavior such as leakage monitoring in long petroleum pipeline.
Process Control Systems Controlling a physical process based on monitoring.
Knowledge Domain Finding out faults in vehicles, computers.
Finance/Commerce Detection of possible fraud, suspicious transactions, stock market
trading, Airline scheduling, cargo scheduling.
12