Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A novel QoS-aware prediction approach for dynamic web services

  • Yiguang Song ,

    Contributed equally to this work with: Yiguang Song, Li Hu

    Roles Conceptualization, Investigation, Methodology, Software, Validation, Writing – review & editing

    Affiliations School of Electronic and Info rmation Engineering, Hebei University of Technology, Tianjin, China, National Space Science Center, Chinese Academy of Sciences, Beijing, China

  • Li Hu ,

    Contributed equally to this work with: Yiguang Song, Li Hu

    Roles Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft

    lihu1993@buaa.edu.cn

    Affiliation School of Software Engineer, Beihang University, Beijing, China

  • Ming Yu

    Roles Supervision, Validation, Writing – review & editing

    Affiliation School of Electronic and Info rmation Engineering, Hebei University of Technology, Tianjin, China

Abstract

Web service has become irreplaceable for service-oriented application in both academia and industry in recent years. Quality of Service (QoS) is used to describe the nonfunctional characteristics of Web service. Identifying Web service QoS is crucial for service-oriented application designers because service users may obtain very different QoS performance of the same service in the client-side due to dynamic changes of Internet environment as well as user context. However, evaluating QoS performance of a large scale of Web services requires considerable time and resources in real-world. Existing methods can make a personalized prediction for average QoS values by employing historical data but fail to take into consideration the fluctuation feature of Web service QoS values. To address this issue, this paper proposes a novel method for personalized QoS prediction of dynamic Web Services. First, a novel approach is used to extract feature points of QoS sequences and dynamic time warping distance is used to compute the similarity instead of Euclidean distance. By finding the most similar QoS sequences of the target QoS sequence, the missing QoS values can be predicted without extra Web services invoking. To validate our method, we conduct a large number of experiments based on real-world Web service QoS data set. The experimental studies show that our method has higher accuracy rate compared with the existing methods.

Introduction

Web services are self-described applications designed to support interoperable machine-to-machine interaction over the network via standard interfaces and communication protocols [1]. Quality of Service (QoS) is usually employed to describe the nonfunctional Characteristics of Web service [2]. With the increasing number of Web service and extensive application in various domains, there are many Web services providing by different service providers with the same or similar functionalities but difficult QoS values. Thus, how to identify the QoS of Web service with identical or similar functionalities is a fundamental problem in service computing.

Generally, service providers usually provide an official QoS value of all their services. However, different service users invoking the same service from the same service provider may observe various QoS performance because the network environment changes over time and over user context. To obtain the local QoS values of the target service, service users usually send a request of target service in client-side and wait for the result from server-client. However, it’s difficult for service users to conduct all the real-world Web service measurements at the client-side and sometimes it’s impossible due to the following reasons:

  • First, Web service invocations may consume a large amount of time and cost a lot of money because many Web service is charged. Although some providers could provide free services, it still takes a long time.
  • Second, it's time-consuming for service users to evaluate Web service. Most service users are not professional in evaluating services. And some services are difficult to measure and need long-term observation and detection.
  • Finally, some evaluation in the client-side is unreal for other service users considering the different context and dynamic network environment.

Therefore, providing a time-aware QoS prediction method is urgent for service-oriented application designers to make decisions of Web service selection [3] [4], Web service composition [5] [6]. Existing approaches can only predict the average QoS values but fail to predict the fluctuation of QoS of dynamic Web service.

We make a full analysis of factors affecting prediction accuracy. First, due to sparse active users, top-k similar users may include negatively similar users in the process of similarity calculation. Second, some dissimilar services may be included in the prediction process and cause a negative influence on predicted results. Active users may invoke only a few Web services and some approaches make a prediction based on a lot of web service invoking. Third, many of their methods employ the average QoS value of an active user to describe the historical data. However, the average performance of Web services will lead to finding dissimilar users or services of the active user because QoS values vary from network to network and location to location.

