SlideShare a Scribd company logo
1 of 20
Download to read offline
IAI : Semantic Networks and Frames
© John A. Bullinaria, 2005
1. Components of a Semantic Network
2. AND/OR Trees
3. IS-A and IS-PART Hierarchies
4. Representing Events and Language
5. Intersection Search
6. Inheritance and Defaults
7. Tangled Hierarchies and Inferential Distance
8. The Relation between Semantic Networks and Frames
9. Components of Frame Based Systems
10. Slots as Fully-Fledged Objects
w6-2
Components of a Semantic Network
We can define a Semantic Network by specifying its fundamental components:
Lexical part nodes – denoting objects
links – denoting relations between objects
labels – denoting particular objects and relations
Structural part the links and nodes form directed graphs
the labels are placed on the links and nodes
Semantic part meanings are associated with the link and node labels
(the details will depend on the application domain)
Procedural part constructors allow creation of new links and nodes
destructors allow the deletion of links and nodes
writers allow the creation and alteration of labels
readers can extract answers to questions
Clearly we are left with plenty of flexibility in creating these representations.
w6-3
Semantic Networks as Knowledge Representations
Using Semantic Networks for representing knowledge has particular advantages:
1. They allow us to structure the knowledge to reflect the structure of that part
of the world which is being represented.
2. The semantics, i.e. real world meanings, are clearly identifiable.
3. There are very powerful representational possibilities as a result of “is a” and
“is a part of” inheritance hierarchies.
4. They can accommodate a hierarchy of default values (for example, we can
assume the height of an adult male to be 178cm, but if we know he is a
baseball player we should take it to be 195cm).
5. They can be used to represent events and natural language sentences.
Clearly, the notion of a semantic network is extremely general. However, that can be a
problem, unless we are clear about the syntax and semantics in each case.
w6-4
AND / OR Trees
One particularly simple form of semantic network is an AND/OR Tree. For example:
OR
AND
Steal
food
money
security
Earn
Eat
CV
Prepare
Consult
agency
job
Find Write
book
money
Borrow
Phone
bank
Put on
suit
See bank
Find
Two node types:
w6-5
An IS-A Hierarchy
Another simple form of semantic network is an is-a hierarchy. For example:
Animal
Livestock
Pet
Horse
Dog
German
Shepherd
Poodle
Cat
Tree Bush
Oak
Plant
Living thing
isa
isa
isa isa
isa isa
isa isa
isa
isa
isa
isa
In set-theory terms, is-a corresponds to the sub-set relation ⊆, and instance corresponds to
the membership relation ∈.
w6-6
An IS-PART Hierarchy
If necessary, we can take the hierarchy all the way down to the molecular or atomic level with
an is-part hierarchy. For example:
Ears Nose Eyes Mouth
Body Appendages
Legs Paws
Tail
Head
Dog
ispart
ispart
ispart
ispart
ispart
ispart ispart ispart
ispart
Retina
Naturally, where we choose to stop the hierarchy depends on what we want to represent.
w6-7
Representing Events and Language
Semantic networks are also very good at representing events, and simple declarative
sentences, by basing them round an “event node”. For example:
“John gave lecture w6 to his students”
In fact, several of the earliest semantic networks were English-understanding programs.
Event107
Give
Student
w6
Lecture
John
object
instance
beneficiary
agent
instance
w6-8
A Typical Mixed-Type Semantic Network
Three-Finger
Reese
Fielder
handed
equal to
Pitcher
Person Right
Male
Adult
178
Dodgers
Brooklyn
Cubs Brown
Pee-Wee-
.106
Player
Baseball-
.262
.252
195
batting-average batting-average
Chicago-
average
batting-
height
handed
height
team
team
instance
isa
bats
isa
isa
isa
instance
Here’s the example of a
Semantic Network from
Rich & Knight that we
looked at previously:
w6-9
Intersection Search
One of the earliest ways that semantic networks were used was to find relationships
between objects by spreading activation from each of two nodes and seeing where the
activations met. This process is called intersection search.
Question: “What is the relation between Chicago cubs and Brooklyn Dodgers?”
Three-Finger Pee-Wee-
Fielder
Pitcher
Dodgers
Brooklyn
Cubs Brown Reese
.106
Player
Baseball-
.262
.252
average
batting-average batting-average
Chicago-
batting-
team
isa isa
instance
team
instance
Answer: “They are both teams of baseball players.”
w6-10
Inheritance and Defaults
Two important features of semantic networks are the ideas of default (or typical) values
and inheritance. Consider the following section of a semantic network:
We can assign expected/default values of parameters (e.g. height, has nose) and inherit
them from higher up the hierarchy. This is more efficient than listing all the details at
each level. We can also over-ride the defaults. For example, baseball players are taller
than average, so their default height over-rides the default height for men.
163cm
178cm
is a
is a
is a
Man
Person
Baseball Player
Chess Player 195cm
height
height
height
Yes
has nose
w6-11
Multiple Inheritance
With simple trees, inheritance is straight-forward. However, when multiple inheritance
is allowed, problems can occur. For example, consider this famous example:
Question: “Is Nixon a pacifist?”
Conflicts like this are common is the real world. It is important that the inheritance
algorithm reports the conflict, rather than just traversing the tree and reporting the first
answer it finds. In practice, we aim to build semantic networks in which all such
conflicts are either over-ridden, or resolved appropriately.
instance
instance
Quaker
Yes
pacifist
Republican No
pacifist
Nixon
w6-12
Tangled Hierarchies
Hierarchies that are not simple trees are called tangled hierarchies. These allow
another type of inheritance conflict. For example:
Question: “Can Oliver fly?”
A better solution than having a specific “flies no” for all individual instances of an
ostrich, would be to have an algorithm for traversing the algorithm which guarantees
that specific knowledge will always dominate over general knowledge. How?
is a
is a
instance
instance
Oliver
Ostrich Pet Bird
No
Bird Yes
flies
flies
instance
w6-13
Inferential Distance
Note that simply counting nodes as a measure of distance will not generally give the
required results. Why?
Instead, we can base our inheritance algorithm on the inferential distance, which can be
used to define the concept of “closer” as follows:
“Node1 is closer to Node2 than Node3 if and only if Node1 has an inference
path through Node2 to Node3, i.e. Node2 is in between Node1 and Node3.”
Closer nodes in this sense will be more specific than further nodes, and so we should
inherit any defaults from them.
Notice that inferential distance only defines a partial ordering – so it won’t be any help
with the Nixon example.
In general, the inferential engine will be composed of many procedural rules like this to
define how the semantic network should be processed.
w6-14
The Relation between Semantic Networks and Frames
The idea of semantic networks started out as a natural way to represent labelled
connections between entities. But, as the representations are expected to support
increasingly large ranges of problem solving tasks, the representation schemes
necessarily become increasingly complex.
In particular, it becomes necessary to assign more structure to nodes, as well as to links.
For example, in many cases we need node labels that can be computed, rather than
being fixed in advance. It is natural to use database ideas to keep track of everything,
and the nodes and their relations begin to look more like frames.
In the literature, the distinction between frames and semantic networks is actually rather
blurred. However, the more structure a system has, the more likely it is to be termed a
frame system rather than a semantic network.
For our purposes, we shall use the practical distinction that semantic networks look like
networks, and frames look like frames.
w6-15
Frame Based Systems – The Basic Idea
A frame consists of a selection of slots which can be filled by values, or procedures for
calculating values, or pointers to other frames. For example:
A complete frame based representation will consist of a whole hierarchy or network of
frames connected together by appropriate links/pointers.
hotel room
is-a: room
location: hotel
contains: {hotel chair,
hotel bed,
hotel phone,
…}
.
.
.
hotel chair
is-a: chair
location: hotel room
height: 20-40cm
legs: 4
comfortable: yes
use: for sitting on
.
.
.
w6-16
Frames as a Knowledge Representation
The simplest type of frame is just a data structure with similar properties and
possibilities for knowledge representation as a semantic network, with the same ideas of
inheritance and default values.
Frames become much more powerful when their slots can also contain instructions
(procedures) for computing things from information in other slots or in other frames.
The original idea of frames was due to Minsky (1975) who defined them as “data-
structures for representing stereotyped situations”, such as going into a hotel room.
This type of frames are now generally referred to as Scripts. Attached to each frame
will then be several kinds of information. Some information can be about how to use
the frame. Some can be about what one can expect to happen next, or what one should
do next. Some can be about what to do if our expectations are not confirmed. Then,
when one encounters a new situation, one can select from memory an appropriate frame
and this can be adapted to fit reality by changing particular details as necessary.
w6-17
Converting between Semantic Networks and Frames
It is easy to construct frames for each node of a semantic net by reading off the links, e.g.
Three-Finger Pee-Wee-
Fielder
Pitcher
Dodgers
Brooklyn
Cubs Brown Reese
.106
Player
Baseball-
.262
.252
average
batting-average batting-average
Chicago-
batting-
team
isa isa
instance
team
instance
⇒
Pee-Wee-Reese
instance: Baseball player
team: Brooklyn Dodgers
Fielder
is-a: Baseball player
batting average: .262
Baseball Player
is-a: Adult Male
batting average: .252
bats: equal to handed
team:
.
.
.
• • •
w6-18
Set Theory as a Basis For Frame Systems
The relationship between real world instances, the representation of instances, and the
representation of sets/classes of instances, is already quite familiar, e.g.
ARCH
ARC-DE-
TRIOMPHE
Denotation
Instantiation
Individuation
Individual Concept
Individual Object
Generic Concept
Clearly is-a corresponds to subset ⊆, and instance corresponds to element ∈. Then set
theory concepts such as transitivity, intersection, etc. apply automatically to our frames.
w6-19
Slots as Fully-Fledged Objects
We have seen that frame based representations can be made much more powerful by
allowing the slot fillers to become more than simple values. This includes being frames
in their own right, with a full range of hierarchical arrangements, inheritance, etc. The
main filler properties we generally want to represent are:
1. Details about whether the slot is single or multi-valued.
2. Constraints on the ranges of values or types of values.
3. Simple default values for the attribute.
4. Rules for inheriting values for the attribute.
5. Rules for computing values separately from inheritance.
6. The classes/frames to which it can be attached.
7. Inverse attributes.
Naturally, the frame system interpreter must know how to process such frames.
w6-20
Overview and Reading
1. We began by looking at various common styles of semantic networks:
AND/OR trees, IS-A and IS-PART hierarchies, and event/language networks.
2. The important procedural concepts of Intersection Search, Inheritance,
Defaults, and Inferential Conflict were then covered.
3. We then looked at the relation between Semantic Networks and Frames, and
how to convert from one to the other.
4. We ended by considering how slots can be promoted to fully-fledged
objects with extremely general filler properties.
Reading
1. Rich & Knight: Chapters 9, 10
2. Winston: Chapter 2, 10
3. Jackson: Chapter 6
4. Russell & Norvig: Section10.6

