Memory recycling trend warning device and method based on fusion learning and hypothesis testing

Through the fusion learning of LSTM and XGBoost algorithm and the M-K test method, the problem of memory recycling trend prediction and abnormal turning point warning in IT systems is solved, achieving accurate prediction and abnormal warning of memory recycling trends in IT systems, and improving the stability of online services. .

CN114398235BActive Publication Date: 2024-08-23CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210042623.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2024-08-23
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

Existing trend prediction methods are not effective in predicting memory recycling trends in IT systems. In particular, traditional methods such as the ARIMA algorithm are difficult to process multi-variable and time series data, rely on experience thresholds, and lack effective early warning of abnormal trend turning points.

Method used

Using the fusion learning method of LSTM and XGBoost algorithm, combined with multi-dimensional multi-step prediction and hypothesis testing, the memory recycling trend is predicted through feature engineering, fusion learning module and trend warning module, and the M-K test method is used to confirm the abnormal trend inflection point.

Benefits of technology

It achieves accurate prediction of IT system memory recycling trends and early warning of abnormal turning points, improves the stability of online services, and avoids or detects system abnormalities in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398235B
    Figure CN114398235B
Patent Text Reader

Abstract

The embodiments of the present invention provide a memory recovery trend warning device, method and equipment based on fusion learning and hypothesis testing. The memory recovery trend warning device based on fusion learning and hypothesis testing includes: a feature engineering module for determining variables that are correlated with a monitoring quantity through association analysis, wherein the monitoring quantity is a memory recovery event; a fusion learning module for obtaining a predicted value of the variable based on the historical value of the determined variable and a fusion learning model; and a trend warning module for detecting the predicted value of the variable according to the M‑K test method, and warning the monitoring quantity according to the detection result. The embodiments provided by the present invention can provide early warnings for abnormalities and alarms of the business system, thereby improving the stability of the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of GC failure technology, and specifically to a memory recovery trend warning device based on fusion learning and hypothesis testing, a memory recovery trend warning method based on fusion learning and hypothesis testing, a memory recovery trend warning device based on fusion learning and hypothesis testing, and a corresponding storage medium. Background Art

[0002] Trend prediction is generally an analysis of data with time attributes. According to the principle of continuity of the development of things, machine learning or mathematical statistics methods are used to model and analyze historical data to infer and predict the trend change rules of the analysis target in the short term or medium and long term. Trend prediction analysis methods are widely used in the fields of securities market analysis, real estate market analysis, supermarket sales analysis, etc. In particular, in the field of intelligent monitoring of IT systems, there are some business scenarios that need to know in advance when the warning value will be reached and alarm, such as when FullGC (Full Garbage Collection) will increase significantly, so as to remind operation and maintenance personnel to make emergency preparations in advance. There are many other application scenarios, such as CPU utilization prediction, disk usage prediction, network traffic prediction, system capacity prediction, etc.

[0003] The relevant technologies of trend analysis mainly include traditional methods, such as moving average method, ARIMA, Holt-Winters method (i.e., triple exponential smoothing), Prophet method (improvement of STL model), etc.; and deep learning methods, such as long short-term memory network model (Long Short-Term Memory, LSTM), etc. The effect of traditional trend prediction methods is generally not very good, and there are many limitations in practice. For example, the ARIMA algorithm is mainly for single variable trend analysis, and the sequence needs to be stabilized, but real data is generally difficult to achieve the stabilization requirements. Summary of the invention

[0004] The purpose of the embodiment of the present invention is to provide a memory recycling trend warning device, method and equipment based on fusion learning and hypothesis testing, which adopts the fusion learning of LSTM and XGBoost algorithms. Because the LSTM algorithm can fully consider time memory, conform to the characteristics of time series data, and can combine multi-dimensional influencing factors for comprehensive prediction and analysis.

[0005] XGBoost (eXtreme Gradient Boosting) is a stochastic gradient boosting algorithm based on a tree model. It is an optimized distributed gradient boosting library designed to be efficient, flexible, and portable. The XGBoost method can also be used for regression prediction problems of multidimensional time series. Different from the prediction principle of LSTM, the prediction effect can be improved through the fusion learning of the two.

