Abstract
Detecting complex patterns in high-speed streaming data is a critical task in industrial IoT and healthcare. Traditional methods often rely on a single global similarity threshold, which lacks the flexibility to handle patterns with distinct phases of varying importance. This paper proposes a novel framework for consecutive subpatterns matching, allowing users to define independent thresholds for different segments of a pattern. To achieve real-time performance, we introduce the Equal-Length Block (ELB) representation. ELB enables efficient pruning of non-matching windows and leverages a "skip" mechanism to bypass redundant calculations. Experimental results on real-world wind turbine data and synthetic benchmarks demonstrate speedups of several orders of magnitude over state-of-the-art methods.
Introduction: The Need for Flexible Pattern Matching
In domains like wind power generation or cardiac monitoring, engineers and clinicians look for specific "shapes" in sensor streams. For instance, an "Extreme Operating Gust" in wind energy consists of a slight decrease, a sharp spike, and a return to normalcy. While the spike is critical and requires a tight similarity threshold, the initial decrease might allow for more variance.
Existing algorithms typically apply one threshold to the entire pattern, leading to either excessive false positives or missed detections. The authors formalize a more expressive model where a pattern is a sequence of subpatterns, each with its own distance threshold. The primary challenge lies in executing this complex matching over high-frequency streams without missing any true occurrences.
The Equal-Length Block (ELB) Framework
The core innovation of this work is the Equal-Length Block (ELB) representation. Instead of point-by-point comparison, the algorithm divides both the pattern and the streaming window into disjoint blocks of length $w$. This structure supports two primary pruning strategies:
- Element-based ELB ($ELB_{ele}$): This method constructs an "envelope" of upper and lower bounds around the pattern based on the specified subpattern thresholds. If any data point in the stream falls outside this envelope, the entire window can be immediately discarded.
- Subsequence-based ELB ($ELB_{seq}$): By utilizing the mean values of blocks and the mathematical properties of $L_p$-norms, this approach creates even tighter bounds, significantly increasing pruning power.
The "Skip" Trick
A major efficiency gain comes from exploiting temporal redundancy. Since consecutive windows in a stream overlap by all but one element, they are highly correlated. If a specific block in the current window is a very poor match, the algorithm can mathematically prove that the next $w-1$ windows will also fail to satisfy the threshold. This allows the system to "jump" ahead in the stream, bypassing expensive distance calculations for thousands of windows.
Experimental Evaluation
The researchers tested the ELB framework against real-world industrial data from wind turbines and synthetic benchmarks from the UCR Archive.
Performance and Efficiency
The ELB approaches outperformed traditional Sequential Scanning and previous multi-scale methods by orders of magnitude. On a wind generator dataset using the $L_1$-Norm, $ELB_{seq}$ processed windows in just 13.04 ns, compared to 562.84 ns for brute-force scanning.
Pruning Power
The effectiveness of the lower-bounding properties was evident in the pruning rates. $ELB_{seq}$ consistently pruned over 97% of streaming windows in the initial phase. This means the computationally intensive exact distance calculations were only required for a tiny fraction (3%) of the data.
Conclusion
The ELB framework provides a robust and flexible solution for real-time pattern detection in streaming time series. By allowing subpattern-specific thresholds and exploiting temporal correlation through block-based skipping, it meets the high-throughput demands of modern sensor networks. Future work may involve automating the discovery of subpattern boundaries and optimizing block sizes dynamically based on stream variance.
Summary updated