Elsevier

Information Systems

Volume 52, August–September 2015, Pages 34-54
Information Systems

CEP-traj: An event-based solution to process trajectory data

https://doi.org/10.1016/j.is.2015.03.005Get rights and content

Highlights

  • A novel palette of datasets for CEP-traj and VAbDS evaluation.

  • Evaluation of the middleware with network-constrained trajectories.

  • Comparative of CEP-traj and a well-established online trajectory-processing framework.

  • Evaluation of VAbDS by using a public real-world dataset.

Abstract

In this day and age, there exists an increasing need for systems and architectures able to process spatio-temporal data in a timely way. As a result, this paper presents CEP-traj, a novel middleware to ease the development of real-time trajectory-based services based on the Complex Event Processing (CEP) paradigm. By means of an event-based approach, the present middleware is able to detect a set of generic patterns along with meaningful changes of an entity׳s movement. In order to prove its suitability and feasibility, a vessel abnormal-behaviour detection system has been developed on the basis of the middleware׳s features. Finally, both synthetic and real datasets have been used to test the accuracy and performance of the middleware and the detection system implemented on top of the Esper engine.

Introduction

The increasing pervasiveness of location-acquisition technologies has enabled the collection of a huge amount of trajectories for a varied range of moving entities. This has led to an increasing interest in the development of trajectory-based services in quite different fields. For that reason, many off-line solutions to analyse trajectory data have arisen for the last years [46]. Nevertheless, there exists a pressing need for detecting new and relevant trajectory knowledge in nearly real time so as to achieve fast reaction times. This has motivated the recent development of on-line approaches to perform different trajectory processing such as segmentation [18], [42] or annotation [42].

Regarding the detection of trajectory-based patterns, most of the current on-line solutions focus on moving groups by means of clustering-based approaches [38], [40], [35]. However, other finer-grained patterns related to the interactions or relationships that may occur between pairs of moving objects are a topic that requires further attention. These motion-based relationships may be of great importance in several fields like behavioural ecology or threat detection. As a matter of fact, a wildlife monitoring system could be interested in detecting whether some type of predator is actually moving towards the area where a protected animal is currently resting. Also, a vessel traffic service would be interested in perceiving as soon as possible whether a vessel is approaching to another as this might be a sign of an illegal rendezvous. In these two cases, the situation of interest only involves two particular entities (the predator and the protected animal in the first example, and the two vessels in the second one) rather than a large group of moving entities.

In order to detect patterns in time-constrained domains, the Complex Event Processing (CEP) model has emerged as a suitable solution [13]. CEP is a novel paradigm that focuses on timely processing unbounded flows of information items, so-called events, from a great number of distributed sources to detect certain activities of interest following a push-style communication.

Taking into account that a moving entity׳s trajectory is potentially infinite, dynamically changing and must be processed in almost real time, the present work rests on the hypothesis that CEP is a suitable approach to process and analyse the spatio-temporal data of a moving entity. As a result, CEP-traj, a general-purpose CEP-based middleware to timely analyse trajectory data, has been developed.

CEP-traj basically processes raw traces of timestamped locations defining the trajectories of a set of target moving objects or entities (people, animals, vessels and the like) as soon as it receives them. Next, on the basis of these traces, it infers a set of meaningful situations in the form of derived events that are asynchronously delivered to a back-end service. In particular, CEP-traj processes the incoming locations by means of a set of chained steps, data cleaning, data segmentation & compression and pattern detection. Each of these steps has been developed as lightweight mechanisms that only require a single scan of the incoming data. This has been done by means of abstract operators well-established in the CEP core. This allows to eventually deploy the middleware on top of a varied range of commercial CEP commodities.

Concerning the pattern detection step, the proposed middleware is capable of timely discovering a set of motion-based generic patterns. Specifically, CEP-traj distinguishes two types of patterns, (1) the patterns that might exist between pairs of entities such as converge or diverge, and (2) the ones between a moving entity and a stationary geographic area. The detection of these patterns is a powerful tool in order to develop certain types of services as it has been mentioned above.

Furthermore, in order to prove the suitability and feasibility of the proposal, the present paper also puts forward a Vessel Abnormal-behaviour Detection System (VAbDS) which has been entirely developed on the basis of CEP-traj. The goal of this system is to detect several behavioural patterns among the vessels, which give insight into certain illegal activities, on the basis of the generic patterns provided by CEP-traj.

To sum up, the salient contribution of the present work is to introduce a novel event-based approach for on-line trajectory analysis. Despite the fact that other online middlewares also comprising trajectory cleaning, segmentation and compression phases have been already proposed, they centre on the timely annotation of the incoming trajectories where no pattern discovery is considered [42]. The present work also differs from previous online pattern-discovery proposals [38], [35], [24] as it focuses on a varied range of motion-based patterns involving pairs of moving entities instead of group-based patterns. This has implied developing incremental mechanisms to clean, partition and compress the incoming trajectories in near real time.

The remainder of the paper is structured as follows, an overview of the state of the art of the trajectory analysis and the CEP domains is put forward in Section 2. A detailed explanation of the CEP-traj middleware following an event-processing approach is stated in Section 3. Section 4 is devoted to describing the VAbDS. Then, Section 5 discusses the results of the different experiments. Finally, the main conclusions and the future work are summed up in Section 6.

Section snippets

Trajectory data processing

Generally speaking, the works dealing with trajectory data can be classified into three main domains, namely management, enrichment and analysis.

Trajectory data management focuses on efficiently managing and modelling the trajectory data [20]. In that sense, this domain tends to deal with trajectory data in a different level of abstraction than our work. The trajectory enrichment field intends to extract the meaning of the raw location data so as to come up with semantic trajectories [31]. The

The CEP-traj middleware