To solve the problem above, we propose a novel method for personalized QoS prediction of dynamic Web services. The idea is utilizing the QoS values of user usage experience to make a prediction of the QoS value of requested service. To get a higher similarity of the current user and current service, we extract the RTT fluctuation feature of all services and employ the feature matrix to compute the similarity of services and users to find the most similar services and most similar users. Then the missing values are predicted by the weighted calculation of historical data.

In summary, this paper makes four obvious contributions as follows:

  • Provide a prediction model for dynamic Web services QoS values, which support all the metrics of QoS such as respond time and throughput without any modifications.
  • Propose a method to extract feature points of QoS time sequences to reduce calculation time greatly especially when the dataset is very large.
  • The first work to explicit dynamic time warping distance instead of Euclidean distance to measure the similarity of Web service QoS time sequences.
  • Predict the personalized QoS values of Web services with a high accuracy, and support real-time service selection and service composition.

The remainder of this paper is organized as follows: section II presents the background of QoS prediction. Section III describes our method and shows our method how to make a prediction of the missing values. Section IV shows the experiment and the results. Section V introduces the related work. Section VI makes a conclusion on this paper.

Materials and methods

Web service becomes an important part of service-oriented applications and QoS is the key factor for their designers to choose a trustworthy web service from many candidate services. Besides service recommendation also need QoS performance data of all users and service.

Section III-A describes the problem of QoS value prediction on dynamic web services and then we solve the problem in five phrases. First, we extract feature points of dynamic web service time sequences in Section III-B and then Section III-C shows how to calculate the distance between two QoS sequences. In Section III-D and Section III-E, we compute the similar users and similar web services of the target sequence based on the dynamic time warping distance. Finally, a prediction is made in Section III-F based on previous methods.

Problem description

The aim of our method is to predict the missing QoS values in a high accuracy so that service user can select an optimal QoS web service in candidate services. The process of prediction is always involving a user-service matrix, as shown in Table 1.

Table 1 shows a toy example of the user-service matrix. Here are five users and five services totally. In this matrix, every entry is a QoS value vector (e.g. q1,1 to q5,5) of one property (e.g. respond-time, availability, price, reliability.) of one web service (e.g. service1 to service5) observed by one service user (e.g. user A to user E). For example, user A invokes web service1 a few times and the vector of these respond-time values will be recorded as the first entry. The NAN value in the matrix means the service user has not invoked the service yet and has no record about QoS of the service. Since service users invoke a few web services in the real world, the user-service matrix is very sparse.

The problem is how to employ the existing entries in predicting the NAN entries in the user-service matrix.

More formally, the problem studied in this paper is defined as follows: Given a set of users U and a set of services S as well as a set of vectors Q of QoS values (In this paper, we mainly focus on the property of respond-time, which also called Round-trip time (RTT)), predict the missing values in the user-service matrix using the existing QoS values provided by different users.

Here is the definition of notations used in the rest of this paper:

U = {ui|1 ≤ in} is a collection of service users, where n is the total number of service users and ui stands for a service user in this collection.

S = {sj|1 ≤ jm} is a collection of web services with similar functionality, where m is the total number of web services and sj stands for a web service in this collection.

Q = {qi,j|1 ≤ in, 1 ≤ jm} is a collection of QoS vectors and each element is a QoS values vector of a web service observed by a service user. For example, user B observes several QoS values of web service1 and these values is noted as q2,1.

Problem definition

given a sparse user-service-time three-dimensional matrix M, we will use the existing entries qi,j to predict the missing values.

Method description

First, input the target user uid and target service sid. Second, extract feature points FP of all the time sequences qi,j, and then find the similar users and similar services of the target sequence via computing the dynamic time warping distance of FP. Finally, predict the target sequence with the similar sequences.

The details in our method will be introduced in the following five phases.

Related work

To improve the prediction accuracy, many researchers have proposed a series of QoS predicting methods, generally including the two categories: memory-based methods, model-based methods. The details will be introduced in corresponding sections.

Memory-based methods.

The idea of memory-based methods is employing the similarity between web services and between service users to predict the target QoS values. Shao et al. [7] firstly proposed Collaborative Filtering (CF) to predict QoS values of unused web services. This method assumes that web service users with the similar experience on some services will have similar experiences on the other web services. It calculates the similarity between every two users and predicts the unused web service QoS values based on the users with a higher similarity of the target user.

