<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Spatial Reasoning Framework for Commonsense Reasoning in Visually Intelligent Agents</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Agnese Chiatti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gianluca Bardaro</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Enrico Motta</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Enrico Daga</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Knowledge Media Institute, The Open University</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Service robots are expected to reliably make sense of complex, fast-changing environments. From a cognitive standpoint, they need the appropriate reasoning capabilities and background knowledge required to exhibit human-like Visual Intelligence. In particular, our prior work has shown that i) commonsense reasoning is a necessary capability for Visual Intelligence and also that ii) commonsense reasoning crucially requires the ability to reason about spatial relations between objects in the world. In this paper, we first recap our approach to Visual Intelligence in robotics, which is based on a hybrid architecture integrating a deep learning component with commonsense reasoning. We then present a framework for spatial reasoning, which has been designed to support the commonsense reasoning component in our architecture. Differently from prior approaches to qualitative spatial reasoning in robotics, the proposed framework is robust to variations in the robot's viewpoint and object orientation. In the paper, we also show how this formally-defined framework can be operationalised in an off-the-shelf spatial database.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;spatial reasoning</kwd>
        <kwd>commonsense reasoning</kwd>
        <kwd>cognitive robotics</kwd>
        <kwd>visual intelligence</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In all cases where it is inconvenient or even dangerous for us to intervene, there is an incentive to
