NDPMine: Efficiently Mining Discriminative Numerical Features for Pattern-Based Classification

Hyungsul Kim, Sangkyum Kim, Tim Weninger, Jiawei Han, Tarek F. AbdelzaherECML/PKDD 2010

Introduction

In machine learning, "patterns"—such as specific sequences of events or sub-structures in a graph—serve as powerful features for classification. However, traditional pattern-mining algorithms often treat these features as binary: a pattern is either present or absent. This binary bias ignores the rich information contained in the frequency of occurrence. For instance, in software debugging, a loop executing once is fundamentally different from it executing 10,000 times, which might indicate a performance bug.

Hyungsul Kim and colleagues from UIUC introduced NDPMine, a framework designed to directly mine these numerical counts. Their work demonstrates that "how much" a pattern occurs is often as critical as "if" it occurs at all.

The Landscape of Pattern Mining

To understand the contribution of NDPMine, it is helpful to categorize existing pattern-based classification methods along two axes: the mining approach (Two-step vs. Direct) and the feature type (Binary vs. Numerical).

Categorization of pattern-based classification methods by mining approach and feature type.

As illustrated in the table above, most existing numerical methods follow a "two-step" process: first mining all frequent patterns and then selecting discriminative ones. This is computationally expensive due to the astronomical number of frequent patterns. NDPMine is the first algorithm to provide a "direct" mining approach for numerical features, identifying the most useful patterns from the start.

Methodology

NDPMine integrates pattern mining into a mathematical optimization framework using Linear Programming (LP) and LPBoost.

Model-Based Feature Mining

Instead of relying on simple statistical measures like Information Gain, which are difficult to bound for numerical data, NDPMine uses Column Generation. The classifier iteratively "asks" for the specific pattern that would most improve its current margin. This is guided by a mathematical "gain" function derived from the dual of the LP problem.

Search Space Shrinking

A significant technical contribution of the paper is the "search space shrinking" technique. In iterative mining, search trees typically grow until memory is exhausted. NDPMine leverages the mathematical property that the threshold for a "good" pattern ($γ$) is non-decreasing across iterations. This allows the algorithm to identify and permanently remove patterns from memory that will never be useful in future iterations, preventing memory explosion.

Experimental Evaluation

The authors evaluated NDPMine on two distinct structural datasets: software execution traces (sequences) and authorship classification (trees) based on Part-of-Speech tag structures from New York Times columnists.

Key Results

  • Efficiency: NDPMine outperformed the numerical baseline (SoftMine) by an order of magnitude in computation time. Its memory usage remained stable due to the shrinking technique, whereas non-shrinking versions saw memory consumption skyrocket.
  • Accuracy: In the authorship task, NDPMine achieved 94.25% accuracy, significantly higher than the binary-feature DDPMine (89.58%) and the two-step SoftMine (90.75%).
  • Parsimony: NDPMine produced more interpretable models. On software traces, it required an average of only 14.5 patterns to achieve superior results compared to the 70.4 patterns required by SoftMine.

Conclusion

NDPMine represents a shift toward more expressive and efficient pattern-based classification. By moving beyond binary features and employing a direct, model-based mining approach with aggressive search space pruning, it offers a scalable solution for complex structural data. While currently optimized for sequences and trees, the framework provides a foundation for future work in general graph mining and alternative loss functions.

Summary updated

BibTeX
@inproceedings{kim2010ndpmine,
  author = {Hyungsul Kim and Sangkyum Kim and Tim Weninger and Jiawei Han and Tarek F. Abdelzaher},
  title = {{NDPMine: Efficiently Mining Discriminative Numerical Features for Pattern-Based Classification}},
  booktitle = {ECML/PKDD},
  year = {2010},
  doi = {10.1007/978-3-642-15883-4\_3},
}
Figure