Introduction
Sequential pattern discovery is a cornerstone of data mining, aimed at identifying "episodes"—sets of events that occur in proximity within a data stream. Traditionally, research has focused on two poles: serial episodes, where events follow a strict linear order, and parallel episodes, where order is irrelevant. However, real-world data—ranging from sensor logs to railway schedules—frequently contains simultaneous events. This paper introduces a novel framework for mining "general episodes" that explicitly models these simultaneous occurrences while addressing the computational challenges of pattern explosion and NP-completeness.
The Challenge of Simultaneity
Existing miners often struggle with simultaneous events in two primary ways. First, there is a significant loss of information; treating simultaneous events as merely "parallel" ignores the critical insight that they occurred at the exact same timestamp. Second, the computational complexity of mining general episodes (which allow partial ordering) is immense. Testing for the occurrence of an episode is an NP-complete problem, and the flexibility of these patterns often leads to a "pattern explosion," where a single sequence can generate billions of redundant results.
Algorithmic Framework
The authors propose a new definition of an episode that supports four distinct relationships between events: (1) no order, (2) strictly simultaneous, (3) strictly serial, and (4) serial-or-simultaneous.
To navigate the search space, the algorithm employs a Depth-First Search (DFS) strategy. As illustrated in the figure above, the search progresses through three levels: adding events, adding "weak" (simultaneous or ordered) edges, and converting these into "proper" (strictly ordered) edges.
Instance-Closure and Redundancy Reduction
Because frequency-based closure is computationally intractable for general episodes, the authors introduce instance-closure. This technique leverages specific occurrences in the data: if every time episode A appears, it is part of a larger structure B, then A is considered redundant and can be pruned.
To further refine the output, the framework uses coverage-based subsetting. Rather than relying on graph topology—which can be redundant as multiple graphs may represent the same pattern—the authors define subset relationships based on coverage. If every sequence containing episode H also contains G, G is deemed redundant. While testing this is NP-hard, the authors provide a recursive algorithm that handles practical cases efficiently.
Experimental Validation
The researchers evaluated their miner across three diverse datasets:
- Synthetic Sequences: Used to test pruning efficiency. In a test with a 7-node pattern, the number of frequent episodes was estimated at over $10^{13}$, but the instance-closure technique reduced the number of closed episodes to just 28.
- Factory Alarms: A massive real-world dataset with over 500,000 events and 10,000 event types. The algorithm processed this complex data in under 90 seconds for most thresholds, proving its practical scalability.
- Train Delays: Data from a Belgian railway station where simultaneous departures are common. The miner successfully identified complex patterns involving up to 10 events, offering a richer view of delay propagation than previous serial-only methods.
Conclusion and Future Work
By treating simultaneity as a first-class citizen and employing instance-closure, this framework makes the mining of general episodes computationally tractable. While the underlying problems remain NP-hard, the heuristics provided demonstrate robust performance on real-world datasets. Future work may involve adapting the framework to "minimal windows" (the Minepi approach) and exploring temporal intervals where events within a small time buffer are treated as simultaneous.
Summary updated