More Related Content

Similar to Semantic Nets_ Framesadcvacacaccasssxdssxdsxdsaxsaxdxd

Explanations in Dialogue Systems through Uncertain RDF Knowledge Bases
Explanations in Dialogue Systems through Uncertain RDF Knowledge BasesExplanations in Dialogue Systems through Uncertain RDF Knowledge Bases
Explanations in Dialogue Systems through Uncertain RDF Knowledge BasesDaniel Sonntag
 
AI- memory organisation systems
AI-  memory organisation systemsAI-  memory organisation systems
AI- memory organisation systemsratikaagarwal
 
Deep Learning from Scratch - Building with Python from First Principles.pdf
Deep Learning from Scratch - Building with Python from First Principles.pdfDeep Learning from Scratch - Building with Python from First Principles.pdf
Deep Learning from Scratch - Building with Python from First Principles.pdfYungSang1
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling TechniqueCarmen Sanborn
 
Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AIShahDhruv21
 
Frame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxFrame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxnilesh405711
 
SENG691I - Knowledge Representation and The Semantic Web
SENG691I - Knowledge Representation and The Semantic WebSENG691I - Knowledge Representation and The Semantic Web
SENG691I - Knowledge Representation and The Semantic WebDaniel Shaw
 
The Role Of Ontology In Modern Expert Systems Dallas 2008
The Role Of Ontology In Modern Expert Systems   Dallas   2008The Role Of Ontology In Modern Expert Systems   Dallas   2008
The Role Of Ontology In Modern Expert Systems Dallas 2008Jason Morris
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesRafael Alvarado
 
