Slides MC5
Slides MC5
lógica
Paulo Santos
7 Conclusion
7 Conclusion
S. Paulo, SP
FEI Campus
FEI is the largest engineering school in Brazil, with over 8,000
students
it is already a regional centre of scientific development for the
automotive industry and started investing intensively to become
also a regional centre for intelligent robotics.
Paulo Santos ( FEI - São Paulo ) September 10, 2010 6 / 136
Where is FEI?
S. Paulo, SP
FEI Campus
FEI is the largest engineering school in Brazil, with over 8,000
students
it is already a regional centre of scientific development for the
automotive industry and started investing intensively to become
also a regional centre for intelligent robotics.
Paulo Santos ( FEI - São Paulo ) September 10, 2010 6 / 136
Where is FEI?
S. Paulo, SP
FEI Campus
FEI is the largest engineering school in Brazil, with over 8,000
students
it is already a regional centre of scientific development for the
automotive industry and started investing intensively to become
also a regional centre for intelligent robotics.
Paulo Santos ( FEI - São Paulo ) September 10, 2010 6 / 136
Where is FEI?
S. Paulo, SP
FEI Campus
FEI is the largest engineering school in Brazil, with over 8,000
students
it is already a regional centre of scientific development for the
automotive industry and started investing intensively to become
also a regional centre for intelligent robotics.
Paulo Santos ( FEI - São Paulo ) September 10, 2010 6 / 136
Outline I
1 Preface
Where/what is FEI?
2 PART I: The Big Picture
Introduction and motivation
Automated Reasoning 101
Qualitative Spatial Reasoning at a glance
3 Part II: Qualitative Spatial Reasoning
Region Connection Calculus
Lines of Sight Calculus
Region Occlusion Calculus
Cardinal Direction Calculus
Double Cross Calculus
Other calculi
Tractability and computability
4 Coffee Break
20 min ?
Paulo Santos ( FEI - São Paulo ) September 10, 2010 7 / 136
Outline II
5 Part III: Cognitive Vision
Foundations
Cognitive Vision at a glance
Early systems
Modern systems (from 2000)
7 Conclusion
7 Conclusion
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
has a semantics
large variety of distinct logics for different kinds of reasoning
variety of inference mechanisms
provides a tool kit from which it is possible to characterise the
calculi
developing relational calculi is well understood
∀x m(x) → mo(x).
m(Socrates).
Ergo: mo(Socrates).
A→B, A
MODUS PONENS: B
∀x m(x) → mo(x).
m(Socrates).
Ergo: mo(Socrates).
A→B, A
MODUS PONENS: B
m(X ) :− mo(X ).
m(s).
?- m(X )
?- X = s
m(X ) :− mo(X ).
m(s).
?- m(X )
?- X = s
m(X ) :− mo(X ).
m(s).
?- m(X )
?- X = s
m(X ) :− mo(X ).
m(s).
?- m(X )
?- X = s
7 Conclusion
“The basic stories we know best are small stories of events in space:
The wind blows clouds through the sky, a child throws a rock, a mother
pours milk into a glass, a whale swims through the water. These
stories constitute our world.” (M.Turner, The Literary Mind)
7 Conclusion
x TPP
y y
x
x x x NTPP
x y EQ
y y
y NTPPi
y y x
DC EC PO x TPPi
DC EC PO TPP ...
DC no info. DR,PO, DR,PO, DR,PO,
PP PP PP ...
EC DR,PO, DR,PO, DR,PO, EC,PO, ...
PPi TPP PP PP
PO DR,PO, DR,PO, no info. PO,PP ...
PPi PPi
TPP DC DR DR,PO, PP ...
PP
NTPP DC DC DR,PO, NTPP ...
PP
TPPi DR,PO, EC,PO, PO,PPi PO,TPP ...
PPi PPi
NTPPi DR,PO, PO,PPi PO,PPi PO,PPi ...
PPi
EQ DC EC PO TPP ...
7 Conclusion
B A C
B A JC
B A B A A B A B
A B B A
H EH F HI EHI FI
14 relations:
I C(x, y ), is clear from;
I JC(x, y ), is just clear from;
I PH(x, y ), partially hides;
I PHI(x, y ), is partially hidden by;
I JH(x, y ), just hides;
I JHI(x, y ), is just hidden;
I H(x, y ), hides;
I HI(x, y ), is hidden by;
I EH(x, y ), exactly hides;
I EHI(x, y ), is exactly hidden;
I F (x, y ), is in front of;
I FI(x, y ), has y in front of it;
I JF (x, y ), is just in front of;
I JFI(x, y ), has y just in front of it;
7 Conclusion
∀x∀ν¬TotallyOccludes(x, x, ν)
∀x∀y ∀z∀νTotallyOccludes(x, y , ν) ∧ TotallyOccludes(y , z, ν)) →
TotallyOccludes(x, z, ν)
NonOccludesEC MutuallyOccludesTPP
PartiallyOccludesPO MutuallyOccludesEQ
MutuallyOccludesPO PartiallyOccludesNTPP
PartiallyOccludesTPP TotallyOccludesEQ
PartiallyOccludesPO !1 MutuallyOccludesTPP !1
TotallyOccludesTPPI PartiallyOccludesTPP !1
!1
TotallyOccludesNTPPI PartiallyOccludesNTPP
!1
TotallyOccludesTPPI !1 MutuallyOccludesNTPP
TotallyOccludesEQ !1
TotallyOccludesNTPPI !1
7 Conclusion
7 Conclusion
7 Conclusion
default: not much has been done wrt default theories about
space; Shanahan formalises a pre-condition about spatial
occupancy of objects assuming that space is empty by default.
spatial change: base to the development of spatial change is the
work of Galton, where both time instants and intervals are
included. Two predicates are used to this end: HoldsT represents
a spatial state that is true at a time instant, whereas HoldsI
represents true stated during a time interval. From this, 8 distinct
kinds of transitions between pairs of states are defined in order to
represent the relation of two states in time.
Qualitative Trajectory Calculi, Line Segments, Dipole Calculi, and
many others!
7 Conclusion
7 Conclusion
7 Conclusion
7 Conclusion
7 Conclusion
7 Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 100 / 136
Leeds Traffic Interaction
Paulo Santos ( FEI - São Paulo ) September 10, 2010 101 / 136
Protocol learning
Paulo Santos ( FEI - São Paulo ) September 10, 2010 102 / 136
Protocol Learning
Paulo Santos ( FEI - São Paulo ) September 10, 2010 103 / 136
Protocol Learning
Paulo Santos ( FEI - São Paulo ) September 10, 2010 104 / 136
Protocol Learning
Paulo Santos ( FEI - São Paulo ) September 10, 2010 105 / 136
Outline I
1 Preface
Where/what is FEI?
2 PART I: The Big Picture
Introduction and motivation
Automated Reasoning 101
Qualitative Spatial Reasoning at a glance
3 Part II: Qualitative Spatial Reasoning
Region Connection Calculus
Lines of Sight Calculus
Region Occlusion Calculus
Cardinal Direction Calculus
Double Cross Calculus
Other calculi
Tractability and computability
4 Coffee Break
20 min ?
Paulo Santos ( FEI - São Paulo ) September 10, 2010 106 / 136
Outline II
5 Part III: Cognitive Vision
Foundations
Cognitive Vision at a glance
Early systems
Modern systems (from 2000)
7 Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 107 / 136
Example of QSR from Vision: Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 108 / 136
Example of QSR from Vision: Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 108 / 136
Example of QSR from Vision: Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 108 / 136
Example of QSR from Vision: Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 108 / 136
Simplified environment
Paulo Santos ( FEI - São Paulo ) September 10, 2010 109 / 136
Spatial Reasoning about Robot Sensor Data
Attributes:
I Distance, disparity, size;
I Changes in the sensor data;
Representation:
I Depth profiles and time points;
I Displacement between regions;
I Mapping function between images and objects
Paulo Santos ( FEI - São Paulo ) September 10, 2010 110 / 136
Assimilating changes
< Dynamic spatial rel > ← < desc. sensor transition >
< Dynamicspatialrel. > ← < obj − obs relation >
Paulo Santos ( FEI - São Paulo ) September 10, 2010 111 / 136
Depth Profiles
Paulo Santos ( FEI - São Paulo ) September 10, 2010 112 / 136
The model
Extract one horizontal depth profile of each scene from the visual
data;
Objects in the scenes are represented as peaks;
Axiomatise relations on the depth and size of these profiles as
well as displacements;
Paulo Santos ( FEI - São Paulo ) September 10, 2010 113 / 136
Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 114 / 136
Depth Profile Calculus
Paulo Santos ( FEI - São Paulo ) September 10, 2010 115 / 136
DPC example
Paulo Santos ( FEI - São Paulo ) September 10, 2010 116 / 136
Outline I
1 Preface
Where/what is FEI?
2 PART I: The Big Picture
Introduction and motivation
Automated Reasoning 101
Qualitative Spatial Reasoning at a glance
3 Part II: Qualitative Spatial Reasoning
Region Connection Calculus
Lines of Sight Calculus
Region Occlusion Calculus
Cardinal Direction Calculus
Double Cross Calculus
Other calculi
Tractability and computability
4 Coffee Break
20 min ?
Paulo Santos ( FEI - São Paulo ) September 10, 2010 117 / 136
Outline II
5 Part III: Cognitive Vision
Foundations
Cognitive Vision at a glance
Early systems
Modern systems (from 2000)
7 Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 118 / 136
Reasoning about Shadows in Robotics
Paulo Santos ( FEI - São Paulo ) September 10, 2010 119 / 136
Reasoning about Shadows in Robotics
Paulo Santos ( FEI - São Paulo ) September 10, 2010 119 / 136
Reasoning about Shadows in Robotics
Paulo Santos ( FEI - São Paulo ) September 10, 2010 119 / 136
Illusory Motion from Shadows
Paulo Santos ( FEI - São Paulo ) September 10, 2010 120 / 136
Perception of shadows
“no luminous body ever sees the shadows that it generates” [da
Vinci, Notebooks of Leonardo Da Vinci. Project Gutenberg (1888)]
from the light source viewpoint shadows are occluded by their
casters
We model observer-caster-shadow within qualitative spatial
reasoning: ROC + an axiom about shadow :
Paulo Santos ( FEI - São Paulo ) September 10, 2010 121 / 136
Perception of shadows
“no luminous body ever sees the shadows that it generates” [da
Vinci, Notebooks of Leonardo Da Vinci. Project Gutenberg (1888)]
from the light source viewpoint shadows are occluded by their
casters
We model observer-caster-shadow within qualitative spatial
reasoning: ROC + an axiom about shadow :
Paulo Santos ( FEI - São Paulo ) September 10, 2010 121 / 136
Perception of shadows
“no luminous body ever sees the shadows that it generates” [da
Vinci, Notebooks of Leonardo Da Vinci. Project Gutenberg (1888)]
from the light source viewpoint shadows are occluded by their
casters
We model observer-caster-shadow within qualitative spatial
reasoning: ROC + an axiom about shadow :
Paulo Santos ( FEI - São Paulo ) September 10, 2010 121 / 136
Perception of shadows
“no luminous body ever sees the shadows that it generates” [da
Vinci, Notebooks of Leonardo Da Vinci. Project Gutenberg (1888)]
from the light source viewpoint shadows are occluded by their
casters
We model observer-caster-shadow within qualitative spatial
reasoning: ROC + an axiom about shadow :
Paulo Santos ( FEI - São Paulo ) September 10, 2010 121 / 136
Qualitative regions for self-localisation
L
*
4 4
3 3
2 2
o
S
1 1
Paulo Santos ( FEI - São Paulo ) September 10, 2010 122 / 136
In practice
Paulo Santos ( FEI - São Paulo ) September 10, 2010 123 / 136
In practice
L
*
4 4
3 3
2 2
o
S
1 1
located(Region 1, ν, o, s) ← Is_a_Shadow(s, o) ∧
NonOccludesDC(o, s, v ) ∧ v 6= o;
located(Region 2, ν, o, s) ← Is_a_Shadow(s, o) ∧
NonOccludesEC(o, s, v ) ∧ v 6= o;
located(Region 3, ν, o, s) ← Is_a_Shadow(s, o) ∧
PartiallyOccludesPO(o, s, v ) ∧ v 6= o;
located(Region 4, ν, o, s) ← Is_a_Shadow(s, o) ∧
TotallyOccludesTPPI(o, s, v ) ∧ v 6= o;
Paulo Santos ( FEI - São Paulo ) September 10, 2010 124 / 136
Outline I
1 Preface
Where/what is FEI?
2 PART I: The Big Picture
Introduction and motivation
Automated Reasoning 101
Qualitative Spatial Reasoning at a glance
3 Part II: Qualitative Spatial Reasoning
Region Connection Calculus
Lines of Sight Calculus
Region Occlusion Calculus
Cardinal Direction Calculus
Double Cross Calculus
Other calculi
Tractability and computability
4 Coffee Break
20 min ?
Paulo Santos ( FEI - São Paulo ) September 10, 2010 125 / 136
Outline II
5 Part III: Cognitive Vision
Foundations
Cognitive Vision at a glance
Early systems
Modern systems (from 2000)
7 Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 126 / 136
Probabilistic Logic Encoding of Spatial Domains
Paulo Santos ( FEI - São Paulo ) September 10, 2010 127 / 136
Traffic Scenario
Paulo Santos ( FEI - São Paulo ) September 10, 2010 128 / 136
Sensor model
P(OnTwoWayRoad|SensedTwoWayRoad) = 0.99
P(OnOneWayRoad|SensedOneWayRoad) = 0.99
P(DashedDivider |SensedDashedDivider ) = 0.93
P(SolidDivider |SensedDashedDivider ) = 0.07
P(DashedDivider |SensedSolidDivider ) = 0.20
P(SolidDivider |SensedSolidDivider ) = 0.80
Paulo Santos ( FEI - São Paulo ) September 10, 2010 129 / 136
Taxonomy of concepts
Paulo Santos ( FEI - São Paulo ) September 10, 2010 130 / 136
Hard Constraints
Paulo Santos ( FEI - São Paulo ) September 10, 2010 131 / 136
Generate a Bayesian Net out of it
Paulo Santos ( FEI - São Paulo ) September 10, 2010 132 / 136
Answer queries such as
On which lane are we? Argmaxli P(v : Onli) : li is the lane with
maximum probability of being the vehicle.
Which driving directions does each lane permit?
∀i : P(li : GoingDown): for each lane li, the probability of being a
GoingUp lane
Paulo Santos ( FEI - São Paulo ) September 10, 2010 133 / 136
Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 134 / 136
Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 134 / 136
Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 134 / 136
Conclusion
Paulo Santos ( FEI - São Paulo ) September 10, 2010 134 / 136
Guide lines
Paulo Santos ( FEI - São Paulo ) September 10, 2010 135 / 136
Thanks!
Paulo Santos ( FEI - São Paulo ) September 10, 2010 136 / 136