[0006] The embodiment of the present invention is aimed at the monitoring GC log sequence data of memory recovery in the IT system, and intends to use the fusion learning algorithm of LSTM and XGBoost to realize multi-dimensional multi-step prediction, that is, considering the comprehensive influence between the multi-dimensional feature data of the monitoring log, using the data of the previous several moments to predict the data of the next several steps, such as the data of the previous 100 moments to predict the data of the next 20 moments, so as to obtain the trend prediction chart of the 20 moments after the current moment. On the other hand, for predicting the trend of the sequence, considering that the fixed threshold is too dependent on experience, the hypothesis test method is used to confirm whether there is an abnormal trend inflection point in a statistical sense, so as to give an early warning for the occurrence of abnormal trends. In order to achieve the above purpose, the first aspect of the present invention provides a memory recovery trend warning device based on fusion learning and hypothesis testing, the device comprising: a feature engineering module, which is used to determine the variables that are correlated with the monitoring amount through association analysis; a fusion learning module, which is used to obtain the predicted value of the variable according to the historical value of the determined variable and the fusion learning model; and a trend warning module, which is used to detect the predicted value of the variable according to the MK test method, and to warn the monitoring amount according to the detection result.

[0007] Preferably, the feature engineering module includes: a variable extraction submodule for extracting variables from a data file; a data slicing submodule for time slicing the extracted variables according to a preset granularity; and a correlation analysis submodule for determining variables that are correlated with the monitored quantity from the time-sliced ​​variables through association analysis.

[0008] Preferably, the fusion learning model includes: a multidimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameters of the multidimensional multi-step LSTM model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the multidimensional multi-step LSTM model is multiple; the dimension of the input parameters of the XGBoost model is related to the number of variables that are correlated with the monitored quantity, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by fusing the predicted value of the multidimensional multi-step LSTM model and the predicted value of the XGBoost model.

[0009] Preferably, the multi-dimensional multi-step LSTM model is obtained through the following steps: constructing an LSTM model and determining parameters in the LSTM model, the parameters including: the total number of dimensions, the number of network layers, Dropout, loss function, number of iterations, learning rate, and activation function; training the LSTM model, including: obtaining training samples, and dividing the training samples into a training set and a test set; using the training set to train the LSTM model, and using the test set to verify the trained LSTM model, and if the verification passes, using the trained LSTM model as the fusion learning model.

[0010] Preferably, the trend warning module includes: a warning calculation submodule, which is used to obtain a test sequence according to the time series based on the predicted value of the variable; and an abnormal alarm submodule, which is used to determine that the test sequence is an upward trend according to the MK test method, and then issue a warning for the monitored quantity.

[0011] Preferably, the trend warning module further comprises: taking the time corresponding to the first predicted value in the test sequence as the occurrence time of the warning.

[0012] In the second aspect of the present invention, a memory recovery trend warning method based on fusion learning and hypothesis testing is also provided, the method comprising: determining variables that are correlated with the monitored quantity through association analysis; obtaining predicted values ​​of the variables based on the historical values ​​of the determined variables and the fusion learning model; detecting the predicted values ​​of the variables according to the MK test method, and issuing a warning for the monitored quantity based on the detection results.

[0013] Preferably, the determining of variables that are correlated with the monitored quantity through association analysis includes: extracting variables from a data file; time slicing the extracted variables according to a preset granularity; and determining variables that are correlated with the monitored quantity from the time-sliced ​​variables through association analysis.

[0014] Preferably, the fusion learning model includes: a multidimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameters of the multidimensional multi-step LSTM model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the multidimensional multi-step LSTM model is multiple; the dimension of the input parameters of the XGBoost model is related to the number of variables that are correlated with the monitored quantity, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by fusing the predicted value of the multidimensional multi-step LSTM model and the predicted value of the XGBoost model.

[0015] Preferably, the multi-dimensional multi-step LSTM model is obtained through the following steps: constructing an LSTM model and determining parameters in the LSTM model, the parameters including: the total number of dimensions, the number of network layers, Dropout, loss function, number of iterations, learning rate, and activation function; training the LSTM model, including: obtaining training samples, and dividing the training samples into a training set and a test set; using the training set to train the LSTM model, and using the test set to verify the trained LSTM model, and if the verification passes, using the trained LSTM model as the fusion learning model.