artificial intelligence that covers frames
artificial intelligence that covers framesartificial intelligence that covers frames
artificial intelligence that covers framespicnew83
 
Repositories thru the looking glass
Repositories thru the looking glassRepositories thru the looking glass
Repositories thru the looking glassEduserv Foundation
 
Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things PayamBarnaghi
 
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...Marko Rodriguez
 
Social Network Based Information Systems (Tin180 Com)
Social Network Based Information Systems (Tin180 Com)Social Network Based Information Systems (Tin180 Com)
Social Network Based Information Systems (Tin180 Com)Tin180 VietNam
 
Searching for patterns in crowdsourced information
Searching for patterns in crowdsourced informationSearching for patterns in crowdsourced information
Searching for patterns in crowdsourced informationSilvia Puglisi
 
Social Network Analysis Introduction including Data Structure Graph overview.
Social Network Analysis Introduction including Data Structure Graph overview. Social Network Analysis Introduction including Data Structure Graph overview.
Social Network Analysis Introduction including Data Structure Graph overview. Doug Needham
 
Introduction To Abortion Essay. Group launches site to help women self-induce...
Introduction To Abortion Essay. Group launches site to help women self-induce...Introduction To Abortion Essay. Group launches site to help women self-induce...
Introduction To Abortion Essay. Group launches site to help women self-induce...Ciara Hall
 
