Operation and maintenance method, device and equipment based on time series data trend prediction
By smoothing denoising, periodic detection and decomposition of server performance data, combined with ARMA model prediction, the problem of poor prediction of periodic and trend data in the existing technology is solved, and high-accuracy server performance is achieved. Forecasting and operational operations.
Patent Information
- Application Number
- CN202011403112.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-04
AI Technical Summary
The existing server performance data prediction method has poor prediction effect on time series data that has both periodicity and trend, resulting in poor operation and maintenance results.
It uses time series data smoothing and denoising processing, periodicity detection, decomposition and wavelet decomposition technology, combined with the ARMA model for prediction, and selects the prediction method according to whether the data has periodicity to generate accurate prediction results.
It improves the accuracy of server performance data prediction, ensures the efficiency of prediction results in complex data environments, supports effective operation and maintenance operations, and improves server performance.
Smart Images

Figure CN112631881B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an operation and maintenance method, device, equipment and readable storage medium based on time series data trend prediction. Background Art
[0002] With the rapid development of cloud computing, bare metal construction with physical machine performance and cloud elasticity is quietly emerging in cloud computing. In order to optimize the performance of physical machines and cloud hosts in cloud computing, analyzing and predicting performance data is of guiding significance for machine performance tuning.
[0003] At present, the prediction methods for server performance data include time series-based methods and machine learning-based methods. Time series-based methods often use models such as cumulative autoregressive moving average (ARIMA) and exponential smoothing (Holt-Winters). These models are linear models and have insufficient prediction capabilities for nonlinear data. Machine learning-based methods mainly include support vector machines (SVMs) and artificial neural networks (ANNs). This method is mainly aimed at small sample problems. If faced with large-scale data volumes, it is easy to fall into local optimal solutions.
[0004] The data complexity of the performance data in the server is relatively high. Therefore, general prediction schemes often have good prediction effects on one type of data, but poor prediction effects on another type of data. For example, time series data composed of performance data often has periodicity and trend characteristics. Some prediction schemes have good prediction effects on periodic data, but poor prediction effects on trend data, while others have the opposite effect.
[0005] It can be seen that in the server operation and maintenance scenario, how to predict time series data that has both periodicity and trend, so as to adjust the server according to the prediction results and improve server performance, is a problem that urgently needs to be solved by technical personnel in this field. Summary of the invention
[0006] The purpose of this application is to provide an operation and maintenance method, device, equipment and readable storage medium based on time series data trend prediction, so as to solve the problem that the current operation and maintenance scheme has poor prediction effect on time series data with both periodicity and trend, resulting in poor operation and maintenance effect. The specific scheme is as follows:
[0007] In a first aspect, the present application provides an operation and maintenance method based on time series data trend prediction, comprising:
[0008] Acquire time series data, wherein the time series data includes performance data of the server at different times;
[0009] Performing smoothing and denoising processing on the time series data;
[0010] Use DTW to detect periodicity of time series data after smoothing and denoising;
[0011] When the time series data has periodicity, decomposing the time series data into periodic data and trend data;
[0012] Performing wavelet decomposition on the trend data or time series data without periodicity to obtain component data;
[0013] Using the ARMA model to predict the component data, obtaining trend prediction results;
[0014] When the time series data has periodicity, the prediction result of the time series data is determined according to the periodicity of the periodic data and the trend prediction result; when the time series data does not have periodicity, the trend prediction result is directly used as the prediction result of the time series data;
[0015] According to the prediction result of the time series data, corresponding operation and maintenance operations are performed on the server.
[0016] Preferably, the smoothing and denoising of the time series data includes:
[0017] The least square smoothing filter algorithm is used to smooth and denoise the time series data.
[0018] Preferably, performing wavelet decomposition on the trend data or the time series data without periodicity to obtain component data includes:
[0019] Performing a stationarity test on the trend data or time series data without periodicity;
[0020] If the trend data or the time series data without periodicity is not stationary, wavelet decomposition is performed to obtain component data;
[0021] A stationarity test is performed on the component data. If the component data also does not have stationarity, the wavelet decomposition is repeated until the component data obtained by the decomposition has stationarity.
[0022] Preferably, the stationarity test of the trend data or the time series data without periodicity includes:
[0023] The ADF algorithm is used to perform a stationarity test on the trend data or time series data without periodicity.
[0024] Preferably, the periodic detection of the time series data after smoothing and denoising by using DTW includes:
[0025] Segment the time series data after smoothing and denoising to obtain a sub-time series data set;
[0026] Calculating the distance between two adjacent sub-time series data in the sub-time series sequence by using DTW;
[0027] If the distance value exceeds a preset threshold, it is determined that the time series data does not have periodicity.
[0028] Preferably, before calculating the distance value between two adjacent sub-time series data in the sub-time series sequence by using DTW, the method further includes:
[0029] If the dimensions of each sub-time series data in the sub-time series data set are different, the dimensions of each sub-time series data in the sub-time series data set are unified.
[0030] Preferably, before the component data are predicted using the ARMA model to obtain the trend prediction result, the method further includes:
[0031] Determine the value range of the model parameters of the ARMA model;
[0032] According to the BIC criterion, determining the optimal model parameters that minimize the BIC value within the value range;
[0033] Based on the optimal model parameters, a corresponding ARMA model is constructed.
[0034] In a second aspect, the present application provides an operation and maintenance device based on time series data trend prediction, comprising:
[0035] Time series data acquisition module: used to acquire time series data, wherein the time series data includes performance data of the server at different times;
[0036] Smoothing and denoising processing module: used for performing smoothing and denoising processing on the time series data;
[0037] Periodicity detection module: used to perform periodicity detection on time series data after smoothing and denoising using DTW;
[0038] Periodic decomposition module: used for decomposing the time series data into periodic data and trend data when the time series data has periodicity;
[0039] Wavelet decomposition module: used for performing wavelet decomposition on the trend data or time series data without periodicity to obtain component data;
[0040] Prediction module: used to predict the component data using the ARMA model to obtain trend prediction results;
[0041] Prediction result output module: used for determining the prediction result of the time series data according to the periodicity of the periodic data and the trend prediction result when the time series data has periodicity; and directly using the trend prediction result as the prediction result of the time series data when the time series data does not have periodicity;
[0042] Operation and maintenance module: used to perform corresponding operation and maintenance operations on the server according to the prediction results of the time series data.
[0043] In a third aspect, the present application provides an operation and maintenance device based on time series data trend prediction, including:
[0044] Memory: used to store computer programs;
[0045] Processor: used to execute the computer program to implement the operation and maintenance method based on time series data trend prediction as described above.
[0046] In a fourth aspect, the present application provides a readable storage medium, characterized in that a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, it is used to implement the operation and maintenance method based on time series data trend prediction as described above.
[0047] The present application provides an operation and maintenance method based on trend prediction of time series data. For time series data composed of performance data of servers at different times, the method first performs smoothing, denoising and periodicity detection on the time series data before making a prediction. Time series data with periodicity is decomposed into periodic data and trend data, and then the trend data is subjected to wavelet decomposition to obtain component data; time series data without periodicity is directly subjected to wavelet decomposition to obtain component data. When predicting, the component data is predicted using the ARMA model to obtain trend prediction results. Then, the prediction results of the time series data are generated. Specifically, when the time series data has periodicity, the period prediction results are determined according to the periodicity of the aforementioned periodic data, and the period prediction results are combined with the trend prediction results to obtain the prediction results of the time series data; when the time series data does not have periodicity, the trend prediction results are directly used as the prediction results of the time series data. Finally, according to the prediction results of the time series data, corresponding operation and maintenance operations are performed on the server.
[0048] It can be seen that this method uses different ways to make predictions depending on whether the time series data is periodic. Therefore, even in a complex data environment, the prediction results of this method are still highly accurate. Performing corresponding operation and maintenance operations based on the prediction results is conducive to maximizing server performance.
[0049] In addition, the present application also provides an operation and maintenance device, equipment and readable storage medium based on time series data trend prediction, and its technical effects correspond to the technical effects of the above-mentioned method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions of 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 A flowchart of a first embodiment of an operation and maintenance method based on time series data trend prediction provided by the present application;
[0052] Figure 2 A flowchart of a second embodiment of an operation and maintenance method based on time series data trend prediction provided by the present application;
[0053] Figure 3 A flowchart of the wavelet decomposition process in Embodiment 2 of an operation and maintenance method based on time series data trend prediction provided by the present application;
[0054] Figure 4 A flowchart of the ARMA model parameter determination process in Embodiment 2 of an operation and maintenance method based on time series data trend prediction provided by the present application;
[0055] Figure 5 This is a functional block diagram of an embodiment of an operation and maintenance device based on time series data trend prediction provided in the present application. DETAILED DESCRIPTION
[0056] The core of this application is to provide an operation and maintenance method, device, equipment and readable storage medium based on time series data trend prediction, which can predict server performance data in different ways according to whether the time series data is periodic, ensure the accuracy of the prediction results, and subsequently perform corresponding operation and maintenance operations based on the prediction results, thereby improving server performance.
[0057] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0058] The following is an introduction to an operation and maintenance method based on time series data trend prediction provided by the present application. Figure 1 , Embodiment 1 includes:
[0059] S101. Acquire time series data, where the time series data includes performance data of the server at different times.
[0060] This embodiment is implemented in an operation and maintenance scenario and is applicable to performance optimization solutions for various cloud platform infrastructures, such as x86, arm, and mips platforms.
[0061] When the monitoring target is the server's CPU, memory, storage, network and other indicators, the above performance data is the data obtained by collecting data on these indicators at a certain frequency, specifically including CPU usage, memory usage, hard disk usage, network throughput, etc.
[0062] It is understandable that in practical applications, time series data may be missing. In this case, interpolation can be used to complete the time series data.
[0063] S102: performing smoothing and denoising processing on the time series data.
[0064] The purpose of smoothing and denoising the time series data is to remove outliers in the time series data, smooth the burrs in the time series data, and reduce the interference of noise. Specifically, the least squares smoothing filter algorithm can be used here.
[0065] S103, using DTW to perform periodicity detection on the time series data after smoothing and denoising.
[0066] After smoothing and denoising the time series data, periodicity detection is performed to determine whether the time series data is periodic data. The algorithm used in this embodiment is DTW (Dynamic Time Warping).
[0067] The process of using DTW to perform periodic detection on time series data specifically includes: segmenting the time series data, and the data obtained by segmentation is called sub-time series data. Through segmentation, a sub-time series data set including multiple sub-time series data can be obtained; using DTW to calculate the distance value between two adjacent sub-time series data in the sub-time series sequence; if the distance value exceeds a preset threshold, it is determined that the time series data is not periodic, otherwise it is determined that the time series data is periodic.
[0068] It is worth mentioning that when data is segmented, it cannot be guaranteed that the dimensions of each sub-time series data obtained by segmentation are all equal, so one purpose of using the DTW algorithm for periodicity detection in this embodiment is to ensure the smooth progress of periodicity detection by unifying the dimensions of each sub-time series data obtained by segmentation. Specifically, if the dimensions of the two sub-time series data to be calculated for distance are different, then DTW is first used to expand the dimension or dimension to ensure that the two dimensions are equal, and then the distance calculation is performed.
[0069] Therefore, the process of using DTW to perform periodic detection on time series data also includes the following process: if the dimensions of each sub-time series data in the sub-time series data set are different, the dimensions of each sub-time series data in the sub-time series data set are unified.
[0070] S104: When the time series data has periodicity, decompose the time series data into periodic data and trend data.
[0071] Specifically, the time series decomposition algorithm is used to decompose the time series data to obtain periodic data and trend data. In practical applications, residual data may also be obtained. Among them, trend data can be considered as a low-frequency change trend, periodic data can be considered as a high-frequency change caused by periodic stable disturbances, and residual data can be considered as irregular changes caused by random disturbances. Therefore, residual data is generally not considered. In the actual prediction process, low-frequency trend data is helpful to understand the change trend of time series data. Combined with the periodicity of periodic data, the two are predicted separately, and the two prediction results are combined to obtain a more accurate prediction result.
[0072] In practical applications, the STL (Seasonal-Trend decomposition procedurebased on Loess) algorithm can be used to decompose time series data into periodic data and trend data.
[0073] S105 , performing wavelet decomposition on the trend data or time series data without periodicity to obtain component data.
[0074] For the trend data or time series data without periodicity decomposed in S104, a stationarity test is first performed. If the test result is stationarity, that is, the trend data or time series data without periodicity is a stationary sequence, then directly enter S106. If the test result is a non-stationary sequence, the trend data or time series data without periodicity is subjected to wavelet decomposition to decompose component data, including low-frequency components and high-frequency components. After that, the component data decomposed by the wavelet is then subjected to a stationarity test. If each component data is stationary, enter S106, otherwise, the wavelet decomposition is continued for the component data without stationarity until all component data are stationary sequences.
[0075] In practical applications, the ADF (Augmented Dickey-Fulle, unit root test) algorithm can be used to implement the above-mentioned stationarity test process.
[0076] S106: Use the ARMA model to predict the component data to obtain a trend prediction result.
[0077] Specifically, after predicting each component data separately, they are combined to obtain the trend prediction result. Here, the ARMA model (Autoregressive Moving Average model) is used to realize the prediction of component data.
[0078] Before performing actual prediction, the BIC criterion (Bayesian Information Criterion) is used to determine the optimal model parameters of the ARMA model, and then the ARMA model based on the optimal model parameters is used to predict the stationary sequence data. Therefore, the construction process of the ARMA model specifically includes: determining the value range of the model parameters of the ARMA model; determining the optimal model parameters that minimize the BIC value within the value range according to the BIC criterion; and constructing the corresponding ARMA model based on the optimal model parameters.
[0079] S107. When the time series data has periodicity, determine the prediction result of the time series data according to the periodicity of the periodic data and the trend prediction result; when the time series data does not have periodicity, directly use the trend prediction result as the prediction result of the time series data.
[0080] Specifically, prediction is performed based on the periodicity of the periodic data to obtain a periodic prediction result. The periodic prediction result is combined with the trend prediction result to obtain a prediction result of the time series data.
[0081] S108. Perform corresponding operation and maintenance operations on the server according to the prediction result of the time series data.
[0082] The present embodiment provides an operation and maintenance method based on trend prediction of time series data. For time series data composed of performance data of the server at different times, the least squares smoothing filter is used to pre-process the time series data to reduce the interference of noise, and DTW is used to perform periodicity test, and the corresponding prediction algorithm is selected according to whether the data has periodicity. If the data is periodic, the STL algorithm is used to decompose the time series to decompose the periodic data and trend data; for the decomposed trend data, the wavelet decomposition algorithm is used to decompose the low-frequency component and high-frequency component of the data, so that the data is a stationary sequence on each component. If the data is not periodic, the wavelet decomposition algorithm is used to decompose the low-frequency component and high-frequency component of the data, and the wavelet decomposition is repeated until the data is a stationary sequence on each component. The ARMA model is used to predict the data on each component to obtain the trend prediction result; combined with the period prediction result determined according to the periodicity of the periodic data, the prediction result of the entire time series data is obtained. Finally, the corresponding operation and maintenance operations are performed.
[0083] It can be seen that this method uses different ways to make predictions depending on whether the time series data is periodic. Therefore, even in a complex data environment, the prediction results of this method are still highly accurate. Performing corresponding operation and maintenance operations based on the prediction results is conducive to maximizing server performance.
[0084] The following is a detailed introduction to Example 2 of an operation and maintenance method based on time series data trend prediction provided by the present application. Example 2 provides a detailed introduction to the entire implementation process using a practical application as an example.
[0085] The implementation process of the second embodiment is as follows Figure 2 As shown, specifically including:
[0086] S201. Obtain time series data consisting of performance data at different times in the OpenStack cluster. The performance data that can be used for prediction includes information such as CPU usage, memory usage, hard disk usage, network port traffic, etc.
[0087] S202: Clean the time series data and use the least squares smoothing filter to smooth the data.
[0088] S203, firstly, the time series data is segmented, then the dimensions of the sub-time series data obtained by segmentation are unified, and then the DTW distance between two adjacent sub-time series data is calculated. When the distance value exceeds the preset threshold, it means that the time series data is not periodic, and the non-periodic prediction algorithm is used for data prediction. On the contrary, it means that the time series data is periodic, and the periodic prediction algorithm is used for data prediction.
[0089] The distance formula in DTW can be expressed as:
[0090]
[0091] Where Dist(w ki , w kj ) is the Euclidean distance, w ki refers to the i-th data point of a sub-time series data X, w kj It refers to the j-th data point of another segment of sub-time series data Y, and K represents the number of sub-time series data.
[0092] S204. If the time series data is periodic, use the STL algorithm to decompose the time series data into a period component, a trend component, and a remainder:
[0093] Y v =T v +S v +R v v=1,...,N
[0094] Where, T v is the trend component, S v is the periodic component, R v is the remainder, and N represents the data length.
[0095] S205. For the trend component data or the time series data without periodicity (hereinafter referred to as the original data), a stationarity test is performed, and the non-stationary sequence is decomposed by wavelet. The decomposition process is as follows: Figure 3 shown.
[0096] First, the stationarity of the original data is tested using the ADF algorithm. If the obtained significance test statistic is less than three confidence levels, it means that the original data is stationary, and the process goes to S206. Otherwise, the original data is decomposed using wavelet decomposition to obtain low-frequency components and high-frequency components.
[0097] Among them, wavelet decomposition can obtain the low-frequency components of the original data from the low-frequency coefficients through reconstruction operations, and the high-frequency components of the original data from the high-frequency coefficients. The low-frequency coefficients and high-frequency coefficients can be expressed as:
[0098] a j+1 =h0*a j
[0099] d j+1 =h1*d j
[0100] In the formula, a j represents the low-frequency coefficient, h0 represents the low-pass decomposition filter, * represents the convolution operator, and a0 represents the original data. jrepresents high frequency coefficients, h1 represents high-pass decomposition filter, * represents convolution operator, and d0 represents original data.
[0101] After that, after reconstruction operation, the low-frequency component and high-frequency component of the original data are obtained:
[0102] A j =g0*a j
[0103] D j =g1*d j
[0104] Where g0 represents a low-pass reconstruction filter, A j represents the low-frequency component. g1 represents the high-pass reconstruction filter, D j Represents high frequency components.
[0105] The relationship between the final original data S and the decomposed low-frequency component A and high-frequency component D is:
[0106] S=A+D
[0107] After decomposing the low-frequency and high-frequency parts of the original data, the stationarity test is performed on A and D. If a component meets the stationarity requirement, no decomposition is required, otherwise continue to decompose until all components meet the stationarity requirement.
[0108] Finally, after wavelet decomposition, the original data is converted into the sum of multiple stable high-frequency components and low-frequency components.
[0109] S206. After decomposing the original data, it is ensured that each component is a stationary sequence, and then the autoregressive moving average model ARMA is used to predict each component.
[0110] The ARMA model can be defined as: when {X(n), n=0, ±1, ±2...} is a stationary process, if for any n:
[0111] X(n)-φ1X(n-1)-…-φ p X(np)=ξ(n)-θ1ξ(n-1)-…-θ q ξ(nq)
[0112] Where ξ(n) is the variance of 2 If the white noise is , then X(n) contains the p-order autoregressive and q-order moving average processes, referred to as ARMA(p,q) process.
[0113] The parameter adjustment process of the ARMA model is as follows: Figure 4As shown. First, calculate the supremum of p and q. In general experience, the model order is related to the length of the time series data and generally does not exceed N / 3 or lnN. However, in order to make the model have a certain generalization ability, the parameters should be as small as possible. It is best to choose the supremum of the parameters as lnN.
[0114] After determining the range of model parameter values, use the BIC criterion to determine the parameter values. BIC can be expressed as:
[0115]
[0116] The p and q that minimize the above equation are the order of the ARMA model. is the estimate of the variance of ξ(n), and n is the sample size. That is:
[0117]
[0118] Where P0 and Q0 are the integer values of lnN.
[0119] After using the BIC criterion, the order of the ARMA model is determined and the modeling is completed.
[0120] S207. Finally, prediction is performed. There are two cases at this time: the original time series data has periodicity or does not have periodicity:
[0121] When there is no periodicity, if the time series data has been decomposed by wavelet, the ARMA model is used to predict the data on each component of the wavelet decomposition, and the prediction result of the time series data is obtained by combination. If the time series data has not been decomposed by wavelet, the ARMA model is directly used to predict the time series data to obtain the prediction result of the time series data without combination.
[0122] When there is periodicity, it is divided into two parts: periodic data and trend data. If the trend data has been decomposed by wavelet, the ARMA model is used to predict the data on each component of the wavelet decomposition, and the trend prediction result is obtained by combination. If the trend data has not been decomposed by wavelet, the ARMA model is directly used to predict the trend data to obtain the trend prediction result without combination. According to the periodicity of the periodic data, the periodic prediction result is obtained. The trend prediction result is combined with the periodic prediction result to obtain the prediction result of the entire time series data.
[0123] It can be seen that the operation and maintenance method based on time series data trend prediction provided by this embodiment takes the periodicity of the data into consideration. Before making a prediction, the data is first tested for periodicity, and the periodic data is decomposed using a time series decomposition algorithm. The periodic data and trend data obtained by the decomposition are predicted separately, to ensure that the prediction algorithm has high accuracy when facing a complex data environment.
[0124] Through the prediction, the operation and maintenance personnel can quickly determine whether to increase or expand the capacity according to the prediction, thereby improving the efficiency of the operation and maintenance personnel and further improving the server performance.
[0125] The following is an introduction to an operation and maintenance device based on time series data trend prediction provided in an embodiment of the present application. The operation and maintenance device based on time series data trend prediction described below and the operation and maintenance method based on time series data trend prediction described above can be referenced to each other.
[0126] like Figure 5 As shown, the operation and maintenance device based on time series data trend prediction of this embodiment includes:
[0127] Time series data acquisition module 501: used to acquire time series data, wherein the time series data includes performance data of the server at different times;
[0128] Smoothing and denoising processing module 502: used to perform smoothing and denoising processing on the time series data;
[0129] Periodicity detection module 503: used to perform periodicity detection on the time series data after smoothing and denoising by using DTW;
[0130] The periodic decomposition module 504 is used to decompose the time series data into periodic data and trend data when the time series data has periodicity;
[0131] Wavelet decomposition module 505: used to perform wavelet decomposition on the trend data or time series data without periodicity to obtain component data;
[0132] Prediction module 506: used to predict the component data using the ARMA model to obtain trend prediction results;
[0133] Prediction result output module 507: used to determine the prediction result of the time series data according to the periodicity of the periodic data and the trend prediction result when the time series data has periodicity; when the time series data does not have periodicity, directly use the trend prediction result as the prediction result of the time series data;
[0134] Operation and maintenance module 508: used to perform corresponding operation and maintenance operations on the server according to the prediction results of the time series data.
[0135] The operation and maintenance device based on time series data trend prediction of this embodiment is used to implement the aforementioned operation and maintenance method based on time series data trend prediction. Therefore, the specific implementation method of the device can be seen in the embodiment part of the operation and maintenance method based on time series data trend prediction in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be introduced in detail here.
[0136] In addition, since the operation and maintenance device based on time series data trend prediction of this embodiment is used to implement the aforementioned operation and maintenance method based on time series data trend prediction, its function corresponds to that of the aforementioned method and will not be repeated here.
[0137] In addition, the present application also provides an operation and maintenance device based on time series data trend prediction, including:
[0138] Memory: used to store computer programs;
[0139] Processor: used to execute the computer program to implement the operation and maintenance method based on time series data trend prediction as described above.
[0140] Finally, the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, it is used to implement the operation and maintenance method based on time series data trend prediction as described above.
[0141] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0142] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0143] The above is a detailed introduction to the scheme provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An operation and maintenance method based on time series data trend prediction, characterized in that: include: Acquire time series data, wherein the time series data includes performance data of the server at different times; Performing smoothing and denoising processing on the time series data; Use DTW to detect periodicity of time series data after smoothing and denoising; When the time series data has periodicity, decomposing the time series data into periodic data and trend data; Performing wavelet decomposition on the trend data or time series data without periodicity to obtain component data; Using the ARMA model to predict the component data, obtaining trend prediction results; When the time series data has periodicity, determining the prediction result of the time series data according to the periodicity of the periodic data and the trend prediction result; When the time series data does not have periodicity, directly taking the trend prediction result as the prediction result of the time series data; According to the prediction result of the time series data, performing corresponding operation and maintenance operations on the server; The method of using DTW to perform periodicity detection on the smoothed and denoised time series data includes: segmenting the smoothed and denoised time series data to obtain a sub-time series data set; using DTW to calculate the distance value between two adjacent sub-time series data in the sub-time series; if the distance value exceeds a preset threshold, determining that the time series data does not have periodicity; Before using DTW to calculate the distance value between two adjacent sub-time series data in the sub-time series sequence, the method further includes: if the dimensions of each sub-time series data in the sub-time series data set are different, unifying the dimensions of each sub-time series data in the sub-time series data set.
2. The method according to claim 1, characterized in that The smoothing and denoising process of the time series data includes: The least square smoothing filter algorithm is used to smooth and denoise the time series data.
3. The method according to claim 1, characterized in that The step of performing wavelet decomposition on the trend data or the time series data without periodicity to obtain component data includes: Performing a stationarity test on the trend data or time series data without periodicity; If the trend data or the time series data without periodicity is not stationary, wavelet decomposition is performed to obtain component data; A stationarity test is performed on the component data. If the component data also does not have stationarity, the wavelet decomposition is repeated until the component data obtained by the decomposition has stationarity.
4. The method according to claim 3, characterized in that The stationarity test of the trend data or the time series data without periodicity includes: The ADF algorithm is used to perform a stationarity test on the trend data or time series data without periodicity.
5. The method according to any one of claims 1 to 4, characterized in that: Before the ARMA model is used to predict the component data and obtain the trend prediction result, the method further includes: Determine the value range of the model parameters of the ARMA model; According to the BIC criterion, determining the optimal model parameters that minimize the BIC value within the value range; Based on the optimal model parameters, a corresponding ARMA model is constructed.
6. An operation and maintenance device based on time series data trend prediction, characterized in that: include: Time series data acquisition module: used to acquire time series data, wherein the time series data includes performance data of the server at different times; Smoothing and denoising processing module: used for performing smoothing and denoising processing on the time series data; Periodicity detection module: used to perform periodicity detection on time series data after smoothing and denoising using DTW; Periodic decomposition module: used for decomposing the time series data into periodic data and trend data when the time series data has periodicity; Wavelet decomposition module: used for performing wavelet decomposition on the trend data or time series data without periodicity to obtain component data; Prediction module: used to predict the component data using the ARMA model to obtain trend prediction results; Prediction result output module: used for determining the prediction result of the time series data according to the periodicity of the periodic data and the trend prediction result when the time series data has periodicity; When the time series data does not have periodicity, directly taking the trend prediction result as the prediction result of the time series data; Operation and maintenance module: used to perform corresponding operation and maintenance operations on the server according to the prediction results of the time series data; The periodicity detection module is specifically used to segment the time series data after smoothing and denoising to obtain a sub-time series data set; use DTW to calculate the distance value between two adjacent sub-time series data in the sub-time series; if the distance value exceeds a preset threshold, it is determined that the time series data does not have periodicity; The device is also used to unify the dimensions of each sub-time series data in the sub-time series data set if the dimensions of each sub-time series data in the sub-time series data set are different.
7. An operation and maintenance device based on time series data trend prediction, characterized in that: include: Memory: used to store computer programs; Processor: used to execute the computer program to implement the operation and maintenance method based on time series data trend prediction as described in any one of claims 1-5.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which, when executed by a processor, is used to implement the operation and maintenance method based on time series data trend prediction as described in any one of claims 1 to 5.
