A Logic-Based Approach to Mining Inductive Databases

Hong-Cheu Liu, Jeffrey Xu Yu, John Zeleznikow, Ying GuanInternational Conference on Computational Science 2007

Abstract

This paper proposes a logic-based framework for inductive databases, treating data mining as a first-class query operation rather than an external process. By extending relational calculus with a fixpoint operator and a specialized sub-join operator, the authors demonstrate that complex mining tasks—including association rule discovery, Bayesian classification, and clustering—can be expressed declaratively and performed more efficiently than standard SQL-based approaches.

Introduction

Traditionally, data mining follows a "cache-mining" approach: data is extracted from a database into a memory cache and then processed by procedural algorithms like Apriori. This creates a significant bottleneck and separates data management from knowledge discovery. While "inductive databases" aim to integrate these processes, existing query languages often struggle with performance or require users to write incredibly complex, nested SQL queries.

This research addresses this gap by asking whether logic-based database languages (Datalog) can provide a flexible, intuitive, and efficient framework for intelligent data analysis. By treating patterns as "first-class citizens," they can be queried and manipulated just like standard relational data.

The Logic-Based Framework

The authors introduce a Calculus + Fixpoint extension to handle the iterative nature of data mining. Two primary technical contributions facilitate this integration:

1. Fixpoint Operator ($\mu_T$)

The authors introduce a non-inflationary fixpoint operator that allows for the iteration of calculus formulas until a stable state is reached. This is used to inductively define frequent itemsets and model recursive processes like the iterative refinement of cluster means.

2. Sub-join Operator ($\bowtie^{sub,k}$)

A novel relational operator, the sub-join, is designed specifically for association rule mining. It internalizes the "join and prune" steps of the Apriori algorithm into the relational algebra. It joins a set of frequent $(k-1)$-itemsets with the raw database to generate candidate $k$-itemsets.

Input relation s representing transactions or itemsets.
Example result of the sub-join operator r ⋈^{sub,2} s, illustrating the generation of candidate itemsets.

Applications and Implementation

The paper provides operational semantics for three major mining tasks using Datalog:

  • Association Rule Mining: Using the fixpoint operator to iteratively find frequent itemsets.
  • Naive Bayesian Classification: Calculating class probabilities through declarative rules.
  • Partition-based Clustering: Modeling the iterative refinement of cluster means (similar to k-means) as a fixpoint process. The paper demonstrates that complex tasks like k-means can be reduced to just a few lines of Datalog code.

Experimental Results

The framework was implemented in C++ and compared against standard benchmarks on a Pentium 4 system. While specific public datasets were not named, the architectural performance was evaluated:

  • Performance vs. Apriori: The "Calculus-Fixpoint" algorithm outperformed the traditional procedural Apriori method in preliminary tests.
  • Performance vs. SQL: The framework significantly outperformed SQL-92 implementations that used a sub-query approach, proving that modularizing intensive operations within the engine is superior to user-level SQL optimization.

Conclusion and Future Work

While the logic-based approach shows promise in terms of declarative simplicity and performance, the authors acknowledge that the deductive paradigm still faces scalability skepticism. Future work will focus on further optimizing subset queries and developing specialized index support for nested relational operators. How this logic-based approach scales to modern distributed "Big Data" environments remains an open question for the field.

Summary updated

BibTeX
@inproceedings{liu2007logic,
  author = {Hong-Cheu Liu and Jeffrey Xu Yu and John Zeleznikow and Ying Guan},
  title = {{A Logic-Based Approach to Mining Inductive Databases}},
  booktitle = {International Conference on Computational Science},
  year = {2007},
  doi = {10.1007/978-3-540-72584-8\_35},
}
Figure