Semantic Technologies: Representing Semantic Data
Semantic Technologies: Representing Semantic DataSemantic Technologies: Representing Semantic Data
Semantic Technologies: Representing Semantic DataMatthew Rowe
 
Knowledge base system appl. p 3,4
Knowledge base system appl.  p 3,4Knowledge base system appl.  p 3,4
Knowledge base system appl. p 3,4Taymoor Nazmy
 
09- Syed Rehan-ai-ppt2.pptx
09- Syed Rehan-ai-ppt2.pptx09- Syed Rehan-ai-ppt2.pptx
09- Syed Rehan-ai-ppt2.pptxNandhiniV68
 

Similar to Semantic Nets_ Framesadcvacacaccasssxdssxdsxdsaxsaxdxd (20)

Explanations in Dialogue Systems through Uncertain RDF Knowledge Bases
Explanations in Dialogue Systems through Uncertain RDF Knowledge BasesExplanations in Dialogue Systems through Uncertain RDF Knowledge Bases
Explanations in Dialogue Systems through Uncertain RDF Knowledge Bases
 
AI- memory organisation systems
AI-  memory organisation systemsAI-  memory organisation systems
AI- memory organisation systems
 
Deep Learning from Scratch - Building with Python from First Principles.pdf
Deep Learning from Scratch - Building with Python from First Principles.pdfDeep Learning from Scratch - Building with Python from First Principles.pdf
Deep Learning from Scratch - Building with Python from First Principles.pdf
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling Technique
 
Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AI
 
Frame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxFrame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptx
 
SENG691I - Knowledge Representation and The Semantic Web
SENG691I - Knowledge Representation and The Semantic WebSENG691I - Knowledge Representation and The Semantic Web
SENG691I - Knowledge Representation and The Semantic Web
 
The Role Of Ontology In Modern Expert Systems Dallas 2008
The Role Of Ontology In Modern Expert Systems   Dallas   2008The Role Of Ontology In Modern Expert Systems   Dallas   2008
The Role Of Ontology In Modern Expert Systems Dallas 2008
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
 
artificial intelligence that covers frames
artificial intelligence that covers framesartificial intelligence that covers frames
artificial intelligence that covers frames
 
Repositories thru the looking glass
Repositories thru the looking glassRepositories thru the looking glass
Repositories thru the looking glass
 
Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things
 
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
 
Social Network Based Information Systems (Tin180 Com)
Social Network Based Information Systems (Tin180 Com)Social Network Based Information Systems (Tin180 Com)
Social Network Based Information Systems (Tin180 Com)
 
