A cloud server load prediction method based on signal decomposition and mixed model

By combining empirical wavelet transform and hybrid deep learning methods, along with Savitzky-Golay filters, multi-scale temporal convolutional networks, and gated recurrent networks with dual-stage attention mechanisms, the noise and nonlinearity issues in cloud server load prediction are addressed, resulting in more stable and accurate load prediction.

CN117389824BActive Publication Date: 2026-11-27SOUTH CHINA UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311187046.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2026-11-27
Estimated Expiration
2043-09-14

AI Technical Summary

Technical Problem

Existing cloud server load prediction methods suffer from unstable prediction performance and low accuracy when dealing with non-stationary, nonlinear, and noisy load data, making it difficult to effectively extract long-term dependencies and complex utilization patterns.

Method used

We employ an empirical wavelet transform and hybrid deep learning approach, combined with Savitzky-Golay filters for noise reduction, and utilize multi-scale temporal convolutional networks and gated recurrent networks with dual-stage attention mechanisms for feature extraction and prediction.

Benefits of technology

It improves the stability and accuracy of the prediction model, effectively removes noise interference, and adaptively extracts key features from the load data to achieve more accurate load prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117389824B_ABST
    Figure CN117389824B_ABST
Patent Text Reader

Abstract

The application discloses a cloud server load prediction method based on signal decomposition and a mixed model. The method comprises the following steps: collecting utilization rate time series data of each resource type of a cloud server node from a data center monitoring module, performing data preprocessing, dividing the processed data into a training set, a verification set and a test set according to a certain proportion; performing Savitzky-Golay filtering, smoothing and denoising processing on the preprocessed data; adopting empirical wavelet transform to decompose the host load signal into a group of sub-sequences; constructing a mixed deep learning load prediction model combining a multi-scale time convolution network and a gated recurrent network with a two-stage attention mechanism; putting the decomposed data into the load prediction model for training, saving the trained model and ending the training when the loss function value is less than a given threshold; inputting the to-be-tested sample into the load prediction model obtained after training to obtain a prediction result, and the cloud server load data with non-stationary, nonlinear and noise has good prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer cloud computing, specifically relating to a cloud server load prediction method based on signal decomposition and hybrid models. Background Technology

[0002] Cloud computing is an innovative application model in the development of internet technology. Through a highly agile and scalable provisioning model, it provides cloud service users with an economical and convenient underlying technical solution for business deployment and expansion. Against the backdrop of accelerated digital economic development, more and more applications and services are being deployed to cloud platforms. Service providers need to ensure that they meet the Service Level Agreements (SLAs) signed with users at the lowest possible cost. However, due to the highly dynamic and random nature of the cloud environment, services running in the cloud often face problems of insufficient or excessive resource supply, which can further lead to SLA violations and resource waste, causing economic losses for cloud service providers. Therefore, cloud computing researchers have proposed proactive service operation management technologies that use workload prediction methods to make runtime decisions and allocations in advance, ensuring Quality of Service (QoS) and collaborative efficiency.

[0003] In cloud computing, accurate prediction of host load is crucial for various resource management operations, such as capacity planning, load balancing, and server consolidation. Time series forecasting techniques are used to predict cloud server load. There are three main categories of time series forecasting methods: those based on traditional statistics, those based on machine learning, and those based on deep learning. (D. Saxena, J. Kumar, A.K. Singh and S. Schmid. Performance Analysis of Machine Learning Centered Workload Prediction Models for Cloud[J]. IEEE Transactions on Parallel and Distributed Systems, 2023, 34: 1313-1330.) Traditional statistical methods primarily use ARIMA models and their variants; however, these are based on predetermined mathematical models and derived parameters to model time series, making it difficult to effectively capture the nonlinear dependencies in complex time series, resulting in less than ideal prediction results. Machine learning methods treat time series forecasting as one of the fundamental problems in machine learning—the regression problem—and mainly include methods such as linear regression, logistic regression, support vector regression, and random forests. While statistical methods are more suitable for multidimensional and nonlinear time series data, they are prone to problems such as excessively long learning times and overfitting when dealing with large datasets. Furthermore, their feature extraction capabilities still fall short of the requirements for complex time series prediction. In recent years, due to the excellent nonlinear fitting capabilities of neural networks, many researchers have begun to utilize deep learning methods to solve time series prediction problems. Various neural network structures, including multilayer perceptrons, convolutional neural networks, recurrent neural networks, and autoencoders, have been widely applied to prediction problems. Compared to traditional statistical and machine learning methods, they can better handle high-dimensional and massive time series data, and have significant advantages in extracting temporal information and dependencies between variables in multivariate time series.

