Discovering Sequential Patterns with Predictable Inter-event Delays

Joscha Cüppers, Paul Krieger, Jilles Vreeken

Introduction

Traditional sequential pattern mining focuses on identifying sequences of events that frequently occur together. However, real-world temporal data often contains significant and variable gaps between related events. Existing approaches typically either penalize these gaps—assuming proximity implies relationship—or ignore timing altogether, leading to spurious detections. This paper introduces HOPPER, an algorithm that shifts the focus from proximity to predictability. By explicitly modeling the timing between events using probability distributions, HOPPER can identify long-range dependencies that other methods overlook.

The Predictable Sequential Delay Problem

The core challenge in sequential mining is distinguishing meaningful patterns from coincidental occurrences. Gap-penalizing methods struggle with long-range patterns (e.g., seasonal events) because the large time interval is treated as high-cost noise. Conversely, non-penalizing methods lack the discriminative power to filter out random sequences.

HOPPER addresses this by formalizing the Predictable Sequential Delay Problem. It posits that a long delay is not "noise" if it follows a predictable distribution. For instance, if Event B consistently occurs 50 days after Event A, this regularity is a strong signal of a relationship, regardless of the absolute distance.

Conceptual overview of HOPPER: Data is represented as a sequence of events (S). Cover 1 shows a baseline singleton model, while Cover 2 shows how HOPPER identifies patterns (p, q) with specific inter-event delay distributions.

Methodology: MDL and Delay Distributions

HOPPER utilizes the Minimum Description Length (MDL) principle to identify the most informative patterns. Under MDL, the best model is the one that provides the most succinct compression of the data. A pattern is considered "good" if knowing its structure and its associated delay distribution allows for a more compact description of the original sequence.

The algorithm explicitly models inter-event delays using several discrete probability distributions: Uniform, Gaussian, Geometric, and Poisson. This allows HOPPER to automatically fit the best distribution—whether it's a tight Gaussian peak for fixed intervals or a broader Uniform range for more variable gaps—to each specific pattern.

To navigate the NP-hard search space, HOPPER employs a greedy, bottom-up heuristic. It starts with individual events and iteratively merges them into longer patterns, using optimistic estimators to prune the search space and specialized alignment algorithms (ALIGNNEXT and ALIGNFAR) to locate pattern instances efficiently.

Experimental Results

The researchers evaluated HOPPER against state-of-the-art methods like SQS, SKOPUS, ISM, and PPM using both synthetic and real-world datasets.

Robustness to Temporal Gaps

In synthetic experiments, the performance of traditional methods plummeted as the mean delay between events increased. In contrast, HOPPER maintained a near-perfect F1 score even when delays spanned hundreds of time steps. This demonstrates its unique ability to overcome the "short-gap bias" prevalent in existing literature.

Performance comparison (F1 score) on synthetic data. HOPPER remains robust as the mean inter-event delay increases, while competing methods fail beyond short intervals.

Real-World Applications

  • Holidays: HOPPER successfully identified a complex pattern spanning an entire year, correctly distinguishing between fixed-date holidays and lunar-dependent ones (like Easter).
  • Radio Logs: The algorithm discovered the underlying structure of broadcasts, identifying sequences of jingles, advertisements, and news segments, along with the geometric distribution of ad-break lengths.
  • Software Engineering: In the Samba commit history, it found recurring patterns of file modifications that occur across long time scales.

Conclusion and Future Work

HOPPER represents a significant advancement in sequential pattern mining by treating inter-event delays as a source of information rather than noise. While currently limited by a Markovian assumption—where delays depend only on the immediate predecessor—future work aims to incorporate long-memory dependencies and rule-based logic. Despite its heuristic nature, HOPPER provides a robust and interpretable framework for discovering the hidden temporal rhythms in complex datasets.

Summary updated

BibTeX
@inproceedings{cuppers2024discovering,
  author = {Joscha Cüppers and Paul Krieger and Jilles Vreeken},
  title = {{Discovering Sequential Patterns with Predictable Inter-event Delays}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28676},
}
Figure