<!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>Reasoning about directions in an egocentric spatial reference frame</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Rupam Baruah</string-name>
          <email>rupam.barua.jec@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shyamanta M. Hazarika</string-name>
          <email>shyamanta@ieee.org</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Biomimetic and Cognitive Robotics Lab, Computer Science and Engineering, Tezpur University</institution>
          ,
          <addr-line>Tezpur - 784028</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <fpage>37</fpage>
      <lpage>42</lpage>
      <abstract>
        <p>-Within qualitative spatial reasoning, spatial objects having directions have been abstracted in different ways; directed line segments, oriented points etc. have been used. In certain applications, it becomes necessary to reason about directions of objects without focusing on the dimensionality of these objects. We present a framework for representation of and reasoning about directions in a qualitative way within an egocentric spatial reference frame. Qualitative direction has been separated from spatial location and dimensionality of spatial objects and as such, the formalism may be used to represent qualitative direction in a dimension-independent way. The formalism uses fewer numbers of base relations than existing formalisms. Further granularity can be refined easily. Qualitative direction relations separated from spatial location and dimensionality can be used to express spatio-temporal patterns of directional entities using a regular grammar.</p>
      </abstract>
      <kwd-group>
        <kwd>QSR</kwd>
        <kwd>Qualitative direction</kwd>
        <kwd>Qualitative Direction Algebra</kwd>
        <kwd>Composition</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>INTRODUCTION</p>
      <p>
        Everyday reasoning involving spatial and temporal
attributes is driven through qualitative abstractions rather than
complete quantitative knowledge. Qualitative abstractions are
an integral part of our conceptualization of space and time
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Quantitative information is precise and accurate. However,
such precise information may not be cognitively meaningful
at times. For example, in the domain of traffic analysis, we
can measure the change in direction of a moving car at certain
intervals. This quantitative data is precise, but we will not be
able to extract much high level knowledge from it. Instead,
a qualitative expression like ”the car is approaching me from
the opposite direction” will convey more information. Further,
space and time are inextricably linked. For any commonsense
theory of spatial representation and reasoning, space and
spatial change need to be interwoven! Commonsense theories
of space and spatial change for cognitive agents need to be
qualitative rather than quantitative.
      </p>
      <p>
        Space, in our commonsense knowledge, is characterized by