[0004] Currently, load forecasting in cloud environments faces several key challenges. First, cloud workloads are complex and volatile. Heterogeneous applications hosted on heterogeneous cloud infrastructure introduce complex resource utilization patterns, leading to frequent changes and fluctuations. Even during the execution of the same task, resource usage constantly changes, posing a significant challenge to forecasting. Second, the time series data of different resource usages on cloud servers reveal long-term dependencies and periodic demand patterns. This requires forecasting models to extract these underlying correlations and patterns from the surface-level time series data. Third, noise variations in host load data remain a significant factor affecting the accuracy of forecasting models. Removing noise that interferes with forecasting performance while retaining key information is crucial for improving the final prediction results. Therefore, for cloud server load forecasting, a single deep learning model is insufficient to effectively extract long-term dependencies and complex utilization patterns from workload or resource usage data. Designing an efficient feature extraction module based on the changing characteristics of load data and then using the extracted features to accurately predict future load changes remains a challenging task.

[0005] To address the load forecasting problem in cloud environments, many researchers have proposed corresponding prediction methods. Chinese patent document CN115499511B, "A Microservice Active Scaling Method for Load Forecasting Based on Spatiotemporal Graph Neural Network," proposes using an ARIMA model based on current periodic service metrics and workload data for prediction. However, this method has a relatively simple model, makes strong assumptions about data stationarity, and is difficult to predict complex time series with non-periodic properties. Chinese patent document CN113051130A, "Mobile Cloud Load Forecasting Method and System Combining Attention Mechanism with LSTM Network," proposes using wavelet transform and feature selection for data preprocessing. However, these methods lack adaptive characteristics. For example, the choice of wavelet basis affects the decomposition effect of different input samples, and this method cannot select a suitable wavelet basis to decompose the input samples based on their characteristics. Furthermore, the exogenous time series obtained through joint feature selection can only guarantee a strong correlation with the target sequence on the test set, and cannot meet the load forecasting needs of massive service types in highly variable online environments. Moreover, none of the above studies consider the negative impact of noise on load forecasting, failing to guarantee the stability and robustness of the prediction model. Summary of the Invention

[0006] The purpose of this invention is to provide a cloud server load prediction method based on empirical wavelet transform and hybrid deep learning, in order to solve the problems of unstable prediction performance and low prediction accuracy of existing methods for cloud load data that is non-stationary, nonlinear and contains noise.

[0007] The objective of this invention is achieved by at least one of the following technical solutions.

[0008] A cloud server load prediction method based on signal decomposition and hybrid models includes the following steps:

[0009] S1. Collect time series data on the utilization rate of various types of resources of cloud server nodes from the data center monitoring module, perform data preprocessing, and divide the processed data into training set, validation set and test set according to the proportion;

[0010] S2. Perform Savitzky-Golay filtering on the training set, validation set, and test set for smoothing and noise reduction.

[0011] S3. The host load signal is decomposed into a set of sub-sequences using empirical wavelet transform, and each sub-sequence is normalized separately.

[0012] S4. Construct a hybrid deep learning load prediction model that combines a multi-scale temporal convolutional network and a gated recurrent network with a two-stage attention mechanism.

[0013] S5. Input the data of the training set after decomposition by SG filtering algorithm and empirical wavelet transform into the load prediction model for training. After the loss function value is less than the given threshold, end the training and save the model parameters.

[0014] S6. Input the sample to be predicted into the trained load prediction model to obtain the prediction result.

[0015] Furthermore, in step S1, the time series data of utilization rates of various resource types collected mainly include CPU utilization (also known as workload), memory utilization, disk utilization, and network bandwidth utilization information of cloud server physical machine nodes.

[0016] Furthermore, in step S1, the data preprocessing is for missing value handling; for cases where the number of consecutive missing values ​​is less than 4, the values ​​from the two consecutive time points are used for interpolation replacement; for cases where the number of consecutive missing values ​​exceeds 4, the data segment is directly discarded.

[0017] After missing values ​​are processed, the data is divided into training, validation, and test sets according to a set ratio. Then, a sliding window is used to further divide the data of the training, validation, and test sets into training samples of fixed length.

[0018] Further, in step S2, the time-series data of CPU utilization in the training set, validation set, and test set are smoothed and denoised using a Savitzky-Golay filter. For time-series data of length t, it is represented as follows:

[0019] X = {x1, x2, ..., x} t},t∈N +

