Streaming Algorithms for Pattern Discovery over Dynamically Changing Event Sequences

Debprakash Patnaik, Naren Ramakrishnan, Srivatsan Laxman, Badrish ChandramouliarXiv 2012

Abstract

Discovering frequent patterns in high-speed event streams is a critical challenge in modern data mining, complicated by memory constraints and evolving data distributions (concept drift). This paper introduces a novel streaming algorithm for identifying top-$k$ frequent temporal episodes within a sliding window. By leveraging the concept of $(v, k)$-persistence—tracking patterns that appear in the top-$k$ of at least $v$ individual batches—the proposed method avoids the computational pitfalls of traditional multi-pass algorithms. Our approach incorporates border set adaptation and dynamic rate-of-change estimation to maintain high accuracy. Evaluations on synthetic and real-world neuroscience datasets demonstrate an order-of-magnitude speedup over baseline methods while preserving high precision and recall.

Introduction

In fields such as telecommunications, cybersecurity, and neuroscience, data is generated as an unbounded stream of events at extremely high rates. Traditional pattern mining techniques, like the Apriori algorithm, are designed for static datasets and require multiple passes over the data. Such approaches are fundamentally incompatible with streaming environments where data cannot be stored in its entirety and must be processed in a single pass.

Furthermore, real-world streams often exhibit "concept drift," where the underlying statistical properties and frequent patterns shift over time. To capture these dynamics, researchers often employ a sliding window model, focusing only on the most recent portion of the stream.

The "Below the Radar" Problem

A significant challenge in streaming pattern discovery is identifying patterns that are globally frequent across a window but do not dominate any single constituent batch. This is known as the "below the radar" problem. If an algorithm only tracks the top-ranked patterns in each local batch, it may fail to identify patterns that maintain a consistent, moderate frequency across many batches, ultimately becoming globally significant.

Example of how local top-k patterns might miss globally frequent ones.

As illustrated in the figure above, a pattern like 'ABCD' might never be the most frequent in any single batch ($B_1$ through $B_4$), yet its cumulative frequency across the window makes it the global leader.

Methodology

The proposed framework utilizes a batch-based sliding window model. The stream is partitioned into discrete batches ($B_s$), and the analysis is performed over a window ($W_s$) consisting of the $m$ most recent batches.

The sliding window model where the window $W_s$ moves forward as new batches $B_s$ arrive.

$(v, k)$-Persistence

To efficiently manage the candidate space, the authors introduce $(v, k)$-persistence. A pattern is considered a candidate if it appears in the top-$k$ list of at least $v$ batches within the current window. This heuristic allows the algorithm to focus on stable, frequent patterns while ignoring transient noise, significantly reducing the number of candidates processed.

Border Set and Dynamic Estimation

To avoid the quadratic growth associated with full candidate generation, the algorithm maintains a "border set"—patterns that are currently infrequent but are immediate extensions of frequent ones. When a new batch arrives, the algorithm updates frequencies for known frequent patterns and the border set. Additionally, the algorithm dynamically estimates the Maximum Rate of Change ($Δ$) of pattern frequencies, typically using the 75th percentile of observed changes, to adapt to varying stream volatility.

Experimental Evaluation

The algorithm was tested against two primary data sources:

  1. Synthetic Datasets: Created via inhomogeneous Poisson processes to simulate complex dynamic networks. These allowed for controlled testing of alphabet sizes (up to 5000 event types) and noise levels.
  2. Neuroscience Data: Spiking activity from 64-electrode arrays in cortical cultures, representing a high-volume, noisy real-world application.

Results and Discussion

The $(v, k)$-persistence approach yielded an order-of-magnitude improvement in both time and space complexity compared to brute-force sliding window baselines. Despite being an approximation, the method maintained high accuracy, often exceeding 95% precision and recall in tracking shifting patterns. The use of the border set and persistence thresholds proved robust even as the number of unique event types increased, a common failure point for traditional itemset mining.

Conclusion

This research provides a scalable solution for real-time pattern discovery in dynamic event streams. By focusing on persistent patterns and utilizing incremental updates via border sets, the proposed algorithms offer a practical balance between computational efficiency and mining accuracy. Future work includes automating parameter selection and extending the framework to more complex pattern classes like partial orders.

Summary updated

BibTeX
@misc{patnaik2012streaming,
  author = {Debprakash Patnaik and Naren Ramakrishnan and Srivatsan Laxman and Badrish Chandramouli},
  title = {{Streaming Algorithms for Pattern Discovery over Dynamically Changing Event Sequences}},
  year = {2012},
  eprint = {1205.4477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1205.4477},
}
Figure