many different attributes. Within Qualitative Spatial Reasoning
(QSR), spatial characteristics are abstracted in a qualitative
way. Aspects of space that have been treated in a qualitative
way are spatial orientation, distance, direction, shape and size
etc [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. In this paper, we have taken up one such spatial
aspect i.e. qualitative direction. Qualitative direction plays an
important role when we think of analyzing patterns formed
by directed objects. Such an object may be stationary or
moving. For example, vehicles moving on a highway leads
to different spatio-temporal patterns. In this case, we take the
direction of the vehicle along its front. Each vehicle may find
the qualitative direction of other vehicles relative to its own
direction of motion. For example, as shown in Figure 1, we
have different scenario (from top to bottom) such as ’car in
front of truck’; ’car to left of truck’ and ’car behind truck’. At
any instance of time, these directions form a pattern that can
be analyzed to extract higher level semantics. Having seen the
above direction relations sequence (from top to bottom) we
understand a composite pattern ’truck overtake car’.
      </p>
      <p>
        In QSR literature, different formalisms have been used
for representing directions of spatial objects in a qualitative
way. In some works, spatial objects have been abstracted as
directed dimensionless points. In others, directed line segments
have been used [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. An interesting issue here is about the
representation of direction of spatial objects extended in space.
If we treat objects in two or three dimensional forms, then
we would not be able to abstract these as points or lines.
One needs to separate the issue of representation from the
issue of dimensionality. Definitions of qualitative direction
relations should not be influenced by underlying dimensions.
For example, in dipole relation algebra [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], spatial objects are
abstracted as directed line segments having a start and an end
point. In defining qualitative relations between two dipoles, the
location of end points with respect to a line (whether on the left
or on the right side) is considered. Therefore, this formalism
will not be suitable if our spatial objects are rectangles instead
of lines. Similarly, in oriented point algebra [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], spatial objects
are abstracted as dimensionless points having directions. The
direction of a point sets up a coordinate system and orientation
labels like F ront, Back etc. can be defined with respect to this
coordinate system. As higher dimensional objects are extended
in space, meaning of orientation labels like F ront, Back
etc. will be quite different. We can cite a formalism called
rectangular cardinal directions [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] where spatial orientation
of rectangles having sides parallel to the axes of projection
is treated. Oriented point algebra will not be suitable here
because the objects under consideration are extended in space
in two dimensions. In order to have a dimension independent
representation of qualitative direction, we should not bring in
the spatial orientation of any part of the abstracted object into
our definition.
      </p>
      <p>For the Qualitative Direction Algebra (QDA) proposed in
this work, we separate qualitative direction from the issues
of spatial location and dimensionality. We propose a direction
model that does not use spatial location labels for representing
qualitative direction. We have used angular measurements
between directions for representing our qualitative direction
relations. Direction relation labels, that we have proposed,
are closer to our cognitive perception of object locomotion.
A Jointly Exhaustive and Pairwise Disjoint (JEPD) set of
binary qualitative relations has been proposed for representing
and reasoning with qualitative directions. The issue of
spatiotemporal continuity of these base relations has also been
addressed. For constraint based reasoning, this set of relations
needs to be closed under composition and converse. We have
proposed algorithms for finding the converse of a single
relation and also to find the composition of two base relations.
An interesting characteristic of this formalism is that the
granularity can be refined depending on requirement. In QSR,
continuous input is discretized and qualitative abstractions are
introduced. For example, let us consider distance as a spatial
aspect. Distance of one object from another will have
continuous numeric values. From a qualitative view point, we can
discretize these values into three zones and label these as close,
near and f ar. If necessity arises, we can further subdivide
the close range and introduce two labels, namely, veryclose
and close. In doing so, we are refining our granularity in
such a way that finer changes in numerical distance can be
represented. In a similar way, in the formalism proposed in
this paper, it is possible to move to finer granularity so that
smaller changes in angular direction can be represented. The
algorithms proposed for finding converse and composition can
handle refinement of granularity.</p>
    </sec>
    <sec id="sec-2">
      <title>II. EGOCENTRIC REFERENCE FRAME</title>
      <p>
        A spatial reference frame is a coordinate system with
respect to which the qualitative direction labels are defined.
Spatial reference frame is an important issue when we want
to represent qualitative direction. Tversky advocates that
people’s spatial mental models use only two basic perspectives
locating elements relative to one another from a point of view
or locating an element to a higher order environmental feature
or reference frame [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The first of these corresponds to an
egocentric frame of reference and the second corresponds to an
allocentric frame of reference. When two objects are moving
in a two dimensional plane, their directions can be specified
in different ways. If the plane has a large geographical extent,
then it is possible that we may use the north-south-east-west
reference system. We may say that one is heading north while
the other is heading south-west. If the scope is confined to
a piece of paper, one may use the X-Y coordinate system
for this. Here, we are using an external reference system and
this type of frame of reference is named as allocentric [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] or
extrinsic [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. On the other hand, qualitative direction can be
represented in a relative way. For this, the direction of one
object is taken as a reference and the direction of others is
stated with respect to this reference. This direction typically
depends on factors like topology, size, shape etc. This reference
direction is not static; it may change with time as the object
moves or rotates. Such a frame of reference is termed as
egocentric [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] or intrinsic [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. In deictic frame of reference [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ],
the concept of direction is defined by an external observer.
Here, the direction in which two or more objects are moving is
specified from the point of view of an external observer. In this
paper, we have handled qualitative direction in an egocentric
spatial reference frame.
      </p>
      <p>III.</p>
    </sec>
    <sec id="sec-3">
      <title>QUALITATIVE DIRECTION ALGEBRA</title>
      <sec id="sec-3-1">
        <title>A. Defining the JEPD Set of Direction Relations</title>
        <p>In order to explain the qualitative direction relations, we
need to introduce a few definitions. The direction in which
an object is headed is specified by a straight line. In a two
dimensional plane, the direction of this straight line expresses
the direction of the object. This straight line, used for
specifying the direction of an object, has been termed as a direction
line. For finding binary qualitative direction relations, at first
we need the direction lines for each object under consideration.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Definition. A Direction Line is a directed line segment in a</title>
      </sec>
      <sec id="sec-3-3">
        <title>2-D plane having direction dir and magnitude m.</title>
        <p>For convenience, we assume that the start point for all these
direction lines is same. This can be done because the direction
line represents the direction logically and translation of these
lines do not change the direction of the object. Moreover,
spatial locations of the objects are noway important to us. As
an illustration, in Figure 2, we have shown two objects whose
directions are indicated by arrowheads (part A). In part (B) of
the same figure, two direction lines are drawn parallel to the
direction of the two objects. We will use the notation dirA
to mean the direction line of the spatial object A. When we
make the direction lines originate at the same point, we have
regions between two consecutive direction lines.</p>
        <p>Definition. Direction Region : Let l1 and l2 be two direction
lines having directions dir1 and dir2 respectively and having
a point of intersection o. Let be the angle between dir1 and
dir2 in an anticlockwise direction. Then, a direction region
defines a set of direction lines that originate at o and the
direction of any such line is bounded by the angle from dir1
in an anticlockwise direction.</p>
        <p>
          The concept of direction regions will be used in algorithms
for finding composition and converse of base relations of the
qualitative direction algebra. We have the task for arriving
at a set of binary qualitative direction relations from the
angles measured between their direction lines. QSR discretizes
the continuous domain and introduces abstractions. We may
tend to think that QSR is same as fuzzy approximations; but
there is an important difference. Categories in fuzzy approach
are approximations of real values, while categories in QSR
depends on application requirement [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
        </p>
        <p>We start with four qualitative abstractions and name these
as Same , Opposite , LR and RL. These abstractions are
derived from the angular displacements between direction
lines. Our qualitative relations for direction are binary. So,
the direction of one of the objects is taken as the reference
direction. The direction of the other object is taken as the
primary direction and a qualitative relation expresses the
relationship of the primary with respect to the reference.</p>
        <p>Let A and B be two spatial objects. When we say A Same
B, we mean that the angle between dirA and dirB is zero.
For uniformity, we will measure all angles counterclockwise.
Meaning of A Opposite B is that the angle between dirA
and dirB is 180 degrees. When an object A moves along
dirA in a two dimensional plane, its course of motion divides
the plane equally into two parts. Assume that the direction
line dirB, corresponding to some object B, intersects dirA
at right angle in a left to right direction. Then, the resulting
qualitative relation is named as LR. An identical case in the
right to left direction is termed as RL. We have a set of four
binary qualitative direction relations here. These relations are
illustrated in Figure 3.</p>
      </sec>
      <sec id="sec-3-4">
        <title>QD8: QDA with granularity eight</title>
        <p>The level of granularity is too coarse and change in
direction is represented when it crosses a threshold of 90
degrees. These are the major direction relations that we are
going to refine further. Naturally, one would like to divide these
right angles equally so that granularity is refined. An important
aspect is to keep the angular span same for all relations. We
identify two direction regions, namely, a + region and a
region. The + region is direction region with an angular span
of 45 degrees measured counterclockwise from one of the
major direction relations introduced earlier. The region is
direction region with an angular span of 45 degrees measured
clockwise from one of the major direction relations. Since each
major direction relation now will give rise to one + region
and one region, we will have eight such direction regions in
total. These can be considered as qualitative direction relations,
because the direction line of the primary may fall along any
of these. For naming these relations, we use a simple notation
where we append a + or symbol to the name of a major
direction label. For example, the major relation Same results
in two relations, namely, Same+ and Same . Let A Same
B and let B be the reference object. In the relation Same,
we know that the angle between dirA and dirB is zero.
In Same+, the direction line dirA lies within an angular
span of 45 degrees measured counterclockwise from dirB.
Similarly, in Same , the direction line dirA lies within an
angular span of 45 degrees measured clockwise from dirB.
These twelve base relations are enumerated in Table I. The
angular spans for all the relations are listed. All these angles
are measured in anticlockwise direction from the direction line
of the reference object. In Figure 4, these relations are shown
pictorially. There are eight equal divisions of the full angular
span of 360 degrees. We choose to use this number of divisions
to express the granularity of the algebra. So, the base relations
enumerated in Table I are for a QDA with granularity eight.
We denote this as QD8.</p>
      </sec>
      <sec id="sec-3-5">
        <title>QD16: Refining the Granularity</title>
        <p>The twelve base relations listed in Table I, can record
change in direction when the direction of the primary object
crosses discrete boundaries at integral multiples of 45 degrees.
In many applications, it may be necessary to record change
at finer intervals. In our proposed formalism, this can be
done very easily. In this section, we will show one level of
refinement. The same process can be repeated to arrive at even
finer granularity of base relations.</p>
        <p>For refinement, we equally divide the + and direction
regions. For example, if we divide the + region for which
the angle range is ]0; 45], we obtain two direction regions of
span 22.5 degrees each. The region [0; 22:5] is denoted by
the symbol +1 and the region ]22:5; 45] is denoted by +2.
As a result, we get twenty four base relations that are listed
in Table II. This time, change in direction is noticed after a
threshold of 22.5 degrees. The same thing can be done to the
region and the resulting direction regions will be 1 and
2. These refined relations are shown in Figure 5. Now, there
are 16 equal divisions of the full span of 360 degrees and
accordingly, we have QD16.</p>
        <p>Fig. 5. QD16: Direction relations one level refined.</p>
        <p>
          In order to apply constraint based reasoning to a set of
spatial relations, we develop a partition scheme for the objects
in the domain under consideration [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] and arrive at a set of
Jointly Exhaustive Pairwise Disjoint (JEPD) base relations.
General relations are obtained by taking the power set of base
relations, with top, bottom, union, intersection and complement
of relations defined in the set theoretic way [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. Moreover, an
identity relation and a converse operation on base relations
must be provided. For the set of base relations introduced
earlier, Same is the identity relation. Each relation is cosed
under converse operation. The converses for the base relations
were listed in Table I and in Table II.
        </p>
      </sec>
      <sec id="sec-3-6">
        <title>B. Finding Converse and Composition</title>
        <p>For finding the direction relation that holds between
directions of two spatial objects, one of these objects is considered
as a reference. A direction line parallel to the direction of the
reference object is drawn and this direction line can be
designated as line 0. The direction relation wheel can now be drawn
with respect to this line according to the granularity level
under consideration. Then, the direction line corresponding to
the direction of the primary object is drawn. The direction
region in which this line falls tells us the direction relation
of the primary with respect to the reference. All angles are
measured counterclockwise and direction relations in terms of
angle ranges have been listed before.</p>
        <p>We present an algorithm for finding the converse of any
qualitative direction relation. Let us assume that A dr B, where
A and B are spatial objects and dr is the direction relation
holding between their directions. Intuitively, for finding the
converse of dr, we should know the number of rotations we
should give to the direction line of A to get back to the
direction line of B. This is because of the fact that the converse
expresses the relation of B with respect to A. So, for finding
the converse relation, the direction line of A will be taken
as line 0. Moreover, we should know the relation that results
after these many rotations. An algorithm is presented below
for finding the converse of a qualitative direction relation.</p>
        <sec id="sec-3-6-1">
          <title>Algorithm Converse(R,m)</title>
        </sec>
        <sec id="sec-3-6-2">
          <title>R is the relation whose converse has to</title>
          <p>be returned and m is the granularity</p>
        </sec>
        <sec id="sec-3-6-3">
          <title>BEGIN</title>
          <p>1.n:= Calc_Rot_Conv(R)
2.If (R==’Same’||R==’Opposite’||R==’LR’
|| R==’RL’) Then</p>
        </sec>
        <sec id="sec-3-6-4">
          <title>Begin Conv_Rel := Find_Rel(m-n,m-n) End</title>
        </sec>
        <sec id="sec-3-6-5">
          <title>Else</title>
        </sec>
        <sec id="sec-3-6-6">
          <title>Begin Max_rot:= n Min_rot:= n-1 Conv_Rel:=Find_Rel(m-Max_rot,m-Min_rot)</title>
          <p>Function Calc Rot Conv returns the number of rotations
needed to align the direction line of the primary object
with that of the reference. The bottom and top lines for the
relation are retrieved into local variables p and q. p denotes
the index of the bottom line and q denotes the index of the
top line. Since the function returns m p, we understand
that the maximum required number of rotations is returned
by the function. This returned value gets stored in the local
variable n inside the function Converse. If the relation is
one of Same , Opposite , LR or RL , then we know that
the direction line of the primary will not fall in a direction
region. It will align with one of the lines (at one of the angles
90 , 180 , 270 or 360 degrees measured counterclockwise )in
the direction wheel. Then, it is easy to see that we will have
to give m n number of rotations to the direction line of
the primary object. For example, let us consider QD8 and let
A Opposite B hold. Then, the direction line of the primary
aligns with the line at an angle of 180 degrees in the direction
wheel. The value of &lt; p; q &gt; will be &lt; 4; 4 &gt;. The value
returned by Calc Rot Conv will be 4. Inside the function
Converse, a call will be made as F ind Rel(8 4; 8 4). The
relation whose bottom and top lines are (4; 4) is Opposite.</p>
          <p>So, the converse of Opposite is computed as Opposite.</p>
          <p>For a discussion of other type of relations, let us consider
RL+. The bottom and top lines for this relation will be
returned as &lt; p; q &gt; = &lt; 2; 3 &gt;. The value returned from
Calc Rot Conv will be 8 2 i.e. 6. Inside the function
Converse, Max rot will be 6 and Min rot will be 5. This
time, there will be a call like F ind Rel(8 6; 8 5) i.e.
F ind Rel(2; 3). The relation for which dirbottom is 2 and
dirtop is 3 is RL+. So, the converse of RL+ is RL+. An
outline of the Calc Rot Conv function is given below.</p>
        </sec>
        <sec id="sec-3-6-7">
          <title>Algorithm Calc_Rot_Conv(R,m)</title>
        </sec>
        <sec id="sec-3-6-8">
          <title>The function Get_Lines gives the bottom and top direction lines associated with the relation R</title>
        </sec>
        <sec id="sec-3-6-9">
          <title>BEGIN</title>
          <p>1. &lt; p , q&gt; := Get_Lines(Rel)</p>
        </sec>
        <sec id="sec-3-6-10">
          <title>2. Return m-p END</title>
          <p>We assume that the function F ind Rel retrieves the
appropriate relation from a hash table depending on the pair
of integers passed to it . Every direction relation can be
represented by a pair of integers (i; j) where i is the integer
corresponding to dirbottom and j is the integer corresponding
to dirtop. For example, when the pair (0; 0) is passed, the
retrieved relation is Same , when (0; 1) is passed, the retrieved
relation is Same+ and so on. An outline of the algorithm for
the F ind Rel function is given below. The algorithm takes
care of the fact that sometimes (while computing composition
of relations) the second argument can be two more than the
first and the local variables c and d are used to control this. The
algorithm will return a quadruple of relations. Let us assume
that this quadruple is of the form &lt; R; Q; S; T &gt;. In this
quadruple, only non null entries are meaningful. For example,
if we call F ind Rel(2; 2), then only one relation is returned
and this is available in R. If the call is like F ind Rel(4; 5),
then also a single relation is returned in R. The parameters Q
, S and T become meaningful when max is min + 2.
Algorithm Find_Rel( min , max)
1. c:=d:=-1 ; R:= Q := S := T := Null
2. If (min==max) Then
3. Begin
4. R := From_Hash(min,min)
5. Return &lt;R,Q,S,T&gt;
6. End
7. Else If (max==min+1) Then
8. Begin
9. R := From_Hash(min,max)
10. Return &lt;R,Q,S,T&gt;
11.Else If (max==min+2) Then
12.Begin
13. &lt;a,b&gt; := &lt;min,min+1&gt;
14. If &lt;min+1==0 || min+1==2
15. || min+1==4 || min+1==6&gt; Then
16. &lt;c,d&gt; := &lt;min+1 , min+1&gt;
17. &lt;e,f&gt; := &lt;min+1 , max&gt;
18. Q := Get_From_Hash(a,b)
19. If (c!=-1) Then
20. Begin
21. S := From_Hash(c,d)
22. T := From_Hash(e , f)
23. End
24. Return &lt;R,Q,S,T&gt;</p>
          <p>For constraint based reasoning, composition of base
relations is an important issue. An algorithm for composition
of base relations is presented. Let A , B and C be three
objects such that A Rel1 B and B Rel2 C hold. We want to
find Rel1 Rel2, where denotes set theoretic composition.
For this, direction relation wheel is drawn with respect to
the direction of B. Since the relation of A to B is already
known, we can identify the direction line or direction region
for A. The remaining task is to fix C in the wheel. Rel2 is
given. But that expresses the relation of B with respect to C.
We take the converse of Rel2 and identify the direction line
or region for C with respect to B. To find the composition
we need to compute the number of rotations required to align
direction of C with that of A and find the resulting relation.
For any relation Rel, let us denote the lower line of its
direction region as RelBottom and the corresponding upper
line as RelTop. Then, any relation can be expressed as an
ordered pairs of the form (RelBottom; RelTop). For example,
in the Figure 4, the relation Opposite+ can be specified as
(4; 5) and Same as (0; 0).</p>
        </sec>
        <sec id="sec-3-6-11">
          <title>Algorithm Compose(Rel1,Rel2,m)</title>
          <p>This algorithms computes composition of
rel1 and rel2. m is the granularity
1. S:=Converse( Rel2 , m)
2. &lt;p,q &gt;:= Get_Lines(S)
3. &lt;r,s&gt;:= Get_Lines(Rel1)
4. &lt;min,max&gt;:=Calc_Rot_Comp(&lt;p,q&gt;,&lt;r,s&gt;)</p>
        </sec>
        <sec id="sec-3-6-12">
          <title>5. Find_Rel( min , max )</title>
          <p>Conceptual dependency of a spatial relation defines a set
of relations that may hold after this relation whenever a
change is recorded. For example, if at any point of time
Same is the qualitative direction relation that holds between
directions of two objects, then it is not possible that this
relation will change to Opposite whenever change in direction
is noted. After the relation Same , the possible relations that
may hold can be either Same+ or Same . The relations
that may hold after the current relation are termed as its
conceptual neighbour(s). Conceptual neighbours dictate how
one relation can or cannot change. This gives rise to a notion
of spatio-temporal continuity which can be exploited in many
applications. Conceptual neighbours are generally expressed
by a graph where nodes represent relations and edges are
drawn from a node to its conceptual neighbours. In Figure 6,
conceptual dependency of 12 base relations for QD8 is shown.</p>
          <p>IV.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>QDA AND MOTION PATTERN ANALYSIS</title>
      <p>Qualitative direction relations can be used to represent
and reason about spatio-temporal patterns of directional
entities. One such example is motion pattern analysis. For such
applications, formalisms are required for representation and
recognition of patterns in an input stream.</p>
      <p>Fig. 7. Motion events of a set of directed points.</p>
      <p>Figure 7 present a synthetic example where three objects
are involved in a motion pattern recognition application. One of
the objects is stationary and has a direction along its egocentric
orientation. The other two objects are non stationery and
changes in their egocentric headings. R is the stationery object
and it is taken as the reference object. We want to represent
the motion sequence of P and Q with respect to R. The
motion sequence of P with respect to R can be expressed as
Opposite; Opposite ; RL+; RL and that of Q can be stated
as RL; RL ; Same+; Same. Such patterns can be expressed
using a regular grammar and a parser can be used to recognize
the pattern in an input stream.</p>
      <p>
        Elsewhere a general technique has been developed to
combine QSR with formal grammars for recognition of motion
events among multiple spatial entities [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Use of formal
grammars as a recognition technique allows creation of
hierarchies of conceptual abstractions; motion events that one
expects in an input stream are expressed by writing programs
in this language. Such programs are parsed using context free
grammar and interpreted using regular grammar. Successful
interpretation is equivalent to recognition of the events expressed
in the program.
      </p>
      <p>V.</p>
    </sec>
    <sec id="sec-5">
      <title>FINAL COMMENTS</title>
      <p>In this paper, a qualitative direction algebra is proposed for
representation and reasoning about directions of spatial objects
in a dimension independent way. Qualitative spatial relations
for QD8 and QD16 have been defined.</p>
      <p>Existing formalisms combine dimensionality into
definition of relations and as a result of this, such representation
become unsuitable when dimension scales up. In the proposed
formalism, it is easy to move to a finer granularity. This finer
granularity is realized using fewer base relations than existing
formalisms. A limitation of this approach might be the fact
that it ascertains the directions in a deterministic way. At any
point of time, it is assumed that we know the angles between
the directions with certainty. Future work includes study of
formal properties of these calculi.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A. G.</given-names>
            <surname>Cohn</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Hazarika</surname>
          </string-name>
          , “
          <article-title>Qualitative spatial representation and reasoning: an overview,” Fundamenta Informaticae</article-title>
          , vol.
          <volume>46</volume>
          (
          <issue>1-2</issue>
          ), pp.
          <fpage>1</fpage>
          -
          <lpage>29</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Renz</surname>
          </string-name>
          and
          <string-name>
            <given-names>B.</given-names>
            <surname>Nebel</surname>
          </string-name>
          , “
          <article-title>Qualitative spatial reasoning with constraint calculi,” In Aiello M. and</article-title>
          <string-name>
            <surname>Pratt-Hartmann</surname>
            <given-names>I. and van Benthem J</given-names>
          </string-name>
          .(Eds),
          <source>Handbook of Spatial Logics</source>
          , pp.
          <fpage>161</fpage>
          -
          <lpage>215</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R.</given-names>
            <surname>Moratz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Renz</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Wolter</surname>
          </string-name>
          , “
          <article-title>Qulatitative spatial reasoning about line segments</article-title>
          ,” in
          <source>In Proceedings of ECAI</source>
          <year>2000</year>
          ,
          <year>2000</year>
          , pp.
          <fpage>234</fpage>
          -
          <lpage>238</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>Mossakowski</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Moratz</surname>
          </string-name>
          , “
          <article-title>Qualitative reasoning about relative direction of oriented points</article-title>
          ,
          <source>” Artificial Intelligence</source>
          , vol.
          <volume>180</volume>
          -
          <issue>181</issue>
          , pp.
          <fpage>34</fpage>
          -
          <lpage>45</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Skiadopoulos</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Koubarakis</surname>
          </string-name>
          , “
          <article-title>On the consistencyof cardinal direction constraints</article-title>
          ,
          <source>” Artificial Intelligence</source>
          , vol.
          <volume>163</volume>
          (
          <issue>1</issue>
          ), p.
          <fpage>91135</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B.</given-names>
            <surname>Tversky</surname>
          </string-name>
          and
          <string-name>
            <given-names>B. M.</given-names>
            <surname>Hard</surname>
          </string-name>
          , “
          <article-title>Embodied and disembodied cognition: Spatial perspective taking</article-title>
          .
          <source>” Cognition</source>
          , vol.
          <volume>110</volume>
          , pp.
          <fpage>124</fpage>
          -
          <lpage>129</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Klatzky</surname>
          </string-name>
          , “
          <article-title>Allocentric and egocentric spatial representations,” In Frank A</article-title>
          .U. and
          <string-name>
            <surname>Campari</surname>
            <given-names>I</given-names>
          </string-name>
          .(Eds):
          <article-title>Spatial Information Theory. A Theoretical Basis for GIS, COSIT93</article-title>
          , vol.
          <volume>716</volume>
          , pp.
          <fpage>14</fpage>
          -
          <lpage>24</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>E.</given-names>
            <surname>Clementini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. D.</given-names>
            <surname>Felice</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Hernandez</surname>
          </string-name>
          , “Introduction:frames of reference,” In Eilan N. and
          <string-name>
            <surname>Mckarthy</surname>
            and
            <given-names>Brewer B</given-names>
          </string-name>
          .(Eds):Spatial IRepresentation. Problems in Philosophy and Psychology,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G.</given-names>
            <surname>Ligozat</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Renz</surname>
          </string-name>
          , “
          <article-title>What is a qualitative calculus? a generl framework</article-title>
          ,” In Zhang C. and
          <string-name>
            <surname>Guesgen</surname>
            <given-names>H.W.</given-names>
          </string-name>
          and Yeap W.k.(Eds),
          <source>In Proceedings of PRICAI-04</source>
          , pp.
          <fpage>53</fpage>
          -
          <lpage>64</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R.</given-names>
            <surname>Baruah</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Hazarika</surname>
          </string-name>
          , “
          <article-title>Qualitative directions in egocentric and allocentric spatial reference frames</article-title>
          ,”
          <source>International Journal of Computer Information Systems and Industrial Management Applications.</source>
          , vol.
          <volume>6</volume>
          , pp.
          <fpage>344</fpage>
          -
          <lpage>354</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>