[0020] Where X represents the utilization rate data of a certain resource on the cloud server, x t This is the utilization rate at time t; consider a subsequence with a window length of 2m+1 and perform polynomial fitting based on the least squares method:

[0021] Y = {x r-m ,...,x r ,...,x r+m}, r∈[m+1, tm]

[0022]

[0023]

[0024] In this context, the window size *m* determines the number of data points for fitting the polynomial function, *p(q)* is the fitted value at the *q*th position in the window, *M* is the polynomial order (an adjustable hyperparameter), and *ε* is the least-squares residual between the fitted and true values. Minimizing the residual *ε* yields the optimal polynomial coefficients *a*. k Then the fitted values ​​can be used as the smoothed data.

[0025] Furthermore, in step S3, the specific steps for decomposing the host load signal into a set of subsequences using empirical wavelet transform are as follows:

[0026] The Fast Fourier Transform (FFT) is used to transform the load signal from the time domain to the frequency domain. The Fourier spectrum range of the signal is defined as ω∈[0,π]. The Fourier support ω is divided into N continuous segments on [0,π], and each segment is represented as Λ. n =[ω n-1 ,ω n ], where ω n-1 and ω n These represent the boundaries of each segment, and a value with ω is defined at each frequency band boundary. n Centered on, with a length of 2τ n The transition segment, where n = 1, 2, ..., N, ω0 = 0, ω N =π,τ n =γω n And it satisfies:

[0027]

[0028]

[0029] Based on the segmented frequency bands, filters for the corresponding frequency bands are constructed according to the ideas of Littlewood-Paley and Meyer wavelets. For the sub-frequency band Λ n Define its scaling function φ n (ω) and wavelet function Ψ n (ω) are respectively:

[0030]

[0031]

[0032] Where γ(x) is a polynomial proposed by Daubechies that satisfies the requirements:

[0033] δ(x)=x 4 (35-84x+70x 2 -20x 3 )

[0034] Detail factor and approximation coefficients Constructed from the inner product of the wavelet function and the scaling function of the empirical wavelet with the signal, respectively:

[0035]

[0036]

[0037] in, and They are respectively Ψ n The complex conjugate of Φ1, f(ω) is the Fourier transform of the signal, F -1 This is the inverse Fourier transform. and They are respectively Ψ n Fourier transform of Φ1;

[0038] Based on the empirical wavelet function and scaling function constructed on the tight support frame, the decomposition and reconstruction of the signal are completed.

[0039] Furthermore, in step S3, the data normalization process is to use the Min-Max normalization function to distribute the values ​​of the processed multiple time-series index data in [0,1].

[0040] Further, in step S4, the hybrid deep learning load prediction model mainly comprises two parts: a multi-scale temporal convolutional network and a gated recurrent neural network with a two-stage attention mechanism. These are used to extract seasonal features of high-frequency periodic components and long-term correlation features between low-frequency trend components and other exogenous time series, respectively. After fusing the two feature information, the final prediction result is output, calculated as follows:

[0041]

[0042] Among them, h MSTCN and h DAGRU W represents the hidden state information extracted by a multi-scale temporal convolutional network and a gated recurrent network with a two-stage attention mechanism, respectively. o b represents the weights of the output layer. o These are the bias values ​​for the output layer, all of which are trainable parameters.

[0043] Furthermore, the input samples for the multi-scale temporal convolutional network are T∈N + It is a high-frequency subsequence obtained by empirical wavelet decomposition of the CPU utilization time series signal. This represents the partial true value with high-frequency periodic characteristics at time t;

[0044] The temporal convolutional neural network used to extract feature information of high-frequency periodic load components is mainly implemented by stacking temporal convolutional network layers, and its definition is as follows:

[0045]

[0046] In the formula, F(i) is the convolution result of the element at position i in the input sequence X, μ is the convolution kernel, K is the kernel size, and D is the dilation factor. When D = 1, the dilated convolution degenerates into a regular convolution; x (i-Dj) It controls the direction of the convolution operation, that is, it only performs convolution operation on the data before time i, thus maintaining the causal relationship between time series data.

[0047] Furthermore, the input samples of the gated recurrent neural network with a two-stage attention mechanism are... Where X 1 X is the low-frequency subsequence obtained by empirical wavelet decomposition of the CPU utilization time series signal. 2 ~X C It consists of C-1 time series of length T, which are exogenous variable messages, including memory utilization, network utilization, and disk utilization.

[0048] The input information is computed using a gated recurrent network with a two-stage attention mechanism. The specific update process of the GRU recurrent unit at time t is as follows:

[0049] z t =σ(W z [h t-1 ,x t ]+b z )

