0% found this document useful (0 votes)
132 views59 pages

Lecture 5 - Knowledge and Expert Systems

This document discusses knowledge-based and expert systems. It provides an overview of their main components which typically include a knowledge base, inference engine, and user interface. The knowledge base contains facts and rules about a problem domain. The inference engine derives new knowledge by applying rules to the knowledge base and user inputs. The user interface allows for interaction with users. Knowledge engineering is also discussed, which is the process of designing, building, and installing these types of systems. It involves extracting knowledge from experts and representing it in a way that a computer can understand and reason with.

Uploaded by

Bii Peter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views59 pages

Lecture 5 - Knowledge and Expert Systems

This document discusses knowledge-based and expert systems. It provides an overview of their main components which typically include a knowledge base, inference engine, and user interface. The knowledge base contains facts and rules about a problem domain. The inference engine derives new knowledge by applying rules to the knowledge base and user inputs. The user interface allows for interaction with users. Knowledge engineering is also discussed, which is the process of designing, building, and installing these types of systems. It involves extracting knowledge from experts and representing it in a way that a computer can understand and reason with.

Uploaded by

Bii Peter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 59

Knowledge-Based and Expert Systems

Philip Apodo Oyier


[email protected]
e
Learning
Outcomes
 To know and comprehend the main principles,
components, and application areas for Knowledge-
Based Systems
 To understand the structure of Knowledge-Based
Systems
Knowledge base, inference engine, user
interface
 To be familiar with frequently used methods for
knowledge representation in computers
 To evaluate the suitability of computers for
specific tasks
Application of methods to scenarios or tasks
Review of
AIUtilization of computers to deal with knowledge

Quantity of knowledge available increases rapidly
Relieve humans from tedious tasks
 Computers have special requirements for dealing with
knowledge
Acquisition, representation, reasoning
 Some knowledge-related tasks can be solved better by
computers than by humans
Cheaper, faster, easily accessible, reliable
Developments of
AI
Symbolic
Processing
 Use Symbols to Represent Problem Concepts
 Apply Various Strategies and Rules to Manipulate
these Concepts
 AI Represents Knowledge as Sets of Symbols
A symbol is a string of characters that stands for some
real-world concept
Examples
Product
Defendant
 0.8
Chocolate
Symbol Structures
(Relationships)
(DEFECTIVE product)
(LEASED-BY product
defendant)
(EQUAL (LIABILITY defendant) 0.8)
tastes_good (chocolate)
 AI Programs Manipulate Symbols to Solve
Problems
 Symbols and Symbol Structures Form Knowledge
Representation
 Artificial Intelligence Dealings Primarily with Symbolic,
Non-algorithmic Problem-Solving Methods
Characteristics of Artificial
Intelligence
 Numeric versus Symbolic
 Algorithmic versus Nonalgorithmic
 Heuristic Methods for Processing Information
Search
Pattern Matching - Attempt to describe objects,
events, or processes in terms of their qualitative
features and logical and computational
relationships
Inferencing
Reasoning - Inferencing from facts and rules using
heuristics or other search approaches
Characteristics of Artificial
Intelligence
 Knowledge Processing
Given facts or other representations
 Knowledge Bases
Where knowledge is stored
 Using the Knowledge Base in AI
Programs
Inferencing
KBSs and
Knowledge
 What is a knowledge-based system?
 A system which is built around a knowledge base. i.e.
a collection of knowledge, taken from a human, and
stored in such a way that the system can reason with it.
 What is knowledge?
 Knowledge is the sort of information that people use
to solve problems.
Knowledge-based
Agent
 Central component of a knowledge-based agent is its
knowledge-base (KB)
 A KB is a set of representations of facts about the
world
 Each individual representation is called a sentence
 The sentences are expressed in a language called a
knowledge representation language
 A knowledge-based agent should be able to infer
Knowledge
 Knowledge includes:
 facts, concepts, procedures, models,
heuristics, examples.
 Knowledge may
be:
 specific or general
 exact or fuzzy
 procedural or
declarative
Using the Knowledge
Base
Computer

Inputs Outputs
Knowledge Inferencing
Base Capability
Data Pyramid and Computer-
Based Systems
IS

Strategy makers apply morals, principles, and WBS Wisdom (experience)


experience to generate policies

Higher management generates knowledge by KBS Knowledge (synthesis)


synthesizing information

Middle management uses reports/info.


DSS, MIS
generated though analysis and acts accordingly Information (analysis)

Basic transactions by operational TPS Data (processing of raw observations )


