SlideShare a Scribd company logo
1 of 40
1
Chapter 10
Knowledge Representation
2
KR
โ€ข previous chapters: syntax, semantics,
and proof theory of propositional and
first-order logic
โ€ข Chapter 10: what content to put into
an agentโ€™s KB
โ€ข How to represent knowledge of the
world
3
Natural Kinds
โ€ข Some categories have strict definitions
(triangles, squares, etc)
โ€ข Natural kinds donโ€™t
โ€ข Define a cup (distinguishing it from bowls,
mugs, glasses, etc)
โ€ข Bachelor: is the Pope a bachelor?
โ€ข But logical treatment can be useful (can
extend with typicality, uncertainty,
fuzziness)
4
Upper Ontologies
โ€ข An ontology is similar to a dictionary
but with greater detail and structure
โ€ข Ontology: concepts, relations, axioms
that formalize a field of interest
โ€ข Upper ontology: only concepts that
are meta, generic, abstract; cover a
broad range of domain areas
5
Anything
AbstractObjects GeneralizedEvents
Sets Numbers RepresentationalObjects Interval Places PhysicalObjects Processes
Categories Sentences Measurements Moments things stuff
times weights animals agents solid liquid gas
Lower concepts are specializations of their parents
6
Categories and Objects
โ€ข I want to marry a Swedish woman
โ€“ Category of Swedish woman?
โ€“ A particular woman who is Swedish?
โ€ข Choices for representing categories:
predicates or reified objects
โ€ข basketball(b) vs
member(b,basketballs)
โ€ข Letโ€™s go with the reified versionโ€ฆ
7
Facts about categories and
objects in FOL
โ€ข An object is a member of a category
โ€ข A category is a subclass of another
category
โ€ข All members of a category have some
properties
โ€ข Members of a category can be recognized
by some properties
โ€ข A category as a whole has some properties
Necessary versus sufficient properties?
Note: simplification of real categories
8
Other Relationships
โ€ข disjoint (no members in common)
โ€ข exhaustive decomposition of a
category (all members are in at least
one of the sets)
โ€ข Partition: disjoint, exhaustive
decomposition
9
Composite Objects
โ€ข partof(england,europe)
โ€ข All X,Y,Z partof(X,Y) ^ partof(Y,Z) ๏ƒ 
partof(X,Z)
โ€ข Heavy(bunchOf({apple1,apple2,apple3}))
โ€ข Before continuing: inspiration for
creative reification!
โ€ข From Through the Looking Glass
10
Measures
โ€ข Diameter(basketball12) = inches(9.5)
โ€ข All XY member(X,dimestore) ^ sells(X,Y) ๏ƒ 
cost(Y) = $(1)
โ€ข member(db1,dollarbills)
โ€ข member(db2,dollarbills)
โ€ข denomination(db1) = $(1)
โ€ข denomination(db2) = $(1)
There are multiple dollar bills, but a single
$(1)
11
Ordinal Comparisons
โ€ข But often scales are not so precisely
defined
โ€ข Often, ordinal comparisons among members
of categories are useful
โ€ข member(p1,poems) ^ member(p2,poems) ^
beauty(p1) < beauty(p2)
We donโ€™t have to say p1 has beauty 54.321
Qualitative physics: reasoning about physical
systems without detailed equations and
numerical simulations.
12
Stuff versus Things
โ€ข Suppose some ice cream and a cat in
front of you. There is one cat, but no
obvious number of ice-cream things in
front of you.
โ€ข A piece of an ice-cream thing is an
ice-cream thing (until you get down to
very low level)
โ€ข A piece of a cat is not a cat
13
Stuff versus Things
โ€ข Linguistically distinguished, in English
through mass versus count noun phrases
โ€ข โ€œa catโ€
โ€ข โ€œan ice-creamโ€ (you have to coerce this to a
thing, such as an ice-cream bar, or a
variety of ice cream)
โ€ข โ€œa sandโ€, โ€œan energyโ€
โ€ข โ€œsome catโ€ (you have to coerce this to a
substance; eeewww)
14
Actions, Situations, and Events
The Situation Calculus
โ€ข The robot is in the kitchen.
โ€“ in(robot,kitchen)
โ€ข It walks into the living room.
โ€“ in(robot,livingRoom)
โ€ข Oopsโ€ฆ
โ€ข in(robot,kitchen,2:02pm)
โ€ข in(robot,livingRoom,2:17pm)
โ€ข But what if you are not sure when it was?
โ€ข We can do something simpler than rely on
time stampsโ€ฆ
15
Situation Calculus Ontology
โ€ข Actions: terms, such as โ€œforwardโ€
and โ€œturn(right))โ€
โ€ข Situations: terms; initial situation s0
and all situations that are generating
by applying an action to a situation.
result(a,s) names the situation
resulting when action a is done in
situation s.
16
Situation Calculus Ontology
continued
โ€ข Fluents: functions and predicates that
vary from one situation to the next. By
convention, the situation is the last
argument of the fluent.
~holding(robot,gold,s0)
โ€ข Atemporal or eternal predicates and
functions do not change from situation to
situation. gold(g1).
lastName(wumpus,smith).
adjacent(livingRoom,kitchen).
17
Sequences of Actions
โ€ข Also useful to reason about action
sequences
โ€ข All S resultSeq([],S) = S
โ€ข All A,Se,S resultSeq([A|Se],S) =
resultSeq(Se,result(A,S))
resultSeq([a,b,a2,a3],so) is
result(a3,result(a2,result(b,result(a,s0)
18
Modified Wumpus World
โ€ข Fluent predicates: at(O,X,S) and
holding(O,S)
โ€ข Initial situation: at(agent,[1,1],s0) ^
at(g1,[1,2],s0)
โ€ข But we want to exclude possibilities
from the initial situation tooโ€ฆ
19
Initial KB
โ€ข All O,X at(O,X,s0) ๏ƒŸ๏ƒ  [O=agent ^
X = [1,1]) v (O=g1 ^ X = [1,2])]
โ€ข All O ~holding(O,s0)
โ€ข Eternals:
โ€“ gold(g1) ^ adjacent([1,1],[1,2]) ^
adjacent([1,2],[1,1]).
20
Goal: g1 is in [1,1]
At(g1,[1,1],resultSeq(
[go([1,1],[1,2]),grab(g1),go([1,2],[1,1])],
s0)
Or, planning by answering the query:
Exists S at(g1,[1,1],resultSeq(S,s0))
So, what has to go in the KB for such queries to
be answered?...
21
Possibility and Effect Axioms
โ€ข Possibility axioms:
โ€“ Preconditions ๏ƒ  poss(A,S)
โ€ข Effect axioms:
โ€“ poss(A,S) ๏ƒ  changes that result from
that action
22
Axioms for our Wumpus World
โ€ข For brevity: we will omit universal
quantifies that range over entire
sentence. S ranges over situations, A
ranges over actions, O over objects
(including agents), G over gold, and
X,Y,Z over locations.
23
Possibility Axioms
โ€ข The possibility axioms that an agent
can
โ€“ go between adjacent locations,
โ€“ grab a piece of gold in the current
location, and
โ€“ release gold it is holding
24
Effect Axioms
โ€ข If an action is possible, then certain
fluents will hold in the situation that
results from executing the action
โ€“ Going from X to Y results in being at Y
โ€“ Grabbing the gold results in holding the
gold
โ€“ Releasing the gold results in not holding
it
25
Frame Problem
โ€ข We run into the frame problem
โ€ข Effect axioms say what changes, but
donโ€™t say what stays the same
โ€ข A real problem, because (in a non-toy
domain), each action affects only a
tiny fraction of all fluents
26
Frame
โ€ข A data structure
โ€ข Knowledge about an object or concept
โ€ข Natural way for concise
representation of knowledge
โ€ข Organizes knowledge into a set of
slots
27
Frame Problem (continued)
โ€ข One solution approach is writing explicit
frame axioms, such as:
At(O,X,S) ^ ~(O=agent) ^ ~holding(O,S) ๏ƒ 
at(O,X,result(Go(Y,Z),S))
โ€ข With F fluent predicates and A actions,
need O(AF) frame axioms
โ€ข But if an action has at most E effects,
then need only O(AE).
28
Representational Frame
Problem
โ€ข What stays the same?
โ€ข A actions, F fluents, and E
effects/action (worst case).
Typically, E << F
โ€ข Want O(AE) versus O(AF) solution
29
Solving the Representational
Frame Problem
โ€ข Instead of writing the effects of each
action, consider how each fluent predicate
evolves over time
โ€ข Successor-state axioms:
โ€ข Action is possible ๏ƒ 
(fluent is true in result state ๏ƒŸ๏ƒ 
actionโ€™s effect made it true v
it was true before and action left it alone)
30
Ramification Problem
โ€ข Implicit effects, such as: if an agent
moves from X to Y, then any gold it is
carrying will move too
โ€ข For our specific domain, we can solve
this by writing a more general
successor-state axiom for โ€œatโ€
31
Initial KB (reminder)
โ€ข All O,X at(O,S,s0) ๏ƒŸ๏ƒ  [O=agent ^
X = [1,1]) v (O=g1 ^ X = [1,2])]
โ€ข All O ~holding(O,s0)
โ€ข Eternals:
โ€“ gold(g1) ^ adjacent([1,1],[1,2]) ^
adjacent([1,2],[1,1]).
32
Qualification Problem
โ€ข Ensuring that all necessary conditions
for an actionโ€™s success have been
specified. No complete solution.
33
Inheritance
โ€ข If a property is true of a class, it is true
of all subclasses of that class
โ€ข If a property is true of a class, it is true
of all objects that are members of that
class
โ€ข (If a property is true of a class, it is true
of all objects that are members of
subclasses of that class)
โ€ข There are exceptions
34
Semantic Networks
โ€ข Graphical aids for visualizing the knowledge
base
โ€ข Efficient algorithms for inferring
properties based on category membership
โ€ข Often, correspond to a subset of first-
order logic
โ€ข Many variants
โ€ข All distinguish among individual objects,
categories of objects and relations among
objects
35
Mammals
Persons
Female Male
Mary John
SubsetOf
SubsetOf SubsetOf
MemberOf MemberOf
SisterOf
Legs
2
Legs
1
HasMother
36
Example
โ€ข See previous slide
โ€ข Specify what edges and nodes mean
โ€ข In previous slide, indivs and categories look
the same
โ€ข memberOf(indiv,category)
โ€ข sisterOf(indiv,indiv)
โ€ข subsetOf(category,category)
โ€ข hasMother(indiv,indiv)
37
Semantic Networks
โ€ข How about
hasMother(persons,femalePersons)?
โ€ข Nope: hasMother is a relation between
individuals
โ€ข cat1-- label ๏ƒ  cat2 means:
โ€ข all X X in cat1 ๏ƒ  [all Y label(X,Y) ๏ƒ  Y in
cat2]
(So, this does not say that each person has a
mother)
38
Semantic Networks
โ€ข cat โ€“ label ๏ƒ  value
โ€ข All X X in cat ๏ƒ  label(X,value)
39
Inheritance
โ€ข Inheritance is efficient and
convenient
โ€ข Trace paths from individuals to
categories, inheriting properties as
you go
โ€ข In Example slide, how many legs does
John have? Most specific (nearest)
information wins
40
Semantic Networks
โ€ข In a semantic network, only binary
relations are possible
โ€ข A richer representation is possible by
reifying propositions and events
โ€ข This forces creation of a rich
ontology of reified concepts; many
current ideas originated in semantic
network systems

More Related Content

Similar to Chapter10

Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in fol
chandsek666
ย 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
Nitesh Singh
ย 
Fuzzy Logic_HKR
Fuzzy Logic_HKRFuzzy Logic_HKR
Fuzzy Logic_HKR
Hirak Kr. Roy
ย 
Chaps 1-3-ai-prolog
Chaps 1-3-ai-prologChaps 1-3-ai-prolog
Chaps 1-3-ai-prolog
saru40
ย 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
AMIT KUMAR
ย 
Finite Element Analysis Made Easy Lr
Finite Element Analysis Made Easy LrFinite Element Analysis Made Easy Lr
Finite Element Analysis Made Easy Lr
guesta32562
ย 
Taylor series
Taylor seriesTaylor series
Taylor series
John Weiss
ย 

Similar to Chapter10 (20)

Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in fol
ย 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
ย 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
ย 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
ย 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
ย 
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
SOFIE - A Unified Approach To Ontology-Based Information Extraction Using Rea...
ย 
Fuzzy logicintro by
Fuzzy logicintro by Fuzzy logicintro by
Fuzzy logicintro by
ย 
Fuzzy Logic_HKR
Fuzzy Logic_HKRFuzzy Logic_HKR
Fuzzy Logic_HKR
ย 
Lec 3.pdf
Lec 3.pdfLec 3.pdf
Lec 3.pdf
ย 
Chaps 1-3-ai-prolog
Chaps 1-3-ai-prologChaps 1-3-ai-prolog
Chaps 1-3-ai-prolog
ย 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
ย 
Logic
LogicLogic
Logic
ย 
Universal Approximation Theorem
Universal Approximation TheoremUniversal Approximation Theorem
Universal Approximation Theorem
ย 
Finite mathematics
Finite mathematicsFinite mathematics
Finite mathematics
ย 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional Logic
ย 
Thinking with shapes
Thinking with shapesThinking with shapes
Thinking with shapes
ย 
Finite Element Analysis Made Easy Lr
Finite Element Analysis Made Easy LrFinite Element Analysis Made Easy Lr
Finite Element Analysis Made Easy Lr
ย 
Taylor series
Taylor seriesTaylor series
Taylor series
ย 
l4.pptx
l4.pptxl4.pptx
l4.pptx
ย 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdf
ย 

Recently uploaded

โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
Diya Sharma
ย 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
SUHANI PANDEY
ย 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
ย 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
SUHANI PANDEY
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
SUHANI PANDEY
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
singhpriety023
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
SUHANI PANDEY
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
SUHANI PANDEY
ย 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
SUHANI PANDEY
ย 

Recently uploaded (20)

โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
โ‚น5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] ๐Ÿ”|97111...
ย 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
ย 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
ย 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
ย 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
ย 
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort ServiceBusty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
ย 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
ย 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
ย 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
ย 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
ย 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
ย 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
ย 
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
ย 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
ย 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
ย 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
ย 

Chapter10

  • 2. 2 KR โ€ข previous chapters: syntax, semantics, and proof theory of propositional and first-order logic โ€ข Chapter 10: what content to put into an agentโ€™s KB โ€ข How to represent knowledge of the world
  • 3. 3 Natural Kinds โ€ข Some categories have strict definitions (triangles, squares, etc) โ€ข Natural kinds donโ€™t โ€ข Define a cup (distinguishing it from bowls, mugs, glasses, etc) โ€ข Bachelor: is the Pope a bachelor? โ€ข But logical treatment can be useful (can extend with typicality, uncertainty, fuzziness)
  • 4. 4 Upper Ontologies โ€ข An ontology is similar to a dictionary but with greater detail and structure โ€ข Ontology: concepts, relations, axioms that formalize a field of interest โ€ข Upper ontology: only concepts that are meta, generic, abstract; cover a broad range of domain areas
  • 5. 5 Anything AbstractObjects GeneralizedEvents Sets Numbers RepresentationalObjects Interval Places PhysicalObjects Processes Categories Sentences Measurements Moments things stuff times weights animals agents solid liquid gas Lower concepts are specializations of their parents
  • 6. 6 Categories and Objects โ€ข I want to marry a Swedish woman โ€“ Category of Swedish woman? โ€“ A particular woman who is Swedish? โ€ข Choices for representing categories: predicates or reified objects โ€ข basketball(b) vs member(b,basketballs) โ€ข Letโ€™s go with the reified versionโ€ฆ
  • 7. 7 Facts about categories and objects in FOL โ€ข An object is a member of a category โ€ข A category is a subclass of another category โ€ข All members of a category have some properties โ€ข Members of a category can be recognized by some properties โ€ข A category as a whole has some properties Necessary versus sufficient properties? Note: simplification of real categories
  • 8. 8 Other Relationships โ€ข disjoint (no members in common) โ€ข exhaustive decomposition of a category (all members are in at least one of the sets) โ€ข Partition: disjoint, exhaustive decomposition
  • 9. 9 Composite Objects โ€ข partof(england,europe) โ€ข All X,Y,Z partof(X,Y) ^ partof(Y,Z) ๏ƒ  partof(X,Z) โ€ข Heavy(bunchOf({apple1,apple2,apple3})) โ€ข Before continuing: inspiration for creative reification! โ€ข From Through the Looking Glass
  • 10. 10 Measures โ€ข Diameter(basketball12) = inches(9.5) โ€ข All XY member(X,dimestore) ^ sells(X,Y) ๏ƒ  cost(Y) = $(1) โ€ข member(db1,dollarbills) โ€ข member(db2,dollarbills) โ€ข denomination(db1) = $(1) โ€ข denomination(db2) = $(1) There are multiple dollar bills, but a single $(1)
  • 11. 11 Ordinal Comparisons โ€ข But often scales are not so precisely defined โ€ข Often, ordinal comparisons among members of categories are useful โ€ข member(p1,poems) ^ member(p2,poems) ^ beauty(p1) < beauty(p2) We donโ€™t have to say p1 has beauty 54.321 Qualitative physics: reasoning about physical systems without detailed equations and numerical simulations.
  • 12. 12 Stuff versus Things โ€ข Suppose some ice cream and a cat in front of you. There is one cat, but no obvious number of ice-cream things in front of you. โ€ข A piece of an ice-cream thing is an ice-cream thing (until you get down to very low level) โ€ข A piece of a cat is not a cat
  • 13. 13 Stuff versus Things โ€ข Linguistically distinguished, in English through mass versus count noun phrases โ€ข โ€œa catโ€ โ€ข โ€œan ice-creamโ€ (you have to coerce this to a thing, such as an ice-cream bar, or a variety of ice cream) โ€ข โ€œa sandโ€, โ€œan energyโ€ โ€ข โ€œsome catโ€ (you have to coerce this to a substance; eeewww)
  • 14. 14 Actions, Situations, and Events The Situation Calculus โ€ข The robot is in the kitchen. โ€“ in(robot,kitchen) โ€ข It walks into the living room. โ€“ in(robot,livingRoom) โ€ข Oopsโ€ฆ โ€ข in(robot,kitchen,2:02pm) โ€ข in(robot,livingRoom,2:17pm) โ€ข But what if you are not sure when it was? โ€ข We can do something simpler than rely on time stampsโ€ฆ
  • 15. 15 Situation Calculus Ontology โ€ข Actions: terms, such as โ€œforwardโ€ and โ€œturn(right))โ€ โ€ข Situations: terms; initial situation s0 and all situations that are generating by applying an action to a situation. result(a,s) names the situation resulting when action a is done in situation s.
  • 16. 16 Situation Calculus Ontology continued โ€ข Fluents: functions and predicates that vary from one situation to the next. By convention, the situation is the last argument of the fluent. ~holding(robot,gold,s0) โ€ข Atemporal or eternal predicates and functions do not change from situation to situation. gold(g1). lastName(wumpus,smith). adjacent(livingRoom,kitchen).
  • 17. 17 Sequences of Actions โ€ข Also useful to reason about action sequences โ€ข All S resultSeq([],S) = S โ€ข All A,Se,S resultSeq([A|Se],S) = resultSeq(Se,result(A,S)) resultSeq([a,b,a2,a3],so) is result(a3,result(a2,result(b,result(a,s0)
  • 18. 18 Modified Wumpus World โ€ข Fluent predicates: at(O,X,S) and holding(O,S) โ€ข Initial situation: at(agent,[1,1],s0) ^ at(g1,[1,2],s0) โ€ข But we want to exclude possibilities from the initial situation tooโ€ฆ
  • 19. 19 Initial KB โ€ข All O,X at(O,X,s0) ๏ƒŸ๏ƒ  [O=agent ^ X = [1,1]) v (O=g1 ^ X = [1,2])] โ€ข All O ~holding(O,s0) โ€ข Eternals: โ€“ gold(g1) ^ adjacent([1,1],[1,2]) ^ adjacent([1,2],[1,1]).
  • 20. 20 Goal: g1 is in [1,1] At(g1,[1,1],resultSeq( [go([1,1],[1,2]),grab(g1),go([1,2],[1,1])], s0) Or, planning by answering the query: Exists S at(g1,[1,1],resultSeq(S,s0)) So, what has to go in the KB for such queries to be answered?...
  • 21. 21 Possibility and Effect Axioms โ€ข Possibility axioms: โ€“ Preconditions ๏ƒ  poss(A,S) โ€ข Effect axioms: โ€“ poss(A,S) ๏ƒ  changes that result from that action
  • 22. 22 Axioms for our Wumpus World โ€ข For brevity: we will omit universal quantifies that range over entire sentence. S ranges over situations, A ranges over actions, O over objects (including agents), G over gold, and X,Y,Z over locations.
  • 23. 23 Possibility Axioms โ€ข The possibility axioms that an agent can โ€“ go between adjacent locations, โ€“ grab a piece of gold in the current location, and โ€“ release gold it is holding
  • 24. 24 Effect Axioms โ€ข If an action is possible, then certain fluents will hold in the situation that results from executing the action โ€“ Going from X to Y results in being at Y โ€“ Grabbing the gold results in holding the gold โ€“ Releasing the gold results in not holding it
  • 25. 25 Frame Problem โ€ข We run into the frame problem โ€ข Effect axioms say what changes, but donโ€™t say what stays the same โ€ข A real problem, because (in a non-toy domain), each action affects only a tiny fraction of all fluents
  • 26. 26 Frame โ€ข A data structure โ€ข Knowledge about an object or concept โ€ข Natural way for concise representation of knowledge โ€ข Organizes knowledge into a set of slots
  • 27. 27 Frame Problem (continued) โ€ข One solution approach is writing explicit frame axioms, such as: At(O,X,S) ^ ~(O=agent) ^ ~holding(O,S) ๏ƒ  at(O,X,result(Go(Y,Z),S)) โ€ข With F fluent predicates and A actions, need O(AF) frame axioms โ€ข But if an action has at most E effects, then need only O(AE).
  • 28. 28 Representational Frame Problem โ€ข What stays the same? โ€ข A actions, F fluents, and E effects/action (worst case). Typically, E << F โ€ข Want O(AE) versus O(AF) solution
  • 29. 29 Solving the Representational Frame Problem โ€ข Instead of writing the effects of each action, consider how each fluent predicate evolves over time โ€ข Successor-state axioms: โ€ข Action is possible ๏ƒ  (fluent is true in result state ๏ƒŸ๏ƒ  actionโ€™s effect made it true v it was true before and action left it alone)
  • 30. 30 Ramification Problem โ€ข Implicit effects, such as: if an agent moves from X to Y, then any gold it is carrying will move too โ€ข For our specific domain, we can solve this by writing a more general successor-state axiom for โ€œatโ€
  • 31. 31 Initial KB (reminder) โ€ข All O,X at(O,S,s0) ๏ƒŸ๏ƒ  [O=agent ^ X = [1,1]) v (O=g1 ^ X = [1,2])] โ€ข All O ~holding(O,s0) โ€ข Eternals: โ€“ gold(g1) ^ adjacent([1,1],[1,2]) ^ adjacent([1,2],[1,1]).
  • 32. 32 Qualification Problem โ€ข Ensuring that all necessary conditions for an actionโ€™s success have been specified. No complete solution.
  • 33. 33 Inheritance โ€ข If a property is true of a class, it is true of all subclasses of that class โ€ข If a property is true of a class, it is true of all objects that are members of that class โ€ข (If a property is true of a class, it is true of all objects that are members of subclasses of that class) โ€ข There are exceptions
  • 34. 34 Semantic Networks โ€ข Graphical aids for visualizing the knowledge base โ€ข Efficient algorithms for inferring properties based on category membership โ€ข Often, correspond to a subset of first- order logic โ€ข Many variants โ€ข All distinguish among individual objects, categories of objects and relations among objects
  • 35. 35 Mammals Persons Female Male Mary John SubsetOf SubsetOf SubsetOf MemberOf MemberOf SisterOf Legs 2 Legs 1 HasMother
  • 36. 36 Example โ€ข See previous slide โ€ข Specify what edges and nodes mean โ€ข In previous slide, indivs and categories look the same โ€ข memberOf(indiv,category) โ€ข sisterOf(indiv,indiv) โ€ข subsetOf(category,category) โ€ข hasMother(indiv,indiv)
  • 37. 37 Semantic Networks โ€ข How about hasMother(persons,femalePersons)? โ€ข Nope: hasMother is a relation between individuals โ€ข cat1-- label ๏ƒ  cat2 means: โ€ข all X X in cat1 ๏ƒ  [all Y label(X,Y) ๏ƒ  Y in cat2] (So, this does not say that each person has a mother)
  • 38. 38 Semantic Networks โ€ข cat โ€“ label ๏ƒ  value โ€ข All X X in cat ๏ƒ  label(X,value)
  • 39. 39 Inheritance โ€ข Inheritance is efficient and convenient โ€ข Trace paths from individuals to categories, inheriting properties as you go โ€ข In Example slide, how many legs does John have? Most specific (nearest) information wins
  • 40. 40 Semantic Networks โ€ข In a semantic network, only binary relations are possible โ€ข A richer representation is possible by reifying propositions and events โ€ข This forces creation of a rich ontology of reified concepts; many current ideas originated in semantic network systems