Ai 5
Ai 5
Module-V:
Structured Representations of Knowledge
This can be
represented in ordinary
semantic Net.
Knowledge representation using frames
• Introduced by Marvin Minsky (1975)
• Extension to semantic nets
• Each node is represented by a frame
• Frame is data structure use to represent a stereotyped situation
• Used for representing a stereotyped situation
• It consists of a collection of attributes or slots and associated
values that describe some real-world entity
• Similar to the class of OOP
• The related frames are linked together into frame systems and
are organized into hierarchies or network of frames
• Each frame in the network is either a class frame or an instance
frame
• Frame consists of attributes/slots i.e. Described as <slot-name,
value>
• Slots have facets/fillers which describe their properties
Structure of a Frame
ATRANS
Conceptual Dependency:
3. PP PP one object belongs to the set of other object
1. John is a doctor John doctor
4. PP PP (one object provides information about other
object)
1. John’s car John pos by Car
2. Mary is in Delhi Mary loc Delhi
5. PP ⇔ PA (to represent state/modifier of an object)
1. John is fat John ⇔ weight > 50
2. Mary is poor Mary ⇔ income<2000
6. PP PA (relation between an object and an attribute
defined)
– Smart John John smart
– Charming Mary Mary charming
Rule-7: it shows a relationship between an ACT and its
physical source and destination locations of ACT. R indicates
relation between source and destination
ACT
p School
John ⇔ PTRANS
Home
p Mumbai
Mary ⇔ PTRANS
v Delhi
Train
Mike ate custard with spoon
p i
Mary ⇔ INGEST Spoon
o
Custard
INGEST: eat, drink, smoke (actor, object, direction)
SCRIPTS
Frame like structures used to represent commonly occurring
experiences.
Example
– Going to movie
– Shopping in a supermarket
– Eating in a restaurant
– Visiting a dentist
Components
– Actors
– Roles
– Props
– Scenes
A Super Market Script Structure
• Write a SCRIPT
structure for a
Restaurant
• Write a SCRIPT
structure for visiting
a doctor in a hospital
• Write a SCRIPT
structure for going to
watch a movie
Weak slot filler structures Strong slot filler structures
Weak slot filler structures Strong slot filler structures are very
are very general rigid rules
Individual semantic networks and exhibit powerful theories of how AI
frame systems may have specialized programs can represent and use
links and inference procedures, but knowledge about common situations.
there are no hard and fast rules
about what kinds of objects are good
to use for Knowledge Representation
Frames are a type of weak structure Conceptual Dependency, Scripts
where each frame contains slots and which tells what type of objects and
associated values that describe an relations are permitted
entity.