staff using data processing

Volume Sophistication and


complexity

13 Figure 1: Data pyramid: Managerial perspectives


Data Pyramid and Computer Based
Systems

Heuristics
and models Wisdom

Novelty
Rules Knowledge

Information Experience
Concepts

Data
Raw data through Understanding
fact finding
Researching Absorbing Doing Interacting Reflecting

Figure 1.6: Convergence from data to intelligence

14
Main Components of a KBS
Contd.
User
Expertise

Knowledge Base
User Interface

Facts / Information

Inference Engine
Expertise
Developer

15
Main Components of a
KBS
 A typical Knowledge Based System has the following
components
A knowledge Base
An inference Engine
A User Interface
Explanation Facilities
Learning facilities

16
Components of
KBS
Knowledge base is a repository of domain knowledge Enriches the
and metaknowledge. system with self-
Inference engine is a software program that infers the learning
knowledge available in the knowledge base. capabilities

Knowledge base Inference engine

Explanation Self-
and learning
reasoning

User interface

Friendly interface
to users working in
their native
Provides explanation language
and reasoning facilities
Figure 1.10: General structure of KBS
1
17 17
7
Main KBS
Components
 Knowledge base
Contains essential information about the problem domain
Often represented as facts and rules
 Inference engine
Mechanism to derive new knowledge from the knowledge
base and the Information provided by the user
Often based on the use of rules
 User interface
Interaction with end users
Development and maintenance of the knowledge base
Knowledge
 Knowledge consists of
 Symbols
 The relationship between symbols
 The rules or procedures for manipulating the
symbols
 Classification of Knowledge
 Priori knowledge: Universally true and cannot
be denied without contradiction.
 Examples are mathematical laws, logical
statements.
 Posteriori knowledge: Represents information that is
19
verified using sensory experiences.
Knowledge
Contd.
Such knowledge can be denied based on new
knowledge without the need for
contradictions.
 Further classification includes
Procedural knowledge: Knowing how to do
something.
Declarative knowledge: Knowing that something is
true or false.
Tacit knowledge: Unconsciously knowing how to do
something.
20
Knowledge
Engineering
 The term “knowledge engineering” is often used to
mean the process of
 designing
 building
 installing
an expert system or other knowledge-based system.
 Some authors use the term to mean just the knowledge
acquisition phase.
Tasks of a Knowledge
Engineer
Extracting knowledge from people
 Representing it in some form
 Including it in a computer program which makes use
of that knowledge
 Validating the software system produced
 A Knowledge Engineer must –
Apply Methods
Use Tools
Apply Quality Controls
Have Standards
22
Tasks of a Knowledge Engineer
Contd.
 Plan and Manage Projects
 Take into account Human, Financial and
Environmental constraints
 Be bound by a professional code of
conduct
 Update their knowledge and skills
 Adhere to rules, regulations and legal
requirements
 Remaining Software Engineering
Problems
 How do we measure the quality of
23 software?
Expert and Knowledge-Based
Systems
 One of AI’s greatest areas of success was the development
of large-scale problem solving systems
Originally called expert systems, they would mimic the
problem solving processes of domain experts such as
doctors performing diagnosis, or engineers performing
design, or wall street analysts selecting stock
transactions
 Expert systems were originally developed by hand, and
most commonly in some Lisp dialect
 It was discovered that many problems were being solved by
chaining through rules (if-then statements) that would
operate on a collection of facts and partial conclusions

Expert and Knowledge-Based
Systems
These rule-based systems led to the first AI tools or
shells
 Today, to simplify expert system creation, most people
use these AI shells – you just fill in the knowledge,
the problem solving processes are already
implemented
Experts
 An expert is an experienced practitioner in his/her
particular field.
 More than that, he/she is a highly effective
problem- solver and decision-taker in that field.
 Experts have three qualities:
 They make good decisions
 They make those
decisions quickly
 They are able to cope
with a wide range of
problems.
 As a result, they are valuable, highly-paid, and
Experts and Expert
Systems
 Note that:
 The task that an expert system performs will generally
be regarded as difficult.
 An expert system almost always operates in a rather
narrow field of knowledge.The field of knowledge
is called the knowledge domain of the system.
 There are many fields where expert systems can
usefully be built.
 There are many fields where they can’t.
Reasons for Building an
ES
 One might build an expert system for any or all of
the following reasons:
 To archive an expert’s knowledge, to insure against the
day when he/she leaves, or retires, or dies.
 To disseminate his/her knowledge, so that it is
