Abstract

Service-oriented computing has become a promising way to develop software by composing existing services on the Internet. However, with the increasing number of services on the Internet, how to match requirements and services becomes a difficult problem. Service clustering has been regarded as one of the effective ways to improve service matching. Related work shows that structure-related similarity metrics perform better than semantic-related similarity metrics in clustering services. Therefore, it is of great importance to propose much more useful structure-related similarity metrics to improve the performance of service clustering approaches. However, in the existing work, this kind of work is very rare. In this paper, we propose a SCAS (service clustering approach using structural metrics) to group services into different clusters. SCAS proposes a novel metric (atomic service similarity) to characterize the atomic service similarity as a whole, which is a linear combination of (composite-sharing similarity) and (atomic-service-sharing similarity). Then, SCAS applies a guided community detection algorithm to group atomic services into clusters. Experimental results on a real-world data set show that our SCAS performs better than the existing approaches. Our metric is promising in improving the performance of service clustering approaches.

1. Introduction

Web service is a new web application mode that has been widely distributed and invoked on the whole Internet [1, 2]. With the rapid development of SaaS (software-as-a-service) and SOA (service-oriented architecture) technologies, web services on the Internet are showing a trend of rapid growth [1, 2]. The traditional way to develop software has moved to service-oriented development. More and more software systems are developed by composing existing services on the Internet, and it has become a promising way to develop software. There are a large number of web services with different types on the Internet, which makes the matching of requirements and services become a complex process that needs to be solved through a process composed of many steps such as clustering, selection, and evaluation of services [3]. Thus, in the initial stage of service matching, how to cluster services has become an urgent problem for the selection of service set that can meet the requirements of users.

Service clustering has been widely regarded as one of the effective ways to improve service matching [1]. In the literature, many different clustering approaches have been proposed to group services into clusters. Among them, the most widely used approaches are based on the mining of features of WSDL documents [4ā€“6]. These approaches first extract key features such as WSDL description, WSDL type, WSDL port, and web service name from the WSDL document. Then, based on these extracted features, they calculate the service similarity between services by using methods like cosine similarity, so as to organize services into clusters. However, due to the fact that WSDL documents usually contain few descriptions, these approaches usually fail to achieve satisfactory clustering results. Worse still, these approaches usually ignore the semantic association between services. Therefore, many other approaches based on the LDA topic model and its extensions have been proposed [1, 2]. They first extract the hidden topics in web services, and then use low-dimensional topic vectors to encode the functional attributes of web services. Finally, they calculate the similarity between services so as to organize services into different clusters. The experimental results show that these topic model-based approaches can achieve good results. However, the WSDL documents for web services are usually short in length, containing very little semantic (or functional) information that can be used by LDA-based clustering approaches. Thus, the semantic-related similarity metrics seem to not perform better than structure-related similarity metrics in clustering web services [1]. Therefore, it is of great importance to propose much more useful structure-related similarity metrics to promote the performance of service clustering approaches.

