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

Hideo Shimazu, Hiroaki Kitano, Akihiro Shibata

In the mid-1990s, researchers at NEC Corporation addressed a significant architectural challenge: integrating "intelligent" Case-Based Reasoning (CBR) systems with standard corporate Relational Database Management Systems (RDBMS). This paper introduces CARET (CAse REtrieval Tool), a system designed to bridge the gap between the fuzzy matching required for CBR and the exact matching logic of standard SQL databases.

The Integration Challenge

Historically, CBR systems—which solve new problems by retrieving similar past cases—existed as standalone "islands" of data. This separation created two primary issues:

  1. Data Integrity: Maintaining a separate case-base leads to synchronization issues with the primary corporate database.
  2. Performance Bottlenecks: Calculating similarity scores for every record in a large database is computationally expensive ($O(C \times D)$), making real-time retrieval impractical for large datasets.

Methodology: The CARET Approach

CARET overcomes these hurdles by shifting similarity calculations from the record level to the query level. Instead of comparing a user's input to every row, CARET generates a series of optimized SQL queries that target "neighboring" values.

Abstraction Hierarchies and Neighbor Value Sets (NVS)

The core of CARET’s logic relies on Abstraction Hierarchies. These hierarchies define the relationships and similarity scores between different attribute values. For instance, in a programming language hierarchy, C++ might be assigned a 0.7 similarity to C.

Figure 1: Abstraction hierarchies for Language, Machine, and OS attributes used to determine value similarity.

Using these hierarchies, CARET identifies Neighbor Value Sets (NVS). If a user searches for "VAX," the system identifies first-order neighbors (exact match), second-order neighbors (highly similar), and so on. It then automatically generates standard SQL SELECT statements, starting with the most specific combinations. This allows the system to offload the heavy lifting of data searching to the RDBMS's highly optimized indexing engines.

Performance Evaluation

The system was evaluated using SQUAD-II, a Software Quality Control system at NEC containing bug reports and quality cases. The test involved scaling the case-base from 800 to 1,600 records across 75 possible features.

Key Results

The evaluation demonstrated that CARET's performance is highly efficient when users provide specific queries.

Figure 6: Response time vs. number of cases. Specific queries (Query-2 and Query-3) maintain near-constant performance as the database grows.

As shown in the performance graph, broad or vague queries (Query-1) result in linear growth in response time as the database size increases. However, for more specific queries (Query-2 and Query-3), the response time remains nearly constant. In a reversal of traditional CBR logic, more specific queries actually run faster because they generate more restrictive SQL WHERE clauses.

Conclusion

CARET represents a successful integration of AI techniques into mainstream corporate infrastructure. By transforming similarity searches into a sequence of exact-match SQL queries, the system achieves sub-second response times while maintaining the data integrity and security of a standard RDBMS. While the study focused primarily on retrieval, it laid the groundwork for moving CBR from specialized silos into the heart of strategic corporate information systems.

Summary updated

BibTeX
@inproceedings{shimazu1993retrieving,
  author = {Hideo Shimazu and Hiroaki Kitano and Akihiro Shibata},
  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