Lin et al. [8] improved the CF method and proposed to measure the similarity between web services with Euclidean distance. This method gives a QoS prediction method considering both user similarity and web service similarity. However, the prediction accuracy is undesirable by only employing the similar user's experience. In order to improve the prediction accuracy, Zheng et al. [9] proposed a prediction method based web service historical information. This method firstly calculates the similarity between the target service and other services and selects top-k similar services to fill in the missing values of QoS information matrix. Then it predicts the target according to the QoS information matrix and further improves the prediction accuracy.

Most of the existing methods are based on a large number of web services QoS data. However, there is a lack of relatively complete dataset for most researchers, which makes it hard to do further research. Zhang et al. [10] put forward a WSPred framework, which is a collaborative platform to share QoS information among users and facilitate the system to make accurate prediction and recommendation. This method implements the user-side and lightweight middleware to realize the information recording and QoS experience sharing. This paper predicts the missing QoS value by analyzing the user characteristics, the time characteristics, and the service characteristics.

Model-based methods.

The model-based approach is an improved prediction method based on the CF method. There are three main models including cluster models [11][12][13], matrix decomposition models[14][15] and tensor decomposition models[16][17]. Clustering models focus on grouping users and services according to different clustering ways, and then calculating similarity based on them, so as to calculate the target QoS values.

Since the traditional prediction methods cannot identify user characteristics, Chen et al. [11] designed a novel cluster-based prediction method and put forward the concept of regional sensitive services and regional sensitive users. This paper predicts according to the regional sensitive users and sensitive services. Compared with the traditional collaborative filtering algorithms, this method achieves higher accuracy and can predict the personalized QoS values of a target object.

Yu et al. [12] proposed a novel algorithm based on time and geographical location to predict QoS value. This algorithm solves three major problems of recommendation system: high-quality prediction, high maintainability, easy modeling, and maintenance. Without traversing the entire QoS dataset, this method only needs to find similar services and users. However, when the number of users increases or the number of services increases, only partial clustering results in inaccurate prediction. How to improve the processing capability of high dimensional datasets is a challenge.

To overcome the shortcomings of the existing CF methods, Liu et al. [13] proposed a location-aware QoS prediction method considering the geographic location of users and web services in order to enhance the reliability of the similarity. Geographic location information of the service and the user is fully taken into account, and a more personalized recommendation is made for the user. In fact, as far as response time is concerned, the geographically similar web services do perform better than far geographically located web services.

Compared with other CF methods, this method predicts closer to the original QoS values in the real world. However, it does not consider the dynamic change in the web environment.

The above two kinds of prediction method based on memory and model can improve the prediction accuracy to some extent, but they cannot predict the dynamic fluctuation because of the dynamic web environment. Usually, the QoS of web service is strongly related to the web server's load, network transmission rate, task type and task size. One or more of these factors will cause the change of web service QoS. Even the same service invoking by the same user will be observed different QoS values at different time slices. These QoS prediction methods are unable to predict the sequence of the target user and target service. Our method fills the blank of these previous methods and makes the first step to predict the QoS sequence.

Phase1: Extracting feature points

Usually, we use the average QoS value to replace a QoS value vector for the convenience of computing. However, the average values cannot deliver the characteristics of dynamic web services and may lead to finding dissimilar services or service users.

In fact, there are a set of key points in a time sequence. These key points can characterize the original sequence. So, we can extract these points to shorten the original sequence while the dataset is very large. We can save a lot of time via computing feature sequences instead of original time sequences.

Definition 1: if a point qi in sequence S = {q1,q2,…,qn} meets the following condition (1), qi is a feature point.

(1)

Definition 2: VD is the vertical distance from points A (i, qi) and line B. Line B is the line connecting start points and end point. VD is defined as follows: (2)

Notes: linear equation of Line B is defined as Y = aX+b. Given two points M and N, we can get the Coefficient a and b by solving the linear equation.