[0016] Preferably, the predicted value of the variable is detected according to the MK test method, and the monitored quantity is warned according to the test result, including: obtaining a test sequence according to the time series of the predicted value of the variable; and determining that the test sequence is an upward trend according to the MK test method, then warning the monitored quantity.

[0017] Preferably, the method further comprises: taking the time corresponding to the first predicted value in the test sequence as the occurrence time of the warning

[0018] In the third aspect of the present invention, a memory recovery trend warning device based on fusion learning and hypothesis testing is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned memory recovery trend warning method based on fusion learning and hypothesis testing when executing the computer program.

[0019] In a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein instructions are stored in the storage medium, and when the instructions are executed on a computer, the computer executes the aforementioned memory recovery trend warning method based on fusion learning and hypothesis testing.

[0020] In a fifth aspect of the present invention, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the aforementioned memory recycling trend warning method based on fusion learning and hypothesis testing.

[0021] The above technical solution has the following beneficial effects:

[0022] The implementation of the present invention can achieve good results in predicting the turning point of abnormal trends, thereby assisting in early detection of possible abnormalities in IT monitoring systems. An unsupervised deep learning method that predicts multiple moments in the later period and uses statistical hypothesis testing methods to find the turning point of abnormal trends provides technical support for later trend warnings, avoids or discovers system abnormalities / failures in advance to a certain extent, and thus improves the stability of online services.

[0023] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0025] Figure 1 The schematic diagram shows the structure of a memory recycling trend warning device based on fusion learning and hypothesis testing according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram showing a principle diagram of a memory recycling trend warning according to an embodiment of the present application is shown;

[0027] Figure 3 The overall architecture diagram of the memory recycling trend warning device based on fusion learning and hypothesis testing according to an embodiment of the present application is schematically shown;

[0028] Figure 4 A diagram schematically shows a trend diagram of the number of FullGCs according to an embodiment of the present application;

[0029] Figure 5 The schematic diagram of LSTM fusion learning according to the embodiment of the present application is schematically shown;

[0030] Figure 6 The following schematically shows a prediction effect diagram in a certain scenario according to an embodiment of the present application;

[0031] Figure 7 The following is a schematic diagram showing the steps of a memory recycling trend warning method based on fusion learning and hypothesis testing according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0033] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0034] Figure 1 The schematic diagram shows the structure of the memory recycling trend warning device based on fusion learning and hypothesis testing according to the embodiment of the present application. Figure 1 As shown, in one embodiment of the present application, a memory recycling trend warning device based on fusion learning and hypothesis testing includes:

[0035] The feature engineering module is used to determine the variables that are correlated with the monitoring quantity through association analysis; the monitoring quantity is the indicator that needs to be monitored, and the user selects it according to actual needs. However, in the business system, the monitoring quantity does not exist independently, and many monitoring quantities are only events and do not belong to persistent indicators, such as memory recycling events such as FullGC. Therefore, it is necessary to determine the relevant variables of the monitoring quantity, so as to obtain current data or historical data based on these variables that are correlated with the monitoring quantity, and further obtain predicted data.

[0036] The fusion learning module is used to obtain the predicted value of the variable according to the historical value of the determined variable and the fusion learning model. As described in the background technology, trend analysis can adopt a variety of methods. This embodiment adopts a fusion learning model of LSTM and XGBoost to obtain multiple predicted values ​​according to historical values. The multiple predicted values ​​constitute a sequence in time, and the trend is obtained by detecting the characteristics of the sequence.

[0037] The trend warning module is used to detect the predicted value of the variable according to the MK test method, and to warn the monitored quantity according to the test result. The MK test method does not require the sample to follow a certain distribution, nor is it disturbed by a small number of abnormal values. It has the advantage of simple calculation. This embodiment uses the MK test method to perform trend detection on the sequence output by the fusion learning module, which has the advantages of fast processing speed and simple calculation.

[0038] Through the above implementation, the prediction of the turning point of abnormal trends can achieve good results, thereby assisting in the early detection of possible abnormalities in the IT monitoring system, thereby improving the stability of online services. This implementation has certain scalability. For example, if more relevant influencing factors are found later, they can be added to the unsupervised deep learning model framework for training and learning according to the same principle. Figure 2 The schematic diagram of the memory recycling trend warning according to the embodiment of the present application is shown. Figure 2 As shown in the figure, point A is an alarm for business response delay or interruption (for example, business interruption caused by a large number of FullGCs), and point B is the turning point when FullGCs begin to appear frequently. If the occurrence of turning point B can be predicted at some point in the early stage, business warning can be issued in advance.

