Abstract
We study how to obtain concise descriptions of discrete multivariate sequential data. In particular, how to do so in terms of rich multivariate sequential patterns that can capture potentially highly interesting (cor)relations between sequences. To this end we allow our pattern language to span over the domains (alphabets) of all sequences, allow patterns to overlap temporally, as well as allow for gaps in their occurrences. We formalise our goal by the Minimum Description Length principle, by which our objective is to discover the set of patterns that provides the most succinct description of the data. To discover high-quality pattern sets directly from data, we introduce DITTO, a highly efficient algorithm that approximates the ideal result very well. Experiments show that DITTO correctly discovers the patterns planted in synthetic data. Moreover, it scales favourably with the length of the data, the number of attributes, the alphabet sizes. On real data, ranging from sensor networks to annotated text, DITTO discovers easily interpretable summaries that provide clear insight in both the univariate and multivariate structure.
Introduction
In our data-driven world, we are constantly recording sequences of events across multiple attributes—think of a network of sensors, heart rate monitors, or even annotated text. This is multivariate sequential data. The challenge is that traditional "frequent pattern mining" is often too successful for its own good. Even a simple dataset can contain billions of frequent patterns, most of which are redundant or just noise. This is known as the "pattern explosion."
Furthermore, real-world patterns are rarely perfect; they often have "gaps" (missing events in a sequence) or "overlaps" (multiple patterns happening at once). The authors seek a way to automatically discover a small, "succinct" set of patterns that best describe the underlying structure of the data without being overwhelmed by the sheer volume of possible combinations.
Methodology
The researchers introduce DITTO, an algorithm built on the Minimum Description Length (MDL) principle. The core philosophy of MDL is that "compression is learning": the set of patterns that allows you to compress the data into the shortest possible description is the best model of that data.
Rich Pattern Language
DITTO employs a rich pattern language that spans multiple attributes, allows for temporal gaps, and can interleave or overlap with other patterns. This flexibility is crucial for capturing correlations that aren't perfectly synchronized across every single sensor or stream.
The DITTO Algorithm and Encoding
The algorithm maintains a "dictionary" or code table (CT) of patterns and their associated compressed codes. Since searching every possible combination of events is computationally impossible (NP-hard), DITTO uses a heuristic, bottom-up approach. It starts with simple single-event patterns and iteratively tests combinations of existing patterns that show the most promise for reducing the total description length.
To keep the summary "short and simple," DITTO includes a pruning step to remove patterns that become redundant as new, better patterns are found. It also performs a local search for "variations" to refine the patterns it discovers.
Evaluation and Results
The authors evaluated DITTO using both controlled environments and messy, real-world data. On synthetic data, DITTO recovered all planted patterns perfectly, whereas the state-of-the-art baseline (SQS) only recovered 10-30% of the structure.
On real-world datasets, the algorithm demonstrated significant utility:
- ECG Data: Heart rate sensor data transformed into discrete values using Symbolic Aggregate Approximation (SAX).
- Bridge Sensors: Data from strain and vibration sensors on a Dutch bridge.
- Moby Dick: The text of the novel, aligned with part-of-speech tags, identifying characteristic linguistic patterns like "noun of the noun."
- Multilingual Text: Parallel texts in English, French, and German to identify translation patterns.
Key Insights
MDL acts as a natural filter; by focusing on compression, the algorithm naturally ignores noise, which doesn't repeat predictably. While a simple dataset might have over a billion frequent patterns, DITTO can summarize it using just the few "true" underlying patterns. On real-world datasets like ECG and Bridge sensors, DITTO achieved compression gains of over 75% compared to a basic model. Despite the massive search space, DITTO typically runs in seconds to minutes on standard hardware.
Discussion and Conclusion
DITTO operates on discrete data, meaning continuous time series must be discretized (e.g., using SAX), which can affect results. As the problem is NP-hard, DITTO uses heuristics and does not guarantee the absolute best compression. Future work may extend this to causal inference—using discovered patterns to determine if one event sequence causes another—and parallelizing the algorithm for larger scales.
Summary updated