available in more (possibly many more) places than
the location of the expert.
 To ensure uniformity of advice/decisions.
 As a basis for training other specialists.
General Concepts and Characteristics of
ES Knowledge acquisition
 Transfer of knowledge from humans to computers
 Sometimes knowledge can be acquired directly from the
environment
Machine learning
 Knowledge
representation
 Suitable for storing and processing knowledge in computers

 Inference
 Mechanism that allows the generation of new conclusions from
existing knowledge in a computer
 Explanation
generate
29
 Illustrates
d to the user how and why a particular solution was
Advantages of Expert
Systems
 Put another way, E.S. have the following advantages over
human experts:
 The knowledge is permanent
 The knowledge is easily replicated
 The knowledge is represented explicitly, and can be
evaluated
 The system is consistent - whereas human
practitioners have bad days, computers
don’t.
 Once built, running costs are low
Disadvantages of Expert
Systems
 Developing an expert system usually costs a great deal of
time and money
 Historically, there has been a high failure rate in E.S. projects
 The project may well fail during development - most
likely during the “knowledge acquisition” phase.
 The development may succeed, but the organisation may
fail to accept and use the finished system.
 A human expert can update his/her knowledge in the light of
 Common sense
 Knowledge derived from other domain
Contacts with other experts.
An expert system can’t.
Early KBS Success
Stories
 DENDRAL
Identification of chemical constituents
 MYCIN
Diagnosis of illnesses
 PROSPECTOR
Analysis of geological data for minerals
Discovered a mineral deposit worth $100
million
 XCON/R1
Configuration of DEC VAX computer systems
Saved lots of time and millions of dollars
Pattern
Matching
 Expert Systems consisted of two major components
 A knowledge base
 The knowledge that the system would use to come to conclusions
 In Dendral, this would be chemical elements, compounds, the
mass spectrogram data that could arise from any element
 In Mycin, this would be bacteriological infection knowledge
 An inference engine
 How to apply the knowledge
 For Dendral, this was done by generate-and-test, a very weak
form of search
 Mycin would perform backward chaining through rules
 More generically though, the inference engine would embody some form
of pattern matching
 One of the first systems that clearly demonstrated pattern matching was
Eliza
 Eliza was a spoof of an expert system but the code will show us how
pattern matching works
Rules and
Humans
 Rules can be used to formulate a theory of
human information processing (Newell &
Simon)
 Rules are stored in long-term memory
 Temporary knowledge is kept in short-term
memory
 Sensory input or thinking triggers the activation of
rules
 Activated rules may trigger further activation
 A cognitive processor combines evidence from
currently active rules
 This model is the basis for the design of many rule-
based systems
Choosing an ES
Project
 Because of cost, and the danger of failure, it is
important that E.S. projects are carefully chosen.
 The expense must be justified, in the light of the
possible benefits.
 E.S. technology must be appropriate
the right kind of expertise is involved
it isn’t a problem which conventional programming
could do better.
 Management, and the participants, must support the
project fully.
When to use
KBS
Only certain types of applications are suited to KBS
implementation.The following criteria is used in
identifying suitable domains.The field under study
 should be able to be reduced to a series of rules rather
than mathematical formulae or equations.
KBS’s are not applicable if the problem involves a large
number of complex calculations.
 Is well understood so that well-defined knowledge can
be
formulated and represented in computer form.
 Should not encompass problems which take too short
(i.e. less than half an hour) or too long (longer than, say,
37 one week) a time to solve
When to use KBS
Contd.
Should have general agreement among recognized
experts in the domain to be computerized.
The knowledge within the problem domain should
be sufficiently large to warrant the development
of a KBS.
‘tame’ experts who are agreeable to involvement
 Any application that requires access to specialist
knowledge is a potential area for KBS
technology.
 Building Knowledge-Based Systems (KBS) is known
as knowledge engineering and its practitioners are
38
called knowledge engineers.
Types of
Expertise
 Mike Greenwell’s classification of types of expertise,
according to identifiable mental components of the
skill (with examples):
 [source: Greenwell (1988)]
Types of Expertise (with
examples)D e e p J u d g m enta l High-level
co g n itive skills social skills
skills
Highly Musician Senior Author, poet
cre a tive m anager

Analytic M a t h e m a t- Economist, Social


al ician p ro g ra m m e r sc ie n tist

Strictly T y p ist D rive r Social


p ro ce d u ra l
w o rke r
Types of Expertise (with
examples)
Types of Expertise (with
examples)
Types of Expertise (with
examples)
Types of Expertise (with
examples)
Types of Expertise (with
examples)
Types of
Expertise
 Greenwell argues that only expertise which is