[0050] r t =σ(W r [h t-1 ,x t ]+b r )

[0051]

[0052]

[0053] Among them, z t r t These are the update gate and reset gate for GRU, respectively. For candidate memory units, σ ​​represents the Sigmoid activation function, tanh represents the tanh activation function, and ⊙ represents the Hadamard product;

[0054] To output the o-th time series data Using the hidden state h generated by the GRU encoder at time t-1 t-1 Calculate the input attention score:

[0055]

[0056]

[0057] Where V e W e b represents the weights of the encoder neural network. e These are bias values, all trainable parameters. The attention weights are calculated using the Softmax function, and then relevant time-series information from exogenous variables is adaptively extracted.

[0058]

[0059] Similarly, the attention score is computed by adaptively selecting the relevant encoder hidden states at all time steps using the GRU decoder:

[0060]

[0061]

[0062] Among them, V d W d b represents the weight values ​​of the decoder neural network. d These are bias values, all of which are trainable parameters, d t-1 Let h be the hidden state vector of the decoder GRU unit at time t-1. gIt is the hidden state vector of the encoder GRU unit at time g. The vector obtained by concatenating the two is used as the input for attention calculation, and the normalized score is obtained through Softmax.

[0063] Due to the hidden state h of each encoder g All are mapped to a time component of the input. Note the mechanism that maps the context vector conetxt. t As the hidden states of all encoders {h1,h2,…,h T The weighted sum of}

[0064]

[0065] Ultimately, the DA-GRU network can adaptively extract relevant feature information from different resource dimensions at each time step, establish complete long-term dependencies between multiple time series, use this dependency information as an important identification feature of the load trend part, and integrate the key information extracted by different modules by the linear output layer to make accurate load prediction.

[0066] Furthermore, in step S5, during the training of the load prediction model, the specific expression of the loss function is as follows:

[0067]

[0068] Where U is the number of training samples, and horizon is the prediction step size. and Let represent the predicted and true values ​​of the ρ-th sample, λ be the regularization coefficient, and θ be the training parameters of the model, including the weights W and biases b of each layer of the neural network. The model uses mean squared error (MSE) as the loss function during training and iteratively optimizes the parameters of the neural network using gradient descent. After each iteration, a validation set is used to test the model's predictive performance, and the set of model parameters with the smallest error is retained. When the validation loss no longer decreases, early stopping is used to terminate the training process to avoid overfitting.

[0069] Compared with the prior art, the present invention has the following advantages and technical effects:

[0070] 1. A data processing method based on Savitzky-Golay filter is provided, which can effectively remove outliers in the original cloud server load data, making the CPU time series data smoother. While reducing noise interference, it retains the key information in the load data, and improves the fitting and generalization ability of the subsequent prediction model.

[0071] 2. A time series decomposition method based on empirical wavelet transform is provided. By extracting the frequency domain maxima of the load signal and dividing the Fourier spectrum, an orthogonal wavelet function is constructed. The original complex and variable time series signal is adaptively decomposed into a low-frequency smooth trend component and a set of high-frequency periodic components fluctuating around zero. This results in more predictable time series features, reduces the modeling difficulty of non-stationary and nonlinear load data, and improves the training effect of the model.

[0072] 3. The proposed hybrid deep learning method combines a multi-scale causal dilated convolutional network and a gated recurrent network with a two-stage attention mechanism. The former can effectively extract periodic information at different scales in different periodic components by setting different hole factors, while the latter solves the information decay problem in long-term series through the attention mechanism. At the same time, it can adaptively select relevant information from other indicator data for trend prediction. By fusing the two, feature latent variables are extracted, enabling the load prediction model to more comprehensively model cloud server load changes and obtain more accurate and robust prediction results. Attached Figure Description

[0073] Figure 1 This is a schematic diagram of the model training process in an embodiment of the present invention;

[0074] Figure 2 This is a schematic diagram illustrating the decomposition results of Alibaba cluster load data based on empirical wavelet transform in an embodiment of the present invention;

[0075] Figure 3 This is a schematic diagram of a temporal convolutional network model in an embodiment of the present invention;

[0076] Figure 4 This is a schematic diagram of the input attention module in an embodiment of the present invention;

[0077] Figure 5 This is a schematic diagram of the input time attention module in an embodiment of the present invention;

[0078] Figure 6 This is a schematic diagram of the multi-step prediction method used in an embodiment of the present invention. Detailed Implementation

[0079] To make the technical solutions and advantages of the present invention clearer, the specific implementation of the present invention will be described in detail below with reference to the accompanying drawings, but the implementation and protection of the present invention are not limited thereto.

