Abstract 1 Introduction 2 Deciding the generalised alibi query via the spatial projection 3 Deciding the generalised alibi query via the temporal projection References

Solutions to the Generalised Alibi Query in Moving Object Databases

Arthur Jansen111Corresponding author ORCID Hasselt University, Databases and Theoretical Computer Science Group and
Data Science Institute (DSI), Agoralaan, Building D, 3590 Diepenbeek, Belgium
Bart Kuijpers ORCID Hasselt University, Databases and Theoretical Computer Science Group and
Data Science Institute (DSI), Agoralaan, Building D, 3590 Diepenbeek, Belgium
Abstract

Space-time prisms provide a framework to model the uncertainty on the space-time points that a moving object may have visited between measured space-time locations, provided that a bound on the speed of the moving object is given. In this model, the alibi query asks whether two moving objects, given by their respective measured space-time locations and speed bound, may have met. An analytical solution to this problem was first given by Othman [5]. In this paper, we address the generalised alibi query that asks the same question for an arbitrary number 𝗇2 of moving objects. We provide several solutions (mainly via the spatial and temporal projection) to this query with varying time complexities. These algorithmic solutions rely on techniques from convex and semi-algebraic geometry. We also address variants of the generalised alibi query where the question is asked for a given spatial location or a given moment in time.

Keywords and phrases:
Convex geometry, Semi-algebraic geometry, Space-time prism, Geographic information systems, Quantifier elimination
Category:
Short Paper
Funding:
Arthur Jansen: Bijzonder Onderzoeksfonds (BOF22OWB06) from UHasselt
Copyright and License:
[Uncaptioned image] © Arthur Jansen and Bart Kuijpers; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Information systems Spatial-temporal systems
; Information systems Query languages
Related Version:
The paper is an extended abstract of [4].
Editors:
Thierry Vidal and Przemysław Andrzej Wałęga

1 Introduction

In Moving Object Databases (MODs), various data models and query languages have been proposed to deal with moving objects whose position is recorded by location-aware devices (such as GPS), at not always regular moments in time [2]. The movement data of an object is therefore discrete in nature and can be seen as a sequence (x1,y1,t1),,(xn,yn,tn) of measured space-time locations, which we call a trajectory sample. Between measured space-time points, the trajectory of a moving object is unspecified and unknown and several models have been proposed to deal with this uncertainty. Based on the assumption that moving objects have some physically determined or law imposed speed bounds, the space-time prism model delimits the region in space-time which a moving object may have visited between two sampled points. This model, originating from the field of “time geography” in the 1970s, has found its way into MOD research. The uncertainty on the movement of an object associated with a trajectory sample, is then modeled by a chain of space-time prisms. An illustration of two chains is shown in Figure 1.

Refer to caption

Figure 1: An illustration of two intersecting chains of space-time prisms (one chain in yellow and the other in blue).

One query of particular interest in this context is the alibi query, which asks whether two moving objects may have met, given their trajectory samples and speed bounds. The difficulty of answering this query can be reduced to deciding whether two space-time prisms intersect. Using a geometric argument, a solution to this problem was given by Othman et al. [5]. We address the generalised alibi query, which asks the same question, but for any (finite) number of moving objects. Because a space-time prism can be described by a system of polynomial inequalities, the generalised alibi query can be expressed as an existential first-order logic formula over the ordered field of real numbers. While there are algorithms for deciding the truth of such sentences [1], existing implementations cannot solve the query in practice (that is, within an acceptable amount of time). We provide several solutions (mainly via the spatial and temporal projection) to this query with varying time complexities. These algorithmic solutions rely on techniques from convex and semi-algebraic geometry, because space-time prisms are both convex and semi-algebraic sets. We also address variants of the generalised alibi query where the question is asked for a given spatial location or a given moment in time. Additionally, some of our methods are capable of producing a sample point, which is a point in the intersection of the 𝗇 space-time prisms, if it exists. Finally, we give a quantifier-free description of the spatial projection of the intersection of 𝗇 space-time prisms, which is exactly the region in space where the objects may have met (between two measured points), and allows answering the spatial variant of the generalised alibi query in linear time.

Our main contributions are summarised in Tables 1 and 2, which give an overview of the proposed methods or problems, their time complexity and their ability to produce sample points. For clarity, the complexity results in this table refer to deciding the emptiness of the intersection of 𝗇 prisms. When the 𝗇 moving objects are given by chains of prisms then the time complexity results in the table need to be multiplied by L𝗇+2, where L is the total number of prisms in the 𝗇 chains.

