Ai - Unit 4 - Study Resource
Ai - Unit 4 - Study Resource
FUNDAMENTALS OF
ARTIFICIAL INTELLIGENCE
PRUDHVI KIRAN P
Assistant Professor, CSE - IoT Dept.
R. V. R. & J. C. College of Engineering
UNIT - 4 [ 12 periods ]
Planning: Overview
An Example Domain - The Blocks World, Components of Planning Systems, Goal Stack
Planning, Non-linear Planning using constraint posting, Hierarchical planning, Reactive
systems.
Expert Systems:
Representing and using domain knowledge, Expert system shells, Explanation, Knowledge
Acquisition.
https://youtu.be/-NrzPWUnYIE
https://youtu.be/Xi0uaEwCzNs
4.2 Expert Systems Q. No. 7,8,9,10
EXPERT SYSTEMS
An expert system is a computer program that is designed to solve complex problems and to
provide decision-making ability like a human expert. It performs this by extracting knowledge
from its knowledge base using the reasoning and inference rules according to the user queries.
These systems are designed for a specific domain, such as medicine, science, etc.
The performance of an expert system is based on the expert's knowledge stored in its knowledge
base. The more knowledge stored in the expert system’s knowledge base, the more that system
improves its performance. One of the common examples of an ES is a suggestion of spelling
errors while typing in the Google search box. Below are some popular examples of the Expert
System:
1. DENDRAL: It was an artificial intelligence project that was made as a chemical analysis expert
system. It was used in organic chemistry to detect unknown organic molecules.
2. MYCIN: It was one of the earliest backward chaining expert systems that was designed to find
the bacteria causing infections like bacteraemia and meningitis. It was also used for the
recommendation of antibiotics and the diagnosis of blood clotting diseases.
3. PXDES: It is an expert system that is used to determine the type and level of lung cancer. To
determine the disease, it takes a picture from the upper body, which looks like the shadow.
This shadow identifies the type and degree of harm.
4. CaDeT: The CaDet expert system is a diagnostic support system that can detect cancer at early
stages.
An expert system mainly consists of three
components:
• Interface/User Interface
• Inference Engine
• Knowledge Base
With the help of a user interface, the expert
system interacts with the user, takes queries as
an input in a readable format, and passes it to
the inference engine. After getting the
response from the inference engine, it displays
the output to the user.
The inference engine is known as the brain of the expert system as it is the main processing
unit of the system. It applies inference rules to the knowledge base to derive a conclusion or
deduce new information. It helps in deriving an error-free solution of queries asked by the
user. Inference engine uses the below modes to derive the solutions:
1. Forward Chaining: It starts from the known facts and rules, and applies the inference rules to
add their conclusion to the known facts.
2. Backward Chaining: It is a backward reasoning method that starts from the goal and works
backward to prove the known facts.
The knowledgebase is a type of storage that stores knowledge acquired from the different
experts of the particular domain. It is considered as big storage of knowledge. The more the
knowledge base, the more precise will be the Expert System.
1. Factual Knowledge: The knowledge which is based on facts and accepted by knowledge
engineers comes under factual knowledge.
2. Heuristic Knowledge: This knowledge is based on practice, the ability to guess, evaluation,
and experience
REPRESENTING AND USING DOMAIN KNOWLEDGE
Expert system is built around a knowledge base. Expert system contains a formal
representation of the information provided by the human (domain expert), which may be in
the form of problem-solving rules, procedures, or data, intrinsic to the domain.
Transferring all these knowledge from the human expert to a computer is often the most
difficult part of building an expert system. We have to make sure that, the knowledge acquired
from the human expert must be encoded in such a way that it remains a faithful
representation of what the expert knows, and it can be manipulated by a computer.
Various knowledge representation methods are available to take up this task of incorporating
information into the system. It is necessary to make use of one or more of these methods.
Three common methods of knowledge representation evolved over the years are discussed
below;
1. IF-THEN rules
2. Semantic Networks and
3. Frames.
1. IF - THEN Rules
Human experts usually tend to think along;
Condition Action or Situation Conclusion
Rules "if-then" are predominant form of encoding knowledge in expert systems. These are of
the form:
If a1 , a2 , . . . . . , an | Then b1 , b2 , . . . . . , bn
Where, each ai is a condition or situation, and each bi is an action which leads to a
final conclusion.
The aim of these Rule Based Expert System is to take knowledge from a human expert and
convert this into a number of hardcoded rules to apply to the input data.
These systems should be applied to smaller problems, as the more complex a system is, the
more rules that are required to describe it, and thus increased difficulty to model for all
possible outcomes.
Realtime Examples; IF the ‘traffic light’ is ‘green’, THEN the action is go IF the ‘traffic light’ is
‘red’ THEN the action is stop.
2. Semantic Networks
In Semantic networks, the expert knowledge is
represented in the form of graphical networks
where nodes representing objects and arcs
describing the relationship between those
objects with labels, IS-A and HAS.
This kind of relationship establishes an
inheritance by hierarchy in the network, with
the objects lower down in the network
inheriting properties from the objects higher
up.
Semantic networks can categorize the object in
different forms and can also link those objects
with another objects. Semantic networks are
easy to understand and can be easily extended.
Semantic networks take more computational
time as we need to traverse the complete
network tree to answer some questions. SEMANTIC NET REPRESENTATION OF
OBJECT - CAR
3. Frames
In this technique, knowledge is decomposed
and represented in highly modular pieces
called frames. A frame is a record like structure
which consist of Concepts, Situations,
Attributes of concepts, Relationships between
concepts, and procedures to handle
relationships as well as attribute values.
Each Concept may be represented as a
separate frame. The attributes, the
relationships between concepts, and the
procedures are allotted to slots in a frame. The
contents of a slot may be of any data type -
numbers, strings, functions or procedures, I.e.
These slots may be of any type and sizes.
Frames may be linked to other frames,
providing inheritance facility too. TWO FRAMES, THEIR SLOTS AND THE SLOTS
FILLED WITH DATA TYPE ARE SHOWN.
EXPERT SYSTEM SHELLS
Expert system shells are toolkits that can be used to develop expert systems. They consist of
some built expert system components with an empty knowledge base and it is associated with a
prescribed method for building applications by configuring and instantiating these
components and knowledge base.
It can also be defined as a software package that facilitates the building of knowledge-based
expert systems by providing a knowledge representation scheme and an inference engine.
The generic components of a shell are knowledge acquisition, the knowledgebase, Inference
Mechanism, explanation and the user interface are shown below. All these components will be
configured as per the requirement.
EXPERT SYSTEM SHELL
Knowledge
Knowledge Inference
EXPERT Base, Explanation User Interface USER
Acquisition Mechanism
Facts, Heuristics
SUB SYSTEM KNOWLEDGE REASONING SUB SYSTEM