Incremental Mining of Frequent Serial Episodes Considering Multiple Occurrences

Thomas Guyet, Wenbin Zhang, Albert Bifet

Abstract

Traditional sequential pattern mining often relies on a "presence-based" approach, merely checking if a pattern exists within a transaction. This paper introduces IncSeq, a framework designed for the incremental mining of frequent "serial episodes"—sequences of itemsets—in data streams. By tracking multiple occurrences within a sliding window, IncSeq provides a more nuanced view of pattern significance. The algorithm leverages a tree-based structure and the principle of minimal occurrences to maintain efficiency. Evaluation on synthetic and real-world datasets shows that IncSeq achieves a 10–20x speedup over batch methods without increasing memory consumption.

Introduction

In data stream analysis, identifying frequent sequences of events (e.g., "User logs in" $\rightarrow$ "User views item" $\rightarrow$ "User purchases") is crucial for applications ranging from web usage mining to power grid monitoring. Most existing techniques focus on whether a pattern occurs at least once in a given window. However, this ignores the frequency of occurrences within that window. Tracking these multiple occurrences, known as serial episode mining, is computationally expensive if the entire window must be re-mined every time new data arrives. IncSeq addresses this by providing a robust incremental update mechanism.

The IncSeq Framework

IncSeq manages frequent patterns using a specialized tree structure. Each node in the tree represents a pattern, and it stores the intervals of its minimal occurrences. A minimal occurrence is defined such that no sub-interval contains another occurrence of the same pattern. This definition is critical because it preserves the "anti-monotonicity" property: if a pattern is infrequent, any longer pattern containing it must also be infrequent. This allows the algorithm to prune the search space effectively.

Tree-based representation of frequent serial episodes and their occurrences.

Incremental Update Process

When the sliding window moves—meaning a new itemset arrives and the oldest one departs—IncSeq updates its pattern tree through a four-step process:

  1. Deletion: Occurrences associated with the departing itemset are removed. Patterns whose frequency falls below the threshold ($\sigma$) are pruned.
  2. Merging: The new itemset is integrated into the tree, identifying potential new candidate patterns.
  3. Completion: For new candidates, the algorithm performs a targeted scan of the current window to find any existing occurrences that were previously untracked.
  4. Pruning: Candidates that fail to meet the frequency threshold after the update are removed.
The four-step incremental update process of IncSeq across sliding windows.

A key innovation is the tracking of "quasi-frequent" patterns—those just below the threshold that end with an item from the newest itemset. These are likely to become frequent soon, and keeping them in the tree avoids the cost of re-discovery.

Experimental Results

The researchers tested IncSeq against a batch-processing approach (based on PrefixSpan) using both synthetic IBM Quest data and real-world smart electrical meter data.

  • Performance: IncSeq was consistently 10 to 20 times faster than the batch approach in synthetic tests.
  • Scalability: As the support threshold decreases, the complexity of mining increases. While the batch approach often timed out under these conditions, IncSeq remained performant.
  • Memory Efficiency: Because the incremental and batch approaches eventually find the same set of frequent patterns, they result in identical tree structures. Thus, IncSeq provides its speedup with zero additional memory overhead.
  • Real-World Application: On smart meter data, IncSeq processed consumption patterns in seconds, proving its viability for high-speed monitoring tasks.

Conclusion and Future Work

IncSeq demonstrates that incremental mining of complex serial episodes is not only possible but highly efficient. Future research directions include developing condensed representations (such as closed or maximal patterns) to manage the volume of results, integrating fairness constraints to prevent bias, and extending these incremental techniques to graph-based data structures.

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