Introduction
Discovering recurring structures in grid-based data, such as images or sensor arrays, is a fundamental challenge in data mining. While frequent pattern mining is well-established for transactional data or graphs, raster-based data—where the spatial arrangement of rows and columns is fixed—presents unique difficulties. This paper introduces Vouw, a novel framework presented at IDA 2020 that leverages the Minimum Description Length (MDL) principle to identify complex, non-rectangular patterns in discrete matrices without requiring user-defined frequency thresholds.
The Challenge of Raster-Based Pattern Mining
Traditional tools for matrix data, such as geometric tiling, are often limited to identifying simple rectangular blocks in Boolean (0/1) data. However, real-world data often contains intricate, non-convex shapes embedded within matrices that support a wide range of discrete values (e.g., grayscale intensities). Identifying these shapes amidst background noise is difficult because the shapes' geometry and frequency are typically unknown a priori.
Methodology: The Vouw Algorithm
The authors approach pattern discovery as a data compression problem. According to the Minimum Description Length (MDL) principle, the best model for a dataset is the one that provides the shortest total description of the data. In this context, the "model" consists of a set of patterns and an "instantiation" map indicating their locations.
Iterative Merging and the Pivot Concept
Since an exhaustive search of all possible shapes is computationally infeasible, Vouw employs a greedy, bottom-up heuristic. The process begins by treating every individual pixel as a unique pattern. The algorithm then iteratively searches for pairs of patterns that frequently appear in close proximity.
To maintain consistency during merging, the authors introduce the pivot concept. Every pattern is assigned a pivot element, allowing the algorithm to mathematically define the spatial offset between two patterns. When a pair is merged, it forms a new, more complex pattern that reduces the overall description length of the dataset.
Optimizations
To handle large datasets, Vouw includes several key optimizations:
- Local Search: This heuristic predicts and adds adjacent elements to a pattern quickly, bypassing some of the standard candidate search steps.
- Best-* Merging: Instead of merging one pair at a time, the algorithm can merge multiple independent candidate pairs in a single step, significantly accelerating the discovery process.
Experimental Evaluation
The authors evaluated Vouw using Ril, a synthetic dataset generator. Ril uses random walks to create "organic" shapes which are then planted into a matrix filled with noise. Crucially, both the patterns and the noise are drawn from the same distribution of values. This ensures the algorithm cannot rely on simple color or value differences; it must successfully identify the recurring spatial structure to succeed.
Key Results
- High Fidelity: Vouw achieved precision and recall scores often exceeding 0.9, demonstrating its ability to recover planted patterns while ignoring random noise.
- Noise Robustness: The algorithm remains effective even at low signal-to-noise ratios, provided the patterns occur with sufficient frequency to aid compression.
- Efficiency: The "Local Search" optimization reduced runtime on a 1024x1024 matrix from nearly two hours to under 8 minutes, while simultaneously improving pattern quality.
Conclusion and Future Work
Vouw represents a significant step forward in geometric pattern mining by eliminating the need for arbitrary "minimum support" thresholds. By using compression as a proxy for structural significance, it identifies meaningful shapes of any geometry.
Current limitations include a requirement for exact matches and a focus on discrete, 2D data. Future research directions include extending the framework to handle "fault-tolerant" mining, transformation-equivalent mining (recognizing rotated or flipped shapes), and adapting the encoding for continuous data types.
Summary updated