Table 1: Time complexity (in terms of the number of prisms 𝗇) and sample points of the proposed methods for the generalised alibi query.
method time complexity sample points
via spatial projection O(𝗇5) yes
via spatial projection with Helly O(𝗇4) no
via temporal projection O(𝗇3) yes
Table 2: Time complexity (in terms of the number of prisms 𝗇) and sample points of the variants for the generalised alibi query.
variants of generalised alibi query time complexity sample points
at a fixed location O(𝗇) yes
at a fixed moment O(𝗇3) yes

We give a brief summary of the workings of each of the proposed methods in the next sections.

2 Deciding the generalised alibi query via the spatial projection

The essence of this method is to test whether the spatial projection of the intersection of the 𝗇 space-time prisms is empty. Because this projection is precisely the region in space where the 𝗇 objects could theoretically have met, we call it the meeting region. We show, using Fourier-Motzkin elimination, that the meeting region can be characterised as the intersection of regions enclosed by curves called “Cartesian ovals”, which are generalisations of ellipses. An illustration of the meeting period as the intersection of such regions is shown in part (b) of Figure 2. This characterisation has two uses. On one hand, it provides a linear-time solution to the generalised alibi query at a fixed location, which includes the production of sample points. On the other hand, we can use it to test the emptiness of the meeting region, providing an answer to the generalised alibi query. To do this, we make use of the algebraic nature of Cartesian ovals, which allows us to compute a (finite) set of “candidate points”, with the property that the meeting region is not empty if and only if it contains one of those candidate points. This method requires O(𝗇5) time and also produces sample points.

Refer to caption

(a)

Refer to caption

(b)

(c)

Figure 2: An illustration of (a) two intersecting prisms; (b) regions enclosed by Cartesian ovals whose intersection (in black) is the meeting region of the two prisms; and (c) the meeting period (in red) of the two prisms, shown as the intersection of four projections of intersections of three cones.

Due to Helly’s theorem [3], which gives an equivalent condition for the non-emptiness of the intersection of convex sets, we can also solve the generalised alibi query by applying the above method to every combination of 4 of the 𝗇 space-time prisms. The result of this is a method that only requires O(𝗇4) time. However, the disadvantage of that method is that it cannot produce sample points.

3 Deciding the generalised alibi query via the temporal projection

The method described here works by testing the emptiness of the temporal projection of the intersection of the space-time prisms. This temporal projection is called the meeting period, as it is precisely the period of time during which the 𝗇 moving objects could have met. Because space-time prisms are closed and convex sets, the meeting period is a closed interval. In fact, not only can we test its emptiness, we can explicitly compute the meeting period, that is, compute its minimum and maximum. To do this, we give a new characterisation of the meeting period, based on Helly’s theorem. This characterisation tells us that the computation of the meeting period can be reduced to the computation of the temporal projection of the intersection of three cones. An illustration of this characterisation of the meeting period is shown in part (c) of Figure 2. We have to compute such projection for every combination of three out of a set of 2𝗇 cones. Because computing the temporal projection of three cones obviously takes constant time, the meeting period can be computed in O(𝗇3) time.

To compute the temporal projection of the intersection of three cones, we show that the minimum and maximum of such interval are contained in a finite set of “candidate moments”. Then, we only have to test which of the candidate moments are contained in the temporal projection, which is straightforward.

Finally we use a general property about the intersection of convex sets to show that, given a moment in the meeting period, we can find a sample point in the intersection of the space-time prisms, also in O(𝗇3) time.

References

  • [1] S. Basu, R. Pollack, and M.-F. Roy. Algorithms in real algebraic geometry. Algorithms and Computation in Mathematics 10. Springer, Berlin, 2003.
  • [2] R. Güting and M. Schneider. Moving Object Databases. Morgan Kaufmann, 2005.
  • [3] E. Helly. Über Mengen konvexer Körper mit gemeinschaftlichen Punkten. Jber. Deutsch. Math. Vereinig., 32:175–176, 1923.
  • [4] A. Jansen and B. Kuijpers. Geometric and algorithmic solutions to the generalised alibi query. Comput. Geom., 127:102159, 2025. doi:10.1016/J.COMGEO.2024.102159.
  • [5] Bart Kuijpers, Rafael Grimson, and Walied Othman. An analytic solution to the alibi query in the space-time prisms model for moving object data. International Journal of Geographical Information Science, 25(2):293–322, February 2011. doi:10.1080/13658810902967397.