Knowledge Representation Issues (Lecture 17-18)
Knowledge Representation Issues (Lecture 17-18)
REPRESENTATION ISSUES
KNOWLEDGE
Knowledge is a general term.
An answer to the question, "how to represent knowledge", requires an
analysis to distinguish between knowledge “how” and knowledge
“that”.
■ knowing "how to do something".
e.g. "how to drive a car" is Procedural knowledge.
■ knowing "that something is true or false".
e.g. "that is the speed limit for a car on a motorway" is Declarative
Knowledge
2
TWO DIFFERENT KIND OF ENTITIES:
3
KNOWLEDGE IS A GENERAL TERM.
knowledge.
An understanding of the principles embodied within the
knowledge is wisdom.
4
KNOWLEDGE PROGRESSION:
5
CONT….
Data is viewed as collection of disconnected facts.
Example : It is raining.
7
CONT…
Data and information deal with the past; they are based
on the gathering of facts and adding context.
8
KNOWLEDGE REPRESENTATION
9
Once acquired, knowledge
must be organized for use
KNOWLEDGE
REPRESENTATION
Importance of Knowledge
10
HOW TO STORE KNOWLEDGE
In biological organisms
Human brain weighs 3.3 pounds - estimated number of neurons 10 12 -
potential storage – 1014
Estimated 1000 billion neurons in the human brain, with each connected
to up to 10 thousand others
brain loses over 50,000 neurons each day, yet most people do not feel
as though a large part of their memory disappeared
Electrical impulses produced by a neuron travel along the axon
The axon connects to dendrites through synaptic junctions
11
AN OVERVIEW OF THE
BIOLOGICAL NEURON
12
13
HOW TO STORE KNOWLEDGE
In computers, knowledge is also stored as symbolic structures, in the
form of collections of magnetic spots and voltage states.
Magnetic storage
Optical storage
Spintronics ("spin transport electronics“)
14
KNOWLEDGE TYPE
Tacit knowledge Explicit knowledge
In simple words, we :
19
KNOWLEDGE
REPRESENTATION
Let’s take the following examples
Amitabh Bachhan is tall.
Chandra Prakash
X Loves Y.
Mohit has learned to use recursion to manipulate linked lists in several
programming languages.
Chandra Prakash
Procedural (facts)
Heuristics (rule of thumb / experience)
We should not confuse Knowledge with data.
Epistemology – study of nature of knowledge.
Metaknowldge – knowledge about knowledge.
21
FACTS, HYPOTHESIS AND BELIEF
Facts:
Statement may be true or False.
Eg: Apple falls from a tree.
Chandra Prakash
Hypothesis:
Hypothesis is a justified belief that is not known to be true.
Eg: Newton proposes a Hypothesis that “Apple falls from a tree
because of gravity ”
Belief or Rule:
Belief is any meaningful and coherent expression that can be
represented.
Eg: netwon proves this hypothesis on the basis of certain facts.
22
MAPPING BETWEEN FACTS AND
REPRESENTATION
23
MAPPING BETWEEN FACTS AND
REPRESENTATION
24
25
FORWARD AND BACKWARD
REPRESENTATION
The forward and backward representations are elaborated below :
The doted line on top indicates the abstract reasoning process that a
program is intended to model.
The solid lines on bottom indicates the concrete reasoning
process that the program performs.
26
SIX BASIC
CHARACTERISTICS:
Coverage, which means the KR covers a breath and depth of information. Without
a wide coverage, the KR cannot determine anything or resolve ambiguities.
Understandable by humans. KR is viewed as a natural language, so the logic
should flow freely. It should support modularity and hierarchies of classes (Polar
bears are bears, which are animals). It should also have simple primitives that
combine in complex forms.
Consistency. If John closed the door, it can also be interpreted as the door was
closed by John. By being consistent, the KR can eliminate redundant or
conflicting knowledge.
Efficient
Easiness for modifying and updating.
Supports the intelligent activity which uses the knowledge base
27
KNOWLEDGE
REPRESENTATION
A good system for the representation of knowledge in a particular domain
should possess the following properties :
•Representational Adequacy
•Ability to represent all of the kinds of knowledge that are needed in that
domain
•Should collect all related facts
•Inferential Adequacy
•Ability to manipulate the representational structures in such a way as to
derive new structures corresponding to new knowledge inferred from old.
•All rules
28
CONT…
• Inferential Efficiency
• The ability to incorporate into the knowledge structure
additional information that can be used to focus the
attention of the inference mechanisms in the most
promising direction.
• Best available rule
• Acquisitional Efficiency
• Acquiring new information easily
Relational Knowledge
Inheritable Knowledge
Inferential Knowledge
30
KNOWLEDGE
REPRESENTATION
1. Simple Relational Knowledge
Relational knowledge is made up of objects consisting of attributes and
their corresponding associated values.
− The results of this knowledge type is a mapping of elements among different
Chandra Prakash
domains.
Player Height Weight Runs Bats-
Throws
X 6-0 150 3000 Right-
right
Y 5-4 140 15000 Left-
right
Z 6-2 160 1000 Right-
left
ThisPlayer_info(‘X’, ‘6-0’,
even does not tell ‘3000’,
us that who is‘Right-
the longest player? 31
right’)
A procedure should be defined to figure out the result.
KNOWLEDGE
REPRESENTATION
2. Inheritable Knowledge
It is possible to enhance the basic representation with inference
mechanism that operate on the structure of the representation.
Chandra Prakash
The most useful form of inference is Property Inheritance, in which
elements of specific classes inherit attributes and values from ore general
classes in which they are included.
In order to do this, objects must be organized into classes and classes
must be arranged into generalization hierarchy.
Cricketer
Isa : adult-Male
Bats : handed
Height ; 6-1 etc. 32
Property Inheritance is what happens in Inheritable Knowledge
INHERITABLE KNOWLEDGE
Semantic network representation
Frames based representation
Chandra Prakash
33
34
the directed arrows represent attributes (isa,
instance, and team) originating at the object
being described and terminating at the object or
its value.
the box nodes represents objects and values of
the attributes.
35
SEMANTIC NETWORK EXAMPLE
Is a Human
Boy Being
36
a
a Is
Is
Goes to Needs
Woman
School Joe
a
Is Food
Has
a child
Kay
HOW FRAMES ARE ORGANISED
The idea of frame hierarchies is very similar to the idea of class hierarchies
found in object-orientated programming
A frame system is a hierarchy of frames
Each frame has:
a name.
slots: these are the properties of the entity that has the name, and they have
values. A particular value may be:
a default value
an inherited value from a higher frame
a procedure, called a daemon, to find a value
a specific value, which might represent an exception.
37
VIEWING A NODE AS A FRAME:
Baseball-player
isa : Adult-Male
Bates : EQUAL handed
Height : 6.1
Batting-average : 0.252
38
INFERENTIAL KNOWLEDGE :
Generates new information from the given information.
This new information does not require further data
gathering form source, but does require analysis of the
given information to generate new knowledge.
Given a set of relations and values, one may infer other values or
relations.
a predicate logic (mathematical deduction) is used to infer from
a set of attributes.
Inference through predicate logic uses a set of logical operations
to relate individual data. The symbols used for the logic
operations are :
" → " (implication), " ¬ " (not), " V " (or), " Λ " (and), " ∀ "
(for all), " ∃ " (there exists). 39
EXAMPLES OF PREDICATE
LOGIC STATEMENTS :
1. Wonder is a name of a dog : dog (wonder)
2. Tommy is a name of a dog: dog(tommy)
3. All dogs belong to the class of animals : ∀ x : dog
(x) → animal(x)
4. All animals either live on land or in water : ∀ x :
animal(x) → live (x, land) V live (x, water)
41
CONT…
Procedural Knowledge
The previous forms deal with Static, Declarative facts.
This knowledge specifies what to do and when.
This knowledge can be represented in programs in many ways. The most
common way is simply as code for doing something.
The machine uses the knowledge when it executes the code to perform a
task.
Eg : If – then else etc.
The procedural knowledge are represented as small programs that know how to do
specific things, how to proceed.
42
ISSUES IN KNOWLEDGE
REPRESENTATION:
• Important Attributes : Any attribute of objects so basic that they occur in
almost every problem domain ?
45
EXAMPLE OF GRANULARITY
:
Suppose we are interested in following facts:
John spotted Tom.
This could be represented as
Spotted (agent(John), object (Tom))
Such a representation would make it easy to answer questions such are :
Who spotted Tom?
Suppose we want to know :
Did John see tom?
− Given only one fact, we cannot discover that answer.
− We can add other facts, such as
Spotted (x , y) → saw (x , y)
We can now infer the answer to the question
46
SETS OF OBJECT
There are certain properties of objects that are true as member of a set but
not as individual;
The reason to represent sets of objects is : If a property is true for all or
most elements of a set, then it is more efficient to associate it once with the
set rather than to associate it explicitly with every elements of the set . This
is done,
in logical representation through the use of universal quantifier, and
in hierarchical structure where node represent sets and inheritance propagate set
down to individual.
However in doing so, for example: assert large (elephant), remember to
make clear distinction between,
whether we are asserting some property of the set itself, means, the set of elephants
is large
47
FINDING RIGHT STRUCTURE :
This is about access to right structure for describing a
particular situation.
48