Searching for patterns in crowdsourced information
Searching for patterns in crowdsourced informationSearching for patterns in crowdsourced information
Searching for patterns in crowdsourced information
 
Social Network Analysis Introduction including Data Structure Graph overview.
Social Network Analysis Introduction including Data Structure Graph overview. Social Network Analysis Introduction including Data Structure Graph overview.
Social Network Analysis Introduction including Data Structure Graph overview.
 
Introduction To Abortion Essay. Group launches site to help women self-induce...
Introduction To Abortion Essay. Group launches site to help women self-induce...Introduction To Abortion Essay. Group launches site to help women self-induce...
Introduction To Abortion Essay. Group launches site to help women self-induce...
 
Semantic Technologies: Representing Semantic Data
Semantic Technologies: Representing Semantic DataSemantic Technologies: Representing Semantic Data
Semantic Technologies: Representing Semantic Data
 
Knowledge base system appl. p 3,4
Knowledge base system appl.  p 3,4Knowledge base system appl.  p 3,4
Knowledge base system appl. p 3,4
 
09- Syed Rehan-ai-ppt2.pptx
09- Syed Rehan-ai-ppt2.pptx09- Syed Rehan-ai-ppt2.pptx
09- Syed Rehan-ai-ppt2.pptx
 

Recently uploaded

Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AISheetal Jain
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...IJECEIAES
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsVIEW
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2T.D. Shashikala
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...Amil baba
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1T.D. Shashikala
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdfKamal Acharya
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptamrabdallah9
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological universityMohd Saifudeen
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxMustafa Ahmed
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksIJECEIAES
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfAshrafRagab14
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfssuser5c9d4b1
 

Recently uploaded (20)

Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 