[0039] Figure 3 The overall architecture diagram of the memory recycling trend warning device based on fusion learning and hypothesis testing according to an embodiment of the present application is schematically shown. Figure 3As shown, in this embodiment, the feature engineering module includes the following modules: a variable extraction submodule, which is used to extract variables from data files; the data files here are mainly log data, that is, LOG files, which record various events and parameters of the business system. Those skilled in the art need to obtain corresponding data files according to different monitoring quantities. Taking the monitoring quantity as FullGC as an example, it is necessary to obtain the GC log data of the business system, and take six months of GC log data as the analysis object. Then perform the variable extraction operation. Since the GC log data is relatively regular, regular expressions can be used to extract variables. The variables include: occurrence time, duration, GC type, new generation memory before GC, new generation memory after GC, JVM heap memory before GC, JVM heap memory after GC, GC time, user time, system time, actual time, and many others.

[0040] The data slicing submodule is used to time slice the extracted variables according to the preset granularity. This implementation mainly performs predictive analysis on trends within a certain period of time in the future. The preset granularity of data slicing here can be 1 minute, 5 minutes, 10 minutes, 1 hour, 1 day, etc. The slicing granularity depends on the specific needs of the prediction. For example, if you want to predict data within the next few hours, you can use a granularity within minutes. If you want to predict trends in the next few days or weeks, you can consider a time granularity of 10 minutes within hours or days, that is, take the average value every 10 minutes instead of the variable value within this time period. The trend chart of the number of FullGCs corresponding to the sliced ​​data within a certain period of time is shown in the figure below. Figure 4 shown. Figure 4 The diagram schematically shows the trend of the number of FullGCs according to an embodiment of the present application. It can be seen from the diagram that the alarm point for business interruption is around 16:50 on May 7, 2021. In fact, frequent FullGCs began to occur around 08:15 on May 7, 2021. Therefore, 08:15 can be considered as a turning point.

[0041] The correlation analysis submodule is used to determine the variables that are correlated with the monitoring quantity from the variables after time slicing through correlation analysis. The Pearson correlation coefficient test method is used to test the correlation between other variables and the monitoring quantity as the target variable. Several variables with a high degree of correlation are used as input features of the final algorithm model. For example, when the monitoring quantity is the number of FullGC times (fgc_count), the test results here show that the related variables are: GC times, new generation memory after GC, jvm heap memory after GC, and GC time consumption.

[0042] In some embodiments of the present invention, the fusion learning model includes: a multidimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameter of the multidimensional multi-step LSTM model is related to the number of variables that are correlated with the monitoring amount, and the number of steps of the predicted value of the variable output by the multidimensional multi-step LSTM model is multiple; the dimension of the input parameter of the XGBoost model is related to the number of variables that are correlated with the monitoring amount, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by fusing the predicted value of the multidimensional multi-step LSTM model and the predicted value of the XGBoost model. The multidimensional multi-step LSTM model refers to a multi-dimensional input parameter dimension, and the number of steps predicted is also multi-step. In this embodiment, the dimension of the input parameter is related to the number of variables, that is, the number of variables that are correlated with a monitoring amount is 5, then the multidimensional multi-step LSTM model refers to the dimension of the input parameter is also 5. The number of steps of the predicted value of the variable is multiple, and the sequence formed is the processing basis for subsequent steps.

[0043] The trained multi-dimensional multi-step LSTM model is fused with the XGBoost model to predict the trend data for a certain period of time in the future. The fusion formula is as follows:

[0044] Pred_final=λ1*Pred_LSTM+λ2*Pred_XGBoost

[0045] Among them, Pred_final represents the final prediction result, λ1 and λ2 are the weight values ​​corresponding to the two model prediction values ​​Pred_XGBoost and Pred_LSTM, both of which are greater than 0 and satisfy λ1+λ2=1.

