Skip to main content
QUICK REVIEW

[Paper Review] Using Answer Set Programming for pattern mining

Thomas Guyet, Yves Moinard|arXiv (Cornell University)|Sep 27, 2014
Data Mining Algorithms and ApplicationsComputer Science21 references6 citations
TL;DR

This paper proposes an Answer Set Programming (ASP) approach for frequent sequential pattern mining, implementing both non-incremental and incremental ASP encodings to exploit declarative constraint modeling. Although less efficient than dedicated algorithms like MinEpi, the incremental ASP solution demonstrates feasibility for generic, constraint-driven pattern mining, with significant performance gains when domain-specific constraints are applied, making it competitive for constrained mining tasks.

ABSTRACT

Serial pattern mining consists in extracting the frequent sequential patterns from a unique sequence of itemsets. This paper explores the ability of a declarative language, such as Answer Set Programming (ASP), to solve this issue efficiently. We propose several ASP implementations of the frequent sequential pattern mining task: a non-incremental and an incremental resolution. The results show that the incremental resolution is more efficient than the non-incremental one, but both ASP programs are less efficient than dedicated algorithms. Nonetheless, this approach can be seen as a first step toward a generic framework for sequential pattern mining with constraints.

Motivation & Objective

  • To explore the feasibility of using Answer Set Programming (ASP) for frequent sequential pattern mining.
  • To implement both non-incremental and incremental ASP encodings to improve performance.
  • To evaluate the impact of user-defined constraints on ASP-based pattern mining efficiency.
  • To establish a foundation for a generic, declarative framework for sequential pattern mining with customizable constraints.

Proposed method

  • Encoding the sequential pattern mining task in ASP using a declarative logic programming approach.
  • Implementing a non-incremental ASP solution that enumerates all candidate patterns and checks their frequency.
  • Designing an incremental ASP solution using clingo’s incremental solving facilities to improve memory and time efficiency.
  • Introducing domain-specific constraints (e.g., ordering, regular expressions) via ASP to prune the search space.
  • Using the #external directive to integrate external data or constraints into the ASP model.
  • Evaluating performance on synthetic sequences with varying lengths and vocabulary sizes.

Experimental results

Research questions

  • RQ1Can Answer Set Programming effectively model frequent sequential pattern mining with anti-monotonicity pruning?
  • RQ2How does the performance of ASP-based mining compare to dedicated algorithms like MinEpi?
  • RQ3To what extent do user-defined constraints improve the efficiency of ASP-based pattern mining?
  • RQ4Can incremental ASP solving reduce memory overhead and computation time in sequential pattern mining?

Key findings

  • The incremental ASP implementation reduced memory usage from ~293,000 bytes (non-incremental) to ~81,000 bytes on short sequences.
  • Computation time for the non-incremental ASP version was 27.05 seconds on average, while the incremental version reduced it to 0.84 seconds on short sequences.
  • The ASP approach with constraints reduced mean computation time from 166 seconds to 37 seconds on 70-item sequences, significantly improving competitiveness.
  • Despite improvements, ASP computation time still increased exponentially with sequence length, remaining orders of magnitude slower than MinEpi.
  • The anti-monotonicity property was successfully encoded in ASP, enabling effective pruning of the search space.
  • The use of constraints drastically reduced the number of generated models, demonstrating the potential of ASP for constraint-aware pattern mining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.