A spatiotemporal-aware multi-component graph attention temporal QoS prediction method and system
By constructing a similarity matrix and sequential neural network of users and services, combined with a multi-component graph attention network and a multi-layer perceptron, the problem of insufficient QoS prediction accuracy in the existing technology is solved, and efficient user and service feature extraction and predict.
Patent Information
- Application Number
- CN202410827032.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The existing technology fails to make full use of observation data and user service attribute information to construct a reasonable graph structure in service QoS prediction, is limited to a single dimension for representation mining, and fails to comprehensively mine spatial dependencies and temporal change trends, resulting in insufficient prediction accuracy.
The spatiotemporal-aware multi-component graph attention sequential QoS prediction method is used to construct an adjacency graph by calculating the similarity matrix of users and services. The multi-component graph attention network is used to mine high-dimensional representations from the spatial dimension, and temporal neurons are used to learn from the time dimension. The time series trend of QoS indicator changes is combined with multi-layer perceptron for real-time prediction.
It improves the accuracy of QoS prediction, enables high-quality user and service feature extraction under low sparsity conditions, comprehensively mines spatial dependence information and time dependence information, and improves prediction accuracy.
Smart Images

Figure CN118395022B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software engineering service recommendation, and in particular to a spatiotemporal-aware multi-component graph attention temporal QoS prediction method and system. Background Art
[0002] With the rise of online service technology, the number of services published on the cloud has increased rapidly. This provides Internet users with a large number of cloud services, bringing a lot of convenience to people's lives. In the face of the growing number of services, how to find and select the most suitable service from services that provide similar functions has become a research hotspot in the service computing community.
[0003] Services contain two types of attributes: functional attributes and non-functional attributes. Functional attributes are used to evaluate whether the service meets the user's business needs, while non-functional attributes, namely quality of service (QoS), can be used to measure user experience. Quality of Service (QoS) can represent the non-functional performance of the service. QoS is a general term for service quality, which includes many more specific non-functional performance indicators, such as the response time (RT) of cloud services, throughput (TP), call failure rate (CFR) of service calls, and other indicators. Non-functional attributes have become the main consideration for service selection decisions.
[0004] Observation of QoS indicators is very important for service providers. By monitoring indicators such as response time and reliability, service bottlenecks and service failures can be discovered in a timely manner, so that services can be optimized, transformed and repaired, providing users with low-time, high-reliability services, which helps to improve user experience, enhance user stickiness, and expand market share. Monitoring costs and throughput can help service providers optimize service links and reduce enterprise operating costs.
[0005] However, it is unrealistic to actually measure the QoS values of all services for each user. On the one hand, making service calls to test the QoS indicators of Web services consumes resources, and it is impossible for users to evaluate whether the performance of each service meets their expectations in large-scale services. On the other hand, service providers continue to update and provide new services, and it is unrealistic to evaluate each new service separately. Therefore, in such an environment, service providers need to make accurate and personalized QoS predictions for users based on historical observation data without calling services to recommend high-quality Web services to users and improve their user experience.
[0006] The existing QoS prediction methods do not make full use of observation data and user service attribute information to build a reasonable graph structure to mine spatial dependencies for QoS prediction, and are limited to characterization mining from a single dimension of spatial dimension or temporal dimension. They simply use matrix decomposition or time series neural network to perform time series QoS prediction, and do not consider comprehensive mining of spatial dependency information and time series change trends to improve QoS prediction accuracy. Summary of the invention
[0007] In order to solve the problems of data sparsity and cold start in service QoS prediction, the present invention provides a spatiotemporal-aware multi-component graph attention temporal QoS prediction method and system.
[0008] S1: For the interaction data of users and services at different times, the user call similarity matrix and the service call similarity matrix are calculated respectively, and then the corresponding adjacency graph is constructed, which includes the user adjacency graph and the service adjacency graph;
[0009] S2: Use a multi-component graph attention network in the adjacency graph to perform multi-angle mining from the spatial dimension to obtain the embedded representation of users and services;
[0010] S3: Use time-series neurons to learn from the time dimension to obtain the time-series trend, comprehensive spatial features, and time features of QoS indicator changes;
[0011] S4: Based on the embedded expressions of users and services obtained in step S2 and the features obtained in S3, a multi-layer perceptron is used to make real-time predictions on the time series.
[0012] Furthermore, step S1 is specifically as follows:
[0013] S1.1: For each user service call record at each moment, calculate the user call similarity matrix at that moment. The calculation formula is as follows:
[0014] ,
[0015] in, Indicates the similarity of user calls, Respectively represent users and users , express and Commonly called services, Indicates that only users The set of services called, Indicates that only users The set of services called, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates user The average QoS value of the service being called, Indicates user The average QoS value of the service being called;
[0016] S1.2: For each user service call record at each moment, the service call similarity matrix at that moment is calculated. The calculation formula is as follows:
[0017] ,
[0018] in, Indicates the service call similarity, Indicates that the service is called together and Services Users, Indicates that only the service is called A collection of users, Indicates that only the service is called A collection of users, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates service The average QoS value, Indicates service The average QoS value;
[0019] S1.3: Based on the user call similarity matrix and service call similarity matrix calculated in steps S1.1 and S1.2, the corresponding adjacency graph is obtained to mine spatial dependency information; in the user adjacency graph, users are taken as nodes, and when the similarity between users exceeds the set threshold, , build a connection edge between two users; in the service adjacency graph, with services as nodes, when the similarity between services exceeds the set threshold , build a connection edge between two services.
[0020] Furthermore, step S2 is specifically as follows:
[0021] (1) Select the unique identifier of the node as the initial feature and embed it into In the dimensional feature space, the node includes the node representing the user in the user adjacency graph and the node representing the service in the service adjacency graph. The graph attention network is introduced into each component for representation learning to obtain the embedded expression of the node:
[0022] ,
[0023] ,
[0024] ,
[0025] ,
[0026] in, Indicates in the component Medium User For Users The importance of =1,2,...,N, where N represents the number of components, Represents a splicing operation, Representation Components Medium User The embedded expression of Representation Components Medium User The embedded expression of () represents the graph attention network, Representation Components The transformation matrix, represents the softmax activation function, Indicates that the user is in the component The final embedding expression in Indicates in the component Medium User Neighbors; Indicates in the component Medium Service For Service The importance of Representation Components Medium Service The embedded expression of Representation Components Medium Service The embedded expression of Indicates that the service is in the component The final embedding expression in Indicates in the component Medium Service Neighbors;
[0027] (2) After learning multiple components, the vectors learned by multiple components are weighted and added together through the attention network to obtain the final node embedding expression. The specific calculation formula is as follows:
[0028] ,
[0029] ,
[0030] ,
[0031] ,
[0032] in, represents the expression of user attention weight, An expression representing the attention weight of a service, represents the attention weight, represents the attention network, represents the user's embedded expression, Embedded representation of the service;
[0033] After aggregating the high-dimensional information learned by multiple learning components, we get the embedded expressions of users and services, which are then concatenated and transformed. The calculation formula is as follows:
[0034] ,
[0035] ,
[0036] in, and Denote the embedded expression of the user and the embedded expression of the service respectively, represents the embedded expression after concatenation, represents the embedding layer weights, represents the embedding layer bias term, represents the linear rectification function, Represents the transformation result, that is, the input interaction data of the current time step.
[0037] Furthermore, step S3 is specifically as follows:
[0038] S3.1: The sequential neuron GRU includes two parts: reset gating and update gating;
[0039] Resetting the gating can determine the new user service features mined at this moment by calculating the corresponding weights based on the interaction of historical information and current information. The calculation formula is as follows:
[0040] ,
[0041] in, Represents the weight matrix that can be trained by resetting the gate, represents the hidden state of the previous time step, represents the input interaction data of the current time step, Resets the gate weight coefficient. represents matrix multiplication, represents the bias term for resetting the gate;
[0042] S3.2: Calculate the output of the reset gate at the current time step and the hidden state at the previous time step to obtain the candidate hidden state mined at the current moment. The calculation formula is as follows:
[0043] ,
[0044] in, represents the trainable weight matrix, represents the candidate hidden state of the current time step, A bias term representing a candidate hidden state;
[0045] S3.3: Update gating can control how the hidden state of the user service high-dimensional information should be updated by the input information containing the current time step. The calculation method is as follows:
[0046] ,
[0047] in, represents the weight matrix that can be trained by updating the gate, represents the bias term for updating the gate;
[0048] S3.4: Update the output of the gate according to , combining the hidden state of the previous time step and the candidate hidden state of the current time step, we get the hidden state of the user service high-dimensional information at the current time step. The calculation formula is as follows:
[0049] ,
[0050] in, represents the hidden state at the current time step.
[0051] Furthermore, step S4 is specifically as follows:
[0052] After integrating the hidden state of historical QoS interaction data, the fully connected neural network can be connected to perform output calculations at time t. The calculation formula is as follows:
[0053] ,
[0054] in, Indicates the output result, Represents the output layer bias term, and ReLU() represents the linear rectification function.
[0055] A spatiotemporal-aware multi-component graph attention time-series QoS prediction system, a time-series dynamic graph construction module, for the interaction data of users and services at different times, respectively calculates the user call similarity matrix and the service call similarity matrix, and then constructs the corresponding adjacency graph, which includes the user adjacency graph and the service adjacency graph;
[0056] The multi-component graph attention learning module is used to use the multi-component graph attention network to perform multi-angle mining from the spatial dimension in the adjacency graph to obtain the embedded expression of users and services;
[0057] The time-series perception module uses time-series neurons to learn from the time dimension to obtain the time-series trend, comprehensive spatial characteristics, and time characteristics of QoS indicator changes;
[0058] The QoS prediction module is used to make real-time predictions on the timing using a multi-layer perceptron based on the embedded expressions and features of users and services.
[0059] Furthermore, the specific implementation process of the temporal dynamic graph construction module is as follows:
[0060] S1.1: For each user service call record at each moment, calculate the user call similarity matrix at that moment. The calculation formula is as follows:
[0061] ,
[0062] in, Indicates the similarity of user calls, Respectively represent users and users , express and Commonly called services, Indicates that only users The set of services called, Indicates that only users The set of services called, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates user The average QoS value of the service being called, Indicates user The average QoS value of the service being called;
[0063] S1.2: For each user service call record at each moment, the service call similarity matrix at that moment is calculated. The calculation formula is as follows:
[0064] ,
[0065] in, Indicates the service call similarity, Indicates that the service is called together and Services Users, Indicates that only the service is called A collection of users, Indicates that only the service is called A collection of users, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates service The average QoS value, Indicates service The average QoS value;
[0066] S1.3: Based on the user call similarity matrix and service call similarity matrix calculated in steps S1.1 and S1.2, the corresponding adjacency graph is obtained to mine spatial dependency information; in the user adjacency graph, users are taken as nodes, and when the similarity between users exceeds the set threshold, , build a connection edge between two users; in the service adjacency graph, with services as nodes, when the similarity between services exceeds the set threshold , build a connection edge between two services.
[0067] Furthermore, the implementation process of the multi-component graph attention network learning module is as follows:
[0068] (1) Select the unique identifier of the node as the initial feature and embed it into In the dimensional feature space, the node includes the node representing the user in the user adjacency graph and the node representing the service in the service adjacency graph. The graph attention network is introduced into each component for representation learning to obtain the embedded expression of the node:
[0069] ,
[0070] ,
[0071] ,
[0072] ,
[0073] in, Indicates in the component Medium User For Users The importance of =1,2,...,N, where N represents the number of components, Represents a splicing operation, Representation Components Medium User The embedded expression of Representation Components Medium User The embedded expression of () represents the graph attention network, Representation Components The transformation matrix, represents the softmax activation function, Indicates that the user is in the component The final embedding expression in Indicates in the component Medium User Neighbors; Indicates in the component The importance of service n to service m, Representation Components The embedded expression of service m in Representation Components Medium Service The embedded expression of Indicates that the service is in the component The final embedding expression in Indicates in the component The neighbors of service m;
[0074] (2) After learning multiple components, the vectors learned by multiple components are weighted and added together through the attention network to obtain the final node embedding expression. The specific calculation formula is as follows:
[0075] ,
[0076] ,
[0077] ,
[0078] ,
[0079] in, represents the expression of user attention weight, An expression representing the attention weight of a service, represents the attention weight, represents the attention network, represents the user's embedded expression, Embedded representation of the service;
[0080] After aggregating the high-dimensional information learned by multiple learning components, we get the embedded expressions of users and services, which are then concatenated and transformed. The calculation formula is as follows:
[0081] ,
[0082] ,
[0083] in, and They represent user embedding expression and service embedding expression respectively. represents the embedded expression after concatenation, represents the embedding layer weights, represents the embedding layer bias term, represents the linear rectification function, Represents the transformation result, that is, the input interaction data of the current time step.
[0084] Furthermore, the implementation process of the timing perception module is as follows:
[0085] S3.1: The sequential neuron GRU can be divided into two parts: reset gating and update gating;
[0086] Resetting the gating can determine the new user service features mined at this moment by calculating the corresponding weights based on the interaction of historical information and current information. The calculation formula is as follows:
[0087] ,
[0088] in, Represents the weight matrix that can be trained by resetting the gate, represents the hidden state of the previous time step, represents the input interaction data of the current time step, Resets the gate weight coefficient. represents matrix multiplication, represents the bias term for resetting the gate;
[0089] S3.2: Calculate the output of the reset gate at the current time step and the hidden state at the previous time step to obtain the candidate hidden state mined at the current moment. The calculation formula is as follows:
[0090] ,
[0091] in, represents the trainable weight matrix, represents the candidate hidden state of the current time step, A bias term representing a candidate hidden state;
[0092] S3.3: Update gating can control how the hidden state of the user service high-dimensional information should be updated by the input information containing the current time step. The calculation method is as follows:
[0093] ,
[0094] in, represents the weight matrix that can be trained by updating the gate, represents the bias term for updating the gate;
[0095] S3.4: Update the output of the gate according to , combining the hidden state of the previous time step and the candidate hidden state of the current time step, we get the hidden state of the user service high-dimensional information at the current time step. The calculation formula is as follows:
[0096] ,
[0097] in, represents the hidden state at the current time step.
[0098] Furthermore, the implementation process of the QoS prediction module is as follows: after integrating the hidden state of the historical QoS interaction data, the fully connected neural network is connected to perform the output operation at time t. The calculation formula is as follows:
[0099] ,
[0100] in, Indicates the output result, Represents the output layer bias term, and ReLU() represents the linear rectification function.
[0101] The beneficial effects of the present invention are as follows: the present invention first processes the data set, and respectively calculates the interaction data at different times to construct the corresponding graph structure, thereby learning high-dimensional representations from the dynamically changing graph structure to perform temporal QoS prediction; then, multiple graph attention components are used in the adjacency graph to mine the high-dimensional representations of multiple dimensions of users and services in the graph structure from multiple angles; temporal neurons are used to learn from the time dimension to discover the temporal trend of changes in QoS indicators, and spatial and temporal features are integrated to improve the accuracy of QoS prediction; finally, a multi-layer perceptron is used to process spatiotemporal high-dimensional information to achieve temporal prediction. Therefore, the present invention can extract high-quality user and service feature expressions at the spatial dimension level based on the graph structure formed by historical call data; and then can comprehensively mine spatial dependency information and temporal dependency information, thereby achieving high-precision QoS prediction under low sparsity conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0103] Figure 1 It is a structural diagram of the model adopted by the present invention;
[0104] Figure 2 is the parameter in the present invention Comparison diagram, comparing the present invention in parameters Performance at different times, (a) represents parameters The impact on MAE, (b) represents the parameter Impact on RMSE;
[0105] Figure 3 is the parameter in the present invention Comparison diagram, comparing the present invention in parameters Performance at different times, (a) represents parameters The impact on MAE, (b) represents the parameter Impact on RMSE;
[0106] Figure 4 is the parameter in the present invention Comparison diagram, comparing the present invention in parameters Performance at different times, (a) represents parameters The impact on MAE, (b) represents the parameter Impact on RMSE. DETAILED DESCRIPTION
[0107] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0108] The purpose of this embodiment is to alleviate the problems of data sparsity and cold start in service QoS prediction, that is, to mine high-dimensional features of user services from extremely sparse interaction data under the premise of simulating real situations, so as to make numerical predictions of QoS. The present invention provides a spatiotemporal-aware multi-component graph attention time series QoS prediction method and system, which uses an edge loss strategy to generate subgraphs of different perspectives for data set data for data enhancement. The generated subgraphs are calculated for call similarity and geographic location similarity, and then the two similarities are weighted to construct a user adjacency graph and a service adjacency graph. A graph neural network is used in the adjacency graph to learn high-dimensional features of user services, and then QoS prediction is made.
[0109] Figure 1 The overall structure diagram of the system of the present invention is shown, a spatiotemporal-aware multi-component graph attention time series QoS prediction method, specifically including:
[0110] S1: For the interaction data at different times, we perform calculations to build the corresponding graph structure, so as to learn high-dimensional representation from the dynamically changing graph structure to perform time series QoS prediction. Specifically, it includes:
[0111] S1.1: For each user service call record at each moment, calculate the user call similarity at that moment. The calculation formula is as follows:
[0112] ,
[0113] in, Indicates the similarity of user calls, Respectively represent users and users , Indicates user and users Commonly called services, Indicates that only users The set of services called, Indicates that only users The set of services called, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates user The average QoS value of the service being called, Indicates user The average QoS value of the service being called;
[0114] S1.2: For each user service call record at each moment, calculate the service call similarity at that moment. The calculation formula is as follows:
[0115] ,
[0116] in, Indicates the service call similarity, Indicates that the service is called together and Services Users, Indicates that only the service is called A collection of users, Indicates that only the service is called A collection of users, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates service The average QoS value, Indicates service The average QoS value;
[0117] S1.3: Based on the user call similarity matrix and service call similarity matrix calculated in steps S1.1 and S1.2, it is necessary to convert and construct the corresponding adjacency graph structure to mine spatial dependency information. , a connection edge is constructed between two users. That is, nodes with a certain degree of similarity contain actual association relationships. For example, if two users have high similarity in calling, it means that their network conditions and geographic location information may be very close. If two services have high similarity in calling, it means that their server configurations and processing times may be very similar. Only when the graph structure constructed in this way is aggregated in the subsequent aggregation can the corresponding features be aggregated and learned to improve the prediction accuracy. Similarly, when the similarity between services exceeds the same threshold When , the connection edge between the two services is constructed. Through the above steps, the similarity matrix at different times is processed to obtain the corresponding user adjacency graph and service adjacency graph.
[0118] S2: Use multiple graph attention network components in the adjacency graph to mine high-dimensional representations of users and services in multiple dimensions in the graph structure from multiple perspectives. Specifically:
[0119] S2.1: In this embodiment, user ID is selected as the initial feature to be embedded into In the dimensional feature space, the user’s embedded expression is obtained;
[0120] S2.2: In this embodiment, the service ID is selected as the initial feature to be embedded into In the dimensional feature space, the embedded expression of the service is obtained;
[0121] S2.3: Only after the embedded expression is obtained can the feature vector be learned in the graph network. In this embodiment, it is assumed that components to perform representation transfer learning, expressed as In order to enable nodes to learn well-characterized embedded expressions from neighbor information, each component introduces a graph attention network for graph representation learning. The graph attention network is different from the graph convolutional network. The graph convolutional network uses average weights to aggregate node neighbor information to learn representations. The graph attention network assigns different weights to different neighbors and performs weighted aggregation to learn better feature expressions for more closely linked neighbor nodes. Taking the user adjacency graph as an example, for each node in the graph, the final embedding expression calculation formula for each node is as follows:
[0122] ,
[0123] ,
[0124] ,
[0125] ,
[0126] in, Indicates in the component Medium User For Users The importance of =1,2,...,N, Represents a splicing operation, Representation Components Medium User The embedded expression of Representation Components Medium User The embedded expression of () represents the graph attention network, Representation Components The transformation matrix, represents the softmax activation function, Indicates that the user is in the component The final embedding expression in Indicates in the component Medium User Neighbors; Indicates in the component Medium Service For Service The importance of Representation Components Medium Service The embedded expression of Representation Components Medium Service The embedded expression of Indicates that the service is in the component The final embedding expression in Indicates in the component Medium Service Neighbors;
[0127] S2.4: After learning multiple components, each component will learn the corresponding features, such as geographic location features, processing logic features and other information features. After that, the representations learned by multiple components need to be fused to obtain the final features, so as to obtain the most comprehensive embedded expression for subsequent predictions. In this embodiment, the attention aggregation strategy is used to splice the features learned by multiple components. The specific calculation method is as follows:
[0128] ,
[0129] ,
[0130] ,
[0131] ,
[0132] in, represents the attention weight.
[0133] In step S2.4, the following two aggregation strategies can also be used to aggregate the features learned by multiple components to obtain the final embedded expression. These two strategies are:
[0134] Concatenation strategy: The concatenation strategy is to concatenate the vectors learned by multiple components and then transform them through a trainable transformation matrix to obtain The dimensional feature vector is used as the final node embedding expression. The specific calculation method is as follows:
[0135] ,
[0136] ,
[0137] in, Represents the splicing weight.
[0138] Average strategy: The average strategy obtains the final node embedding expression by summing up the vectors learned by multiple components and taking the average value. The specific calculation method is as follows:
[0139] ,
[0140] ,
[0141] After aggregation by the corresponding aggregator, the high-dimensional information learned by multiple learning components can be integrated to obtain the final embedded expression of users and services, which are concatenated and transformed for subsequent predictions. The calculation method is as follows:
[0142] ,
[0143] ,
[0144] in, and They represent user embedding expression and service embedding expression respectively. represents the embedding layer weights, represents the embedding layer bias term, Represents the transformation result, that is, the input interaction data of the current time step.
[0145] S3: Use time-series neurons to learn from the time dimension to discover the time-series trend of QoS indicator changes, and integrate spatial and temporal features to improve the accuracy of QoS prediction. Specifically include:
[0146] S3.1: The overall core organization of the adopted sequential neuron GRU can be divided into two parts: reset gating and update gating.
[0147] Resetting the gating can determine the new user service features mined at this moment by calculating the corresponding weights based on the interaction of historical information and current information. The calculation method is as follows:
[0148] ,
[0149] in, Represents the weight matrix that can be trained by resetting the gate, represents the hidden state of the previous time step, represents the input interaction data of the current time step, Resets the gate weight coefficient. represents matrix multiplication, Represents the bias term for the reset gate.
[0150] S3.2: Calculate the output of the reset gate at the current time step and the hidden state at the previous time step, use the reset gate to discard historical information that is not relevant to the prediction, and calculate the candidate hidden state mined at the current moment. The calculation method is as follows:
[0151] ,
[0152] in, represents the trainable weight matrix, represents the candidate hidden state of the current time step, Represents the bias term of the candidate hidden state.
[0153] S3.3: Update gating can control how the hidden state of user service high-dimensional information should be updated by the input information including the current time step. It calculates the degree of forgetting of historical interactive information based on the interaction between historical information and current information, removes useless high-dimensional information, and selectively remembers useful features. The calculation method of the update gating network is as follows:
[0154] ,
[0155] in, represents the trainable weight matrix, Represents the bias term for updating the gate.
[0156] S3.4: Calculate the output of the updated gate After that, the hidden state of the user service high-dimensional information at the current time step can be calculated based on the hidden state of the previous time step and the candidate hidden state of the current time step. The calculation method is as follows:
[0157] ,
[0158] in, represents the hidden state at the current time step.
[0159] S4: Use multi-layer perceptron to process high-dimensional spatiotemporal information to achieve time series prediction. Specifically include:
[0160] After obtaining the hidden state that integrates the historical QoS interaction data, the fully connected neural network can be connected to perform the output operation at time t. The output layer calculation method is as follows:
[0161] ,
[0162] in, Indicates the output result, Represents the output layer bias term, and ReLU() represents the linear rectification function.
[0163] The implementation process of this embodiment is as follows:
[0164] Execute step S1. First, for the call data extracted at each moment, calculate the corresponding user call similarity and service call similarity, and set the similarity exceeding the set threshold The related nodes of are used as neighbors to build the user adjacency graph and service adjacency graph.
[0165] Execute step S2. Build a multi-graph attention learning network model to learn high-dimensional embedding expressions of users and services. For the user subgraph, embed information based on the user's unique identifier to obtain a high-dimensional representation vector, and use the multi-component graph attention network to propagate information in the user adjacency graph to learn the user representation, and then combine the representations in multiple components to obtain the final embedding expression of the user. For the service subgraph, embed information based on the service unique identifier to obtain a high-dimensional representation vector, and use the multi-component graph attention network to propagate information in the service adjacency graph to learn the user representation, and then combine the representations in multiple components to obtain the final embedding expression of the service.
[0166] Execute step S3. Build a time series neural learning network, learn from the time dimension to discover the time series trend of QoS indicator changes, and integrate spatial and temporal features to improve the accuracy of QoS prediction.
[0167] Execute step S4. Build a QoS decoding prediction model, and input the high-dimensional features of users and services into the multi-layer perceptron to predict the target QoS.
[0168] A spatiotemporal-aware multi-component graph attention time-series QoS prediction system, a time-series dynamic graph construction module, for the interaction data of users and services at different times, respectively calculates the user call similarity matrix and the service call similarity matrix, and then constructs the corresponding adjacency graph, which includes the user adjacency graph and the service adjacency graph;
[0169] The multi-component graph attention learning module is used to use the multi-component graph attention network to perform multi-angle mining from the spatial dimension in the adjacency graph to obtain the embedded expression of users and services;
[0170] The time-series perception module uses time-series neurons to learn from the time dimension to obtain the time-series trend, comprehensive spatial characteristics, and time characteristics of QoS indicator changes;
[0171] The QoS prediction module is used to make real-time predictions on the timing using a multi-layer perceptron based on the embedded expressions and features of users and services.
[0172] Parameter comparison
[0173] This embodiment takes the QoS history records collected from WSDream as an example. In order to simulate the real situation, a small number of observation data are randomly retained as training samples to simulate the low sparse data in the real situation, and the data that are not selected as training samples in the original data are used as prediction samples to test the prediction effect of the model. This embodiment compares the parameters in the model of the present invention to obtain the best parameters to obtain the best effect of the model.
[0174] MAE: Displays the average of the absolute values of the deviations of all individual observations from the arithmetic mean. The smaller the MAE, the better the prediction result.
[0175] ,
[0176] RMSE: Indicates the deviation between the observed value and the true value. The smaller the RMSE, the better the prediction result.
[0177] ,
[0178] in, Indicates user Calling a service The actual QoS value of Indicates user Calling a service The predicted QoS value of Indicates the number of QoS values.
[0179] Parameters For comparison, parameters Determines the number of dimensions of the feature space into which users and services are embedded for representation learning. Figure 2 The present invention is compared in parameters Different performance at the same time, among which, Figure 2 (a) indicates the parameter Impact on MAE, Figure 2 (b) in the equation represents the parameter The impact on RMSE. Figure 2 It can be seen that MAE and RMSE decrease as the embedding size increases. The value is 128 so that the model can achieve the best prediction effect.
[0180] Parameters For comparison, parameters Determines which similar nodes are selected as neighbors. Figure 3 The present invention is compared in parameters Different performance at the same time, Figure 3(a) indicates the parameter Impact on MAE, Figure 3 (b) in the equation represents the parameter The impact on RMSE. Figure 3 It can be seen that with As increases, MAE and RMSE decrease, which means that more suitable neighbors are screened and useful information is aggregated, and the prediction accuracy is improved. After reaching 0.7, as increases, MAE and RMSE no longer decrease but increase, which indicates that when the screening threshold increases, neighboring nodes that should be connected will be excluded, resulting in insufficient aggregation of useful information. The value is chosen to be 0.7 so that the model can achieve the best prediction effect.
[0181] Parameters For comparison, parameters It determines how many components are used in the process of graph structure representation learning to mine information in the graph structure from multiple dimensions. Figure 4 The present invention is compared in parameters Different performance at the same time, Figure 4 (a) indicates the parameter Impact on MAE, Figure 4 (b) in the equation represents the parameter The impact on RMSE. Figure 4 It can be seen that the present invention uses the parameter The value is selected as 3 so that the model can obtain the best prediction effect. Table 1 is a performance comparison table of the present invention and the benchmark method.
[0182] Table 1 Performance comparison table
[0183]
[0184] As shown in Table 1, the benchmark methods are PLMF, TWQP, and RNCF. PLMF uses LSTM to extract the time series change trend to obtain the service QoS prediction value. RNCF introduces a multi-layer GRU structure based on the framework of neural collaborative filtering to model the dynamic state of the physical environment or network conditions for prediction. It can be seen from the experimental results that the prediction accuracy of the present invention is greatly improved compared with the benchmark method.
[0185] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A spatiotemporal-aware multi-component graph attention temporal QoS prediction method, characterized in that: include: S1: For the interaction data of users and services at different times, the user call similarity matrix and the service call similarity matrix are calculated respectively, and then the corresponding adjacency graph is constructed, which includes the user adjacency graph and the service adjacency graph; S1.1: For each user service call record at each moment, calculate the user call similarity matrix at that moment. The calculation formula is as follows: , in, Indicates the similarity of user calls, Respectively represent users and users , express and Commonly called services, Indicates that only users The set of services called, Indicates that only users The set of services called, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates user The average QoS value of the service being called, Indicates user The average QoS value of the service being called; S1.2: For each user service call record at each moment, the service call similarity matrix at that moment is calculated. The calculation formula is as follows: , in, Indicates the service call similarity, Indicates that the service is called together and Services Users, Indicates that only the service is called A collection of users, Indicates that only the service is called A collection of users, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates service The average QoS value, Indicates service The average QoS value; S1.3: Based on the user call similarity matrix and service call similarity matrix calculated in steps S1.1 and S1.2, the corresponding adjacency graph is obtained to mine spatial dependency information; in the user adjacency graph, users are taken as nodes, and when the similarity between users exceeds the set threshold, , build a connection edge between two users; in the service adjacency graph, with services as nodes, when the similarity between services exceeds the set threshold , build a connection edge between two services; S2: Use a multi-component graph attention network in the adjacency graph to perform multi-angle mining from the spatial dimension to obtain the embedded representation of users and services; (1) Select the unique identifier of the node as the initial feature and embed it into In the dimensional feature space, the node includes the node representing the user in the user adjacency graph and the node representing the service in the service adjacency graph. The graph attention network is introduced into each component for representation learning to obtain the embedded expression of the node: , , , , in, Indicates in the component Medium User For Users The importance of =1,2,...,N, where N represents the number of components, Represents a splicing operation, Representation Components Medium User The embedded expression of Representation Components Medium User The embedded expression of () represents the graph attention network, Representation Components The transformation matrix, represents the softmax activation function, Indicates that the user is in the component The final embedding expression in Indicates in the component Medium User Neighbors; Indicates in the component Medium Service For Service The importance of Representation Components Medium Service The embedded expression of Representation Components Medium Service The embedded expression of Indicates that the service is in the component The final embedding expression in Indicates in the component Medium Service Neighbors; (2) After learning multiple components, the vectors learned by multiple components are weighted and added together through the attention network to obtain the final node embedding expression. The specific calculation formula is as follows: , , , , in, represents the expression of user attention weight, An expression representing the attention weight of a service, represents the attention weight, represents the attention network, represents the user's embedded expression, Embedded representation of the service; After aggregating the high-dimensional information learned by multiple learning components, we get the embedded expressions of users and services, which are then concatenated and transformed. The calculation formula is as follows: , , in, represents the embedding layer weights, represents the embedding layer bias term, represents the linear rectification function, Represents the transformation result, i.e., the input interaction data of the current time step; S3: Use time-series neurons to learn from the time dimension to obtain the time-series trend, comprehensive spatial features, and time features of QoS indicator changes; S3.1: The sequential neuron GRU includes two parts: reset gating and update gating; Resetting the gating can determine the new user service features mined at this moment by calculating the corresponding weights based on the interaction of historical information and current information. The calculation formula is as follows: , in, Represents the weight matrix for resetting gated training, represents the hidden state of the previous time step, represents the input interaction data of the current time step, Resets the gate weight coefficient. represents matrix multiplication, represents the bias term for resetting the gate; S3.2: Calculate the output of the reset gate at the current time step and the hidden state at the previous time step to obtain the candidate hidden state mined at the current moment. The calculation formula is as follows: , in, represents the training weight matrix, represents the candidate hidden state of the current time step, A bias term representing a candidate hidden state; S3.3: Update gating can control the process by which the hidden state of the user service high-dimensional information is updated by the input information containing the current time step. The calculation method is as follows: , in, represents the weight matrix for updating gated training, represents the bias term for updating the gate; S3.4: Update the output of the gate according to , combining the hidden state of the previous time step and the candidate hidden state of the current time step, we get the hidden state of the user service high-dimensional information at the current time step. The calculation formula is as follows: , in, Represents the hidden state of the current time step; S4: Based on the embedded expressions of users and services obtained in step S2 and the features obtained in S3, a multi-layer perceptron is used to make real-time predictions on the time series; After integrating the hidden state of historical QoS interaction data, the fully connected neural network can be connected to perform output calculations at time t. The calculation formula is as follows: , in, Indicates the output result, Represents the output layer bias term, and ReLU() represents the linear rectification function.
2. A spatiotemporal-aware multi-component graph attention temporal QoS prediction system, characterized in that: include: The temporal dynamic graph construction module calculates the user call similarity matrix and the service call similarity matrix for the interaction data of users and services at different times, and then constructs the corresponding adjacency graph, which includes the user adjacency graph and the service adjacency graph. The specific implementation process of the temporal dynamic graph construction module is as follows: S1.1: For each user service call record at each moment, calculate the user call similarity matrix at that moment. The calculation formula is as follows: , in, Indicates the similarity of user calls, Respectively represent users and users , express and Commonly called services, Indicates that only users The set of services called, Indicates that only users The set of services called, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates user The average QoS value of the service being called, Indicates user The average QoS value of the service being called; S1.2: For each user service call record at each moment, the service call similarity matrix at that moment is calculated. The calculation formula is as follows: , in, Indicates the service call similarity, Indicates that the service is called together and Services Users, Indicates that only the service is called A collection of users, Indicates that only the service is called A collection of users, Indicates user Calling a service The QoS record value, Indicates user Calling a service The QoS record value, Indicates service The average QoS value, Indicates service The average QoS value; S1.3: Based on the user call similarity matrix and service call similarity matrix calculated in steps S1.1 and S1.2, the corresponding adjacency graph is obtained to mine spatial dependency information; in the user adjacency graph, users are taken as nodes, and when the similarity between users exceeds the set threshold, , build a connection edge between two users; in the service adjacency graph, with services as nodes, when the similarity between services exceeds the set threshold , build a connection edge between two services; The multi-component graph attention learning module is used to use the multi-component graph attention network to perform multi-angle mining from the spatial dimension in the adjacency graph to obtain the embedded expression of users and services; the implementation process of the multi-component graph attention network learning module is as follows: (1) Select the unique identifier of the node as the initial feature and embed it into In the dimensional feature space, the node includes the node representing the user in the user adjacency graph and the node representing the service in the service adjacency graph. The graph attention network is introduced into each component for representation learning to obtain the embedded expression of the node: , , , , in, Indicates in the component Medium User For Users The importance of =1,2,...,N, where N represents the number of components, Represents a splicing operation, Representation Components Medium User The embedded expression of Representation Components Medium User The embedded expression of () represents the graph attention network, Representation Components The transformation matrix, represents the softmax activation function, Indicates that the user is in the component The final embedding expression in Indicates in the component Medium User Neighbors; Indicates in the component Medium Service For Service The importance of Representation Components Medium Service The embedded expression of Representation Components Medium Service The embedded expression of Indicates that the service is in the component The final embedding expression in Indicates in the component Medium Service Neighbors; (2) After learning multiple components, the vectors learned by multiple components are weighted and added together through the attention network to obtain the final node embedding expression. The specific calculation formula is as follows: , , , , in, represents the expression of user attention weight, An expression representing the attention weight of a service, represents the attention weight, represents the attention network, represents the user's embedded expression, Embedded representation of the service; After aggregating the high-dimensional information learned by multiple learning components, we get the embedded expressions of users and services, which are then concatenated and transformed. The calculation formula is as follows: , , in, represents the embedding layer weights, represents the embedding layer bias term, represents the linear rectification function, Represents the transformation result, i.e., the input interaction data of the current time step; The timing perception module uses timing neurons to learn from the time dimension to obtain the timing trend, comprehensive spatial characteristics and time characteristics of QoS indicator changes; the implementation process of the timing perception module is as follows: S3.1: The sequential neuron GRU includes two parts: reset gating and update gating; Resetting the gating can determine the new user service features mined at this moment by calculating the corresponding weights based on the interaction of historical information and current information. The calculation formula is as follows: , in, Represents the weight matrix for resetting gated training, represents the hidden state of the previous time step, represents the input interaction data of the current time step, Resets the gate weight coefficient. represents matrix multiplication, represents the bias term for resetting the gate; S3.2: Calculate the output of the reset gate at the current time step and the hidden state at the previous time step to obtain the candidate hidden state mined at the current moment. The calculation formula is as follows: , in, represents the training weight matrix, represents the candidate hidden state of the current time step, A bias term representing a candidate hidden state; S3.3: Update gating can control the process by which the hidden state of the user service high-dimensional information is updated by the input information containing the current time step. The calculation method is as follows: , in, represents the weight matrix for updating gated training, represents the bias term for updating the gate; S3.4: Update the output of the gate according to , combining the hidden state of the previous time step and the candidate hidden state of the current time step, we get the hidden state of the user service high-dimensional information at the current time step. The calculation formula is as follows: , in, Represents the hidden state of the current time step; The QoS prediction module is used to make real-time predictions of the timing using a multi-layer perceptron based on the embedded expressions and features of the users and services. The implementation process of the QoS prediction module is as follows: After integrating the hidden state of historical QoS interaction data, the fully connected neural network can be connected to perform output calculations at time t. The calculation formula is as follows: , in, Indicates the output result, Represents the output layer bias term, and ReLU() represents the linear rectification function.