[0046] In some embodiments of the present invention, the fusion learning model is obtained by training the LSTM model. Figure 5 The schematic diagram of LSTM fusion learning according to the embodiment of the present application is shown schematically. Figure 5 As shown, the LSTM model includes: determining the LSTM model framework and determining the parameters in the LSTM model framework, the parameters including: the total number of dimensions, the number of network layers, Dropout, the loss function, the number of iterations, the learning rate, and the activation function; the values ​​can be: the total number of dimensions = 5, the number of network layers = 150, Dropout = 0.3, the loss function is the mean square error, the number of iterations = 20, the learning rate = 0.01, the activation function is the relu function, etc.

[0047] Training the LSTM model includes: obtaining training samples. Since the model of this embodiment is a multi-dimensional multi-step model, the training samples also need to be modified accordingly. In the unsupervised data conversion process, the first p steps are used to predict the next q steps. By setting multiple sets of different parameters (p, q), multiple sets of supervised data sets can be obtained. Among them, supervised data conversion is to perform a certain transformation on the unsupervised sequence data to obtain data with labels. It is set that the first p steps are used to predict the next q steps. Then the sequence x t Medium (x t-p+1 , x t-p+2 ,...,x t ) is the training data (x t+1 , x t+2 ,...,x t+q ) is the corresponding label. For example, for the sequence (x1, x2, x3, x4, x5, x6), the 3-step prediction is used to predict the next 2 steps. The data conversion result is (the left side is the training data, and the right side is the corresponding label):

[0048] (x1, x2, x3) ---> (x4, x5)

[0049] (x2, x3, x4) ---> (x5, x6)

[0050] In this embodiment, the combination of (p, q) includes (50, 10), (200, 10), (400, 10), (500, 10), and (600, 10). For example, (50, 10) means using the first 50 steps to predict the next 10 steps, and each step is 10 minutes, that is, using the historical data of the first 500 minutes to predict the trend of the next 100 minutes. It should be noted that, in general, the q value should not be too large, because too long a number of prediction steps will easily lead to a decrease in the accuracy of the prediction.

[0051] The training samples are divided into a training set and a test set; for different data sets, the data set is split in a ratio of 7:3 (ensuring that the validation set contains FullGC), that is, the first 70% is the training set and the last 30% is the validation set.

[0052] The training set is used to train the LSTM model, and the test set is used to verify the trained LSTM model. If the verification passes, the trained LSTM model is used as the fusion learning model.

[0053] For the data after the unsupervised time series is converted into a supervised time series, the XGBoost prediction model is configured, including the tree depth, number of sub-models, learning rate, regularization term, loss function, etc. The XGBoost prediction model is trained using the same data samples as LSTM.

[0054] Fusion model prediction. Use the validation set to select appropriate model parameters, that is, a model that predicts the next 10 steps based on the first 600 steps (p = 600, q = 10), and configure fusion learning parameters λ1 = 0.6, λ2 = 0.4 to predict several future time series data.

[0055] In some embodiments of the present invention, the trend warning module forms time series data for several preset values ​​in the predicted future time, performs warning calculation according to the degree of inflection point of the trend, and if an inflection point occurs, it is considered that the monitoring amount is expected to be abnormal, and an alarm is prompted. The trend warning module specifically includes the following submodules.

[0056] The early warning calculation submodule is used to obtain a test sequence according to the time series of the predicted value of the variable; the time corresponding to the historical value is 0, 1, 2, ..., m, and the time corresponding to the predicted value is: m+1, m+2, ..., m+r. The r predicted values ​​after the mth time do not know whether there is an inflection point and which predicted value is the inflection point.

[0057] The abnormal alarm submodule is used to determine that the test sequence is an upward trend according to the MK test method, and then issue an early warning for the monitored amount. The judgment method adopted in this embodiment is the MK (Manner-Kendall) test method, also known as the MK non-parametric test method, which can be used to test whether there is an obvious upward or downward trend in the sequence data, and does not require the sample to follow a certain distribution. The original hypothesis is that the sequence data are independent and there is no obvious trend. The confidence α is set to 0.05, and the following MK test statistic Z is constructed. If it is greater than 0, it is an upward trend, and if it is less than 0, it is a downward trend.

[0058]

[0059] In the formula, VAR(S) represents the variance corresponding to the predicted sequence. If S is greater than 0, the observed values ​​of the latter part will tend to be larger than the observed values ​​before; if S is less than 0, the observed values ​​of the latter part will tend to be smaller than the observed values ​​before.

