A Genetic Algorithm for Efficient Descriptive Pattern Mining

Menaa Nawaz, Philippe Fournier‐Viger, Nazha Selmaoui‐FolcherSPIRE 2024

Abstract

International audience. This paper presents GA4PC, a novel approach utilizing Genetic Algorithms to address the "pattern explosion" in Frequent Itemset Mining (FIM). By leveraging the Minimum Description Length (MDL) principle, GA4PC treats pattern selection as an evolutionary search for optimal data compression. Experimental results demonstrate that GA4PC significantly outperforms existing state-of-the-art methods, achieving better compression ratios while being up to 117 times faster.

Introduction

Frequent Itemset Mining is a cornerstone of data mining, used to discover associations within large datasets. However, traditional algorithms frequently produce an overwhelming number of patterns, many of which are redundant. To mitigate this, researchers apply the Minimum Description Length (MDL) principle, which posits that the best set of patterns is the one that provides the most compact representation of the data.

Finding the optimal set of patterns for compression is a computationally intensive combinatorial problem. Existing tools, such as KRIMP and SLIM, rely on greedy heuristics that are often slow and prone to local optima. GA4PC addresses these limitations by framing pattern selection as a stochastic evolutionary search.

Methodology: The GA4PC Framework

GA4PC replaces rigid greedy searches with a genetic algorithm designed to optimize the "Code Table" (CT), which serves as the dictionary for data compression. The algorithm follows an iterative evolutionary process:

  1. Population Initialization: A starting population of unique itemsets is randomly sampled from the database $D$.
  2. Crossover and Mutation: The algorithm generates new candidate patterns by swapping segments between "parent" itemsets (crossover) and introducing random changes (mutation) to maintain genetic diversity.
  3. Fitness Evaluation: The "fitness" of each pattern is determined by its contribution to the overall compression ratio. Patterns that significantly reduce the description length of the database are prioritized.
  4. Code Table Update: The most fit patterns are integrated into the Code Table, refining the compression model over successive generations.
Flowchart of the GA4PC algorithm

By avoiding expensive deterministic functions like "Standard Cover Order," GA4PC maintains a lean computational profile, allowing for faster convergence on high-quality solutions.

Experimental Evaluation

The performance of GA4PC was benchmarked against five diverse datasets: Accidents (dense traffic data), Chess and Connect-4 (game positions), Pen Digits (handwritten data), and Pumsbstar (sparse census data).

Key Results

The experiments highlighted significant gains in both compression efficiency and processing speed:

  • Compression Quality: GA4PC outperformed KRIMP by an average of 28% and SLIM by 7% in terms of compression ratio. On the dense Accidents dataset, the improvement over KRIMP reached 43%.
  • Computational Efficiency: GA4PC demonstrated remarkable speedups, averaging 58 times faster than KRIMP and 117 times faster than SLIM. In the case of the Pen Digits dataset, GA4PC was approximately 590 times faster than KRIMP, completing in seconds what previously took minutes or hours.

Discussion and Insights

The success of GA4PC stems from its ability to escape local optima through stochastic search. By exploring multiple potential solutions simultaneously, the genetic algorithm identifies global patterns that greedy methods might overlook.

However, the study also identified a limitation regarding sparse datasets. In the Pumsbstar test, GA4PC performed slightly below SLIM. In sparse environments, the probability of random mutations hitting a meaningful pattern is lower, suggesting that the algorithm is currently optimized for dense data structures where patterns are more prevalent.

Conclusion

GA4PC represents a significant advancement in descriptive pattern mining, offering a scalable and efficient alternative to traditional MDL-based methods. Future work will focus on refining mutation operators to improve performance on sparse datasets and conducting further comparative studies against emerging MDL competitors.

Summary updated

BibTeX
@inproceedings{nawaz2024genetic,
  author = {Menaa Nawaz and M. Saqib Nawaz and Philippe Fournier‐Viger and Nazha Selmaoui‐Folcher},
  title = {{A Genetic Algorithm for Efficient Descriptive Pattern Mining}},
  booktitle = {SPIRE},
  year = {2024},
}
Figure