Abstract
Traditional data mining often identifies frequent but uninteresting patterns. This paper introduces a parameter-free method for identifying "surprising" temporal patterns in market basket data using the Minimum Description Length (MDL) principle. By treating data mining as a compression problem, the authors automatically segment time to find where item correlations shift, successfully filtering out "obvious" associations to highlight truly novel insights.
Introduction
In the field of data mining, "frequent" does not necessarily equate to "interesting." For example, the association between milk and cereal in grocery data is prevalent but well-known to domain experts. The real value lies in discovering "surprising" second-order phenomena—relationships between items that change unexpectedly over time.
Existing approaches suffer from two main gaps: the "Domain Knowledge" gap (defining surprise mathematically to ignore what is already known) and the "Temporal Window" gap (choosing appropriate time scales for analysis without introducing noise or averaging out significant spikes).
Methodology
The authors leverage Information Theory, specifically the Minimum Description Length (MDL) principle, which posits that the more surprising a piece of data is, the more bits it requires to describe relative to a known model.
Temporal Segmentation
To avoid the pitfalls of fixed-size windows, the algorithm determines the optimal way to partition a timeline into segments. Within each segment, item relationships are assumed to be stationary. This is framed as a shortest-path problem in a graph where nodes represent time points and edge weights represent the bit-cost of encoding that segment.
Defining Surprise ($\theta$)
Surprise is quantified by a measure $\theta$, defined as the ratio of the actual joint probability of an itemset to the expected probability derived from its subsets' marginals. A steady $\theta$ indicates a stable (and potentially boring) correlation, while a significantly changing $\theta$ over time signals a surprising temporal pattern.
Computational Efficiency
To handle millions of transactions, the authors developed a fast shortest-path heuristic. This method breaks the timeline into chunks, solves local problems, and sparsifies the global graph, reducing complexity from $O(T^2)$ to approximately $O(T^{4/3})$ with minimal accuracy loss.
Experimental Evaluation
The approach was tested on two massive, real-world retail datasets:
- Dataset-A: 2.8 million transactions over 7 years (15.8k items).
- Dataset-B: 1.65 million transactions over 3 years (69k items).
Key Results
- Selectivity: The MDL method proved highly selective, flagging fewer than 50 out of 1,600 itemsets as surprising, effectively acting as a high-quality filter for human analysts.
- Qualitative Insights: The algorithm correctly ignored stable pairs like "milk and cereal" while identifying shifting correlations, such as the seasonal growth in the relationship between "men’s and women’s shorts"—a pattern missed by simple averages.
- Performance: The fast heuristic was over an order of magnitude faster than the optimal algorithm, maintaining an error rate below 0.2%.
Conclusion and Future Work
The MDL-based approach provides a robust, parameter-free framework for discovering temporal anomalies in large datasets. Future work includes extending the coding scheme to account for predictable seasonal noise and adapting the framework for incremental, real-time data mining as new transactions arrive.
Summary updated