[0060] In some embodiments of the present invention, the trend warning module further includes: taking the time corresponding to the first predicted value in the test sequence as the occurrence time of the warning. The judgment node constructs the test sequence with the first predicted value of the r predicted values ​​as the starting point in sequence. If the test result is an upward trend, the first predicted value is regarded as an inflection point, suggesting that abnormal growth will occur after this inflection point; otherwise, there is no inflection point for abnormal warning.

[0061] According to the calculation results obtained by the trend warning module, the trend prediction effect for FullGC is as follows: Figure 6 shown. Figure 6The diagram schematically shows the prediction effect in a certain scenario according to an embodiment of the present application. The inflection point times corresponding to the prediction trend graph (shown by the solid line) and the actual trend graph (shown by the dotted line) in the figure are 15:59 on 2021 / 8 / 8 and 16:30 on 2021 / 8 / 8, respectively, that is, the FullGC alarm can be issued 31 minutes in advance.

[0062] Based on the same inventive concept, an embodiment of the present invention further provides a memory recycling trend warning method based on fusion learning and hypothesis testing. Figure 7 The following is a schematic diagram showing the steps of a memory recycling trend warning method based on fusion learning and hypothesis testing according to an embodiment of the present application. Figure 7 The method comprises:

[0063] 101. Determine a variable that is correlated with a monitoring amount through correlation analysis; the monitoring amount is a memory recycling event;

[0064] 102. Obtain a predicted value of the variable according to the determined historical value of the variable and the fusion learning model;

[0065] 103. Test the predicted value of the variable according to the MK test method, and issue an early warning for the monitored value according to the test result.

[0066] In some optional embodiments, determining the variables that are correlated with the monitored quantity through association analysis includes: extracting variables from a data file; time slicing the extracted variables according to a preset granularity; and determining the variables that are correlated with the monitored quantity from the time-sliced ​​variables through association analysis.

[0067] In some optional embodiments, the fusion learning model is a multi-dimensional multi-step LSTM model; correspondingly, the dimension of the input parameter of the fusion learning model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the fusion learning model is multiple.

[0068] In some optional embodiments, the fusion learning model includes: a multidimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameters of the multidimensional multi-step LSTM model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the multidimensional multi-step LSTM model is multiple; the dimension of the input parameters of the XGBoost model is related to the number of variables that are correlated with the monitored quantity, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by fusing the predicted value of the multidimensional multi-step LSTM model and the predicted value of the XGBoost model.

[0069] In some optional embodiments, the multi-dimensional multi-step LSTM model is obtained by the following steps: constructing an LSTM model and parameters in the LSTM model, the parameters including: the total number of dimensions, the number of network layers, Dropout, loss function, number of iterations, learning rate, and activation function; training the LSTM model, including: obtaining training samples, and dividing the training samples into a training set and a test set; using the training set to train the LSTM model, and using the test set to verify the trained LSTM model, and if the verification passes, using the trained LSTM model as the fusion learning model.

[0070] In some optional embodiments, the predicted value of the variable is detected according to the MK test method, and the monitored amount is warned according to the test result, including: obtaining a test sequence according to the time series of the predicted value of the variable; and determining that the test sequence is an upward trend according to the MK test method, then warning the monitored amount.

[0071] In some optional implementations, the method further includes: taking the time corresponding to the first predicted value in the test sequence as the occurrence time of the warning.

[0072] The specific definition of each implementation step in the above-mentioned memory recycling trend warning method based on fusion learning and hypothesis testing can be referred to the definition of the memory recycling trend warning device based on fusion learning and hypothesis testing above, which will not be repeated here. Its beneficial effect can also be inferred from the applicability of the above-mentioned memory recycling trend warning device based on fusion learning and hypothesis testing.

[0073] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of a memory recycling trend warning method based on fusion learning and hypothesis testing are implemented.

[0074] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of the above-mentioned memory recycling trend early warning method based on fusion learning and hypothesis testing.