Semantic Nets_ Framesadcvacacaccasssxdssxdsxdsaxsaxdxd

  • 1. IAI : Semantic Networks and Frames © John A. Bullinaria, 2005 1. Components of a Semantic Network 2. AND/OR Trees 3. IS-A and IS-PART Hierarchies 4. Representing Events and Language 5. Intersection Search 6. Inheritance and Defaults 7. Tangled Hierarchies and Inferential Distance 8. The Relation between Semantic Networks and Frames 9. Components of Frame Based Systems 10. Slots as Fully-Fledged Objects
  • 2. w6-2 Components of a Semantic Network We can define a Semantic Network by specifying its fundamental components: Lexical part nodes – denoting objects links – denoting relations between objects labels – denoting particular objects and relations Structural part the links and nodes form directed graphs the labels are placed on the links and nodes Semantic part meanings are associated with the link and node labels (the details will depend on the application domain) Procedural part constructors allow creation of new links and nodes destructors allow the deletion of links and nodes writers allow the creation and alteration of labels readers can extract answers to questions Clearly we are left with plenty of flexibility in creating these representations.
  • 3. w6-3 Semantic Networks as Knowledge Representations Using Semantic Networks for representing knowledge has particular advantages: 1. They allow us to structure the knowledge to reflect the structure of that part of the world which is being represented. 2. The semantics, i.e. real world meanings, are clearly identifiable. 3. There are very powerful representational possibilities as a result of “is a” and “is a part of” inheritance hierarchies. 4. They can accommodate a hierarchy of default values (for example, we can assume the height of an adult male to be 178cm, but if we know he is a baseball player we should take it to be 195cm). 5. They can be used to represent events and natural language sentences. Clearly, the notion of a semantic network is extremely general. However, that can be a problem, unless we are clear about the syntax and semantics in each case.
  • 4. w6-4 AND / OR Trees One particularly simple form of semantic network is an AND/OR Tree. For example: OR AND Steal food money security Earn Eat CV Prepare Consult agency job Find Write book money Borrow Phone bank Put on suit See bank Find Two node types:
  • 5. w6-5 An IS-A Hierarchy Another simple form of semantic network is an is-a hierarchy. For example: Animal Livestock Pet Horse Dog German Shepherd Poodle Cat Tree Bush Oak Plant Living thing isa isa isa isa isa isa isa isa isa isa isa isa In set-theory terms, is-a corresponds to the sub-set relation ⊆, and instance corresponds to the membership relation ∈.
  • 6. w6-6 An IS-PART Hierarchy If necessary, we can take the hierarchy all the way down to the molecular or atomic level with an is-part hierarchy. For example: Ears Nose Eyes Mouth Body Appendages Legs Paws Tail Head Dog ispart ispart ispart ispart ispart ispart ispart ispart ispart Retina Naturally, where we choose to stop the hierarchy depends on what we want to represent.
  • 7. w6-7 Representing Events and Language Semantic networks are also very good at representing events, and simple declarative sentences, by basing them round an “event node”. For example: “John gave lecture w6 to his students” In fact, several of the earliest semantic networks were English-understanding programs. Event107 Give Student w6 Lecture John object instance beneficiary agent instance
  • 8. w6-8 A Typical Mixed-Type Semantic Network Three-Finger Reese Fielder handed equal to Pitcher Person Right Male Adult 178 Dodgers Brooklyn Cubs Brown Pee-Wee- .106 Player Baseball- .262 .252 195 batting-average batting-average Chicago- average batting- height handed height team team instance isa bats isa isa isa instance Here’s the example of a Semantic Network from Rich & Knight that we looked at previously:
  • 9. w6-9 Intersection Search One of the earliest ways that semantic networks were used was to find relationships between objects by spreading activation from each of two nodes and seeing where the activations met. This process is called intersection search. Question: “What is the relation between Chicago cubs and Brooklyn Dodgers?” Three-Finger Pee-Wee- Fielder Pitcher Dodgers Brooklyn Cubs Brown Reese .106 Player Baseball- .262 .252 average batting-average batting-average Chicago- batting- team isa isa instance team instance Answer: “They are both teams of baseball players.”
  • 10. w6-10 Inheritance and Defaults Two important features of semantic networks are the ideas of default (or typical) values and inheritance. Consider the following section of a semantic network: We can assign expected/default values of parameters (e.g. height, has nose) and inherit them from higher up the hierarchy. This is more efficient than listing all the details at each level. We can also over-ride the defaults. For example, baseball players are taller than average, so their default height over-rides the default height for men. 163cm 178cm is a is a is a Man Person Baseball Player Chess Player 195cm height height height Yes has nose
  • 11. w6-11 Multiple Inheritance With simple trees, inheritance is straight-forward. However, when multiple inheritance is allowed, problems can occur. For example, consider this famous example: Question: “Is Nixon a pacifist?” Conflicts like this are common is the real world. It is important that the inheritance algorithm reports the conflict, rather than just traversing the tree and reporting the first answer it finds. In practice, we aim to build semantic networks in which all such conflicts are either over-ridden, or resolved appropriately. instance instance Quaker Yes pacifist Republican No pacifist Nixon
  • 12. w6-12 Tangled Hierarchies Hierarchies that are not simple trees are called tangled hierarchies. These allow another type of inheritance conflict. For example: Question: “Can Oliver fly?” A better solution than having a specific “flies no” for all individual instances of an ostrich, would be to have an algorithm for traversing the algorithm which guarantees that specific knowledge will always dominate over general knowledge. How? is a is a instance instance Oliver Ostrich Pet Bird No Bird Yes flies flies instance
  • 13. w6-13 Inferential Distance Note that simply counting nodes as a measure of distance will not generally give the required results. Why? Instead, we can base our inheritance algorithm on the inferential distance, which can be used to define the concept of “closer” as follows: “Node1 is closer to Node2 than Node3 if and only if Node1 has an inference path through Node2 to Node3, i.e. Node2 is in between Node1 and Node3.” Closer nodes in this sense will be more specific than further nodes, and so we should inherit any defaults from them. Notice that inferential distance only defines a partial ordering – so it won’t be any help with the Nixon example. In general, the inferential engine will be composed of many procedural rules like this to define how the semantic network should be processed.
  • 14. w6-14 The Relation between Semantic Networks and Frames The idea of semantic networks started out as a natural way to represent labelled connections between entities. But, as the representations are expected to support increasingly large ranges of problem solving tasks, the representation schemes necessarily become increasingly complex. In particular, it becomes necessary to assign more structure to nodes, as well as to links. For example, in many cases we need node labels that can be computed, rather than being fixed in advance. It is natural to use database ideas to keep track of everything, and the nodes and their relations begin to look more like frames. In the literature, the distinction between frames and semantic networks is actually rather blurred. However, the more structure a system has, the more likely it is to be termed a frame system rather than a semantic network. For our purposes, we shall use the practical distinction that semantic networks look like networks, and frames look like frames.
  • 15. w6-15 Frame Based Systems – The Basic Idea A frame consists of a selection of slots which can be filled by values, or procedures for calculating values, or pointers to other frames. For example: A complete frame based representation will consist of a whole hierarchy or network of frames connected together by appropriate links/pointers. hotel room is-a: room location: hotel contains: {hotel chair, hotel bed, hotel phone, …} . . . hotel chair is-a: chair location: hotel room height: 20-40cm legs: 4 comfortable: yes use: for sitting on . . .
  • 16. w6-16 Frames as a Knowledge Representation The simplest type of frame is just a data structure with similar properties and possibilities for knowledge representation as a semantic network, with the same ideas of inheritance and default values. Frames become much more powerful when their slots can also contain instructions (procedures) for computing things from information in other slots or in other frames. The original idea of frames was due to Minsky (1975) who defined them as “data- structures for representing stereotyped situations”, such as going into a hotel room. This type of frames are now generally referred to as Scripts. Attached to each frame will then be several kinds of information. Some information can be about how to use the frame. Some can be about what one can expect to happen next, or what one should do next. Some can be about what to do if our expectations are not confirmed. Then, when one encounters a new situation, one can select from memory an appropriate frame and this can be adapted to fit reality by changing particular details as necessary.
  • 17. w6-17 Converting between Semantic Networks and Frames It is easy to construct frames for each node of a semantic net by reading off the links, e.g. Three-Finger Pee-Wee- Fielder Pitcher Dodgers Brooklyn Cubs Brown Reese .106 Player Baseball- .262 .252 average batting-average batting-average Chicago- batting- team isa isa instance team instance ⇒ Pee-Wee-Reese instance: Baseball player team: Brooklyn Dodgers Fielder is-a: Baseball player batting average: .262 Baseball Player is-a: Adult Male batting average: .252 bats: equal to handed team: . . . • • •
  • 18. w6-18 Set Theory as a Basis For Frame Systems The relationship between real world instances, the representation of instances, and the representation of sets/classes of instances, is already quite familiar, e.g. ARCH ARC-DE- TRIOMPHE Denotation Instantiation Individuation Individual Concept Individual Object Generic Concept Clearly is-a corresponds to subset ⊆, and instance corresponds to element ∈. Then set theory concepts such as transitivity, intersection, etc. apply automatically to our frames.
  • 19. w6-19 Slots as Fully-Fledged Objects We have seen that frame based representations can be made much more powerful by allowing the slot fillers to become more than simple values. This includes being frames in their own right, with a full range of hierarchical arrangements, inheritance, etc. The main filler properties we generally want to represent are: 1. Details about whether the slot is single or multi-valued. 2. Constraints on the ranges of values or types of values. 3. Simple default values for the attribute. 4. Rules for inheriting values for the attribute. 5. Rules for computing values separately from inheritance. 6. The classes/frames to which it can be attached. 7. Inverse attributes. Naturally, the frame system interpreter must know how to process such frames.
  • 20. w6-20 Overview and Reading 1. We began by looking at various common styles of semantic networks: AND/OR trees, IS-A and IS-PART hierarchies, and event/language networks. 2. The important procedural concepts of Intersection Search, Inheritance, Defaults, and Inferential Conflict were then covered. 3. We then looked at the relation between Semantic Networks and Frames, and how to convert from one to the other. 4. We ended by considering how slots can be promoted to fully-fledged objects with extremely general filler properties. Reading 1. Rich & Knight: Chapters 9, 10 2. Winston: Chapter 2, 10 3. Jackson: Chapter 6 4. Russell & Norvig: Section10.6