Towards bounding sequential patterns

Chedy Raïssi, Jian Pei

Introduction

Sequential pattern mining is a fundamental task in data discovery, aimed at identifying ordered sequences of items that occur frequently within a database. While theoretical bounds for frequent itemsets are well-established, sequences present a significantly greater challenge due to the inherent complexity of order and item repetition. This often results in a "combinatorial explosion," making it difficult to estimate computational runtimes or storage requirements for data warehouses. This paper introduces the first theoretical framework for establishing non-trivial upper bounds on the number of sequential patterns, utilizing generating functions and localized applications of the Kruskal-Katona theorem.

Methodology

The authors propose a two-pronged approach to address the sequence bounding problem:

1. Combinatorial Foundations

By treating the set of all possible sequences as a partially ordered set (poset), the researchers derive a recurrence relation and a generating function to calculate Whitney numbers. These numbers represent the total count of possible sequences of length $k$ for a given universe of $n$ distinct items. A notable finding is that for a two-item universe, these counts align with the Pell numbers sequence.

2. Estimation Techniques

Two primary bounding methods are introduced:

  • Basic Upper Bound: A global estimate utilizing binomial coefficients derived from the count of frequent patterns at shorter lengths.
  • Prefix-based Bound: A more sophisticated localized approach. While the Kruskal-Katona theorem—traditionally used for itemsets—cannot be applied globally to sequences, the authors demonstrate its validity when applied locally to "prefix equivalence classes." By grouping sequences with identical prefixes and analyzing the extensions of their terminal itemsets, they achieve a significantly tighter bound.

Experimental Evaluation

The proposed methods were evaluated using both real-world and synthetic datasets, including Amazon Product Reviews (100,000 reviews) and QUEST Synthetic Data benchmarks.

Key Results

The Prefix-based bound demonstrated remarkable accuracy, often being orders of magnitude tighter than the Basic bound.

Comparison of the Improved Prefix Bound against actual candidate sequences for the C100T4I10 dataset at 20% support.

As shown in Figure 4, the "Improved Prefix Bound" closely tracks the actual number of candidate sequences generated by algorithms like SPADE. In specific synthetic tests at length $k=3$, the Basic bound overestimated candidates at 167 billion, whereas the Prefix-based bound predicted 2,599—nearly matching the actual algorithmic output.

Performance of the bounding method across various synthetic datasets and support levels.

Furthermore, the computational overhead for these bounds is negligible, typically requiring only microseconds to milliseconds. As illustrated in Figure 6, the improved bound serves as a reliable upper limit across various datasets (C500T4I10, C20T6I5) and support levels, consistently falling below the number of candidates generated by standard mining algorithms in over 89% of cases.

Discussion and Conclusion

The primary contribution of this work is the "local loophole"—the realization that global complexity can be managed through localized combinatorial theorems. By bridging sequence mining with classical combinatorics, the authors provide a robust tool for predictive data mining. While a gap remains between the theoretical upper bound of candidates and the actual number of frequent patterns, these results offer a path toward more efficient resource allocation and algorithmic optimization in large-scale data mining tasks.

Summary updated

BibTeX
@inproceedings{raissi2011towards,
  author = {Chedy Raïssi and Jian Pei},
  title = {{Towards bounding sequential patterns}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2011},
  doi = {10.1145/2020408.2020612},
}
Figure