Preserving and Applying Human Expertise: Knowledge-Based Systems
Preserving and Applying Human Expertise: Knowledge-Based Systems
Human Expertise:
Knowledge-Based Systems
Chapter Objectives
KB systems are adept at preserving captured
and/or discovered knowledge for later sharing
and/or application.
Introduce the internal operation of knowledge-
based systems, including:
Knowledge representation
Automated reasoning
Introduce the art of knowledge engineering - how
to develop knowledge-based systems
the tools
the techniques
Objectives
Intelligent
Program
User
Interface
User
Workspace
The intelligent program
Development Intelligent
Shell Program
Knowledge Knowledge
Acquisition base
Tool
Test Case
Database
Inference
Engine
Developer’s
Interface
The Intelligent Program
Unlike the end user, the KE can open the
black box.
Recall key differences of KB systems vs.
conventional software:
The use of highly specific domain knowledge.
The heuristic nature of the knowledge employed,
instead of exact.
The separation of the knowledge from how it is
used.
Inside the black box
Development Intelligent
Shell Program
Knowledge Knowledge
Acquisition base
Tool
Test Case
Database
Inference
Engine
Developer’s
Interface
Knowledge acquisition tool
Assists the KE in the construction of the KB
Simplest form:
Serves as a KB editor, providing a view of the knowledge (rules,
frames, etc) and offering editing functions
Sophisticated form can add a wide range of features:
Multiple browsers for the KB, in both text and graphical forms,
hierarchical as well as linear
Debuggers and checkers to assist KE in locating “bugs” (logical
inconsistencies, typos, etc)
Tools that compare existing knowledge to new knowledge, to
guess what the KE really means in case the KE is not as precise
as required
Version control mechanisms to provide fine-grained bookkeeping
Test Case Database
Rule 2
IF the relative humidity is greater than 70%
THEN the atmosphere is humid
Rule 3
IF the weather is hot and atm. Humid
THEN thunderstorms are likely to develop
Inference chains
Inputs
Fact 1 Æ the ambient temperature is 26C
Fact 2 Æ the relative humidity is 70%
Facts are statements considered true within
the KBS and found in the workspace
We can now deduce the following new facts
Chain of rules
FROM
Fact 1
the ambient temperature is 26C
Rule 1
IF the ambient temperature is above 26C
THEN the weather is hot
The inference engine can deduce:
Fact 3
the weather is hot
Chain of rules
From:
Fact 1
the relative humidity is 70%
Rule 2
IF the relative humidity is greater than 65%
THEN the atmosphere is humid
The inference engine can deduce:
Fact 4
the atmosphere is humid
Chain of rules
From:
Fact 3
the weather is hot
Fact 4
the atmosphere is humid
Rule 3
IF the weather is hot and the atmosphere is humid
Assertional
“the car belonging to Bob is red”
“the red car belongs to Bob”
“a red car belonging to Bob does not exist”
Reasoning: respond to queries about the
known state of the world
Frame-based reasoning
Excels at defining terms (i.e., for representing
terminological knowledge)
Is generally used as support for defining
terms or storing concepts, within more
complex systems that use other mechanisms
for reasoning about assertional knowledge
Rule based Reasoning
The objective of a reasoning process is to derive a value for
a conclusion.
But there is a wide variation of ways this can be done.
In many situations, humans find it most natural to progress from
the initial data to a final answer.
E.g. thunderstorm example earlier.
Facts
Facts
New Facts
Knowledge
Rules New
Rules
Rule interpretation steps