We first connect start point P1 and Pn and get a line l. Then via computing VD of all points, we get one feature point Pi of sequence S. Pi divides S into two subsequences. Then we adopt the same steps as mentioned above, we will get all the feature points until the length of all subsequences is less than stop_s (stop_s is decided by users). The stop_s means compress original time sequences into a short sequence with 1/stop_s length.

The algorithm 1: extracting feature points of dynamic web service time sequences

Input: a sequence of QoS values s = {q1,q2,…,qn}, stop_s

Output: a feature sequence of QoS values newS

1: startPoint := 1

2: endpoint := n

3: calculate Coefficient a and b of the line connect startPoint and endPoint

4: for i := 1 to n

5:         VD[i] = qi-(a*i+b)

6: end

7: middlePoint := max(VD)

8: newS.push(middlePoint)

9: left := middlePoint—startPoint

10: right := endPoint—middlePoint

11: if(left > stop_s)

13:         newS = getFP(startPoint, middlePoint, s)

14: if(right < stop_s)

15:         newS = getFP(middlePoint, endPoint, s)

16: if(left < = stop_s & right > = stop_s)

17: return newS

Phase2: Dynamic time warping distance

After extracting the feature points of time sequences, we get feature sequences of original. But how to measure the similarity of two temporal sequences is the first problem to solve.

In time sequences analysis, Dynamic Time Warping (DTW) is the classical algorithm for computing the similarity between two given sequences. Instead of Euclidean distance, DTW distance is employed for only one reason: DTW can measure the distance of two sequences which may not be aligned in time. Traditional Euclidean distance only computing the similarity of two time-aligned sequences.

The algorithm of DTW is described as follows. We use the idea of dynamic programming to solve the problem.

Algorithm 2: DTW Distance Computing

Input: two sequences of QoS values s_1, s_2

Output: DTW distance dt

1: DTW := array [0..n, 0..m]

2: for i := 1 to n

3:         DTW[i, 0] := infinity

4: for j := 1 to m

5:         DTW[0, j] := infinity

6: DTW[0, 0] := 0

7: for i := 1 to n

8:         for j := 1 to m

9:             cost: = d(s_1[i], s_2[j])

10:                 DTW[i, j] := cost + min(DTW[i-1, j ],

11:                     DTW[i, j-1],

13:                     DTW[i-1, j-1])

14: dt = DTW[n, m]

15: return dt

User-based prediction

Given a user set U and a service set S, the target user u invokes a set of service Su. we use the following equation (3) to the get the most similar user best_u of target user u. ∈ (3)

Su,q is the sequence of service q observed by target user in different time slices and Si,t is the sequence of services t observed by user i in different time slices. DTW(Su,q,Si,t) is the dynamic time warping distance between the sequence Su,q and the sequence Si,t. The best_u is the user id of minimum DTW distance in all the sequences.

For high prediction accuracy, we use the following equation (4) get the similarity coefficient of the best_u and the target user u.

(4)

Su,i is the sequence of service i invoking by target user and Sbest_u,j is the sequence of service j invoking by the most similar user best_u. Service i and j are selected from Suv, which is defined in equation (5).

(5)

Su is the service collection invoking by user u and Sv is the service collection invoking by user v. Suv is the service collection of common service both invoking by the target user and the best user.

Based on the previous steps, a user-based prediction can be made in (6), where S(best_u,s) is the sequence of service s invoking by the most similar user of all the users.

(6)

Service-based prediction

Given a user set U and a service set S, the target user u invokes a set of service Su. We use the following equation (7) to the get the most similar user best_s of target user s.

(7)

Sq,s is the sequence of target service s observed by the user q in different time slices and St,i is the sequence of services i observed by user t in different time slices. DTW(Sq,s, St,i) is the dynamic time warping distance between the sequence Sq,s and the sequence St,i. The best_s is service id of minimum DTW distance of all the sequences.

For high prediction accuracy, we use the following equation (8) get the similarity coefficient of the service best_s and the target service s.

(8)