[0080] Example:

[0081] A cloud server load prediction method based on signal decomposition and hybrid models, such as Figure 1 As shown, it includes the following steps:

[0082] S1. Collect time series data on the utilization rate of various resource types of cloud server nodes from the data center monitoring module, perform data preprocessing, and divide the processed data into training set, validation set and test set according to the proportion.

[0083] The collected resource utilization data mainly includes information on the CPU utilization (also known as workload), memory utilization, disk utilization, and network bandwidth utilization of cloud server physical machine nodes.

[0084] The data preprocessing method is missing value handling; for cases where the number of consecutive missing values ​​is less than 4, the values ​​from the two consecutive time points are used for interpolation and replacement; for cases where the number of consecutive missing values ​​exceeds 4, the data segment is discarded directly.

[0085] In this embodiment, the data after missing value processing is divided into training set, validation set and test set in a ratio of 8:1:1, and further divided into fixed-length training samples using a sliding window based on the model training time window and prediction step size.

[0086] S2. Perform Savitzky-Golay filtering on the training set, validation set, and test set for smoothing and noise reduction.

[0087] Savitzky-Golay filters are used to smooth and reduce noise in time-series data. For time-series data of length t, the following representation is used:

[0088] X = {x1, x2, ..., x} t},t∈N +

[0089] In the formula, X represents the utilization rate data of a certain resource on the cloud server, x t This is the utilization rate at time t. Consider a subsequence with a window length of 2m+1 and perform a polynomial fitting based on the least squares method:

[0090] Y = {x r-m ,...,x r ,...,x r+m}, r∈[m+1, tm]

[0091]

[0092]

[0093] In this context, the window size *m* determines the number of data points for fitting the polynomial function, *p(q)* is the fitted value at the *q*th position in the window, *M* is the polynomial order (an adjustable hyperparameter), and *ε* is the least-squares residual between the fitted and true values. Minimizing the residual *ε* yields the optimal polynomial coefficients *a*.k Then the fitted values ​​can be used as the smoothed data.

[0094] S3. The host load signal is decomposed into a set of sub-sequences using empirical wavelet transform, and each sub-sequence is normalized separately.

[0095] The specific steps for decomposing the host load signal into a set of subsequences using empirical wavelet transform are as follows:

[0096] The Fast Fourier Transform (FFT) is used to transform the load signal from the time domain to the frequency domain. The Fourier spectrum range of the signal is defined as ω∈[0,π]. The Fourier support ω is divided into N continuous segments on [0,π], and each segment can be represented as σ. n =[ω n-1 ,ω n ], where ω n-1 and ω n These represent the boundaries of each segment, and a value with ω is defined at each frequency band boundary. n Centered on, with a length of 2τ n The transition segment, where n = 1, 2, ..., N, ω0 = 0, ω N =π,τ n =γω n And it satisfies:

[0097]

[0098]

[0099] Based on the segmented frequency bands, filters for the corresponding frequency bands are constructed according to the ideas of Littlewood-Paley and Meyer wavelets. For the sub-frequency band Λ n Define its scaling function φ n (ω) and wavelet function Ψ n (ω) are respectively:

[0100]

[0101]

[0102] Where δ(x) is a polynomial proposed by Daubechies that satisfies the requirements:

[0103] δ(x)=x 4 (35-84x+70x 2 -20x 3 )

[0104] Detail factor and approximation coefficients Constructed from the inner product of the wavelet function and the scaling function of the empirical wavelet with the signal, respectively:

[0105]

[0106]

[0107] in, and They are respectively Ψ n The complex conjugate of Φ1, f(ω) is the Fourier transform of the signal, F -1 This is the inverse Fourier transform. and They are respectively Ψ n Fourier transform of Φ1;

[0108] Based on the empirical wavelet function and scaling function constructed on the tight support frame, the decomposition and reconstruction of the signal are completed.

[0109] like Figure 2 As shown, the Alibaba cluster dataset is decomposed into four subsequences IMF1 to IMF4 based on empirical wavelet transform. One of the data segments exhibits low-frequency smoothness, reflecting the trend of load transformation. The remaining high-frequency subsequences fluctuate around zero, exhibiting certain periodic characteristics. Therefore, different models are used to model the trend and periodic components according to the data characteristics. Furthermore, since the numerical ranges of the trend and periodic terms are different, normalization is performed on each subsequence segment separately.

[0110] The data normalization process uses the Min-Max normalization function to distribute the values ​​of multiple time-series index data in [0,1].

