SEQRET: Mining Rule Sets from Event Sequences

Aleena Siji, Joscha Cüppers, Osman Mian, Jilles Vreeken

TL;DR

Seqret is a new framework for discovering succinct, non-redundant sets of "if-then" rules from long event sequences. By leveraging the Minimum Description Length (MDL) principle, it identifies the most informative conditional dependencies while successfully navigating the "pattern explosion" that typically plagues sequence mining.

What Problem Does This Paper Address?

In fields ranging from industrial logging to financial markets, data often arrives as a stream of events. While we have many tools to find frequent patterns (e.g., "A often follows B"), these methods often fail to capture conditional dependencies (e.g., "If A happens, B is likely to follow soon, even with gaps in between").

Existing approaches suffer from two main issues:

  1. Pattern Explosion: They often return thousands of redundant rules, making it impossible for a human to find the "signal" in the noise.
  2. Rigidity: Many miners require events to occur contiguously, failing to account for the "gaps" and delays common in real-world processes (like a tropical cyclone eventually leading to rainfall).

Methods

The authors introduce Seqret, which treats rule discovery as a data compression problem. Based on the Minimum Description Length (MDL) principle, the "best" set of rules is the one that allows for the most compact description of the original data.

The framework includes two main algorithmic variants:

  • Seqret-Candidates: This version takes a pre-existing set of sequential patterns and intelligently "splits" them into the most effective rule sets.
  • Seqret-Mine: A more ambitious, bottom-up approach that mines rules directly from scratch. It starts with simple "singleton" rules and iteratively extends them by looking for events that occur significantly more often than expected by chance.

Crucially, Seqret allows for gaps both between the "head" (trigger) and "tail" (consequent) of a rule, and within the patterns themselves. To keep the results manageable, it uses a greedy pruning step to discard any rule that doesn't pull its weight in terms of data compression.

Datasets

The authors evaluated Seqret using a mix of controlled environments and messy real-world data:

  • Synthetic Data: Generated with varying levels of noise (up to 100%), different alphabet sizes, and varying rule complexities to test robustness.
  • Text & Speech: The JMLR (journal abstracts), Presidential (speeches), and POS (parts-of-speech) datasets.
  • Human Activity: Ordonez and Lifelog datasets tracking daily routines.
  • Industrial/Commercial: Rolling Mill (steel production logs) and Ecommerce (purchase histories).
  • Games: Lichess, consisting of sequences of chess moves.

Key Insights and Ideas

  • Compression as a Proxy for Truth: The "aha moment" here is that redundancy is the enemy of compression. By optimizing for the shortest description, the algorithm naturally filters out "spurious" rules that occur frequently just by chance or are slight variations of a more fundamental rule.
  • Handling the "Gap" Problem: Unlike previous MDL-based sequence miners (like Cossu), Seqret explicitly models delays and gaps. This allows it to find relationships that are temporally "loose" but statistically strong.
  • Interpretable Complexity: In the Lichess dataset, Seqret didn't just find that players move pieces; it identified the "King's Side Castling" move and the specific strategic variations (like moving a Rook to e8) that typically follow it.

Key Results

  • Robustness: On synthetic data, Seqret maintained high F1 scores (recovery of ground truth) even when the data was injected with 80% noise.
  • Succinctness: On real-world datasets, while traditional frequent-pattern miners (like Poerma) returned over 1.2 million rules for the JMLR dataset, Seqret-Mine returned just 203 highly informative rules.
  • Superior Compression: Seqret consistently outperformed state-of-the-art methods (like TNS and Cossu) in "bits saved," proving it captures the underlying structure of the data more effectively.

Limitations and Future Work

  • Heuristic Nature: Because the search space for all possible rule sets is "super-exponential," Seqret relies on greedy heuristics. While effective, it doesn't guarantee finding the mathematically optimal rule set.
  • Computational Intensity: While faster than some competitors, Seqret-Mine can still take several hours on very large, complex datasets (e.g., 22 hours for the Rolling Mill data).
  • Causal Inference: The authors suggest that the next logical step is moving from "rules" to "causality." They aim to map these rule heads and tails to a formal causal framework to determine if $X$ actually causes $Y$, rather than just predicting it.

Summary updated

BibTeX
@inproceedings{siji2026seqret,
  author = {Aleena Siji and Joscha Cüppers and Osman Mian and Jilles Vreeken},
  title = {{SEQRET: Mining Rule Sets from Event Sequences}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i18.38603},
}

Loading related content...

Figure