A Subsequence Interleaving Model for Sequential Pattern Mining

Jaroslav M. Fowkes, Charles A. SuttonKDD 2016 · DOI

Abstract

Recent sequential pattern mining methods have used the minimum description length (MDL) principle to define an encoding scheme which describes an algorithm for mining the most compressing patterns in a database. We present a novel subsequence interleaving model based on a probabilistic model of the sequence database, which allows us to search for the most compressing set of patterns without designing a specific encoding scheme. Our proposed algorithm is able to efficiently mine the most relevant sequential patterns and rank them using an associated measure of interestingness. The efficient inference in our model is a direct result of our use of a structural expectation-maximization framework, in which the expectation-step takes the form of a submodular optimization problem subject to a coverage constraint. We show on both synthetic and real world datasets that our model mines a set of sequential patterns with low spuriousness and redundancy, high interpretability and usefulness in real-world applications. Furthermore, we demonstrate that the quality of the patterns from our approach is comparable to, if not better than, existing state of the art sequential pattern mining algorithms.

Introduction

Sequential pattern mining is a fundamental task in data science, aimed at discovering recurring subsequences within ordered datasets such as web clickstreams, medical histories, or natural language. However, the field has long been hindered by the "pattern explosion" problem: traditional algorithms often return an overwhelming number of redundant or highly similar patterns, making human interpretation nearly impossible.

To address this, researchers have recently turned to the Minimum Description Length (MDL) principle. MDL-based methods aim to identify a small, concise set of patterns that best compress the database. While effective, these methods typically require researchers to manually design complex "coding schemes" to define how patterns represent the data. Furthermore, they often struggle with interleaving—a common real-world scenario where items from different underlying processes are mixed together (e.g., a user browsing two different product categories simultaneously in separate browser tabs).

This paper introduces the Interesting Sequence Miner (ISM), a novel probabilistic approach developed by researchers at the University of Edinburgh. ISM treats sequence generation as a process of interleaving multiple subsequences, automatically identifying the most relevant patterns without the need for manually designed encoding schemes.

The Generative Probabilistic Model

Instead of focusing on compression through manual coding, ISM utilizes a generative probabilistic model. The model assumes a sequence is generated through a three-step process:

  1. Selecting a set of "interesting" subsequences.
  2. Determining the frequency of each subsequence's appearance.
  3. Randomly interleaving these subsequences to form the final observed sequence.

By applying Shannon’s theorem, the authors demonstrate that maximizing the probability of the data under this model is mathematically equivalent to finding the optimal compression. This allows the use of powerful machine learning tools, such as Expectation-Maximization (EM), to solve what was previously a combinatorial optimization problem.

Structural Expectation-Maximization Framework

To find the most descriptive patterns, ISM employs a Structural Expectation-Maximization (EM) framework. This framework iterates through three distinct phases:

  • The E-Step (Expectation): Given a current set of patterns, the model determines how to best "cover" the database. The authors frame this as a submodular optimization problem. Because submodular functions exhibit "diminishing returns," a greedy algorithm can be used to find a solution with strong theoretical guarantees of efficiency and accuracy.
  • The M-Step (Maximization): The model updates the probabilities associated with each pattern based on how frequently they were utilized in the E-step to explain the data.
  • The Structural Step: The algorithm proposes new candidate patterns by combining existing high-performing ones. These candidates are only retained if they improve the overall likelihood (and thus the compression) of the model.

Experimental Evaluation

The authors evaluated ISM against state-of-the-art methods (such as SQS, GoKrimp, and BIDE) across a variety of synthetic and real-world datasets, including text (Alice in Wonderland), e-commerce clickstreams (Gazelle), and American Sign Language (ASL) utterances.

Key Results

  • Interleaving Recovery: In synthetic tests involving five parallel processes, ISM was the only algorithm capable of recovering 100% of the original patterns. In contrast, SQS—which does not explicitly model interleaving—recovered only 60%.
  • Reduced Redundancy: On text datasets like JMLR abstracts and Alice in Wonderland, ISM produced patterns with significantly higher "inter-sequence distance." This indicates that the mined patterns were more distinct and less repetitive than those found by competing methods.
  • Qualitative Clarity: In the Alice in Wonderland dataset, ISM successfully captured clean, meaningful phrases such as "mock turtle" and "oh dear." Other methods frequently included spurious punctuation or common "stop words" (e.g., ", and") that added little semantic value.
  • Classification Performance: When the mined patterns were used as features for SVM classifiers across six benchmark datasets, ISM performed comparably to or better than existing MDL-based methods, proving its utility in downstream machine learning tasks.

Conclusion

The Interesting Sequence Miner (ISM) represents a significant step forward in sequential pattern mining. By reframing compression as a probabilistic inference problem, it avoids the pitfalls of manual encoding while effectively handling the complexities of interleaved data. The resulting patterns are not only statistically significant but also highly interpretable and non-redundant.

Future work may involve extending the model to support hierarchical patterns (patterns composed of other patterns) or integrating the framework with non-parametric Bayesian methods to further enhance its scalability and flexibility.

Summary updated

BibTeX
@inproceedings{fowkes2016subsequence,
  author = {Jaroslav M. Fowkes and Charles A. Sutton},
  title = {{A Subsequence Interleaving Model for Sequential Pattern Mining}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2016},
  doi = {10.1145/2939672.2939787},
}
Figure