[0111] S4. Construct a hybrid deep learning load prediction model that combines a multi-scale temporal convolutional network and a gated recurrent network with a two-stage attention mechanism.

[0112] The hybrid deep learning load prediction model mainly consists of two parts: a multi-scale temporal convolutional network and a gated recurrent neural network with a two-stage attention mechanism. These are used to extract seasonal features of the high-frequency periodic component and long-term correlation features between the low-frequency trend component and other exogenous time series, respectively. The two feature information are fused, and the final prediction result is output. The calculation formula is as follows:

[0113]

[0114] Among them, h MSTCN and h DAGRU W represents the hidden state information extracted by a multi-scale temporal convolutional network and a gated recurrent network with a two-stage attention mechanism, respectively. ob represents the weights of the output layer. o These are the bias values ​​for the output layer, all of which are trainable parameters.

[0115] The input samples for the multi-scale temporal convolutional network are T∈N + It is a high-frequency subsequence obtained by empirical wavelet decomposition of the CPU utilization time series signal. Let t be the partial true value with high-frequency periodic characteristics at time t.

[0116] The temporal convolutional neural network used to extract feature information of high-frequency periodic load components is mainly implemented by stacking temporal convolutional network layers, and its definition is as follows:

[0117]

[0118] In the formula, F(i) is the convolution result of the element at position i in the input sequence X, μ is the convolution kernel, K is the kernel size, and D is the dilation factor. When D = 1, the dilated convolution degenerates into a regular convolution; x (i-Dj) It controls the direction of convolution operations, meaning it only performs convolution operations on data before time i, thus maintaining the causal relationship between time series data. It extracts feature information at different periodic scales from high-frequency periodic subsequences by using different dilation factors, and further increases the receptive field size by using stacked convolutional networks.

[0119] like Figure 3 As shown in the diagram, this schematic illustrates the structure of a three-layer temporal convolutional network with a bottom-level dilation factor D=3. It extracts features from the bottom-level time series data with equally spaced periodic spans and achieves hierarchical feature extraction by stacking convolutional layers, expanding from local periodic information to global periodic information. The bottom layer uses different dilation factors to extract information with different periodic spans, which is the Multi-Scale Temporal Convolutional Network (MSTCN).

[0120] The input samples of a gated recurrent neural network with a two-stage attention mechanism are Where X 1 X is the low-frequency subsequence obtained by empirical wavelet decomposition of the CPU utilization time series signal. 2 ~X C It consists of C-1 time series of length T, which are exogenous variable messages, including memory utilization, network utilization, and disk utilization.

[0121] The input information is computed using a gated recurrent network with a two-stage attention mechanism. The specific update process of the GRU recurrent unit at time t is as follows:

[0122] z t =σ(W z [ht-1 ,x t ]+b z )

[0123] r t =σ(W r [h t-1 ,x t ]+b r )

[0124]

[0125]

[0126] Among them, z t r t These are the update gate and reset gate for GRU, respectively. For candidate memory units, σ ​​represents the Sigmoid activation function, tanh represents the tanh activation function, and ⊙ represents the Hadamard product;

[0127] like Figure 4 The diagram shown illustrates the input attention module model. For the output of the o-th time series data... Using the hidden state h generated by the GRU encoder at time t-1 t-1 Calculate the input attention score:

[0128]

[0129]

[0130] Where V e W e b represents the weights of the neural network. e These are bias values, all trainable parameters. The attention weights are calculated using the Softmax function, and then relevant time-series information from exogenous variables is adaptively extracted.

[0131]

[0132] like Figure 5 The diagram shows a schematic of the temporal attention module. Similarly, the GRU decoder adaptively selects relevant encoder hidden states at all time steps to calculate the attention score.

[0133]

[0134]

[0135] Among them, V d W db represents the weight values ​​of the decoder neural network. d These are bias values, all of which are trainable parameters, d t-1 Let h be the hidden state vector of the decoder GRU unit at time t-1. g It is the hidden state vector of the encoder GRU unit at time g. The vector obtained by concatenating the two is used as the input for attention calculation, and the normalized score is obtained through Softmax.

[0136] Due to the hidden state h of each encoder g All are mapped to a time component of the input. Note the mechanism that maps the context vector conetxt. t As the hidden states of all encoders {h1,h2,…,h T The weighted sum of}

[0137]

[0138] Ultimately, the DA-GRU network can adaptively extract relevant feature information from different resource dimensions at each time step, establish complete long-term dependencies between multiple time series, use this dependency information as an important identification feature of the load trend part, and integrate the key information extracted by different modules by the linear output layer to make accurate load prediction.

