Incremental Mining of Frequent Serial Episodes Considering Multiple Occurrences

Thomas Guyet, Wenbin Zhang, Albert Bifet

TL;DR

This paper introduces INCSEQ, an efficient incremental algorithm for mining sequential patterns in data streams, specifically addressing the challenge of multiple occurrences of patterns within itemset streams. By considering these multiple occurrences, INCSEQ offers a richer understanding of patterns and their relationships, outperforming traditional batch methods in both speed and efficiency.

What Problem Does This Paper Address?

Data streams, where information arrives continuously, are prevalent in many applications (e.g., sensor networks, financial markets). A key task in analyzing these streams is "sequential pattern mining," which aims to discover frequently occurring ordered sequences of items. Traditional methods often focus on whether a pattern exists within a transaction or sequence. However, this paper highlights a limitation: these methods ignore how many times a pattern appears within a single transaction or sequence. This is particularly relevant when dealing with streams of itemsets (sets of items that occur together), where a single itemset can contain multiple occurrences of a sub-pattern. The authors argue that considering these multiple occurrences provides deeper insights into the underlying data and relationships, which are missed by presence-based methods. Furthermore, re-mining patterns from scratch for every new data point in a stream is computationally prohibitive. This paper tackles the problem of efficiently and incrementally mining frequent sequential patterns from itemset streams while accounting for multiple occurrences within a sliding window.

Methods

The core contribution is the INCSEQ algorithm, an incremental approach to sequential pattern mining. It builds upon the PrefixSpan algorithm's tree structure for representing sequential patterns, called a Prefix Sequential Pattern (PSP) tree. INCSEQ's novelty lies in its incremental update mechanism for a sliding window:

  • Incremental Update: Instead of re-mining from scratch, INCSEQ updates the existing PSP tree when a new itemset arrives and an old one expires from the window.
  • Deletion: Occurrences related to the oldest itemset in the window are removed. Patterns that fall below the support threshold are pruned.
  • Addition: This is the more complex step. It involves:
  • Merging: The new itemset is "merged" with the existing tree. This process generates new candidate patterns by extending existing frequent patterns with sub-itemsets of the new itemset. This is achieved through a recursive merging procedure (Algorithm 2, RECMERGE).
  • Completion: For newly introduced patterns (which might have been infrequent before but are now frequent), their complete lists of occurrences within the current window are reconstructed. This is done efficiently by leveraging the occurrences of their parent patterns.
  • Pruning: Finally, patterns that are no longer frequent after the updates are removed from the tree.

The algorithm's efficiency comes from avoiding redundant computations and cleverly updating the pattern tree.

Datasets

The authors evaluated INCSEQ on:

  • Synthetic Data: Generated using a method similar to the IBM quest data generator, with item presence at 3% probability per itemset. This dataset allowed for controlled experimentation with parameters like window size and support threshold.
  • Smart Electrical Meter Data: Real-world data representing power consumption from smart meters. This dataset was used to demonstrate the practical utility and performance on data with more complex characteristics, such as varying consumption patterns and significant patterns. The data was preprocessed using the SAX algorithm for discretization.

Key Insights and Ideas

  • Multiple Occurrences Matter: The paper strongly advocates for the importance of counting multiple occurrences of a pattern within an itemset, arguing it reveals deeper relationships than simple presence detection.
  • Incremental Efficiency: The core insight is that by intelligently updating an existing pattern tree rather than rebuilding it, significant computational savings can be achieved, especially in dynamic stream environments.
  • PSP Tree Adaptability: The Prefix Sequential Pattern (PSP) tree structure, originally designed for static data, proves to be a suitable and adaptable framework for incremental mining in streams.
  • Pruning is Crucial: Efficiently pruning infrequent patterns at each step is vital for keeping the pattern tree manageable and the mining process fast.

Key Results

  • Speedup: INCSEQ consistently outperforms a "Batch" approach (which re-mines from scratch) by an order of magnitude. For example, figures show INCSEQ being 10 to 20 times faster than Batch as support thresholds and window sizes increase.
  • Efficiency: The paper demonstrates INCSEQ's superior efficiency in terms of processing time on both synthetic and real-world datasets.
  • Memory Usage: INCSEQ's memory usage is comparable to the Batch approach, as both store similar tree structures. This means the speedup comes at no significant extra memory cost.
  • Completeness: The algorithm is proven to be complete, meaning it correctly extracts all frequent sequential patterns for each sliding window.

Limitations and Future Work

  • Condensed Representations: The authors suggest future work could extend INCSEQ to consider condensed representations of patterns, such as maximum or closed patterns, to further optimize storage and mining.
  • Fairness: Integrating INCSEQ with previous work on fair pattern mining is another avenue for future research.
  • Graph Data: Extending the approach to handle graph data, which presents unique challenges, is also proposed.
  • IID Data Assumption: The current work might implicitly assume independent and identically distributed (IID) data, and exploring its behavior with non-IID data distributions is a potential future direction.

Summary updated

BibTeX
@inproceedings{guyet2022incremental,
  author = {Thomas Guyet and Wenbin Zhang and Albert Bifet},
  title = {{Incremental Mining of Frequent Serial Episodes Considering Multiple Occurrences}},
  booktitle = {ICCS},
  year = {2022},
  doi = {10.1007/978-3-031-08751-6\_33},
}
Figure