Sm,s is the sequence of target service s invoking by user n and Sn,best_s is the sequence of the most similar service best_s invoking by user m. User n and m are selected from Uij, which is defined in equation (9).

(9)

Ui is the user collection which invokes service s and Uj is the user collection which invokes service best_s. Uij is the common user collection which both invokes the target service s.

Based on the previous steps, a service-based prediction can be made in (10), where S(u,best_s) is the sequence of best service best_s invoking by the target user.

(10)

Hybrid Prediction

Based on the user-based prediction and service-based prediction, hybrid prediction in (11) weights λ for user-based prediction and weights 1 − λ for service-based prediction.

(11)

Results and discussion

QoS prediction is a highly common problem of web service recommendation and we conduct a lot of experiments to validate the accuracy of our prediction method compared with other classical approaches such as item-based Pearson Correlation Coefficient (IPCC) [18] and user-based Pearson Correlation Coefficient (UPCC) [19]. According to our experiments, we address these following issues:

  • How does our method compare with other prediction methods? There are so many prediction methods in recent literature and a few can predict the fluctuation of QoS sequences. which method can be used to compare with our proposal?
  • How does data density affect the prediction accuracy of our method? Data density usually is used to test prediction method accuracy in order to simulate the true scenario in real-world. In fact, service users only invoke a few web services but in experiments, a service user always invokes thousands of web services. So we randomly remove some records to get the density of 5% to 50%.
  • How does λ affect prediction accuracy of our method? In the hybrid prediction method, it gives different weights on the most similar service and the most similar user. We do a lot of experiments to figure out which affects the prediction accuracy more.

Section A describes details about the dataset and Section B introduces the evaluation metrics. Section C shows the experimental procedure and outcomes of five prediction methods. And Section D and Section E explain the influence of matrix density and weight. Finally, Section F gives a discussion about the results.

Data set description

We adopt the dataset released by [20], which contains about 150 million Web service invocation records of 4,532 Web services from 142 users at 64-time intervals. Every time interval takes 15 minutes. RTT records are collected by 150 computer nodes from Plant-Lab, which are distributed in more than 20 countries.

To evaluate the performance of these algorithms above, in reality, we randomly remove RTT records from the original data to generate a sparse training data and compare the predicted values with original ones. Because only a small number of Web service would be used by users in reality.

Evaluation metrics

Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) is a statistical accuracy metric and commonly used in collaborative filtering to measure the prediction accuracy. We assess the prediction quality of our proposal compared with other approaches by computing MAE and RMSE. For all test users and test services, MAE is defined as follows: (12)

RMSE is defined as follows: (13)

Where denotes the predicting temporal sequence of user uid and service sid, Suid,sid represents the time sequence of service sid observed by the user uid, L denotes the length of the predicting temporal sequence.

Comparison

We conduct a lot of experiments to evaluate our approach. We implement the method as well as baseline approaches using the Matlab code and pack them into a web service. So, readers who are interested in our method can invoke the web service at any time. All the experiments were conducted on a PC with Intel i7-3537U CPU and 8G DDR3 RAM, running 64-bit window 10 operating system. All the source code (include Matlab and python code) will be released on my personal website and well documented. In order to evaluate the accuracy of our method, we compare the accuracy of our method with a baseline approach and other two QoS prediction methods. Although these methods cannot predict the fluctuation of dynamic web service QoS values directly, we can use the improved methods to predict.

  • M1 (UMEAN): this method predicts the target QoS values by employing the user average QoS values observed by the other users of the target user.
  • M2 (IMEAN): this method predicts the target QoS values by employing the service average QoS values observed by the other services of target service.
  • FFM-1: this method is our proposed method, Fluctuation Feature Method-1, predicting QoS sequences based on users by Eq (5). It extracts the feature points of the time sequences and predicts QoS values via calculating the DTW distance and finds the most similar users with the target user.
  • FFM-2: this method is our proposed method, Fluctuation Feature Method-2, predicting QoS sequences based on services by Eq (9). It extracts the feature points of the time sequences and predicts QoS values via calculating the DTW distance and finds the most similar services with the target service.
  • HY: this method is our proposed method, the Hybrid prediction method combined user prediction and service prediction, predicting QoS sequences by Eq (10). It makes a prediction by employing the most similar services and users of the target object and giving them different weights.