delegate tasks to service robots: e.g., under the extreme conditions imposed by space explorations
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], in hazardous manufacturing environments [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], or whenever social distance needs to be
maintained [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Another compelling use case for service robots is autonomously monitoring
ofcfie environments to prevent potential threats to the Health and Safety (H&amp;S) of employees.
For instance, a power cable dangling in a corridor constitutes a trip hazard. Similarly, a sweater
left to dry on top of a heater may cause a fire. To tackle these tasks, at the Knowledge Media
Institute (KMi), we are developing HanS [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the Health and Safety robot inspector.
      </p>
      <p>
        Before delegating complex tasks to robots, however, we need to ensure that they can reliably
make sense of the stimuli coming from their sensors. Autonomous sensemaking remains an open
challenge, because it requires not only to reconcile the high-volume and diverse data collected
from real-world settings [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], but also to actually understand these data, going beyond mere pattern
recognition [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ].
      </p>
      <p>
        From a vision perspective, the problem of robot sensemaking becomes one of enhancing the
Visual Intelligence of service robots, i.e., their ability to make sense of the environment through
their vision system and epistemic competences [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Naturally, several epistemic competences
are required to build Visually Intelligent Agents (VIA). In HanS’ case, the first prerequisite to
detect the fire threat posed by a sweater lying on top of a heater is to recognise the sweater and
the heater in question. Moreover, HanS also needs spatial reasoning capabilities, to infer that the
sweater is touching the heater. It also needs to know that sweaters are made of cloth and that a
piece of cloth clogging an electric radiator can catch fire. The list goes on.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], we identified a framework of epistemic requirements, i.e., knowledge properties and
reasoning capabilities, which are needed to develop Visually Intelligent Agents. We gauged these
requirements from cognitive theories that characterise the excellence of the human vision system
[
        <xref ref-type="bibr" rid="ref6 ref9">9, 6</xref>
        ]. These include the capability to track objects over time, to consider the spatial configuration
and functional parts that compose an object, as well as the knowledge of the physical and
material properties of objects, to name just a few [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Cognitively-inspired requirements were also
grounded in the types of classification errors that emerge when Deep Learning (DL) is applied
to real-world robotic scenarios. This error analysis highlighted that misclassifications could in
principle have been avoided, if the robot was capable of considering: (i) the canonical size of
objects, e.g., that mugs are generally smaller than bins, as well as (ii) the typical Qualitative
Spatial Relations (QSR) between objects. For instance, a fire extinguisher may be mistaken
for a bottle due to its shape. However, the proximity of a fire extinguisher sign is a strong
indication that the observed object is in fact a fire extinguisher. This element of typicality relates
to the broader objective of developing AI systems which can reason about what is plausible, i.e.,
which exhibit commonsense [
        <xref ref-type="bibr" rid="ref10 ref11 ref12 ref13 ref7">7, 10, 11, 12, 13</xref>
        ]. Our most recent results [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] demonstrate that an
architecture which leverages the awareness of the typical sizes and spatial relations of objects can
significantly augment object recognition methods based on DL. In this context, the capability
to reason about the spatial configuration of objects is one of the requirements that contributes
to autonomous sensemaking. Thus, in this paper, we propose a framework for spatial reasoning
to support visual commonsense reasoning. The proposed framework is generically conceived
to support mobile ground robotic applications, i.e., robots that perceive the environment whilst
navigating it and that operate in contact with the ground.
      </p>
      <p>
        Differently from the previous frameworks that have been proposed to link the geometrical and
perceptual data collected by a robot to formally-defined spatial concepts [
        <xref ref-type="bibr" rid="ref15 ref16">15, 16</xref>
        ], the proposed
framework can account for variations in the robot’s viewpoint and in the relative orientation of
objects. Importantly, the formally-defined QSR in this framework are also mapped to the type
of linguistic predicates used to describe commonsense spatial relations in English, which are
discussed within seminal theories of spatial cognition [
        <xref ref-type="bibr" rid="ref17 ref18">17, 18</xref>
        ]. Operationally, we realised the
proposed framework in a concrete architecture that capitalises on state-of-the-art Geographic
Information Systems (GIS). Ultimately, we demonstrate how the implemented framework can be
successfully applied to extract qualitative spatial relations in HanS’ use-case scenario.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related work</title>
      <p>
        Broadly speaking, spatial relations can be represented qualitatively - e.g., A contains B - or
quantitatively - e.g., the angle between A and B is  [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. Following [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], Qualitative Spatial
Relations (QSR) can be further characterised as (i) metric, i.e., based on the metric distance
between objects (ii) topological, i.e., describing the neighbourhood of objects, or (iii) directional,
i.e., relative to the axis directions in a reference coordinate system. The interested reader is
referred to [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] for a foundational review of qualitative spatial representations. Compared to
quantitative representations, qualitative representations are more similar to the kind of spatial
predicates involved in natural language discourse. As a result, qualitative spatial representations
are easier to interpret and aid Human-Robot Interaction [
        <xref ref-type="bibr" rid="ref21 ref22">21, 22, 23</xref>
        ]. Moreover, they are more
similar to the kinds of spatial predicates available within linguistic Knowledge Bases (KB) [24],
as well as within benchmark datasets for visual reasoning tasks, such as Visual Genome [25] and
SpatialSense [26]. Thus, relying on qualitative representations has the potential to facilitate the
repurposing of these resources in robotic contexts, especially given the paucity of comprehensive
KBs for Visually Intelligent Agents [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        The problem of representing spatial relations has been actively researched for decades,
producing many theoretical frameworks for spatial reasoning [
        <xref ref-type="bibr" rid="ref20">27, 20, 28, 29</xref>
        ]. In Robotics, extensive
efforts have been devoted to linking the robot sensor data and symbolic knowledge to the
geometric maps modelling its environment [30, 31, 32]. These efforts have produced intermediate
representational models also known as semantic maps, i.e., maps that contain, “in addition
to spatial information about the environment, assignments of mapped features to entities of
known classes” [30]. To combine the best of both worlds, futher approaches have been proposed
[
        <xref ref-type="bibr" rid="ref15">15, 33, 34</xref>
        ] where semantic maps are also interpreted with respect to formal spatial theories.
      </p>
      <p>
        In general, spatial relations are expressed between object pairs, where one of the two objects
is considered as a reference, or landmark: e.g., bike near house. Young et al. [34] have used
Ring Calculus to represent the closeness of objects. The authors of [33] have relied on ternary
point calculus [35] to model directional relations with respect to both the robot’s location and the
location of the reference object. Thus, they reduced 3D object regions to point-like objects on
the 2D plane. Moreover, they assumed that the robot’s location does not change over time, and
is always defined with respect to a tabletop. Differently from [ 33], Deeken and colleagues [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]
represented directional relations by comparing 3D object regions through the halfspace-based
model of [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. However, this model is based on the assumption that the robot’s viewpoint is
always aligned both with the global coordinate system of the map and with the inherent
orientation of the observed objects. Thus, it is not suitable to model the case of mobile ground
robots. In real-world scenarios, as the robot moves, its viewpoint changes over time and the
objects observed will be oriented differently. To address this issue, we propose to combine the
robot’s viewpoint and the orientation of the reference object within a contextualised frame of
reference. This contextualised frame of reference allows us to define a contextualised 3D region,
or Contextualised Bounding Box, which represents the location of the object with respect to both
the robot’s viewpoint and the frame of reference of a landmark. Crucially, the contextualised
frame of reference and Bounding Box can be defined for any combination of robot and landmark
location, thus ensuring that this framework can scale to many real-world robotic scenarios. Hence,
consistently with the design methodology recommended by related studies of spatial ontology
engineering [36, 37], we handle the ambiguity of language by situating spatial predicates with
respect to a geometric frame of reference. However, differently from upper-level ontologies of
space [27, 28, 29], which attempt to characterise how humans conceptualize spatial concepts
through language, the proposed representation is tailored to the spatial reasoning components
that mobile service robots need for visual sensemaking.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Proposed Framework</title>
      <p>
        To define a spatial reasoning framework which satisfies the requirements of robot sensemaking,
we extend the formal theory of spatial reasoning presented in [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. Moreover, we map the obtained
spatial relations to the commonsense predicates used to describe spatial relations between objects
in English. These predicates are gathered from cognitive theories [
        <xref ref-type="bibr" rid="ref17 ref18">17, 18</xref>
        ]. By making an explicit
link between formal AI theories and informal linguistic representations, we obtain a framework
for spatial reasoning that supports commonsense reasoning in robotic scenarios.
Notation. In what follows, we model definitions as First Order Logic (FOL) statements. We
represent logic variables through lowercase letters and constants through uppercase letters. We
also use lowercase initials to denote functions, while uppercase initials symbolise predicates. For
instance, sReg is a function, whereas Above is a predicate. Unless otherwise stated, free variables
are universally quantified.
      </p>
      <p>
        Spatial primitives. Our domain of discourse D is that of spatial objects, i.e., physical objects,
“which have spatial extensions” [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. From this perspective, a spatial object is represented in
terms of the associated spatial region. In particular, we represent spatial regions as sets of spatial
points, . Let  be the set of all spatial points, then, for each spatial object  P D, we assume the
existence of a function  which, given , returns the subset of  which includes all the points
in the spatial region of .
      </p>
      <sec id="sec-3-1">
        <title>SpatialObjpq ñ sRegpq Ď</title>
      </sec>
      <sec id="sec-3-2">
        <title>SpatialObjpq ñ sRegpq ‰ H</title>
        <p>
          In particular, our focus is not on arbitrary collections of spatial points, but rather on one-piece
regions [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ], i.e., on sets of internally connected points:
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>SpatialObjpq ñ ProperSRpsRegpqq</title>
        <p>(3)
To provide a formal definition of the concept of proper spatial region, we need first to establish a
spatial frame of reference.</p>
        <p>Spatial frame of reference. A spatial object is characterised not only with respect to a spatial
region but also in terms of a reference coordinate system, also known as frame of reference. A
frame of reference consists of an origin point, , and of a set of directed axes intersecting at
the origin. In particular, modelling the 3D space requires three reference axes, , , . Once
we have defined a reference frame, we can interpret spatial points as geometrical points, i.e., as
coordinate triples in R3. Let  be the set of all geometrical points in the considered space:
 “ t| “ p, , q P R3u
The identified frame of reference also has an associated granularity, i.e., an infinitesimally small
constant  ą 0 in R, which defines the minimum distance for two geometrical points to be
considered as distinct entities. Two geometrical points are then said to be adjacent iff their
geometrical distance is equal to . To compute the distance between two geometrical points,
they have to be in the same frame of reference. Let p, 1q be a function which returns a real
number indicating the geometric distance between points  and 1. Then:</p>
        <p>Adjp, 1q ô p, 1q “ 
(1)
(2)
(4)
(5)
(6)
(7)
(8)
The definition of proper spatial region then follows from the notion of adjacency:
ProperSRpq ô @r P  ñ Connp, qs</p>
        <p>Connp, q ô @1r1 P  ^ 1 ‰ s ñ ConnPp, 1q</p>
        <p>
          ConnPp1,2q ô Adjp1, 2q _ D3rAdjp1, 3q ^ ConnPp3, 2qs
In our model, we assume that the global spatial region,  , is a fully-connected set of points.
Moreover, we assume that spatial regions can be approximated through 3D boxes. This
simplifying assumption is consistent with standard practice in the literature [
          <xref ref-type="bibr" rid="ref15 ref16">15, 16</xref>
          ]. Bounding boxes
can have an arbitrary orientation around the Z axis aligned with gravity, but their base is always
parallel to the XY plane, as exemplified in Figure 1. In particular, we consider the minimum
bounding box which best approximates the real volume occupied by an object and which is
aligned with its natural orientation [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Let  be a set of geometrical points which contains the
spatial region of :
        </p>
        <p>
          BoundBoxp, q ô sRegpq Ď  ^  Ď 
MinBBoxp, q ô BoundBoxp, q ^ ␣D1rBoundBoxp1, q ^ 1 Ă s
(9)
(10)
In this scenario, the environment navigated by a robot can also be modelled as a spatial region
including an arbitrary number of objects, i.e., as a global spatial region. Consequently, the outer
region of a spatial region, , is:
outRegpq “ t| P  ^  R u
(11)
The frame of reference of the global region, , is extrinsic, i.e., based on a reference point
which is external to both an object and an observer.  remains fixed as the robot navigates the
environment. Conversely, the robot’s frame of reference, , changes as the robot moves. Thus,
it is deitic, relative to the observer’s position. In [
          <xref ref-type="bibr" rid="ref15 ref16">16, 15</xref>
          ], all the spatial relations between objects
are defined according to the same pre-defined frame of reference, whether it is an extrinsic, deitic
or intrinsic one, i.e., inherent to a specific object. Unlike the latter spatial theories, linguistic
spatial predicates implicitly refer both to (i) the location of the reference object, and to (ii) the
observer’s point of view [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. Similarly, a robot would conclude that “A is on the left of B” based
not only on the location of objects A and B within , but also on . From a different standpoint,
A might appear on the right of B, or in front of it. To model such cases, we introduce the notion
of robot’s viewpoint, 1 . Let  be the centroid of the spatial region representing object . Then,
1 is obtained by rotating  along , by an angle  . Specifically,  is the angle between 
and the imaginary line connecting the origin of  with .
        </p>
        <p>Let  of origin  and axes , ,  be the intrinsic frame of reference of , i.e., the
frame of reference which is aligned with the orientation of . Then, the contextualised frame
of reference of the object, , is the frame of reference of origin  whose axes have the same
orientation of the axes defining the robot’s viewpoint, 1 (Figure 1). Based on , we can
construct a Contextualised Bounding Box (CBB), which is obtained by aligning the minimum
bounding box with . Let rotZp,  q be a function which returns the spatial region, , obtained
by rotating an input bounding box along  by an angle  . Given a frame of reference , then
yawp, q returns the angle between the intrinsic frame of reference of  and , along .
Then, given  {2:</p>
        <p>IsCBBprotZp,  q, q ô MinBBoxp, q ^ D rmodpyawprotZp,  q, q,  {2q “ 0^
␣D 1rmodpyawprotZp,  1q, q,  {2q “ 0 ^  1 ă  ss (12)
Namely, to construct CBB, we select the minimum angle  so that the value returned by the yaw
function is divisible by  {2, i.e., the remainder of their division, mod, is zero. There are always
four possible alignments of a bounding box, , for which mod is zero. Thus, by selecting the
minimum angle among these four, we apply the transformation which is least disruptive of the
natural orientation of the object.</p>
        <p>Metric spatial relations. Given two spatial objects 1, 2 and two geometrical points 1, 2
where 1 P 1 and 2 P 2, we define the distance between two geometrical points as the
their Euclidean distance. Then, the distance between two spatial objects is defined as the global
minimum of the pointwise distance function, :
rdistancep1, 2q “ p1, 2qs ô 1 P 1 ^ 2 P 2^</p>
        <p>@3, 4r3 P 1 ^ 4 P 2s ñ p3, 4q ą p1, 2q (13)
A distance threshold,  , can be then introduced, to represent closeness between objects. That is,
for a  greater than or equal to the frame granularity  defined earlier:
In particular, if the minimum distance equals , then the two objects touch:</p>
        <p>
          IsClosep1, 2q ô distancep1, 2q ď 
Touchesp1, 2q ô distancep1, 2q “ 
(14)
(15)
Topological spatial relations Topological relations are spatial relations which are invariant
under a topological isomorphism, i.e., a function  :  Ñ  which preserves neighbourhood
relationships while mapping  to  . Although a number of topological relations have been
proposed [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ], here we focus on the intersection and containment relations. As shown in the
remainder of this Section, this minimal subset of relations, combined with metric and directional
relations, is sufcfiient to cover all the spatial relations required in the scenario of interest. First,
based on our prior definitions, two spatial regions, , 1 intersect iff they have at least one
geometrical point in common:
        </p>
        <p>Intp, 1q ô Dr P  ^  P 1s
We also define the spatial region representing the intersection between two objects (i.e., the
intersection between the associated spatial regions) as follows:</p>
        <p>interp1, 2q “ t| P sRegp1q ^  P sRegp2qu
Then, a special case of the intersection relation is the case where one spatial region completely
contains the other:
(16)
(17)
(18)</p>
        <p>ComplContp, 1q ô @r P 1 ñ  P s
Semantically,  contains 1 completely iff all the geometrical points in the spatial region of 1 are
also members of the spatial region of .</p>
        <p>
          Directional spatial relations. Differently from metric and topological relations, directional
spatial relations are dependent on the considered frame of reference. The spatial reasoning
framework proposed by Deeken et al. [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ] for robotic applications, which is based on the work
in [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ], models directional relations by partitioning the outer spatial region of an object into six
halfspaces, i.e., one halfspace for each semi-axis of , , . In particular, as in [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ], halfspaces
can be modelled as 3D extrusions, obtained by multiplying the extent of the object spatial region
by a scaling factor  P R.
        </p>
        <p>The coordinates of all geometrical points in the minimum bounding box are bound to a minimum
and maximum value, e.g.,  and . Let ` and ´ be the positive and negative
semiaxes of  in . Then, we define a function, hs, which returns the halfspace of an input bounding
box, given semi-axis, `, and frame of reference, :</p>
        <p>
          MinBBoxp1, 1q ñ hsp1, `, q “
t P outRegp1q| “ p, , q w.r.t ,
 ď  ď  `  ¨ ,
 ď  ď ,
 ď  ď u
(19)
Additional halfspaces can be similarly derived for the other semi-axes in .Once these halfspaces
have been defined, one can test whether a second object 2 lies within any of the halfspaces of
1. In particular, in the following, we consider “relaxed” (_r) spatial operators [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. In other
words, we infer directional relations by testing whether 2 intersects the halfspaces of 1. We use
capital initials to represent predicates symbolising the East, West, North, South, Above and Below
relations. Given a  which coincides with , the relaxed definitions of East(2,1) is:
E_rp2, 1, q ô MinBBoxp1, 1q ^ Intphsp1, `, q, sRegp2qq
(20)
The definitions of the remaining directional relations (i.e., W_r, N_r, S_r, A_r, B_r) are
isomorphic to axiom 20 and are omitted for brevity. The model proposed in [
          <xref ref-type="bibr" rid="ref15 ref16">15, 16</xref>
          ] is based on the
assumption that  is always aligned with . However, this assumption does not hold in the
case of mobile robot sensemaking. Indeed, the frame of reference of the robot,  is mobile,
i.e., its origin and orientation change over time. Moreover, the natural orientation of objects may
not be aligned with . Thus, to produce a representational model which suits the case of robot
sensemaking, we need to map directional relations to the contextualised frame of reference, ,
which we defined earlier. Specifically:
        </p>
        <p>Abovep2, 1, q ô A_rp2, 1, q
Belowp2, 1, q ô B_rp2, 1, q
(21)
(22)</p>
        <p>Nonetheless, to model relations such as RightOf or LeftOf, we need to account for the robot’s
viewpoint. Thus, we apply the halfspace-based model to the Contextualised Bounding Box we
have defined earlier (see Figure 2). By definition, CBB is aligned with the contextualised frame
of reference, , so the front halfspace of CBB, for instance, can be defined w.r.t. a given  as
follows:</p>
        <p>IsCBBp1, 1q ñ hsp1, ´, q “
t P outRegp1q| “ p, , q w.r.t.,
1 ´ 1 ¨  ď  ď 1,
1 ď  ď 1,
1 ď  ď 1u
These spatial constructs allow us to define the remaining directional relations:</p>
        <p>RightOfp2, 1, q ô Intpsr2, hsp1, ´, qq
LeftOfp2, 1, q ô Intpsr2, hsp1, `, qq
(23)
InFrontOfp2, 1, q ô Intpsr2, hsp1, ´, qq
Behindp2, 1, q ô Intpsr2, hsp1, `, qq
For brevity, in axioms 24-27 we have omitted the predicate IsCBBp1, 1q, which is always
valid. Thanks to these newly-defined spatial concepts, we can now specify how the latter QSR
align with linguistic spatial predicates. This mapping process is also known, in the qualitative
spatial reasoning literature, as qualification [38].</p>
        <p>
          Qualification. In English, objects are represented by nouns while the spatial relationships
between objects are mainly represented through prepositions - e.g., on, next to, behind [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
Spatial relations are also implied by using certain verbs (e.g., person wears shirt). However,
almost invariably, these verbs can be reduced to a simplified form, followed by a preposition
(e.g., person has shirt on). Hence, the canonical structure of a spatial sentence consists of three
elements: (i) a reference object and (ii) a figure object, both expressed as noun phrases, as well as
(iii) a spatial preposition. The reference object and the preposition, together, define the spatial
region occupied by the figure object. As pointed out in [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ], the object’s top and bottom are
defined as “the regions at the ends of whichever axis is vertical in the object’s normal orientation"
[
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. Thus, they are conceptually equivalent to the notion of top and bottom halfspaces we defined
for the minimum oriented bounding box. Moreover, the object front is defined as the region at the
end of the object’s horizontal axis which also faces the observer. Conversely, the object back is
located opposite to the observer along the same axis. Finally, the region at the end of any other
horizontal axis can be called a side. As such, the geometric relations defined at axioms 21-22, and
24-27 are directly qualified through the Above, Below, RightOf, LeftOf, InFrontOf and Behind
predicates. However, the LeftOf and RightOf relations can be further combined so that, given :
Besidep2, 1, q ô RightOfp2, 1, q _ LeftOfp2, 1, q
(28)
        </p>
        <p>
          Furthermore, an object is said to be “near" another object if it is located in a region “extending
up to some critical distance" [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. This notion corresponds exactly to our definition of predicate
IsClose (axiom 14).
        </p>
        <p>
          An interesting case is that of the “on" preposition. One of the senses of “on" is semantically
related to “above". However, while “above" typically implies absence of contact between the
two objects, “on" strongly favours a contact reading [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. Formally, we make this distinction by
defining:
        </p>
        <p>
          OnTopOfp2, 1, q ô Abovep2, 1, q ^ Touchesp2, 1q
(29)
Nonetheless, the “on" preposition can also be used to denote that the figure object is supported by
the reference object. For instance, we say that a “clock is on the wall" although the two objects
overlap horizontally. The phrase “clock on wall" also implies that the wall is adequately stable to
support the clock. Indeed, if two objects differ in terms of size and mobility, we tend to consider
the larger and more stable object as reference [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. To differentiate these additional uses of “on",
we define, for a given :
        </p>
        <p>LeansOnp2, 1, q ô Touchesp2, 1q ^ ␣Abovep2, 1, q^</p>
        <p>␣Belowp2, 1, q ^ D3rTouchesp2, 3q ^ Belowp3, 2, qs (30)</p>
        <p>Touchesp2, 1q ^ ␣Abovep2, 1, q ^ ␣D3Touchesp3, 2q ñ AffixedOn p2, 1, q (31)
Namely, whenever 2 is supported by a reference object 1 along the horizontal direction, it is
typically said to be “leaning against" 1: e.g., a ladder leaning against a wall. Furthermore, if the
reference object 1 provides the only support surface for 2, 2 is typically said to be AffixedOn
1: e.g., a ladder which is afxfied on the wall, above ground. Nonetheless, there may be cases
where an object, 2, is physically affixed to a surface, 1, even though 1 is not the only surface in
contact with 2: e.g., a ladder affixed at ground level. Hence, we used a single logic implication
in Statement 31.</p>
        <p>
          The ‘in” preposition is polysemous [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ]. First, “in” is generally used to imply that one object
is “inside” another, or, based on our prior topological definitions, that one object is completely
contained in the other (axiom 18). However, “in" is also used in cases where two objects only
partially compenetrate each other. For instance, we would say that “a cat is in the box" even when
the cat’s tail is peeping from the box. To define this notion of partial containment, we define a
function, adjSRCard, which, given two spatial regions, sr and sr’, returns the cardinality of the
set of points in sr’ that are adjacent to points in sr:
adjSRCardp, 1q “ |t1|1 P outRegpq ^ 1 P 1
^ Dr P  ^ Adjp, 1qsu| (32)
Hence, we can now define partial containment as follows:
        </p>
      </sec>
      <sec id="sec-3-4">
        <title>PartInp1, 2q ô sr “ interpsRegp1q, sRegp2qq^ adjSRCardp, sRegp1qq ă adjSRCardp, sRegp2qqs (33)</title>
        <p>Namely, 1 is partially contained in 2 iff the number of points in 1 that are adjacent to the
intersection region of 1 and 2 is strictly smaller than the number of points in 2 that are adjacent
to the same intersection region.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Coverage Study and Framework Implementation</title>
      <p>
        In this Section, we show how our framework for spatial reasoning can be implemented in practice.
Specifically, we show that, once a set of basic spatial concepts has been derived through GIS
operators, our framework provides a method to combine these basic spatial concepts to model the
commonsense spatial predicates of [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
      </p>
      <p>
        Figure 3a shows an example of RGB-Depth (RGB-D) data collected through HanS’ Orbbec
Astra Pro monocular camera. At each time frame, , the distance between the robot’s pose and
the surfaces reached by the laser in the depth sensor is measured. These data are also known as
depth images, and can be converted to collections of 3D geometrical points in the considered
frame of reference, i.e., to PointClouds. Consistently with [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], we store the object regions and
labels in the semantic map within a spatial database, implemented in PostgreSQL. By linking
these data to a spatial database, we can capitalise on the PostGIS engine and on the SFCGAL
backend, that provide a series of query operators for spatial reasoning in the 3D space. Objects
are stored in the PostGIS database using a minimum oriented polyhedron derived by applying the
Convex Hull algorithm on the segmented PointCloud.
      </p>
      <p>Furthermore, we complete the spatial database with 3D polygons representing the walls. To
minimise the errors propagated from extracting the wall surfaces automatically, we developed a</p>
      <p>Graphic User Interface for annotating the wall edges on the 2D floorplan of the target environment
(Figure 4a). For each added edge, a record is automatically added to the spatial database,
indicating a wall surface. Namely, edges are extruded on the vertical axis by a fixed height, ℎ,
e.g., 4 meters in the case of our lab.</p>
      <p>
        Once the spatial database has been populated, the contextualised bounding boxes and halfspaces
introduced in the previous section can be derived (Figure 3b), by capitalising on PostGIS operators.
Specifically, the mapping of spatial concepts to GIS operators is shown in Table 1a. Although
neither PostGIS nor SFCGAL support 3D containment tests, we circumvent this limitation by
comparing the volume of objects with the volume of their intersection region, through ST_Volume.
Namely, if the volume of the intersection region equals the volume of the smaller object, e.g., 1,
then ComplCont(, 1). To compute only QSR which are in figure-reference form, i.e., aligned
with natural language [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], we sort objects by volume in descending order. Then, we only
compute the QSR between one object and the objects which are larger than it. For instance,
in Figure 3c, the QSR fire extinguisher 1 AfxfiedOn wall is extracted while the redundant wall
Behind fire extinguisher1 is avoided. In this way, we also reduce the computational load of
extracting QSR for all pairwise object combinations.
      </p>
      <p>In sum, PostGIS ensures a full coverage of the basic building blocks of our spatial framework.
Then, the commonsense relations defined in Section 3 can be seen as a combination of these
building blocks (Table 1b). The next step is evaluating how accurately these commonsense QSR
can be extracted from robot-collected images.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Framework Evaluation</title>
      <p>For evaluation purposes, we sampled 15 frames from a broader collection of RGB and Depth
data that was previously collected during one of HanS’ scouting routines. The broader overall
dataset, which was collected through a Turtlebot mounting an Orbbec Astra Pro camera and
consists of 1414 object regions, is publicly available, in addition to the implemented code, at
https://github.com/kmi-robots/spatial-KB/tree/test. Images were collected from varying robot
viewpoints and in unconstrained conditions of clutter. As a result, the object regions in the
populated spatial database (Section 4) can partially occlude one another. From the overall set, we
selected 15 frames, along the robot’s route, that maximise the number of objects in the robot’s
ifeld of view (Figure 4b). We then completed the selected sample with dense annotations of
the spatial relations depicted in each scene. Consistently with our automated protocol for QSR
extraction (Section 4), we only annotated QSR that are in figure-reference form. Overall, our
evaluation sample is worth 268 spatial relations.</p>
      <p>As summarised in Table 2, we tracked the Accuracy, Precision, Recall, and F1 metrics for
each type of commonsense QSR in the considered set. For each spatial predicate, we compute
evaluation metrics in binary terms: i.e., we assess whether a ground truth QSR was extracted or
not, through our system. Overall, the proposed framework allowed us to model and correctly
extract the majority of spatial relations depicted in the considered sample. Namely, 225 of the
268 ground truth QSR (84%) were successfully extracted. The Near and Beside predicates were
excluded from our evaluation. Indeed, in the case of natural scenes, Near can be seen as a
superclass of the QSR under evaluation, with the only exception of the Above relation, which
does not entail closeness - e.g., the sky is above. Similarly, the study of the Beside predicate is
subsumed by the evaluation of the more specific LeftOf and RightOf relations.</p>
      <p>The measured F1 scores are equal to or greater than 80% for the majority of QSR types. The
extraction of the LeansOn, Below and Behind relations was relatively more challenging. In
the case of LeansOn, despite the high ratio of true positives (97% Recall), a higher number of
LeansOn relations was generated compared to the ground truth. A visual inspection of the results
Min Orient BBox</p>
      <p>ST_Volume
Input
Convex Hull
Min Orient BBox,
Robot heading
Min Orient
BBox, 
CBB, 
Min Orient BBox
Min Orient BBox
Min Orient BBox
Min Orient BBox
Min Orient BBox
Halfspaces
Min Orient BBox</p>
      <p>GIS operators
ST_OrientedEnvelope,
ST_ZMin, ST_ZMax,
ST_Extrude
ST_Rotate,
ST_Angle,
ST_Centroid
ST_Extrude
ST_Extrude
ST_3DDWithin
ST_3DIntersects
ST_3DIntersection
ST_3DIntersection,
ST_Volume
ST_3DIntersection
ST_Volume
ST_Scale, ST_Volume
ST_Intersection</p>
      <p>Output
Min Oriented
BBox
CBB
Top/Bottom
Halfspaces
L/R/Front/Back
Halfspaces
Reference
object set
IsClose, Touches
Intersects (Int)
inter
ComplCont
Left/RightOf
Above, Below
InFrontOf,
Behind
adjSRCard</p>
      <p>QSR
Beside
OnTopOf
LeansOn
AffixedOn
Inside
PartIn
Near</p>
      <p>Follows from
RightOf, LeftOf
Touches, Above
Touches, Above
Below
Touches, Above
ComplCont
inter, adjSRCard
isClose
(b)
revealed that these false positives were mainly caused by segmentation issues. In particular,
a subset of object regions also include points of the occluding objects, as a result of deriving
PointClouds from 2D-segmented masks. Moreover, a portion of true positives for the Below
class was missed, due to approximating object regions as rectangular boxes. For instance, in the
case of a desktop computer below a desk, the bounding box representing the desk also includes
the hollow space between the legs. Hence, objects lying under the desktop do not intersect
the bottom halfspace. The lowest accuracy score is associated to the Behind relation. We can
ascribe this result to the fact that PointClouds were derived from individual depth images, without
reconstructing regions behind the surfaces which are reached by the laser sensor. Additional
causes of errors that were discovered from visually inspecting the results include: (i) inaccurate
sensor measurements, yielding noisy object regions, as well as (ii) misalignments between wall
annotations on the 2D map and the object-wall distance measured through the depth sensor. In
sum, many resulting errors are related to the problem of accurately modelling object regions in
real-world environments, rather than to the system’s ability to infer spatial relations from object
regions. Indeed, despite the challenges posed by this realistic robotic scenario, the proposed
framework ensured an average F1 score of 83,1% across the evaluated relation types.</p>
      <p>
        Our further experiments on the complete image set [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] show that realising a spatial reasoning
module that adheres to the proposed framework significantly enhances the robot’s ability to
recognise objects, particularly when spatial awareness is coupled with the knowledge of object
sizes.
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion and Future Work</title>
      <p>In this paper, we have presented a framework for spatial reasoning which satisfies the requirements
of robot sensemaking in real-world scenarios. Differently from prior approaches to qualitative
spatial reasoning in robotics, this framework is robust to variations in the robot’s viewpoint
and object orientation, thus ensuring scalability to many application scenarios. Crucially, this
framework contributes a cognitively-inspired conceptual layer on top of geometrical spatial
operators, to model commonsense spatial predicates. The resulting linguistic predicates facilitate
the integration of background spatial knowledge from external resources. As such, the proposed
framework contributes to the broader objective of developing Visually Intelligent Agents, which
can reliably assist us with our daily tasks. Conveniently, the proposed framework can be fully
implemented with state-of-the-art GIS technologies. Moreover, it led to the accurate extraction
of 84% of the spatial relations from real-world images collected by a robot in the context of
autonomous Health and Safety monitoring.</p>
      <p>
        Because our framework was built on previous works that have modelled QSR with crisp
spatial definitions, it does not capture uncertainty. In [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] we have introduced a definition of
typicality of the QSR, to accompany spatial relations with belief scores based on background
knowledge. However, this representational frame could be further extended by introducing
fuzzylogic statements. Moreover, the proposed QSR are designed to model situations at individual
time frames. For instance, a clock may be affixed to the wall at time 1 and lie on the floor at
time 2. Therefore, in our future work, we also aim at examining the spatio-temporal evolution of
these relations.
arXiv:1909.06331 [cs] (2019). URL: http://arxiv.org/abs/1909.06331, arXiv: 1909.06331.
[23] A. Thippur, J. A. Stork, P. Jensfelt, Non-parametric spatial context structure learning for
autonomous understanding of human environments, in: 2017 26th IEEE International
Symposium on Robot and Human Interactive Communication (RO-MAN), 2017, pp. 1317–
1324.
[24] S. Storks, Q. Gao, J. Y. Chai, Recent advances in natural language inference: A survey of
benchmarks, resources, and approaches, arXiv preprint arXiv:1904.01172 (2019).
[25] R. Krishna, Y. Zhu, O. Groth, J. Johnson, et al., Visual genome: Connecting language
and vision using crowdsourced dense image annotations, International journal of computer
vision 123 (2017) 32–73.
[26] K. Yang, O. Russakovsky, J. Deng, SpatialSense: An Adversarially Crowdsourced
Benchmark for Spatial Relation Recognition, in: 2019 IEEE/CVF International Conference on
Computer Vision (ICCV), IEEE, Seoul, Korea (South), 2019, pp. 2051–2060.
[27] J. A. Bateman, J. Hois, R. Ross, T. Tenbrink, A linguistic ontology of space for natural
language processing, Artificial Intelligence 174 (2010) 1027–1071.
[28] P. Grenon, B. Smith, Snap and span: Towards dynamic spatial ontology, Spatial cognition
and computation 4 (2004) 69–104.
[29] A. C. Varzi, Spatial Reasoning and Ontology: Parts, Wholes, and Locations, in: M. Aiello,
I. Pratt-Hartmann, J. Van Benthem (Eds.), Handbook of Spatial Logics, Springer
Netherlands, Dordrecht, 2007, pp. 945–1038.
[30] A. Nüchter, J. Hertzberg, Towards semantic maps for mobile robots, Robotics and
Autonomous Systems 56 (2008) 915–926.
[31] S. Coradeschi, A. Safofitti, An introduction to the anchoring problem, Robotics and
autonomous systems 43 (2003) 85–96.
[32] I. Kostavelis, A. Gasteratos, Semantic mapping for mobile robotics tasks: A survey,
      </p>
      <p>Robotics and Autonomous Systems 66 (2015) 86–103.
[33] L. Kunze, C. Burbridge, M. Alberti, A. Thippur, J. Folkesson, P. Jensfelt, N. Hawes,
Combining top-down spatial reasoning and bottom-up object class recognition for scene
understanding, in: 2014 IEEE/RSJ International Conference on Intelligent Robots and
Systems, 2014, pp. 2910–2915.
[34] J. Young, L. Kunze, V. Basile, E. Cabrio, N. Hawes, B. Caputo, Semantic web-mining
and deep vision for lifelong object discovery, in: 2017 IEEE International Conference on
Robotics and Automation (ICRA), IEEE, 2017, pp. 2774–2779.
[35] R. Moratz, M. Ragni, Qualitative spatial reasoning about relative point position, Journal of</p>
      <p>Visual Languages &amp; Computing 19 (2008) 75–98.
[36] J. Bateman, Situating spatial language and the role of ontology: Issues and outlook,</p>
      <p>Language and Linguistics Compass 4 (2010) 639–664.
[37] C. Eschenbach, Geometric structures of frames of reference and natural language semantics,</p>
      <p>Spatial Cognition and Computation 1 (1999) 329–348.
[38] G. D. Felice, P. Fogliaroni, J. O. Wallgrün, A hybrid geometric-qualitative spatial reasoning
system and its application in gis, in: International Conference on Spatial Information
Theory, Springer, 2011, pp. 188–209.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Nilsson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Haesaert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Thakker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Otsu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.-I.</given-names>
            <surname>Vasile</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.-A.</given-names>
            <surname>Agha-Mohammadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. M.</given-names>
            <surname>Murray</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. D.</given-names>
            <surname>Ames</surname>
          </string-name>
          ,
          <article-title>Toward specification-guided active mars exploration for cooperative robot teams</article-title>
          ,
          <source>Robotics: Science and Systems (RSS)</source>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Remote human-robot collaboration: A cyber-physical system application for hazard manufacturing environment</article-title>
          ,
          <source>Journal of manufacturing systems 54</source>
          (
          <year>2020</year>
          )
          <fpage>24</fpage>
          -
          <lpage>34</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>G.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Lv</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , L.
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Deng</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>You</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
          </string-name>
          ,
          <article-title>Keep healthcare workers safe: application of teleoperated robot in isolation ward for covid-19 prevention and control</article-title>
          ,
          <source>Chinese Journal of Mechanical Engineering</source>
          <volume>33</volume>
          (
          <year>2020</year>
          )
          <fpage>1</fpage>
          -
          <lpage>4</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Bastianelli</surname>
          </string-name>
          , G. Bardaro,
          <string-name>
            <given-names>I.</given-names>
            <surname>Tiddi</surname>
          </string-name>
          , E. Motta,
          <article-title>Meet hans, the heath &amp; safety autonomous inspector</article-title>
          ., in: International Semantic Web Conference, Demo track,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M. B.</given-names>
            <surname>Alatise</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. P.</given-names>
            <surname>Hancke</surname>
          </string-name>
          ,
          <article-title>A review on challenges of autonomous mobile robot and sensor fusion methods</article-title>
          ,
          <source>IEEE Access 8</source>
          (
          <year>2020</year>
          )
          <fpage>39830</fpage>
          -
          <lpage>39846</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B. M.</given-names>
            <surname>Lake</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. D.</given-names>
            <surname>Ullman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. B.</given-names>
            <surname>Tenenbaum</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Gershman</surname>
          </string-name>
          ,
          <article-title>Building machines that learn and think like people</article-title>
          ,
          <source>Behavioral and Brain Sciences</source>
          <volume>40</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>E.</given-names>
            <surname>Davis</surname>
          </string-name>
          , G. Marcus,
          <article-title>Commonsense reasoning and commonsense knowledge in artificial intelligence</article-title>
          ,
          <source>Communications of the ACM</source>
          <volume>58</volume>
          (
          <year>2015</year>
          )
          <fpage>92</fpage>
          -
          <lpage>103</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Chiatti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Motta</surname>
          </string-name>
          , E. Daga,
          <article-title>Towards a Framework for Visual Intelligence in Service Robotics: Epistemic Requirements and Gap Analysis</article-title>
          ,
          <source>in: Proceedings of KR 2020- Special session on KR &amp; Robotics</source>
          ,
          <string-name>
            <surname>IJCAI</surname>
          </string-name>
          ,
          <year>2020</year>
          , pp.
          <fpage>905</fpage>
          -
          <lpage>916</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>D. D.</given-names>
            <surname>Hoffman</surname>
          </string-name>
          ,
          <article-title>Visual intelligence: How we create what we see</article-title>
          ,
          <source>WW Norton &amp; Company</source>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Levesque</surname>
          </string-name>
          ,
          <article-title>Common Sense, the Turing Test, and the Quest for Real AI</article-title>
          , The MIT Press,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P. J.</given-names>
            <surname>Hayes</surname>
          </string-name>
          , The Second Naive Physics Manifesto.
          <article-title>Formal theories of the common sense world</article-title>
          ,
          <source>Ablex Publishing Corporation</source>
          ,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>J. McCarthy</surname>
          </string-name>
          , et al.,
          <article-title>Programs with common sense, RLE and</article-title>
          MIT computation center,
          <year>1960</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Newell</surname>
          </string-name>
          ,
          <article-title>The knowledge level</article-title>
          ,
          <source>Artificial intelligence 18</source>
          (
          <year>1982</year>
          )
          <fpage>87</fpage>
          -
          <lpage>127</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Chiatti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Motta</surname>
          </string-name>
          , E. Daga,
          <article-title>Robots with commonsense: Improving object recognition through size and spatial awareness</article-title>
          , in: To appear
          <source>in Proceedings of the AAAI 2022 Spring Symposium on Machine Learning</source>
          and
          <article-title>Knowledge Engineering for Hybrid Intelligence (AAAI-MAKE</article-title>
          <year>2022</year>
          ), CEUR,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>H.</given-names>
            <surname>Deeken</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Wiemann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hertzberg</surname>
          </string-name>
          ,
          <article-title>Grounding semantic maps in spatial databases</article-title>
          ,
          <source>Robotics and Autonomous Systems</source>
          <volume>105</volume>
          (
          <year>2018</year>
          )
          <fpage>146</fpage>
          -
          <lpage>165</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>A.</given-names>
            <surname>Borrmann</surname>
          </string-name>
          , E. Rank,
          <article-title>Query Support for BIMs using Semantic and Spatial Conditions, in: Handbook of Research on Building Information Modeling and Construction Informatics: Concepts and Technologies</article-title>
          ,
          <source>IGI Global</source>
          ,
          <year>2010</year>
          , pp.
          <fpage>405</fpage>
          -
          <lpage>450</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>B.</given-names>
            <surname>Landau</surname>
          </string-name>
          , R. Jackendoff, “
          <article-title>What” and “where” in spatial language and spatial cognition</article-title>
          ,
          <source>Behavioral and Brain Sciences</source>
          <volume>16</volume>
          (
          <year>1993</year>
          )
          <fpage>217</fpage>
          -
          <lpage>238</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>A.</given-names>
            <surname>Herskovits</surname>
          </string-name>
          ,
          <article-title>Language and spatial cognition</article-title>
          , volume
          <volume>12</volume>
          , Cambridge University Press,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>A.</given-names>
            <surname>Thippur</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Burbridge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Kunze</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Alberti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Folkesson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Jensfelt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Hawes</surname>
          </string-name>
          ,
          <article-title>A comparison of qualitative and metric spatial relation models for scene understanding</article-title>
          ,
          <source>in: 29th AAAI Conference and the 27th Innovative Applications of Articfiial Intelligence Conference (IAAI)</source>
          , volume
          <volume>2</volume>
          ,
          <string-name>
            <given-names>AI</given-names>
            <surname>Access Foundation</surname>
          </string-name>
          ,
          <year>2015</year>
          , pp.
          <fpage>1632</fpage>
          -
          <lpage>1640</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>A. G.</given-names>
            <surname>Cohn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Renz</surname>
          </string-name>
          ,
          <article-title>Qualitative Spatial Representation and Reasoning</article-title>
          ,
          <source>in: Foundations of Artificial Intelligence</source>
          , volume
          <volume>3</volume>
          of Handbook of Knowledge Representation, Elsevier,
          <year>2008</year>
          , pp.
          <fpage>551</fpage>
          -
          <lpage>596</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>G.</given-names>
            <surname>Sarthou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Alami</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Clodic</surname>
          </string-name>
          ,
          <article-title>Semantic Spatial Representation: a unique representation of an environment based on an ontology for robotic applications</article-title>
          , in: Combined Workshop on Spatial Language Understanding (
          <article-title>SpLU) and Grounded Communication for Robotics (RoboNLP)</article-title>
          .,
          <year>2019</year>
          , p.
          <fpage>12</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Sisbot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Connell</surname>
          </string-name>
          ,
          <article-title>Where is My Stuff? An Interactive System for Spatial Relations,</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>