Fig. 2 depicts a schematic representation of CEP-traj. As we can see, CEP-traj acts as an intermediary between the moving entities equipped with location feeds sending timestamped locations (which in this case are the event producers) and a back-end service (which can be viewed as an event consumer).

CEP-traj is compounded of two common CEP constructs, Event Processing Agents (EPAs) and event channels. An EPA is a software module that consumes certain types of events (raw or derived) and creates

The vessel abnormal-behaviour detection system (VAbDS)

In order to test the suitability and feasibility of the proposed middleware, an abnormal-behaviour detection service has been completely developed, on the basis of CEP-traj, to run as a decision-support system in a marine control centre.

Basically, the system takes as input the locations of the vessels sailing in the region controlled by the centre coming from a varied range of sources like the Automatic Identification System (AIS) or coastal radars. The main goal of the system is to detect

Experimental results

For evaluation purposes, CEP-traj and the VAbDS were implemented on top of Esper [12], a well-established open-source CEP framework. Esper defines its own SQL-based Event Processing Language to specify the processing rules of each EPA by means of a collection of resources such as sliding windows or aggregation functions. Appendix A CEP-traj׳s continuous queries, Appendix B VAbDS׳s continuous queries comprise some of these rules implementing CEP-traj׳s and the VAbDS׳s logic.

Next, we evaluated

Conclusions and future work

The present work puts forward CEP-traj, a novel middleware that intends to be an instrumental tool so as to analyse trajectory data in nearly real time. The proposed solution processes the timestamped locations emitted by a set of moving entities to give insight into certain occurrences of interest related to their movements. In particular, the middleware focuses on detecting a palette of generic patterns that allow to perceive binary relationships, like convergence, divergence or encountering,

Acknowledgements

Authors would like to thank Zhixian Yan for his kind help to provide an evaluation of the SeTraStream framework. The research leading to these results has received funding from the European Union Seventh Framework Programme (FP7/2007-2013) under Grant agreement no. 241598 (SeaBILLA project) and from the Fundación Séneca Programme for Helping Excellent Research Groups 04552/GERM/0.

References (46)

  • J. Alvarez-Garcia et al.

    Trip destination prediction based on past GPS log using a hidden Markov model

    Expert Syst. Appl.

    (2010)
  • L. Chen et al.

    A personal route prediction system based on trajectory data mining

    Inf. Sci.

    (2011)
  • N. van de Weghe et al.

    Representing moving objects in computer-based expert systemsthe overtake event example

    Expert Syst. Appl.

    (2005)
  • L.O. Alvares, G. Oliveira, C.A. Heuser, V. Bogorny, A framework for trajectory data preprocessing for data mining, in:...
  • F. Barouni, B. Moulin, An extended complex event processing engine to qualitatively determine spatiotemporal patterns,...
  • S.D. Bay, M. Schwabacher, Mining distance-based outliers in near linear time with randomization and a simple pruning...
  • F. Biljecki et al.

    Transportation mode-based segmentation and classification of movement trajectories

    Int. J. Geogr. Inf. Sci.

    (2013)
  • T. Brinkhoff

    A framework for generating network-based moving objects

    Geoinformatica

    (2002)
  • M. Buchin et al.

    Segmenting trajectoriesa framework and algorithms using spatiotemporal criteria

    J. Spat. Inf. Sci.

    (2011)
  • M. De Berg, M. Van Kreveld, M. Overmars, O. Schwarzkopf, Computational Geometry, Springer, New York,...
  • S. Dodge et al.

    Towards a taxonomy of movement patterns

    Inf. Vis.

    (2008)
  • J. Dunkel, R. Bruns, S. Stipkovic, Event-based smartphone sensor processing for ambient assisted living, in: 2013 IEEE...
  • Espertech, Esper reference documentation, version 4.9. URL: 〈http://esper.codehaus.org〉,...
  • O. Etzion et al.

    Event Processing in Action

    (2010)
  • GCEP, Geospatial Complex Event Processing Engine. URL: 〈https://launchpad.net/gcep〉,...
  • B. Gottfried, Reasoning about intervals in two dimensions, in: 2004 IEEE International Conference on Systems, Man and...
  • B. Gottfried

    Interpreting motion events of pairs of moving objects

    GeoInformatica

    (2011)
  • J. Gudmundsson et al.

    Efficient detection of patterns in 2D trajectories of moving points

    GeoInformatica

    (2007)
  • T. Guo, Z. Yan, K. Aberer, An adaptive approach for online segmentation of multi-dimensional mobile data, in:...
  • B. Idiri, A. Napoli, The automatic identification system of maritime accident risk using rule-based reasoning, in: 2012...
  • S. Ilarri et al.

    Location-dependent query processingwhere we are and where we are heading

    ACM Comput. Surv.

    (2010)
  • M.B. Kjaergaard, M. Wirz, D. Roggen, G. Tröster, Detecting pedestrian flocks by fusion of multi-modal sensors in mobile...
  • K. Kowalska, L. Peel, Maritime anomaly detection using Gaussian process active learning, in: 2012 15th International...
  • Cited by (16)

    • ModeL4CEP: Graphical domain-specific modeling languages for CEP domains and event patterns

      2015, Expert Systems with Applications
      Citation Excerpt :

      Therefore, this proposal has the same aforementioned limitations found in the previous work, such as the difficulty for non-technical users to define event patterns by using a textual notation, except for event pattern actions that are supported in this new version. Terroso-Sáenz et al. (2015) have also defined an event model whose root element is the RootEvent. This is specialized by LocationEvent, MovementEvent, RelationshipEvent and MovementChangeEvent.

    • TraPM: A Framework for Online Pattern Matching Over Trajectory Streams

      2023, Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
    View all citing articles on Scopus
    View full text