[0139] S5. Input the data of the training set after decomposition by SG filtering algorithm and empirical wavelet transform into the load prediction model for training. After the loss function value is less than the given threshold, end the training and save the model parameters.

[0140] During the training of the load prediction model, the specific expression of the loss function is as follows:

[0141]

[0142] Where U is the number of training samples, and horizon is the prediction step size. and Let represent the predicted and true values ​​of the ρ-th sample, λ be the regularization coefficient, and θ be the training parameters of the model, including the weights W and biases b of each layer of the neural network. The model uses mean squared error (MSE) as the loss function during training and iteratively optimizes the parameters of the neural network using gradient descent. After each iteration, a validation set is used to test the model's predictive performance, and the set of model parameters with the smallest error is retained. When the validation loss no longer decreases, early stopping is used to terminate the training process to avoid overfitting.

[0143] S6. Input the sample to be predicted into the trained load prediction model to obtain the prediction result.

[0144] Since actual resource management often requires information on resource usage over a future period to ensure the timeliness of scheduling plans, a multi-step time series forecasting scheme is needed to increase the forecast length. Figure 6 The Seq2Seq model used to achieve this requirement has good performance, is simple to implement, and is more easily adopted in real-world scenarios. It uses DA-RNN and MSTCN as feature extraction modules, transmits the extracted hidden states to the prediction module, combines the prediction results of the previous step to update the hidden states and output the prediction results, and performs multi-step host load prediction through this iterative output method.

[0145] The above process is a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A cloud server load prediction method based on signal decomposition and hybrid models, characterized in that, Includes the following steps: S1. Collect time series data on the utilization rate of various types of resources of cloud server nodes from the data center monitoring module, perform data preprocessing, and divide the processed data into training set, validation set and test set according to the proportion; S2. Perform Savitzky-Golay filtering on the training set, validation set, and test set for smoothing and noise reduction. S3. The host load signal is decomposed into a set of sub-sequences using empirical wavelet transform, and each sub-sequence is normalized separately. S4. Construct a hybrid deep learning load prediction model that combines a multi-scale temporal convolutional network and a gated recurrent neural network with a two-stage attention mechanism. The hybrid deep learning load prediction model mainly consists of two parts: a multi-scale temporal convolutional network and a gated recurrent neural network with a two-stage attention mechanism. These are used to extract seasonal features of high-frequency periodic components and long-term correlation features between low-frequency trend components and other exogenous time series, respectively. After fusing the two feature information, the final prediction result is output, calculated using the following formula: in, and These are the hidden state information extracted by a multi-scale temporal convolutional network and a gated recurrent network with a two-stage attention mechanism, respectively. These are the weight values ​​for the output layer. The bias values ​​for the output layer are all trainable parameters; the input samples for the multi-scale temporal convolutional network are... It is a high-frequency subsequence obtained by empirical wavelet decomposition of the CPU utilization time series signal. This represents the partial true value with high-frequency periodic characteristics at time t; The temporal convolutional neural network used to extract feature information of high-frequency periodic load components is mainly implemented by stacking temporal convolutional network layers, and its definition is as follows: in, For the input sequence The convolution result of the element at position i. K is the convolution kernel, K is the kernel size, and D is the dilation factor. When D=1, the dilated convolution degenerates into a regular convolution. It controls the direction of the convolution operation, that is, it only performs convolution operation on the data before time i, thus maintaining the causal relationship between time series data; The input samples of a gated recurrent neural network with a two-stage attention mechanism are ,in The low-frequency subsequence is obtained by empirical wavelet decomposition of the CPU utilization time series signal. It consists of C-1 time series of length T, which are exogenous variable messages, including memory utilization, network utilization, and disk utilization. The input sample is computed using a gated recurrent network with a two-stage attention mechanism. The specific update process of the GRU recurrent unit at time t is as follows: in, , These are the update gate and reset gate for GRU, respectively. Candidate memory units, This represents the Sigmoid activation function. This represents the tanh activation function. Represents the Hadamard product; To output the o-th time series data Using the hidden state generated by the GRU encoder at time t-1 Calculate the input attention score: in , These are the weight values ​​of the encoder neural network. These are bias values, all trainable parameters. The attention weights are calculated using the Softmax function, and then relevant time-series information from exogenous variables is adaptively extracted. Similarly, the attention score is computed by adaptively selecting the relevant encoder hidden states at all time steps using the GRU decoder: in, , These are the weight values ​​of the decoder neural network. These are bias values, all of which are trainable parameters. Let be the hidden state vector of the decoder GRU unit at time t-1. It is the hidden state vector of the encoder GRU unit at time g. The vector obtained by concatenating the two is used as the input for attention calculation, and the normalized score is obtained through Softmax. Due to the hidden state of each encoder All are mapped to a time component of the input; note the mechanism that maps the context vector. As a hidden state for all encoders Weighted sum: Ultimately, the DA-GRU network can adaptively extract relevant feature information from different resource dimensions at each time step, establish complete long-term dependencies between multiple time series, use this dependency information as an important identification feature of the load trend part, and integrate the key information extracted by different modules by the linear output layer to make accurate load prediction. S5. Input the data of the training set after decomposition by SG filtering algorithm and empirical wavelet transform into the load prediction model for training. After the loss function value is less than the given threshold, end the training and save the model parameters. S6. Input the sample to be predicted into the trained load prediction model to obtain the prediction result.

2. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 1, characterized in that, In step S1, the time series data of utilization rates of various resource types collected mainly include CPU utilization, memory utilization, disk utilization, and network bandwidth utilization information of cloud server physical machine nodes.

3. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 2, characterized in that, In step S1, the data preprocessing is missing value handling; for cases where the number of consecutive missing values ​​is less than 4, the values ​​from the two consecutive time points are used for interpolation and replacement; for cases where the number of consecutive missing values ​​exceeds 4, the data segment is discarded directly. After missing values ​​are processed, the data is divided into training, validation, and test sets according to a set ratio. Then, a sliding window is used to further divide the data of the training, validation, and test sets into training samples of fixed length.

4. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 1, characterized in that, In step S2, the Savitzky-Golay filter is used to smooth and denoise the time-series data of CPU utilization in the training, validation, and test sets. For time-series data of length t, it is represented as follows: in, This refers to the utilization rate data of a certain resource on a cloud server. This is the utilization rate at time t; consider a subsequence with a window length of 2m+1 and perform polynomial fitting based on the least squares method: The window size *m* determines the number of data points used to fit the polynomial function. Let M be the fitted value at the q-th position in the window, where M is the polynomial order and is an adjustable hyperparameter. The least squares residual between the fitted value and the true value is the value obtained by minimizing the residual. Obtain the optimal polynomial coefficients Then the fitted values ​​are used as the smoothed data.

5. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 1, characterized in that, In step S3, the specific steps for decomposing the host load signal into a set of subsequences using empirical wavelet transform are as follows: The load signal is transformed from the time domain to the frequency domain using Fast Fourier Transform, and the Fourier spectrum range of the signal is defined as follows: Support Fourier exist The upper part is divided into N consecutive segments, each segment is represented as ,in and These represent the boundaries of each segment, and a boundary term is defined for each frequency band boundary. Centered on, with a length of 2 The transition section, in which , And it satisfies: Based on the segmented frequency bands, filters for the corresponding frequency bands are constructed according to the ideas of Littlewood-Paley and Meyer wavelets. Define its scaling function and wavelet function They are respectively: in, It is a polynomial proposed by Daubechies that meets the requirements: Detail factor and approximation coefficients Constructed from the inner product of the wavelet function and the scaling function of the empirical wavelet with the signal, respectively: in, and They are respectively and The complex conjugate, For the Fourier transform of the signal, This is the inverse Fourier transform. and They are respectively and Fourier transform; Based on the empirical wavelet function and scaling function constructed on the tight support frame, the decomposition and reconstruction of the signal are completed.

6. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 1, characterized in that, In step S3, the data normalization process is to use the Min-Max normalization function to distribute the values ​​of the processed multiple time series index data in [0, 1].

7. The cloud server load prediction method based on signal decomposition and hybrid model according to claim 1, characterized in that, In step S5, during the training of the load prediction model, the specific expression of the loss function is as follows: Where U is the number of training samples, and horizon is the prediction step size. and Representing the first The predicted value and the true value of each sample The coefficient of the regularization term, These are the training parameters of the model, including the weights W and biases b of each layer of the neural network. The model uses the mean squared error (MSE) as the loss function during training and iteratively optimizes the parameters of the neural network using gradient descent. After each iteration, a validation set is used to test the model's predictive performance, and the set of model parameters with the smallest error is retained. When the validation loss no longer decreases, the training process is terminated using early stopping to avoid overfitting.

Citation Information

Patent Citations

  • Mobile cloud load prediction method and system of LSTM network combined with attention mechanism

    CN113051130A

  • A Microservice Proactive Scaling Method Based on Spatiotemporal Graph Neural Network Load Prediction

    CN115499511B