In order to demonstrate the effectiveness of our method, we compare the MAE and RMSE values of respond time and throughput respectively with the above methods. We compare each prediction results with original data and calculate the values of MAE and MRSE. A lower numerical value of MAE or MRSE is considered better performance. In a real-world scenario, users always invoke only a few web services and a lot of web service are unused. So we remove some entries randomly and get a matrix with a density of different percent(e.g., 5, 10, 15 and 20 percent). For example, a 10 percent matrix means we select 10 percent data from the user-service matrix and use the selecting data to predict the remaining 90 percent data. Since the IMEAN and UMEAN method cannot predict the QoS sequence directly, we extend them into M1 and M2 to predict.

In Table 2, we compare the performance of these five methods above in the same parameter setting. We set λ = 0.8, and density = 5% to 5%, step = 5% in this experiment. As we can see in Table 2, the HY method has small values of both MAE and RMSE in the respond-time dataset from density = 5% to 20% and improve 68.9%~77.5% than M1. From density = 25% to 40%, FFM-1 are observed lower values of MAE and RMSE. And from density = 45% to 45%, HY method has lower values of MAE and RMSE again.

In the throughput dataset, we observed FFM-1 has smaller MAE and RMSE values than the other four methods from density = 5% to 50%. These methods are observed different performance with different matrix density. In this experiment, HY has a better performance than the other methods in general.

Influence of matrix density

To further evaluate the influence of matrix density, we compare all the predict accuracy changing density from 5% to 50% with a step of 5%. As Figs 1 and 2 shows, in the respond-time dataset, MAE and RMSE of M1 and M2 methods get smaller as the matrix density increases. However, in the FFM2 method, MAE and RMSE have no obvious changes with the matrix density. In FFM-1 and HY method, the overall trends of MAE and RMSE are becoming smaller as the matrix density changes. 15% and 25% are two turning points for HY methods. From 5% to 15% and 45% to 50%, HY method has smaller values of MAE and RMSE than FFM-1 method. From 20% to 40%, HY method has bigger values of MAE and RMSE than FFM-1 than FFM-1.

thumbnail
Fig 1. MAE changes with matrix density on the respond-time dataset.

In the respond-time dataset, MAE of M1 and M2 methods get smaller as the matrix density increases. MAE of FFM2 methods have no obvious changes with matrix density. In FFM-1 and HY methods, the overall trends of MAE become smaller as matrix density changes.

https://doi.org/10.1371/journal.pone.0202669.g001

thumbnail
Fig 2. RMSE changes with matrix density on the respond-time dataset.

In the respond-time dataset, RMSE of M1 and M2 methods get smaller as the matrix density increases. RMSE of FFM2 methods have no obvious changes with matrix density. In FFM-1 and HY methods, the overall trends of RMSE become smaller as matrix density changes.

https://doi.org/10.1371/journal.pone.0202669.g002

As Figs 3 and 4 shows, in throughput dataset, all the methods except FFM-2 have a downward trend of MAE and RMSE. When matrix density varies from 5% to 50%, FFM-1 has small values of MAE and RMSE than the other methods. FFM-2 has an overall decreasing trend except for the point of 35%. Due to the difference between datasets, these methods may perform a little different. In generally speaking, MY method and FFM1 has a non-controversial advantage than the other methods.

thumbnail
Fig 3. MAE changes with matrix density on throughput dataset.

In throughput dataset, all the methods except FFM-2 have a downward trend of MAE.

https://doi.org/10.1371/journal.pone.0202669.g003

thumbnail
Fig 4. RMSE changes with matrix density on throughput dataset.

In throughput dataset, all the methods except FFM-2 have a downward trend of RMSE.

https://doi.org/10.1371/journal.pone.0202669.g004

Influence of λ

