Retrieving Cases from Relational Data-Bases: Another Stride Towards Corporate-Wide Case-Base Systems

TL;DR

This paper introduces CARET, a novel method for integrating Case-Based Reasoning (CBR) systems with existing relational databases (RDBMS). By translating similarity-based queries into SQL, CARET allows CBR to leverage the security, integrity, and scalability of RDBMS, overcoming a major hurdle for enterprise-wide adoption.

What Problem Does This Paper Address?

Conventional CBR systems often operate as standalone tools, detached from mainstream corporate information systems. This detachment poses significant challenges for enterprise-wide adoption, particularly concerning data security, integrity management, and scalability. Corporations already house vast amounts of valuable data in RDBMS, but these systems typically offer only exact-match query capabilities, limiting their utility for complex reasoning tasks. Converting these RDBMS into independent CBR systems is resource-intensive, risks data integrity due to synchronization issues, and undermines existing security protocols. The authors aim to bridge this gap by enabling CBR to directly query and retrieve information from RDBMS, thereby making CBR a more practical and integrated component of corporate IT infrastructure.

Methods

The core of CARET's innovation lies in its approach to similarity computation and SQL generation. Instead of comparing a query directly to individual cases within the RDBMS, CARET first generates "Neighbor Value Sets" (NVS) for each attribute based on predefined abstraction hierarchies. These NVS represent values similar to the user's input. Then, CARET enumerates all possible combinations of these neighboring values across attributes. For each combination, a similarity score is calculated between the user's query specification and the combination itself, rather than between the query and a specific case. This similarity is computed using a weighted sum of attribute similarities, where only user-specified attributes are considered.

Finally, CARET translates these similarity-scored combinations into SQL SELECT-FROM-WHERE statements. This allows the RDBMS to perform the retrieval. To manage the potentially large number of generated SQL queries, CARET incorporates two strategies: "N-Best Match" (retrieving cases until a certain number is met) and a similarity threshold to filter out less relevant SQL specifications.

Datasets

The paper evaluates CARET using the SQUAD-II system, a corporate-wide CBR system for software quality control (SWQC) that utilizes ORACLE as its RDBMS. The case-base for this evaluation consists of approximately 800 cases, with experiments also conducted on a case-base of 1,600 cases. No new benchmarks are introduced; rather, the authors leverage an existing deployed system.

Key Insights and Ideas

  • Bridging the Gap: The most significant insight is that CBR doesn't need to reinvent the wheel for data management. By leveraging RDBMS, CBR can inherit robust security, integrity, and scalability features, making enterprise-wide deployment feasible.
  • Query-Centric Similarity: Shifting the focus from case-to-case similarity to query-form-to-query-form similarity is a clever way to enable similarity-based retrieval within the constraints of SQL. This pre-computation of query similarities is key to efficiency.
  • Abstraction Hierarchies are Crucial: The use of abstraction hierarchies for defining attribute similarity is fundamental to generating meaningful "neighboring" values and, consequently, effective query combinations.
  • Practicality over Theoretical Purity: The authors acknowledge that complex indexing schemes, common in traditional CBR, are difficult for system engineers to maintain. CARET's approach, while constrained by RDBMS, prioritizes practical deployability.

Key Results

The performance evaluation using SQUAD-II demonstrated that CARET can achieve acceptable performance for large-scale case-bases. Specifically, for queries that are specific enough to constrain the search (like Query-2 and Query-3), response times remained relatively constant even as the case-base size increased. The paper suggests that the proposed method is practical for large-scale case-bases and well-suited for corporate-wide systems. While specific quantitative metrics like accuracy are not detailed, the focus is on retrieval speed and the feasibility of the approach.

Limitations and Future Work

The paper acknowledges that the "flat record" representation imposed by RDBMS might not be ideal for all CBR applications, especially those requiring complex case structures. The authors also note that the efficiency of the system is highly dependent on the specificity of user queries; less specific queries (like Query-1) can lead to slower response times due to the need to retrieve a larger number of cases. Future work could explore more sophisticated methods for generating SQL specifications and potentially extending the approach to handle more complex data structures beyond flat records.

Summary updated

BibTeX
@inproceedings{1993retrieving,
  title = {{Retrieving Cases from Relational Data-Bases: Another Stride Towards Corporate-Wide Case-Base Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1993},
}
Figure