Lecture 2.1 Knowledge Representation
Lecture 2.1 Knowledge Representation
Definition
Representation schemes/formalisms
definition
Knowledge. True rational belief(philosophy).OR
facts, data and relationships (Computational view).
2
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
3
Knowledge Representation
The object of KR is to express knowledge in a
computer-tractable form, so that it can be used to
help agents perform well.
A KR language is defined by two aspects:
Syntax: describes how to make sentences OR
4
Knowledge Representation
Example
The syntax of the language of arithmetic expressions
says that x and y are expressions denoting numbers,
the x y is a sentence. The semantics of the
language say that x y is false when y is a bigger
number than x, and true otherwise.
Inference:
The terms “inference” and “reasoning” are generally
5
Knowledge Representation
schemes
Different Knowledge Representation
schemes/formalisms
Natural Language
Rules
Logic
6
Knowledge Representation
schemes in Natural Language
Expressiveness of natural language:
Very expressive, probably everything that can be expressed
symbolically can be expressed in natural language (pictures,
content of art, emotions are often hard to express)
Probably the most expressive knowledge representation
formalism we have. Reasoning is very complex, hard to model
Problems with natural language:
Natural language is often ambiguous.
Syntax and semantics are not fully understood.
There is little uniformity in the structure of sentences.
7
Knowledge Representation
scheme: Rules
Rules
These are formalization often used to specify recommendations,
give directives or strategy.
Format: IF <premises> THEN <conclusion>.
Related ideas: rules and fact base; conflict set - source of
rules; conflict resolution- deciding on rules to apply.
8
Knowledge Representation
scheme: Rules
Consists of:
a rule set for representing the expert knowledge
a “database management system” for the case-specific facts
a rule interpreter for problem solving
Example
IF: (1) stain of organism is Gram neg. AND
(2) morphology of organism is rod AND
(3) aerobicity of organism is aerobic
THEN: strong evidence (0.8) that organism is Enterobact
11
Knowledge Representation
scheme: Semantic Networks
Semantic networks
Semantic networks are graphical representation of entities and
their relationships. The nodes are objects or events; the arcs are
the relationships or moves.
12
Semantic Networks - An
example 1
IS - A Hierarchy
Living Thing
is a is a
Animal Plant
is a is a is a is a
is a is a is a is a
is a is a
German Bull
Shepherd dog
13
Semantic Networks - An
example 2
IS - PART Hierarchy
Dog
is part is part
is part
Head Body Appendages Tail
is part is part
is part is part
is part
Ears Nose Eyes Mouth Legs Paws
14
Knowledge Representation
scheme: Frames
Frames
These are knowledge representation formalisms in which
stereotyped information on objects are represented.
Features: capture object attributes and their values; search
done by matching;
Structure: Node and collection of attributes(slots).
15
Knowledge Representation
scheme: Frames
Frames - What and Why
A frame is a collection of questions to be asked about a
hypothetical situation: it specifies issues to be raised and
methods to be used in dealing with them.
To understand a situation, questions like:
What cased it (agent)?
What was the purpose (intention)?
What are the consequences (effects)?
Whom does it affect (recipient)?
How is it done (instruments)?
16
Frames - An example
Part of the Frame Description of a Hotel Room
hotel chair
hotel room
superclass: chair
superclass: room
height: 20-40cm
location:hotel
legs: 4
contains: (hotel chair
use: sitting
hotel phone
hotel bed)
hotel phone
superclass: phone
use: calling room service
hotel bed billing: through room
superclass: bed
mattress
use: sleeping
superclass: cushion
size: king
firmness: firm
part: (mattress frame)
17
Knowledge Representation
scheme: Propositional Calculus
Propositional calculus- assertions describing things, use
logical connectives and boolean logic.
18
Propositional Calculus -
example
Read: Logic
Nat. Lang. Or And Implies Not
19
Knowledge Representation
scheme: Predicate Calculus(FOL)
Predicate calculus- is an extension of propositional
calculus. Predicates are used these are of the form
function(arguments), where function is any object or
relationship. The quantifiers are used.
20
Knowledge Representation
scheme: First-Order Logic
Read: Logic
Nat. Lang. Or And Implies Not Forall Exists
22
Representation of Knowledge
There is no single most adequate knowledge representation
formalism/scheme for everything.
Main points for selecting a representation formalism: what
should be represented, how should the knowledge be
processed.
There are many more representation formalisms. All the above
mentioned are symbolic. There are non-symbolic (e.g. pictorial)
ones. Neural networks work on non-symbolic representations.
23