From the experiment of matrix density on the respond-time dataset, 15% and 25% are two turning points for HY methods. We do a lot of experiments to study the influence of weight in two datasets. We set the same density in the same experiment to get the values of MAE and RMSE using the prediction method HY.

In Fig 5, we set density = 10% and using respond-time dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ< 0.8 and then increase with λ while λ≥0.8.

thumbnail
Fig 5. MAE changes with λ on the respond-time dataset.

In this experiment, we set density = 10% and using respond-time dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ<0.8 and then increase with λ while λ≥0.8.

https://doi.org/10.1371/journal.pone.0202669.g005

In Fig 6, we set density = 25% and using respond-time dataset. As the figure shows, MAE firstly decreases with λ while λ< 0.7 and then increases with λ while λ≥0.7. RMSE decreases with λ while λ< 0.6 and then increases with λ while λ≥0.6.

thumbnail
Fig 6. RMSE changes with λ on the respond-time dataset.

In this experiment, we set density = 25% and using respond-time dataset. As the figure shows, MAE firstly decreases with λ while λ<0.7 and then increases with λ while λ≥0.7. RMSE decreases with λ while λ<0.6 and then increases with λ while λ≥0.6.

https://doi.org/10.1371/journal.pone.0202669.g006

In Fig 7, we set density = 10% and using throughput dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ< 0.5 and then increase with λ while λ≥0.5.

thumbnail
Fig 7. MAE changes with λ on throughput dataset.

In this experiment, we set density = 10% and using throughput dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ<0.5 and then increase with λ while λ≥0.5.

https://doi.org/10.1371/journal.pone.0202669.g007

In Fig 8, we set density = 25% and using throughput dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ<0.3 and then increase with λ while λ≥0.3.

thumbnail
Fig 8. RMSE changes with λ on throughput dataset.

In this experiment, we set density = 25% and using throughput dataset. As the figure shows, MAE and RMSE firstly decrease with λ while λ< 0.3 and then increase with λ while λ≥0.3.

https://doi.org/10.1371/journal.pone.0202669.g008

From these experiments, we can see λ is a key factor affecting the values of MAE and RMSE. When given a matrix density, we can do an experiment to get the best λ to predict using HY method.

Discussion

As we can see in Figs 9 and 10, The HY method has an effective prediction on QoS prediction. The method has an acceptable deviation on both dataset respond-time and throughput dataset. From the above experiments, we can analyze why these methods perform so differently with different parameter setting. The FFM-1 method makes a prediction based on similar users and FFM-2 method predicts based on similar services of the target object. From the analysis of dataset distribution, we can see it is a three-dimension matrix with 142 users, 4500 web services, and 64-time slices. Since the number of services is much more than the number of users, the similarity of users is more trusting than the similarity of services. So FFM-2 method has a higher prediction error than FFM-1 and HY methods. While we apply these methods to the real-world scenario, there will be far more than 142 users and far more than 4500 web services. They will perform better than in the laboratory experiments.

thumbnail
Fig 9. Prediction values VS original values on the respond-time dataset.

The HY method has an effective prediction on QoS prediction. Compared to the original data, this method has an acceptable deviation on the respond-time dataset.

https://doi.org/10.1371/journal.pone.0202669.g009

thumbnail
Fig 10. Prediction values VS original values on throughput dataset.

The HY method has an effective prediction on QoS prediction. Compared to the original data, this method has an acceptable deviation on throughput dataset.

https://doi.org/10.1371/journal.pone.0202669.g010

Conclusions

This paper proposed a novel model to predict QoS values by extracting feature points and calculating the similarity of QoS temporal sequences. It's the first work to measure the similarity by DTW distance. The paper presented three prediction method: user-based prediction, service-based prediction, and hybrid prediction. Besides, this paper demonstrated the effectiveness of our model via a larger number of experiments with two datasets. Compared to the average methods, our proposed methods have better performance in the two datasets.

In the future, we will improve our work in the following two aspects. First, we will implement a framework for users to share the QoS experience and build a QoS database for the researchers. The small dataset limits the research and development of QoS prediction. Second, our proposed method only can predict the missing values based on the user-service-time matrix, we will extend our model to predict the near future QoS values based on the full matrix.

