Using Case-Based Reasoning to Support Web Service Composition

Ruixing Cheng, Sen Su, Fangchun Yang, Yong LiInternational Conference on Computational Science 2006

Introduction

In the mid-2000s, the emergence of Web Services promised a paradigm shift where software components could be dynamically integrated across the internet to create complex, value-added applications. However, the process of service composition—stitching these components together—remained a significant technical bottleneck. Traditional methods often relied on manual configuration or "from-scratch" automated planning, which struggled with scalability and ill-defined domain knowledge. This paper, originally presented at ICCS 2006, proposes a Case-Based Reasoning (CBR) framework to automate Web service composition by leveraging successful past experiences.

The CBR Framework for Service Composition

The core innovation of this research is the shift from generative planning to a retrieval-and-adaptation model. Instead of solving the composition puzzle anew for every request, the system remembers what worked before.

System Architecture

The proposed architecture organizes the service environment into a two-layer hierarchy. The Basic Service Layer contains atomic, domain-specific services, while the Application Service Layer stores "cases"—pre-configured compositions of these basic services that represent larger-granularity applications.

Architecture of the Case-Based Reasoning (CBR) framework for automated service composition.

As shown in the architecture above, the system processes user requests through a dedicated CBR Processor. This processor interacts with a Service Base that is optimized through clustering to speed up retrieval. When a request is received, the system identifies the most similar existing case using a weighted attribute-value model, calculates distances (Euclidean for numerical data, keyword matching for text), and adapts the case to meet specific user constraints.

The Learning Loop

A critical feature of this framework is its ability to learn. Once a modified composition is successfully validated and accepted by the user, it is saved back into the Application Service Layer as a new case. This iterative process ensures the system becomes increasingly proficient over time.

Performance Evaluation

The authors evaluated the CBR approach against two traditional methods: Keyword-based (KC) and Semantic-based (SC) composition. The evaluation used a simulated environment with 100 initial cases and 700 requests with varying similarity levels.

Efficiency and Scalability

One of the most significant findings was the system's efficiency as the complexity of the composition increased.

Execution time vs. number of sub-services for CBR, Semantic (SC), and Keyword (KC) methods.

As illustrated in the performance graph, the time required for KC and SC methods grows steeply as the number of sub-services increases. In contrast, the CBR method maintains a relatively flat growth curve, demonstrating superior scalability for complex workflows. Furthermore, the success rate of the CBR approach was found to outperform both KC and SC methods when the similarity between the request and the case base exceeded 85%.

Conclusion and Future Work

By focusing on high-granularity "Application Layer" cases, the CBR framework significantly reduces search space and logic overhead. While the current model operates under certain ideal-world assumptions—such as ignoring network latency and the complexities of physical service mapping—it provides a robust foundation for reusable service composition. Future research will focus on integrating Quality of Service (QoS) metrics and refining the virtualization layer to bridge the gap between abstract cases and physical service execution.

Summary updated

BibTeX
@inproceedings{cheng2006using,
  author = {Ruixing Cheng and Sen Su and Fangchun Yang and Yong Li},
  title = {{Using Case-Based Reasoning to Support Web Service Composition}},
  booktitle = {International Conference on Computational Science},
  year = {2006},
  doi = {10.1007/11758549\_12},
}
Figure