Skip to main content
QUICK REVIEW

[Paper Review] Reactive Reasoning with the Event Calculus

Alexander Artikis, Marek Sergot|arXiv (Cornell University)|May 20, 2015
Advanced Database Systems and QueriesComputer Science25 references4 citations
TL;DR

This paper introduces RTEC, a novel dialect of the Event Calculus designed for efficient, real-time reactive reasoning in complex event processing. By leveraging windowing, interval manipulation, and optimized indexing, RTEC supports scalable, declarative recognition of composite events even with delayed or revised event streams, achieving real-time performance on large-scale surveillance workloads with complex event patterns.

ABSTRACT

Systems for symbolic event recognition accept as input a stream of time-stamped events from sensors and other computational devices, and seek to identify high-level composite events, collections of events that satisfy some pattern. RTEC is an Event Calculus dialect with novel implementation and 'windowing' techniques that allow for efficient event recognition, scalable to large data streams. RTEC can deal with applications where event data arrive with a (variable) delay from, and are revised by, the underlying sources. RTEC can update already recognised events and recognise new events when data arrive with a delay or following data revision. Our evaluation shows that RTEC can support real-time event recognition and is capable of meeting the performance requirements identified in a recent survey of event processing use cases.

Motivation & Objective

  • Address the performance gap between logic-based and non-logic-based complex event processing systems by designing an efficient, declarative event recognition system.
  • Enable robust reasoning over event streams that arrive with variable delays or are revised, supporting dynamic updates to previously recognized composite events.
  • Support scalable recognition of complex composite events in real-time applications without requiring pre-filtering of simple derived events (SDEs).
  • Provide a formal, declarative semantics for composite event definitions while maintaining high performance through novel implementation techniques.
  • Enable efficient reasoning over background knowledge and atemporal constraints using the full power of logic programming within a streaming context.

Proposed method

  • Introduce a windowing mechanism that limits reasoning to a recent time window (WM), discarding outdated intervals and improving scalability.
  • Use interval manipulation predicates (e.g., holdsFor, relative_) to represent and reason about continuous fluent states over time, avoiding logical inconsistencies common in interval-based systems.
  • Leverage YAP Prolog’s built-in indexing on predicate functors to efficiently manage event and fluent assertions without requiring external filtering modules.
  • Apply a query-time re-computation strategy: at each query time, recompute all relevant composite event intervals from scratch using only SDEs in the current window, avoiding costly propagation of updates.
  • Represent event occurrences via happensAt(E, T), fluent states via holdsAt(F=V, T), and continuous intervals via holdsFor(F=V, I), enabling precise temporal reasoning.
  • Support out-of-order event streams by reprocessing the current window at each query time, ensuring correctness even when SDEs arrive late or are revised.

Experimental results

Research questions

  • RQ1Can a logic-based event recognition system achieve real-time performance comparable to non-logic-based systems while retaining formal semantics?
  • RQ2How can composite event recognition be efficiently updated when delayed or revised simple derived events (SDEs) arrive?
  • RQ3To what extent can interval-based reasoning in the Event Calculus be optimized for scalability in high-volume, real-time streams?
  • RQ4Can efficient reasoning be achieved without pre-filtering SDEs, relying instead on intelligent indexing and windowing?
  • RQ5How does the performance of a declarative, logic-programming-based system compare to industry-standard event processing systems in complex, realistic workloads?

Key findings

  • RTEC achieves real-time composite event recognition on a public space surveillance workload involving complex, multi-activity patterns such as unattended objects and group interactions.
  • The system supports dynamic updates to previously recognized composite events when delayed or revised SDEs arrive, maintaining correctness without requiring pre-processing or filtering.
  • Performance evaluation shows that RTEC can handle up to 192,000 SDEs per window (110-second window size) with average recognition times within real-time constraints.
  • Parallel execution of RTEC on multiple processors yields significant performance gains, demonstrating strong horizontal scalability.
  • The windowing and re-computation strategy at query time outperforms propagation-based update mechanisms (e.g., in the Cached Event Calculus), especially under high dependency complexity.
  • RTEC’s design eliminates the need for SDE filtering modules due to efficient indexing and selective computation, reducing system complexity and improving robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.