References

  1. 1. Zhang LJ, Zhang J, Cai H. Service Computing. Springer; 2007.
  2. 2. Ran S. A model for web services discovery with QoS. ACM, 2003.
  3. 3. Hwang SY, Hsu CC, Lee CH. Service Selection for Web Services with Probabilistic QoS. IEEE Transactions on Services Computing. 2017, 8(3):467–480.
  4. 4. Esposito C, Ficco M, Palmieri F, Castiglione A. Smart Cloud Storage Service Selection Based on Fuzzy Logic, Theory of Evidence and Game Theory. IEEE Transactions on Computers, 2016, 65(8):2348–2362.
  5. 5. Zhang B. A simple web service composition method. International Conference on Electrical and Control Engineering, 2011,4322–4327.
  6. 6. Sadiq U, Kumar M, Passarella A, Conti M. Service Composition in Opportunistic Networks: A Load and Mobility Aware Solution. IEEE Transactions on Computers, 2015, 64(8):2308–2322.
  7. 7. Shao L, Zhang J, Wei Y, Zhao J, Xie B, Mei H. Personalized QoS Prediction forWeb Services via Collaborative Filtering. IEEE International Conference on Web Services. IEEE, 2007:439–446.
  8. 8. Shao LS, Zhou L, Zhao JF, Xie B, Mei H. A QoS Prediction Method for Web Service. Journal of software, 2009, 20(8):2062–2073.
  9. 9. Zheng Z, Lyu MR. Collaborative reliability prediction of service-oriented systems. ACM/IEEE International Conference on Software Engineering. ACM, 2010:35–44.
  10. 10. Zhang Y, Zheng Z, Lyu MR. WSPred: A Time-Aware Personalized QoS Prediction Framework for Web Services. 2011, 55(11):210–219.
  11. 11. Chen X, Liu X, Huang Z, Sun H. RegionKNN: A Scalable Hybrid Collaborative Filtering Algorithm for Personalized Web Service Recommendation. IEEE International Conference on Web Services. IEEE, 2010:9–16.
  12. 12. Yu C, Huang L. A Web service QoS prediction approach based on time- and location-aware collaborative filtering. Springer-Verlag New York, Inc. 2016.
  13. 13. Liu J, Tang M, Zheng Z, Liu X, Lyu S. Location-Aware and Personalized Collaborative Filtering for Web Service Recommendation. IEEE Transactions on Services Computing, 2016, 9(5):686–699.
  14. 14. Zheng Z, Ma H, Lyu MR, King I. Collaborative Web Service QoS Prediction via Neighborhood Integrated Matrix Factorization. IEEE Transactions on Services Computing, 2013, pp.289–299.
  15. 15. Tang M, Zheng Z, Kang G, Liu J, Yang Y, Zhang T. Collaborative Web Service Quality Prediction via Exploiting Matrix Factorization and Network Map. IEEE Transactions on Network & Service Management, 2017, 13(1):126–137.
  16. 16. Zhang W, Sun H, Liu X, Guo X. Temporal QoS-aware web service recommendation via non-negative tensor factorization. International Conference on World Wide Web. 2014:585–596.
  17. 17. Xiong L, Chen X, Huang TK, Schneider JG, Carbonell JG. Temporal Collaborative Filtering with Bayesian Probabilistic Tensor Factorization. Institute for Software Research, 2010:211–222.
  18. 18. Breese JS, Heckerman D, Kadie C. Empirical analysis of predictive algorithms for collaborative filtering. 1998, 7(7):43–52.
  19. 19. Resnick P, Iacovou N, Suchak M, Bergstrom P, Riedl J. GroupLens: an open architecture for collaborative filtering of netnews. ACM Conference on Computer Supported Cooperative Work. ACM, 1994:175–186.
  20. 20. Zheng Z, Zhang Y, Lyu M R. Investigating QoS of Real-World Web Services. IEEE Transactions on Services Computing, 2014, 7(1):32–39.