judgmental and analytical, i.e. only the middle box of
the nine, is worth capturing and including in an expert
system.
The Phone Call
Test
 A rather simpler approach to answering the question
which domains are worth building into an expert
system?
 “Any problem that can be and frequently is solved by
your in-house expert in a 10-30 minute phone call
can be automated as an expert system.”
 Prof. Morris Firebaugh
Possible Expert Systems - Case
Histories
 A certain third world country has a large population,
very few trained doctors, and insufficient resources
to train many more.
 It is proposed to provide paramedics, who can be
trained relatively cheaply and easily, with medical kits
and portable PCs, each PC to be loaded with an expert
system that can advise on the diagnosis and treatment of
a variety of common diseases.
Possible Expert Systems - Case
Histories
 The housing department in Nairobi county is
overworked, although the staff turnover is quite
low.
 Much of the work the staff do involves interviewing
clients, and there is a clear pattern of questioning
(which varies to a limited degree, depending on the
circumstances of the client).
 It is proposed to build an expert system, which
will direct the questioning process.
Possible Expert Systems - Case
Histories
 A firm of wine importers relies heavily on its chief wine
expert, who is skilled at selecting wines that are
destined to be popular, on the basis of their taste,
colour, scent etc. She is soon to retire.
 It is proposed to build an expert system that will
enable any of several junior wine specialists to do her
job.
Possible Expert Systems - Case
Histories
 An education authority has a severe shortage of primary
school teachers.
 It is proposed that an expert system should be built
which can do the job of teaching English and
arithmetic to five year old children.
Possible Expert Systems - Case
Histories
 A software company proposes to build an expert system
which can perform book-keeping for small commercial
concerns.
Possible Expert Systems - Case
Histories
 A large manufacturer of diesel electric locomotives has
problems in providing enough maintenance personnel
who are sufficiently skilled to locate faults in these
(highly complex) locomotives.
 They propose to build an expert system which can
perform fault location on such a machine.
Possible Expert Systems - Case
Histories
 A mineral exploitation company wishes to extend its
operations, which involve searching for hitherto
undiscovered deposits of valuable metal ores.
 It is short of trained geologists.
 It proposes to build an expert system which can assess
a geological site and come to a conclusion about how
likely it is that there is a worthwhile mineral deposit
there.
Related
Developments
 Semantic Web
 Extension of the World Wide Web
 Includes knowledge representation and reasoning
capabilities
 Decision Support Systems
 Less emphasis on autonomy
 Data Mining
 Extraction of knowledge from large quantities of
data
 Sensemaking
 Computer support for quicker, easier understanding of
complex domains or situations
Types of Knowledge Based
Systems
In general, KBS are classified according to the human
behavior they attempt to mimic.
 Expert Systems
They model the higher order cognitive functions of
the human mind
They are used to mimic the decision making
process of the human mind.
 Neural Networks
They model the brain at the biological
level
57 They are adept at pattern recognition and
Types of Knowledge Based Systems
Contd.
 Case Based Reasoning
Models the human ability to learn from past
experience
They borrow from the legal system where past cases
are used as a basis for making decisions in the
present cases.
 Others include
Fuzzy Logic
Genetic Algorithms
Artificial Immune Systems etc.
58
KBS
Advantages
 Economical
 lower cost per user
 Availability
 accessible anytime, almost anywhere

 Response time
 often faster than human experts

 Reliability
 can be greater than that of human experts
 no distraction, fatigue, emotional involvement,

 Explanation
 reasoning steps that lead to a particular
conclusion
KBS
 Limited knowledge
Problems
 “shallow” knowledge
 no “deep” understanding of the concepts and their
relationships
 no “common-sense” knowledge
 no knowledge from possibly relevant related domains
 “closed world”
 the ES knows only what it has been explicitly “told”
 it doesn’t know what it doesn’t know

 Mechanical reasoning
 may not have or select the most appropriate method for
a particular problem
 some “easy” problems are computationally very
expensive
Summary
 Expert systems or knowledge based systems are used to
represent and process in a format that is suitable for computers
but still understandable by humans
 If-Then rules are a popular format

 The main components of an Knowledge-Based System are


 knowledge base
 inference engine

 ES can be cheaper, faster, more accessible, and more reliable


than
humans
 ES have limited knowledge (especially “common-sense”), can be
difficult and expensive to develop, and users may not trust them
for critical decisions

You might also like