The purpose of this work is to propose some novel structure-related similarity metrics so as to combine them together to quantify the similarity between services as a whole. It is expected that the novel similarity metrics can be used to improve the performance of service clustering approaches. In this paper, we propose a SCAS (service clustering approach using structural metrics) approach to group services into different clusters. First, SCAS uses an ASAN (atomic service affiliation network) to represent composite services, atomic services, and their relationships. Based on the ASAN, we propose our first structural metric, (composite-sharing similarity) which is a similarity owing to the sharing of common composite services. Second, by projecting the ASAN onto the atomic services, we build an ASDN (atomic service dependency network) to denote atomic services and their relationships. Based on ASDN, we propose our second structural metric, (atomic-service-sharing similarity) which is a similarity owing to the sharing of common atomic services. Third, we propose the final structural metric, (atomic service similarity) to characterize the atomic service similarity as a whole, which is a linear combination of and . Finally, we propose a SSN (service similarity network) and a community detection algorithm, GUIDA (Guided community detection algorithm), to find the community structures in the SSN. The communities correspond to the atomic service clusters. GUIDA only takes the similarity between atomic services as its input and can determine the number of clusters for the atomic service set automatically. Our experimental study is carried out on a real-world service data set collected from a famous service directory ProgrammableWeb (PWeb) (https://www.programmableweb.com). The comparative studies show that our approach performs better than -based approaches and semantic-based approaches.

The main contributions of this paper can be summarized as follows:(i)The introduction of a novel structural metric to characterize the service similarity, which combines two structure similarity metrics simultaneously, i.e., one is proposed to characterize the composite-sharing similarity and the other one is used to characterize atomic-service-sharing similarity. Our metric is very different from the existing structural similarity metrics which usually only character the composite-sharing similarity, ignoring the atomic-service-sharing similarity.(ii)The application of a parameter-free community detection algorithm to detect the communities and group services into clusters. Our approach only takes the similarity between services as the input and can determine the number of clusters in the service set automatically. It is very different from the existing approaches which needs to set the number of clusters beforehand to cluster services.(iii)A real-world data set is built to validate our approach empirically, which is very different from those approaches using a simulation way to validate their approaches.

The reminder of this paper is organized as follows. Section 2 reviews the related work. Section 3 presents our SCAS approach, with the focus on service networks, similarity metrics, and the GUIDA algorithm used to group services into clusters. Section 4 presents the empirical validation of our SCAS approach. We draw conclusions in Section 5.

As mentioned above, service clustering is one of the effective technologies to help the matching of requirements and services. Its main goal is to group services into different clusters according to the similarity of their functions. Generally, services in the same cluster are similar to each other while services in different clusters are different. Till now, lots of service clustering approaches have been proposed. According to the information that they used to characterize service similarity, they can be roughly divided into two categories: function-based service clustering approaches [1, 7ā€“11] and nonfunction-based clustering approaches [12ā€“16].

Function-based service clustering approaches employed the functional information of services (e.g., description documents, tags) to group services into clusters. Chen et al. [7, 8] proposed an improved service clustering approach which integrates WSDL documents and service tags to improve clustering accuracy. They think that tags represent the functional characteristics of services, which can be combined with WSDL documents to much more accurately determine the functional category of services. Shi et al. [9] first organized words in the service description of all services according to semantics using the Word2Vec, and then they proposed an improved clustering approach by considering the auxiliary function of the words which belong to the same cluster with the words in the service description document. Liu et al. [10] first trained a preliminary SVM classifier based on a small set of manually labeled samples. Then, they recommended potential labels for other services that are not manually labeled based on the SVM classifier. Finally, services are clustered based on these labeled samples. Cao et al. [11] extracted the hidden topic information of mashup services based on the LDA topic model, and then clustered the mashup services based on the LDA topic model. Chen et al. [8] proposed an enhanced probabilistic topic model (WT-LDA), which can model Web service description documents and service tag information simultaneously so as to group services into clusters. Shi et al. [9] proposed a Mashup-API-Tag probabilistic topic model to model the service description, label information, and the composite relationship information among services, so as to improve the accuracy of topic information extraction. Pan and Chai [1] proposed a novel mashup service clustering approach based on a structural similarity and a genetic algorithm-based clustering algorithm. Their approach can group mashup services into clusters effectively and determine the number of clusters automatically.

Nonfunction-based clustering approaches employed the nonfunctional information of services (e.g., QoS and physical locations) to group services into clusters. Liu et al. [12] proposed a service clustering algorithm based on an ontology which contains the information of service name, performance, interface, and QoS attributes. Zhou et al. [13] used a genetic algorithm to group services into clusters by using the QoS information of services. To avoid converging to a local optimum, they introduced the concept of entropy to measure and improve the population diversity of their genetic algorithm. Chen et al. [14] proposed a service clustering algorithm based on the historical QoS data with similar physical characteristics to ensure that services in the same cluster have similar physical environment characteristics. These clustering algorithms only consider nonfunctional attributes, thus usually have a relatively small value of execution complexity. However, these algorithms usually do not have good scalability because nonfunctional attributes of services are often difficult to obtain and unstable.

Generally, the structure-related similarity metrics perform better than semantic-related similarity metrics in grouping services into clusters since the WSDL documents and service descriptions do not always carry a lot of function-related information. However, to the best of our knowledge, there is only one structure-related similarity metric, (composite-sharing similarity) [3]. Therefore, it is of great importance to propose much more useful structure-related similarity metrics to promote the performance of service clustering approaches. In this work, we proposed an atomic-service-sharing similarity metric. Our metric is different from . Our metric is based on the sharing relationship of atomic services while is based on the sharing relationship of composites.

3. SCAS Approach

In this paper, SCAS approach is proposed to group services into different clusters. It is composed of four steps: (1) SCAS uses an ASAN to represent composite service, atomic services, and their relationships and proposes the metric. (2) SCAS builds an ASDN to denote atomic services and their relationships and proposes the metric. (3) SCAS proposes the metric to characterize the atomic service similarity as a whole. (4) SCAS applies a community detection algorithm to find the service clusters in the set of atomic services. The workflow of the SCAS approach is shown in Figure 1.

3.1. Services Profile Crawling

To group services into clusters, the first work that we should do is to craw the profile of services to be clustered. Generally, the profile of services are usually registered in a registration center where people can share their own developed services with other people over the world. Furthermore, people can find the right services to meet their requirements by searching and browsing in the registration center.

To the best of our knowledge, there are many famous service registration centers such as ProgrammableWeb (PWeb) (https://www.programmableweb.com), myExperiment (https://www.myexperiment.org/home), and Biocatalogue (https://www.biocatalogue.org). To carry out the service clustering work, we will crawl the profile of services stored in these registration centers. The information includes service name, the lower level services each composite service used, and the category each service belongs to. The information will be stored in the local database as to reduce the noises and finally build the data set for SCAS to perform the service clustering task.

3.2. Service Network Construction

Complex network theory has been widely used in software engineering to quantify software structure [17, 18], identify key classes [19, 20], and measure software quality [21ā€“23]. In this work, to quantify the service similarity as a whole, we also apply the complex network theory and build three service networks, i.e., ASAN (atomic service affiliation network), ASDN (atomic service dependency network), and SSN (service similarity network), which are defined as follows.

3.2.1. Atomic Service Affiliation Network

Definition 1. ASAN is an affiliation network that can be denoted formally as , where denotes the node set of composite service, denotes the node set of atomic services, and E denotes the unweighted undirected edge set between every pair of composite service and atomic service if the composite service uses the atomic service, i.e., if uses , then it follows that . ASAN is essentially a two-mode graph. As a two-mode graph, any edge can only exist between the different node sets and , i.e., . To be specific, if , then it follows that and . E will be associated with a adjacency matrix to encode the ā€œuseā€ relationships between a specific pair of composite service and atomic service. The entry of , , is defined asWe use a simple example shown in Figure 2 to show the idea to build the ASAN. The example is chosen from our data set used in Section 4 and is borrowed from [1, 2]. As shown in the example, the composite service (i.e., mashup ā€œFacebook Friend Plotter (https://www.programmableweb.com/mashup/facebook-friend-plotter)ā€) consists of three atomic services (i.e., APIs ā€œGoogle Ajax Search (https://www.programmableweb.com/api/google-ajax-search),ā€ ā€œFacebook (https://www.programmableweb.com/api/facebook),ā€ and ā€œGoogle Maps (https://www.programmableweb.com/api/google-maps)ā€). Thus, in the corresponding ASAN, there exist three edges between composite service ā€œFacebook Friend Plotterā€ and the other three atomic services ā€œGoogle Ajax Search,ā€ ā€œFacebook,ā€ and ā€œGoogle Maps.ā€ By taking a similar way, we can establish other edges in the ASAN.

3.2.2. Atomic Service Dependency Network

ASAN describes the macro composition information between composite services and atomic services, and it also implicitly reflects the composition potential between the atomic services that exist in the same composite services. In other words, if two atomic services and are used together in 1 composite service(s), it follows that and have the probability to be composed together to build a composite service. Thus, in this work, we will build an ASDN (atomic service dependency network) to capture atomic services and their composition potential.

Definition 2. ASDN can be formally denoted as , where denotes the node set of atomic services ( is the same as that in ASAN) and is the edge set between atomic services, signifying the composition potential between the atomic services, i.e., if , and then it follows that and have the probability to be composed together. Each edge will be assigned a weight to denote the number of composite services that the two atomic services commonly participate in. will be associated with a adjacency matrix to encode the composition relations between a specific pair of atomic services. The entry of , , is defined aswhere is the weight assigned to the edge , denoting the number of composite services that the two atomic services commonly participate in.
We also use a simple example shown in Figure 3 to show the idea to build the ASDN. ASDN is constructed from the example shown in Figure 2. As is shown in the example, since the composite service ā€œFacebook Friend Plotterā€ uses the function of atomic services ā€œGoogle Ajax Searchā€ and ā€œGoogle Maps,ā€ an edge between the node of ā€œGoogle Ajax Searchā€ and the node of ā€œGoogle Mapsā€ will be established in Figure 3. We establish all other edges in Figure 3 by taking a similar way.
In this work, ASDN is built by using the one-mode projection of ASAN on atomic services. Specifically, if two atomic services are used together in composite service(s), then it follows that an edge will be established between the two atomic services in ASDN.

3.2.3. Service Similarity Network

We use SSN to denote services and their similarity relationships. Thus, SSN can be defined as follows:

Definition 3. SSN can be formally denoted as , where denotes the node set of atomic services ( is the same as that in ASAN and ASDN) and is the edge set between atomic services, signifying the similarity relationships between the atomic services, i.e., if , and then it follows that and are similar to each other. Each edge will be assigned a weight to denote the similarity between the two atomic services. will be associated with a adjacency matrix to encode the similarity relations between a specific pair of atomic services. The entry of () is defined aswhere is the similarity between atomic services s and t, which will be computed in Section 3.3.

3.3. Service Similarity Metrics

To group services into clusters, we usually need to quantify service similarity as a whole. In this work, service similarity is measured from the perspective of structure. As mentioned above, in this work, we quantify service similarity using two structure-related metrics, (composite-sharing similarity) and (atomic-service-sharing similarity). The service similarity as a whole is measured as the integration of and .

If the composite-sharing similarity between two atomic services s and t is denoted as , then it can be defined aswhere and denote the number of composite services that atomic services s and t are used, respectively.

If the atomic-service-sharing similarity between two atomic services s and t is denoted as , then it can be defined as

Obviously, is the ratio of relative to the total number of weights on the edges that link to ; otherwise, equals 0.

Furthermore, the atomic-service-sharing similarity between atomic services s and t is denoted as the maximum value of and , i.e.,

Then, the total similarity between atomic services s and t, , can be defined aswhere is the weight assigned to the component of equation (7).

In this work, is determined by (coefficient of variation) [24], which refers to a statistical metric that is used to measure the distribution of data points in a data series around the mean. is a helpful statistic in comparing the degree of variation from one data series to the other. is computed by deriving the ratio between the standard deviation and the mean. Thus, is defined aswhere and are the standard deviation and mean of the sample, respectively.

In this work, we will first compute (or ) for all pairs of atomic services s and t (). Then, we compute the and for the (or ) set so as to obtain the for (or ). If we use (or ) to denote the for (or ), then it follows that

3.4. Community Detection Algorithm
3.4.1. Modularity Q

In the literature, many different community detection algorithms have been proposed to organize nodes in a network into communities. Among them, a popular way used is to optimize a Q index [21, 25]. Q is short for , which is used to quantify the quality of a specific partition of a network into communities. Q is based on the measurement of density of edges within communities compared with edges between communities. In this work, we also applied Q to measure the quality of a specific clustering solution of atomic services. For SSN, a weighted undirected network, Q can be defined aswhere m denotes the sum of the weight on all edges in the SSN, denotes the weight assigned to edge or (), and are the sum of the weight on the edges linking to nodes i and j, respectively, and denote the communities into which nodes i and j are organized, respectively, and returns 1 when equals , 0, otherwise.

In the process of community detection in SSN, once an atomic service is moved from one community to another community, Q will be recalculated to decide whether to accept or reject this movement.

3.4.2. Community Detection Algorithm Flow

In this work, a Guided community detection algorithm (GUIDA) is introduced to perform the community detection task in SSN. GUIDA is originally proposed to refactor the class structure [22, 23]. The ā€œguideā€ means GUIDA is different from the traditional community detection algorithms using a guidance way. Its ā€œguideā€ reflects mainly in two aspects:(i)Guide the initial division: composite services consist of a set of related atomic services. Thus, composite services can be seen as the initial communities of atomic services. There is no need to start the community detection process using a random way by assigning each atomic service to a random community. In this work, we will guide the initial division by grouping the atomic services in the same composite service to a same community. However, this will make some atomic services belong to different communities since some atomic services may participate in the composition of composite service(s). Thus, in this work, we first assign atomic services participating in the composition of composite service(s) to different communities. Then, for the atomic services participating in the composition of only one composite service, they will be assigned to the community of the atomic services that they are most similar to that in the SSN. Finally, for the remainder of the atomic services, we will assign them to a random community.(ii)Guide the atomic-service-moving process: GUIDA groups atomic services into communities by a series of atomic-service-moving operations. In this work, the atomic-service-moving operation can only happen at atomic services linking to other atomic services in ASDN and belonging to different communities.

In Algorithm 1, we show the flow of GUIDA, where array stores of ASDN; array stores of SSN; is an array storing the degree of atomic services in ASAN, e.g., atomic service i has degree ; is an array storing the community identifiers for all atomic services, e.g., atomic service i belongs to the community with identifier ; is an array with the Boolean type denoting whether atomic service i has been initialized or not; and is an array with the Boolean type denoting whether node i has been visited or not.

ā€‰Input:
ā€‰ASAN, ASDN, and SSN
ā€‰Output:
ā€‰Q and all the communities
(1)Initialize , , , ā€‰=ā€‰false, and ā€‰=ā€‰false
(2)Calculate the degree of each atomic service in ASAN and store them in
(3)for iā€‰=ā€‰1 to do
(4)ā€ƒā€‰=ā€‰0;
(5)ā€ƒif [iā€‰ā€‰1 then]
(6)ā€ƒā€ƒā€‰=ā€‰++;
(7)ā€ƒā€ƒā€‰=ā€‰true;
(8)ā€ƒend if
(9)end for
(10)for iā€‰=ā€‰1 to do
(11)ā€ƒif [iā€‰=ā€‰=ā€‰1 ! then]
(12)ā€ƒā€ƒā€‰=ā€‰āˆ’1;
(13)ā€ƒā€ƒā€‰=ā€‰āˆ’1;
(14)ā€ƒā€ƒfor jā€‰=ā€‰1 to do
(15)ā€ƒā€ƒā€ƒif ā€‰ā€‰ then
(16)ā€ƒā€ƒā€ƒā€ƒā€‰=ā€‰;
(17)ā€ƒā€ƒā€ƒā€ƒā€‰=ā€‰j;
(18)ā€ƒā€ƒā€ƒend if
(19)ā€ƒā€ƒend for
(20)ā€ƒā€ƒif !ā€‰=ā€‰āˆ’1 !ā€‰=ā€‰āˆ’1 then
(21)ā€ƒā€ƒā€ƒā€‰=ā€‰;
(22)ā€ƒā€ƒā€ƒā€‰=ā€‰true;
(23)ā€ƒā€ƒā€ƒ++;
(24)ā€ƒā€ƒend if
(25)ā€ƒend if
(26)ā€ƒif ā€‰=ā€‰=ā€‰ then
(27)ā€ƒā€ƒbreak;
(28)ā€ƒend if
(29)ā€ƒiā€‰=ā€‰1;
(30)end for
(31)Calculate the initial Q according to equation (10)
(32)for iā€‰=ā€‰1 to do
(33)ā€ƒfor jā€‰=ā€‰1 to do
(34)ā€ƒā€ƒif [j [i] 1 ā€‰ā€‰ ! ā€ƒā€ƒthen
(35)ā€ƒā€ƒā€ƒSuppose we move atomic service i to community
(36)ā€ƒā€ƒā€ƒUpdate
(37)ā€ƒā€ƒā€ƒCalculate Q according to equation (10). Denote it as
(38)ā€ƒā€ƒā€ƒStore ā€‰=ā€‰ā€‰ā€“ā€‰Q into an array
(39)ā€ƒā€ƒend if
(40)ā€ƒend for
(41)ā€ƒā€‰=ā€‰true
(42)ā€ƒSelect the maximum . Denote it as
(43)ā€ƒif then
(44)ā€ƒā€ƒMove atomic service i to community that produces the largest
(45)ā€ƒā€ƒfor mā€‰=ā€‰1 to do
(46)ā€ƒā€ƒā€ƒif [i [m]ā€‰=ā€‰=ā€‰1 then]
(47)ā€ƒā€ƒā€ƒā€ƒā€‰=ā€‰false
(48)ā€ƒā€ƒā€ƒend if
(49)ā€ƒā€ƒend for
(50)ā€ƒā€ƒā€ƒiā€‰=ā€‰1
(51)ā€ƒā€ƒā€ƒ
(52)ā€ƒend if
(53)end for
(54)return Q and all the communities

As is shown in Algorithm 1, the most dominant steps of GUIDA are step 32 to step 53 with the loop. Thus, the computational complexity of GUIDA is O ().

4. Empirical Study

In this section, we performed experiments to investigate the effectiveness of our SCAS approach. For the experiment environment, all the experiments were carried out on a PC at 2.6ā€‰GHz with 8ā€‰GB of RAM.

4.1. Research Questions

We performed experiments with the aim to address the following two research questions (RQs):(i)RQ1: Does our SCAS approach perform better than other -based approaches?ā€‰We integrate and together to quantify the similarity between atomic services and use a guided community detection algorithm to group atomic services into clusters. Thus, we wish to know whether our SCAS approach performs better than approaches that only use to quantify the similarity between atomic services.(ii)RQ2: Does our SCAS approach perform better than other semantic-based approaches?ā€‰There are many research works on clustering services (see Section 2). Thus, we wish to know whether our SCAS approach performs better than some of these approaches, especially those based on semantic similarities.

4.2. Objects of Study

As mentioned above, PWeb is a famous service repository and widely used as a benchmark data set for experiments of service clustering approaches [1]. PWeb provides the profile of APIs and mashups, including their names, descriptions, tags, and providers. Every mashup is composed of 1 API(s) which will be listed in the profile of the mashup. Mashups can be regarded as composite services and APIs can be regarded as atomic services. Thus, PWeb meets the requirement of our SCAS approach and can be used as our object of study.

We crawled the profile of mashups stored in the PWeb till December 14, 2011. Specifically, we crawled the name of mashups and the APIs that mashups used. Figure 4 illustrates the information that we crawled for a mashup.

Specifically, we crawled the name of the mashup (i.e., ā€œPulse Medicā€) and the APIs it used (i.e., ā€œGoogle AdWords,ā€ ā€œHealthfinder.gov,ā€ and ā€œeduroamā€). Finally, our data set for experiments contains 6,362 mashups and 982 APIs.

4.3. Baseline Approaches

The purpose of this work is to improve the performance of service clustering approaches that are based on structure-related metrics. Thus, our SCAS will be compared with the approach using , which is named as CSCA (-based service clustering approach). CSCA uses to quantify the similarity between atomic services and uses GUIDA to group atomic services into clusters.

We cannot make a thorough comparison with the approaches that we have reviewed in Section 2. The main reason is that we cannot implement their approaches since their work does not report the details of their approaches. But, we try our best to compare our approach with the approaches that we reviewed in Section 2. In this work, we compare our approach with the following two approaches in the related work, which are originally proposed to cluster Web services.(i)TCluster: it uses the information of tags to quantify the semantic similarity between APIs by using LDA and further applies k-means to organize APIs into clusters.(ii)DTCluster: DTCluster is very similar to TCluster. The only difference is DTCluster also utilizes the information of the description.

4.4. Experiment Process and Results

We follow the main procedures shown in Figure 1 to parse the data set, build the ASAN, ASDN, and SSN, compute , , and , and apply GUIDA group APIs into clusters.

Figures 5(a) and 5(b) show the ASAN and ASDN we constructed from PWeb, respectively. The position of the nodes in ASAN and ASDN is all computed using the circular algorithm in Pajek (Pajek: http://vlado.fmf.uni-lj.si/pub/networks/pajek/).

Based on ASAN and ASDN, we compute the and similarity metrics between APIs so as to compute the to quantify API similarity as a whole. Then, we can use GUIDA to group APIs into clusters. In the experiment, GUIDA returns the communities in the SSN when it terminates at .

4.5. Analysis of the Results

In this section, we analyze the obtained service clustering results with the aim to answer the research questions that we have presented in Section 4.1. To compare SCAS with CSCA, we should measure the quality of their clustering solutions.

In this work, we apply a set of criteria that are widely used in information retrieval, i.e., Precision, Recall, and F-Measure (i.e., and ) [1]. To compute the value of these criteria, we use the classification system in PWeb as the standard clustering results, i.e., APIs in the same category are viewed as APIs in the same cluster. These criteria can be defined as follows:(i)True Positive (TP). A TP decision assigns two similar atomic services to the same cluster(ii)False Positive (FP). A FP decision assigns two dissimilar atomic services to the same cluster(iii)False Negative (FN). A FN decision assigns two similar atomic services to different clusters(iv)True Negative (TN). A TN decision assigns two dissimilar atomic services to different clusters

Generally, a larger value of Precision, Recall, and F-Measure indicates a better service clustering solution [17ā€“19].

4.5.1. Does Our SCAS Approach Perform Better than Other -Based Approaches?

SCAS combined and to quantify the similarity between atomic services while CSCA applied . The only difference between SCAS and CSCA is the similarity metrics that they used. Thus, by comparing the results obtained by SCAS with those of CSCA, we can know whether SCAS performs better than CSCA.

Figure 6 shows the performance comparisons of the two approaches, SCAS and CSCA, when applied to the data set. Obviously, SCAS outperforms CSCA with respect to , , , and . It indicates that the combination of and can improve the performance of a service clustering approach.

4.5.2. Does Our SCAS Approach Perform Better than Other Semantic-Based Approaches?

As mentioned in Section 2, there are many research works on clustering services. In this section, we performed experiments to check whether our SCAS approach performs better than some of these approaches which are based on semantic similarities, i.e., TCluster and DTCluster. As mentioned above, the only difference between SCAS and TCluster (or DTCluster) is the former applied structure-based similarity metrics while the latter applied semantic-based similarity metrics. Thus, by comparing the results obtained by SCAS with those of TCluster (or DTCluster), we can know whether structure-based similarities are better than semantic-based similarities in service clustering.

Figure 7 shows the performance comparisons of the three approaches, SCAS, TCluster, and DTCluster, when applied to the data set. Obviously, SCAS outperforms TCluster and DTCluster with respect to , , , and . It indicates that structure-based similarity metrics are better than semantic-based similarities in service clustering.

5. Conclusions

In this work, we proposed a SCAS approach to group services into different clusters. It proposed an improved structure-related metric, , to quantify service similarity and proposed a guided community detection algorithm to organize services into clusters. Comparative studies with other related approaches on a real-world data set show that SCAS performs better than some of the existing approaches.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (no. 61375053).