[0075] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0076] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0080] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0081] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0083] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A memory recycling trend warning device based on fusion learning and hypothesis testing, characterized in that: The device comprises: A feature engineering module, used to determine variables that are correlated with a monitoring quantity through association analysis; the monitoring quantity is a memory recycling event; A fusion learning module is used to obtain the predicted value of the variable according to the historical value of the determined variable and the fusion learning model; the fusion learning model includes: a multi-dimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameter of the multi-dimensional multi-step LSTM model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the multi-dimensional multi-step LSTM model is multiple; the dimension of the input parameter of the XGBoost model is related to the number of variables that are correlated with the monitored quantity, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by the prediction of the multi-dimensional multi-step LSTM model. The measured value and the predicted value of the XGBoost model are obtained by fusion; the multi-dimensional multi-step LSTM model is obtained by the following steps: constructing the LSTM model and determining the parameters in the LSTM model, the parameters including: the total number of dimensions, the number of network layers, Dropout, the loss function, the number of iterations, the learning rate, and the activation function; training the LSTM model, including: obtaining training samples, dividing the training samples into a training set and a test set; training the LSTM model with the training set, and verifying the trained LSTM model with the test set, and if the verification passes, using the trained LSTM model as the fusion learning model; and A trend warning module is used to detect the predicted value of the variable according to the MK test method, and to issue a warning for the monitored quantity according to the test result; the trend warning module includes: a warning calculation submodule, used to obtain a test sequence according to the time series of the predicted value of the variable; and an abnormal alarm submodule, used to issue a warning for the monitored quantity when the test sequence is determined to be an upward trend according to the MK test method.

2. The device according to claim 1, characterized in that The feature engineering module includes: The variable extraction submodule is used to extract variables from the data file; A data slicing submodule, used to time slice the extracted variables according to a preset granularity; and The correlation analysis submodule is used to determine the variables that are correlated with the monitored quantity from the time-sliced ​​variables through association analysis.

3. The device according to claim 1, characterized in that The trend warning module is also used to use the time corresponding to the first predicted value in the test sequence as the occurrence time of the warning.

4. A memory recycling trend warning method based on fusion learning and hypothesis testing, characterized in that: The method comprises: Determine, by association analysis, a variable that is correlated with a monitoring quantity, wherein the monitoring quantity is a memory recycling event; The predicted value of the variable is obtained according to the historical value of the determined variable and the fusion learning model; the fusion learning model includes: a multi-dimensional multi-step LSTM model and an XGBoost model; the dimension of the input parameter of the multi-dimensional multi-step LSTM model is related to the number of variables that are correlated with the monitored quantity, and the number of steps of the predicted value of the variable output by the multi-dimensional multi-step LSTM model is multiple; the dimension of the input parameter of the XGBoost model is related to the number of variables that are correlated with the monitored quantity, and the predicted value of the variable output by the XGBoost model is a time series; correspondingly, the predicted value of the variable is obtained by the predicted value of the multi-dimensional multi-step LSTM model and the The prediction value of the XGBoost model is obtained after fusion; the multi-dimensional multi-step LSTM model is obtained by the following steps: constructing an LSTM model and determining parameters in the LSTM model, the parameters including: the total number of dimensions, the number of network layers, Dropout, loss function, number of iterations, learning rate, activation function; training the LSTM model, including: obtaining training samples, dividing the training samples into a training set and a test set; using the training set to train the LSTM model, using the test set to verify the trained LSTM model, and if the verification passes, using the trained LSTM model as the fusion learning model; The predicted value of the variable is detected according to the MK test method, and the monitored amount is warned according to the test result, including: obtaining a test sequence according to the time series of the predicted value of the variable; if the test sequence is determined to be an upward trend according to the MK test method, then the monitored amount is warned.

5. The method according to claim 4, characterized in that The variables that are determined to be correlated with the monitored amount through association analysis include: Extract variables from data files; The extracted variables are time-sliced ​​according to the preset granularity; Through correlation analysis, the variables that are correlated with the monitored quantity are determined from the time-sliced ​​variables.

6. The method according to claim 4, characterized in that The method further includes: taking the time corresponding to the first prediction value in the test sequence as the occurrence time of the warning.

7. A memory recycling trend warning device based on fusion learning and hypothesis testing, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the memory recycling trend warning method based on fusion learning and hypothesis testing as described in any one of claims 4 to 6 is implemented.

8. A computer-readable storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the memory recycling trend warning method based on fusion learning and hypothesis testing as described in any one of claims 4 to 6.

9. A computer program product, comprising a computer program, which, when executed by a processor, implements the memory recycling trend early warning method based on fusion learning and hypothesis testing according to any one of claims 4 to 6.