Introduction
Predicting the occurrence of significant events—ranging from system failures and heartbeats to natural disasters like earthquakes—is a fundamental task in data mining. While many existing approaches focus on binary classification (predicting whether an event will occur within a broad window), they often fall short in two critical areas: precision and interpretability. Specifically, most methods cannot provide exact timing for when an event will happen after a pattern is observed, and they frequently produce a massive, redundant set of patterns that are difficult for human experts to analyze.
To address these challenges, we introduce OMEN, a framework designed to discover a minimal, non-redundant set of sequential patterns that offer reliable prediction delays. By employing the Minimum Description Length (MDL) principle, OMEN identifies patterns that most effectively compress the target event sequence, ensuring that the discovered rules are both informative and concise.
Problem Formulation: Minimal Event Prediction
The core objective is the "Minimal Event Prediction Problem." Given an observation sequence $X$ and a target event sequence $Y$, we seek the smallest set of interpretable sequential patterns (events separated by gaps) that reliably explain the timing of events in $Y$. A "reliable" pattern is defined by its timing precision; a pattern followed by an event at a consistent delay (e.g., exactly 5 minutes later in 90% of cases) is prioritized over one with a high-variance delay distribution.
The OMEN Framework
OMEN leverages the MDL principle to balance model complexity against predictive accuracy. The "best" model is the one that minimizes the total description length: the cost of describing the model itself plus the cost of describing the data given the model. This approach naturally penalizes overly complex models and rewards those that accurately predict the timing of events.
Algorithm Design
The framework consists of two primary algorithms:
- OMEN: A greedy, bottom-up heuristic. It begins with simple, single-event patterns and iteratively refines them by adding events to the prefix or suffix. To maintain efficiency, it utilizes an optimistic estimator to prune the search space, only exploring pattern extensions that have the theoretical potential to improve the current MDL score.
- fOMEN: A faster approximation designed for large-scale datasets. It employs more aggressive pruning by focusing on patterns that share a significant number of predicted events, drastically reducing computation time with minimal impact on accuracy.
Alignment and Delay Distributions
A critical component of OMEN is how pattern occurrences are mapped to target events, a process termed "alignment." This is non-trivial because patterns can overlap or occur frequently without a corresponding event.
- AlignNext: Maps each pattern occurrence to the immediately following target event.
- AlignFar: A more robust strategy for long-range or overlapping predictions. It uses a quadratic distance minimizer to determine a global "mean delay" that best fits all occurrences, effectively avoiding the local minima that can trap simpler greedy alignment methods.
The resulting model provides a discrete delay distribution for each pattern, including a "skip" token to account for false positives where a pattern occurs but no target event follows.
Experimental Evaluation
We evaluated OMEN against state-of-the-art pattern miners like SQS and SCIS across synthetic and real-world datasets.
Synthetic Robustness
On synthetic data with planted patterns, OMEN demonstrated remarkable resilience to noise. It maintained near-perfect precision and high recall even when 60% of target events were removed (destructive noise) or when the sequence was saturated with random "distractor" events (additive noise). In contrast, existing methods either failed to identify the underlying patterns or returned thousands of redundant variations.
Real-World Applications
- ECG Analysis: In heartbeat interval data from exercise stress tests, OMEN discovered bimodal delay distributions. These captured the physiological shift in heart rates between high-intensity and low-intensity exercise phases.
- Lifelogging: Analyzing a year of daily activity logs, the framework extracted intuitive and actionable sequences, such as
Cook -> Dinner -> Clean the Kitchen, with precise timing between activities. - Hydrology: Using Saar River data, OMEN successfully predicted river level fluctuations based on precipitation patterns, identifying the characteristic lag between rainfall and rising water levels.
Conclusion and Future Work
OMEN provides a robust solution for discovering predictive sequential patterns with precise timing. By utilizing MDL, it avoids the redundancy common in traditional pattern mining while maintaining high predictive accuracy in noisy environments.
Future research will focus on extending OMEN to handle multivariate event streams and incorporating domain-specific parametric distributions (e.g., Gaussian or Poisson) to improve performance on sparse datasets. Additionally, while OMEN identifies highly predictive patterns, further theoretical work is needed to bridge the gap between predictive correlation and true causal inference.
Summary updated