Abnormal prediction method and device

By adopting the anomaly prediction method in the software system and using vector generation, fusion and prediction sub-models to fuse the monitoring data of the multi-cloud platform, the problem of low anomaly detection accuracy in the existing technology is solved, and efficient anomaly prediction in the multi-cloud environment is achieved. , improving the stability of the software system.

CN113778802BActive Publication Date: 2024-09-24WEBANK (CHINA)
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202111077865.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2024-09-24
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

Existing technologies have low accuracy when detecting software system anomalies. Especially in multi-cloud platform environments, it is difficult to effectively integrate monitoring data from different cloud platforms to improve the accuracy of anomaly detection.

Method used

An anomaly prediction method is adopted to generate and fuse data vectors to predict the future anomaly probability of the software system by obtaining historical monitoring data and inputting it into an anomaly prediction model including a vector generation sub-model, a fusion sub-model and a prediction sub-model. Use neural network models to fuse monitoring data from multi-cloud platforms to accurately characterize the running status of software systems.

Benefits of technology

It improves the accuracy of software system anomaly detection, can accurately predict whether there will be anomalies in the future in a multi-cloud platform environment, and enhances the stability and reliability of the software system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778802B
    Figure CN113778802B
Patent Text Reader

Abstract

The present disclosure provides an abnormality prediction method and device, which relate to the field of computer processing technology. The method may include: obtaining historical monitoring data output by at least one cloud platform for a target software system; inputting the historical monitoring data into an abnormality prediction model, and predicting the first abnormal probability of the target software system at a future time. The abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model. The vector generation sub-model is used to generate vectors of sub-data in the historical monitoring data, the fusion sub-model is used to fuse the vectors of sub-data at the same time, and the prediction sub-model is used to predict the first abnormal probability based on the vector of at least one time obtained by fusion; determine whether the target software system is abnormal at a future time based on the first abnormal probability. The embodiment of the present disclosure can fuse the vectors of monitoring data collected by multiple cloud platforms through the fusion sub-model to improve the accuracy of abnormality detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer processing technology, and more particularly to an abnormality prediction method and device. Background Art

[0002] The cloud platform can provide a basic framework, which can include multiple basic interfaces to implement different types of software systems. Different types of software systems provide different services. For example, a social software system can provide social services, and a banking service system can provide banking services. Usually, software systems need to be compatible with different cloud platforms to run on different cloud platforms. Different cloud platforms implement software systems through different service frameworks.

[0003] In order to ensure that the above software system provides services stably and reliably, it is necessary to detect and resolve the anomalies of the software system. Therefore, how to accurately detect anomalies in the software system is an urgent problem to be solved. Summary of the invention

[0004] The present disclosure provides an anomaly prediction method and device to improve the accuracy of anomaly detection in a software system.

[0005] In a first aspect, the present disclosure provides an abnormality prediction method, comprising:

[0006] Acquire historical monitoring data output by at least one cloud platform for a target software system, wherein the historical monitoring data is used to indicate an operating status of the target software system on the cloud platform;

[0007] Input the historical monitoring data into an abnormality prediction model to predict a first abnormality probability of the target software system at a future time, wherein the abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model, wherein the vector generation sub-model is used to generate a vector of sub-data in the historical monitoring data, the fusion sub-model is used to fuse the vectors of sub-data at the same time, and the prediction sub-model is used to predict the first abnormality probability according to the fused vector of at least one time;

[0008] It is determined whether the target software system is abnormal at the future time according to the first abnormality probability.

[0009] Optionally, the anomaly prediction model is pre-trained through at least one group of training samples, the training samples include: at least one sample monitoring data corresponding to a first time and an anomaly label indicating whether a second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is also used to generate vectors of the sub-data during training, the fusion sub-model is also used to fuse the vectors of the sub-data to obtain a comprehensive vector corresponding to each first time, the prediction sub-model is also used to predict the second anomaly probability of the second time based on the comprehensive vector of each first time, the training includes: determining a loss value based on the second anomaly probability and the anomaly label, and adjusting the parameters of the anomaly prediction model based on the loss value until the loss value meets a preset condition.

[0010] Optionally, the at least two sub-data are divided into at least one pair of sub-data, and the pair of sub-data corresponds to a type label, and the type label is used to indicate whether the pair of sub-data belong to monitoring data of the same abnormal type, and the loss value includes a first sub-loss value and a second sub-loss value, and the first sub-loss value is used to indicate the degree of difference between the second abnormal probability and the abnormal label, and the second sub-loss value is used to indicate the similarity of the vectors of the pair of sub-data and the degree of difference between the type labels of the pair of sub-data.

[0011] Optionally, the input of the vector generation sub-model is a multi-hot encoding of categorical sub-data.

[0012] Optionally, the input of the prediction sub-model also includes numerical sub-data.

[0013] Optionally, the vector generation sub-model is an EMBEDDING model, the fusion sub-model is a DNN model, and the prediction sub-model is an LSTM model.

[0014] Optionally, the historical monitoring data includes at least one sub-data, and the obtaining of the historical monitoring data output by at least one cloud platform for the target software system includes:

[0015] Acquire monitoring data source information of at least one abnormality type respectively corresponding to the at least one cloud platform from the configuration file, wherein the monitoring data source information is used to indicate an acquisition method and a storage address of sub-data of the abnormality type;

[0016] The sub-data output for the target software system is obtained from the cloud platform according to the monitoring data source information.

[0017] Optionally, the exception corresponds to a target exception type, the configuration file also includes alarm data corresponding to the at least one exception type, and the method further includes:

[0018] If the target software system has an abnormality at the future time, alarm data corresponding to the target abnormality type is obtained from the configuration file, and the alarm data includes at least one of the following: alarm mode, corresponding cloud platform, alarm device identifier, service, alarm level, alarm area, and alarm prompt information;

[0019] An alarm is issued according to the alarm data.

[0020] In a second aspect, the present disclosure provides an abnormality prediction device, comprising:

[0021] A historical monitoring data acquisition module, used to acquire historical monitoring data output by at least one cloud platform for a target software system, wherein the historical monitoring data is used to represent the running status of the target software system on the cloud platform;

[0022] an abnormality probability prediction module, used for inputting the historical monitoring data into an abnormality prediction model, and predicting a first abnormality probability of the target software system at a future time, wherein the abnormality prediction model comprises: a vector generation sub-model, a fusion sub-model and a prediction sub-model, wherein the vector generation sub-model is used for generating a vector of sub-data in the historical monitoring data, the fusion sub-model is used for fusing vectors of sub-data at the same time, and the prediction sub-model is used for predicting the first abnormality probability according to the fused vector of at least one time;

[0023] An abnormality determination module is used to determine whether the target software system is abnormal at the future time according to the first abnormality probability.

[0024] Optionally, the abnormality prediction model is pre-trained by at least one group of training samples, the training samples include: at least one sample monitoring data corresponding to a first time and an abnormality label indicating whether a second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is further used to generate vectors of the sub-data during training, the fusion sub-model is further used to fuse the vectors of the sub-data to obtain a comprehensive vector corresponding to each first time, the prediction sub-model is further used to predict the second abnormality probability of the second time according to the comprehensive vector of each first time, and the device further includes:

[0025] An iterative training module is used to determine a loss value according to the second abnormality probability and the abnormality label, and adjust the parameters of the abnormality prediction model according to the loss value until the loss value meets a preset condition.

[0026] Optionally, the at least two sub-data are divided into at least one pair of sub-data, and the pair of sub-data corresponds to a type label, and the type label is used to indicate whether the pair of sub-data belong to monitoring data of the same abnormal type, and the loss value includes a first sub-loss value and a second sub-loss value, and the first sub-loss value is used to indicate the degree of difference between the second abnormal probability and the abnormal label, and the second sub-loss value is used to indicate the similarity of the vectors of the pair of sub-data and the degree of difference between the type labels of the pair of sub-data.

[0027] Optionally, the input of the vector generation sub-model is a multi-hot encoding of categorical sub-data.

[0028] Optionally, the input of the prediction sub-model also includes numerical sub-data.

[0029] Optionally, the vector generation sub-model is an EMBEDDING model, the fusion sub-model is a DNN model, and the prediction sub-model is an LSTM model.

[0030] Optionally, the historical monitoring data includes at least one sub-data, and the historical monitoring data acquisition module is further used to:

[0031] When obtaining historical monitoring data output by at least one cloud platform for a target software system, monitoring data source information of at least one exception type corresponding to the at least one cloud platform is obtained from a configuration file, wherein the monitoring data source information is used to indicate an acquisition method and storage address of sub-data of the exception type; and the sub-data output for the target software system is obtained from the cloud platform according to the monitoring data source information.

[0032] Optionally, the anomaly corresponds to a target anomaly type, the configuration file further includes alarm data corresponding to the at least one anomaly type, and the device further includes an alarm data acquisition module and an alarm module:

[0033] An alarm data acquisition module is used to obtain alarm data corresponding to the target abnormality type from the configuration file if the target software system has an abnormality at the future time, and the alarm data includes at least one of the following: alarm mode, corresponding cloud platform, alarm device identifier, service, alarm level, alarm area, and alarm prompt information;

[0034] An alarm module is used to generate an alarm based on the alarm data.

[0035] In a third aspect, the present disclosure provides an electronic device, including: at least one processor and a memory;

[0036] The memory stores computer-executable instructions;

[0037] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method of the first aspect as described above.

[0038] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, a computing device implements the method of the first aspect as described above.

[0039] In a fifth aspect, the present disclosure provides a computer program, wherein the computer program is used to implement the method as described in the first aspect.

[0040] The abnormality prediction method and device provided by the present disclosure can obtain historical monitoring data output by at least one cloud platform for a target software system, and the historical monitoring data is used to represent the running state of the target software system on the cloud platform; the historical monitoring data is input into the abnormality prediction model to predict the first abnormal probability of the target software system in the future time, and the abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model, the vector generation sub-model is used to generate the vector of the sub-data in the historical monitoring data, the fusion sub-model is used to fuse the vectors of the sub-data at the same time, and the prediction sub-model is used to predict the first abnormal probability according to the vector of at least one time obtained by fusion; determine whether the target software system is abnormal in the future time according to the first abnormal probability. The embodiment of the present disclosure can combine the monitoring data collected by multiple cloud platforms to predict whether there is an abnormality in the future. In order to fuse the monitoring data collected by multiple cloud platforms, the embodiment of the present disclosure adopts a fusion sub-model to fuse the vectors of the monitoring data collected by multiple cloud platforms, and the fusion sub-model is a neural network model. Therefore, the fused vector can accurately represent the running state of the software system on multiple platforms, and predicting whether an abnormality will occur in the future according to the fused vector helps to improve the accuracy of abnormality detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 is a schematic diagram of the relationship between the software system and the cloud platform to which the embodiments of the present disclosure are applicable;

[0043] Figure 2 It is a schematic diagram of the process of software system detection and recovery provided by the prior art;

[0044] Figure 3 is a flowchart of specific steps of the abnormality prediction method provided by an embodiment of the present disclosure;

[0045] Figure 4 is a schematic diagram of the structure of an abnormality prediction model provided by an embodiment of the present disclosure;

[0046] Figure 5 is a structural block diagram of an abnormality prediction device provided by an embodiment of the present disclosure;

[0047] Figure 6 It is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0049] The embodiments of the present disclosure can be used in software systems deployed on cloud platforms. The cloud platform can realize the services to be provided by the software system through its own cloud computing capabilities. The software system can be understood as secondary development based on the cloud platform. During operation, the software system needs to call the basic interfaces provided by the cloud platform. These basic interfaces can be understood as the basic framework provided by the cloud platform.

[0050] With the development of technologies such as big data, cloud computing, and AI (artificial intelligence), a variety of cloud platforms have emerged. Different cloud platforms may provide different basic frameworks, but based on these basic frameworks, secondary development can be performed to obtain software systems that provide the same or different services.

[0051] Typically, software systems are not deployed on a single cloud platform, but on multiple cloud platforms. Figure 1 Schematic diagram of the relationship between the software system and the cloud platform to which the embodiment of the present disclosure is applicable. Figure 1 As shown, a software system can be deployed in cloud platforms C1 to C4 at the same time, which means that the software system is compatible with these four cloud platforms.

[0052] In order to ensure that the above software system provides stable and reliable services, it is necessary to detect whether the software system has any abnormalities in a timely manner so that the software system can return to normal. Figure 2As shown, it can specifically include: first, configuring alarm strategies on different cloud platforms so that different cloud platforms can collect monitoring data for the software system according to their own alarm strategies; then, different cloud platforms analyze their own monitoring data to determine whether an abnormality occurs, and when an abnormality occurs, send an alarm notification to the operation and maintenance personnel; finally, the operation and maintenance personnel can handle the exception according to the alarm notification, and the cloud platform can send a recovery notification to the operation and maintenance personnel after the software system returns to normal.

[0053] It can be seen that in the above solution, an alarm notification needs to be sent and the operation and maintenance personnel need to handle the exception. When the alarm notification is delayed and / or the operation and maintenance personnel fail to handle the exception in time, the software system will not be able to return to normal in time.

[0054] In order to ensure that the software system returns to normal in a timely manner, a cloud platform currently provides a method of detecting anomalies through prediction. The cloud platform can predict whether there will be anomalies in the future based on its own monitoring data. However, this method will result in low accuracy of anomaly detection when its own monitoring data is inaccurate.

[0055] In order to solve the above problems, the embodiments of the present disclosure can combine the monitoring data collected by multiple cloud platforms to predict whether there will be anomalies in the future. In order to fuse the monitoring data collected by multiple cloud platforms, the embodiments of the present disclosure use a fusion sub-model to fuse the vectors of the monitoring data collected by multiple cloud platforms. The fusion sub-model is a neural network model. Thus, the fused vector can accurately represent the operating status of the software system on multiple platforms. Predicting whether anomalies will occur in the future based on the fused vector helps to improve the accuracy of anomaly detection.

[0056] The following specific embodiments are used to describe in detail the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0057] Figure 3 is a flowchart of the specific steps of the abnormality prediction method provided by the embodiment of the present disclosure. Figure 3 As shown, the method may include:

[0058] S201: Obtain historical monitoring data output by at least one cloud platform for a target software system, where the historical monitoring data is used to represent the running status of the target software system on the cloud platform.

[0059] The historical monitoring data may be monitoring data of one or more historical times before the current time, to predict whether the target software system will have an abnormality in the future time after the current time. For example, the historical monitoring data of this week may be used to predict whether the target software system will have an abnormality next week. The target software system is any software system to be detected.

[0060] It is understandable that each cloud platform can collect historical monitoring data outputted by the software system, and the historical monitoring data collected by different cloud platforms can be the same or different. The historical monitoring data of each cloud platform may include one or more sub-data, each sub-data corresponds to an abnormality type, and the abnormality types corresponding to different sub-data may be the same or different. In other words, each abnormality type corresponds to one or more sub-data, so that the abnormality corresponding to the abnormality type can be determined based on the one or more sub-data.

[0061] Each of the above exception types corresponds to one or more sub-data, and the monitoring data source information is used to indicate the acquisition method and storage address of the sub-data of the exception type. The acquisition method can be the calling method of the interface, and the storage address can include: the address of the target device storing the sub-data and the storage path on the target device.

[0062] The above monitoring data source information can be implemented in software code or through a configuration file.

[0063] When the monitoring data source information is implemented through a configuration file, the sub-data in the historical monitoring data can be obtained through the following steps: first, the monitoring data source information of at least one abnormal type corresponding to at least one cloud platform is obtained from the configuration file; then, the sub-data output for the target software system is obtained from the cloud platform according to the monitoring data source information.

[0064] It can be seen that the above configuration file is pre-configured with monitoring data source information of each cloud platform, each monitoring data source information corresponds to a sub-data, and each sub-data corresponds to an abnormal type.

[0065] S202: Input the historical monitoring data into the abnormality prediction model to predict the first abnormality probability of the target software system at a future time. The abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model. The vector generation sub-model is used to generate vectors of sub-data in the historical monitoring data. The fusion sub-model is used to fuse the vectors of sub-data at the same time. The prediction sub-model is used to predict the first abnormality probability based on the fused vectors of at least one time.

[0066] Figure 4is a schematic diagram of the structure of the abnormal prediction model provided by the embodiment of the present disclosure. Each sub-model in the abnormal prediction model is a neural network model, so the abnormal prediction model is also a neural network model. Figure 4 As shown, the input of the vector generation sub-model is the input of the anomaly prediction model, the output of the vector generation sub-model is used as the input of the fusion sub-model, the output of the fusion sub-model is used as the input of the prediction sub-model, and the output of the prediction sub-model is the output of the anomaly prediction model.

[0067] The vector generation sub-model may be an embedding model, or may be referred to as an embedding layer. The vector generation sub-model is used to generate a vector for each sub-data at each time of each cloud platform, that is, different sub-data at different cloud platforms and / or at different times correspond to different vectors. The input of the vector generation sub-model may be a multi-hot encoding of categorical sub-data.

[0068] For example, there are two cloud platforms C1 and C2. The historical monitoring data corresponding to C1 can be: {(D111, D112), (D121, D122), (D131, D132)}, where D111 and D112 are two sub-data of C1 at time t1, D121 and D122 are two sub-data of C1 at time t2, and D131 and D132 are two sub-data of C1 at time t3. The historical monitoring data corresponding to C2 can be: {(D211, D212), (D221, D222), (D231, D232)}, where D211 and D212 are two sub-data of C2 at time t1, D221 and D222 are two sub-data of C2 at time t2, and D231 and D232 are two sub-data of C2 at time t3.

[0069] Then, the above vector generation sub-model can generate vectors for D111, D112, D121, D122, D131, D132, D211, D212, D221, D222, D231, and D232 respectively.

[0070] The fusion sub-model (FusionNet) can be any of the following: a neural network model, an encoder / decoder model, an attention-based model. For example, the fusion sub-model can be a DNN model. Commonly used DNN models can include: an input layer, at least one hidden layer, and an output layer. The input layer is used to receive input vectors, the hidden layer is used to perform complex transformation operations on the input vectors, and the output layer is used to output the vectors obtained by the transformation operations. The fusion sub-model fuses the vectors of each sub-data at the same time into a vector at that time. Each different sub-data belongs to a different modality, that is, the sub-data of multiple modalities are fused.

[0071] The above-mentioned multiple modal sub-data refers to data obtained from different fields or perspectives for the same description object, and each field or perspective describing these data is called a modality. In other words, multiple modal sub-data are different data sets that cannot be directly processed and can generate interconnected data. In the embodiments of the present disclosure, different representations and different data structures of the same information on different cloud platforms belong to multiple modal data.

[0072] For example, the above-mentioned fusion sub-model can fuse the aforementioned D111, D112, D211, and D212 into a vector V1 at time t1, fuse the aforementioned D121, D122, D221, and D222 into a vector V2 at time t2, and fuse D131, D132, D231, and D232 into a vector V3 at time t3.

[0073] The above-mentioned prediction sub-model can be an LSTM (long short-term memory) model, which is used to predict the abnormality probability based on a vector sequence, where the vector sequence includes at least one vector sorted by time, and each vector is a time vector output by the fusion sub-model.

[0074] For example, the above prediction sub-model can predict an abnormality probability based on the sequence composed of the above V1, V2 and V3.

[0075] The above-mentioned abnormal prediction model is obtained through pre-training, and the above-mentioned vector sub-model, fusion sub-model and prediction sub-model are end-to-end jointly trained. Specifically, at least one group of training samples used in the above-mentioned training includes: at least one sample monitoring data corresponding to the first time and an abnormal label indicating whether the second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is also used to generate vectors of sub-data during the training process, the fusion sub-model is also used to fuse the vectors of sub-data to obtain a comprehensive vector corresponding to each first time, and the prediction sub-model is also used to predict the second abnormal probability of the second time according to the comprehensive vector of each first time. The training includes: determining the loss value according to the second abnormal probability and the abnormal label, and adjusting the parameters of the abnormal prediction model according to the loss value until the loss value meets the preset conditions.

[0076] The above training process can be implemented through multiple rounds of iterations. In each round of iteration, training is performed using a preset number of training samples, and the loss value is determined based on the second anomaly probability output for each training sample in this round of iteration and the anomaly label in the training sample. After each round of iterative training, it is necessary to determine whether the loss value meets the preset conditions. If the preset conditions are met, the next round of iterative training will no longer be performed, and the current anomaly prediction model obtained in this round of iteration is the trained anomaly prediction model. If the preset conditions are not met, the parameters of the current anomaly prediction model, that is, the parameters of the vector generation sub-model, the fusion sub-model, and the prediction sub-model are adjusted according to the loss value and the gradient descent method until the loss value meets the preset conditions.

[0077] The above loss value satisfies the preset conditions and may include at least one of the following: the loss value obtained in multiple rounds of iterations does not continue to decrease, and the loss value obtained in this round of iterations is less than or equal to the preset loss value threshold.

[0078] The above loss value can be calculated by a loss function, and the input of the loss function is the second abnormal probability and the abnormal label, which is used to represent the degree of difference between the second abnormal probability and the abnormal label. The loss function can adopt any loss function in the prior art, such as a cross entropy loss function, a square loss function, an exponential loss function, an absolute value loss function, etc. The embodiment of the present disclosure does not limit the loss function.

[0079] In order to further improve the accuracy of vector generation by the vector generation sub-model, the above loss value not only needs to consider the degree of difference between the above second anomaly probability and the anomaly label, but also needs to ensure that the vectors of sub-data belonging to the same anomaly type are close, and the vectors of sub-data belonging to different anomaly types are quite different.

[0080] In order to achieve the above objectives, at least two sub-data in the monitoring data sample are divided into at least one pair of sub-data, and each pair of sub-data corresponds to a type label, which is used to indicate whether the pair of sub-data belongs to the same abnormal type of monitoring data. For example, when the type label is 1, it represents the same abnormal type, and when the type label is 0, it represents different abnormal types.

[0081] Based on the above training samples, the aforementioned loss value may include a first sub-loss value and a second sub-loss value, the first sub-loss value being used to represent the degree of difference between the second anomaly probability and the anomaly label, and the second sub-loss value being used to represent the degree of difference between the similarity of the vectors of a pair of sub-data and the type labels of a pair of sub-data.

[0082] Specifically, the loss value may be a weighted sum of the first sub-loss value and the second sub-loss value. The weights of the current first sub-loss value and the second sub-loss value may be set arbitrarily. When the weights of both are 1, the loss value is the sum of the first sub-loss value and the second sub-loss value.

[0083] The first sub-loss value can be calculated using a loss function, and the loss function can be any loss function in the prior art, such as a cross entropy loss function, a square loss function, an exponential loss function, an absolute value loss function, etc. The embodiment of the present disclosure does not limit the loss function. The first sub-loss value LOSS1 can be calculated using the following formula:

[0084]

[0085] Where N is the number of training samples, y n is the abnormal label corresponding to the nth training sample, y' n is the second abnormal probability corresponding to the nth training sample.

[0086] The above second sub-loss value can also be calculated using a loss function, where the inputs of the loss function are the similarity of the vectors of each pair of sub-data and the type label of the pair of sub-data. The similarity of the vector is the similarity of the vector generated by the vector generation sub-model for the sub-data, and the similarity of the vector can be calculated using cosine similarity and similarity based on Euclidean distance. The second sub-loss value can be calculated using the following formula:

[0087]

[0088] Where m is the number of sub-data in the monitoring data sample in N training samples, v m is the type label of the mth pair of sub-data, s' m is the similarity of the vectors of the mth pair of sub-data.

[0089] Currently, in addition to the above-mentioned categorical sub-data, monitoring data samples and historical monitoring data can also include numerical sub-data, which do not need to be generated by the above-mentioned vector sub-model and fusion sub-model, but can be directly used as the input of the prediction sub-model. Specifically, during training, the numerical sub-data in the monitoring data sample can be spliced ​​with the corresponding categorical sub-data at the same time into a vector input into the prediction sub-model.

[0090] Optionally, before the numerical sub-data is input into the prediction sub-model, it can also be normalized to limit its value to a preset range.

[0091] S203: Determine whether the target software system will be abnormal in the future according to the first abnormality probability.

[0092] Specifically, an abnormality threshold may be set, and when the first abnormality probability is greater than the abnormality threshold, it is determined that the target software system is abnormal at a future time, otherwise it is normal.

[0093] In actual applications, the target software system may have exceptions of multiple exception types. Therefore, for each exception type, the first exception probability corresponding to the exception type can be determined based on the sub-data corresponding to the exception type. Then, based on the first exception probability corresponding to the exception type, it is determined whether the target software system will have an exception of the exception type in the future. That is, when the first exception probability corresponding to the exception type is greater than the exception threshold corresponding to the exception type, it is determined that the target software system will have an exception of the exception type in the future; otherwise, there will be no exception of the exception type.

[0094] It should be noted that, in practical applications, the abnormality thresholds corresponding to various abnormality types may be the same or different, and the embodiments of the present disclosure do not limit this.

[0095] As can be seen from the foregoing description, in the disclosed embodiment, the anomaly of the target software system can be divided into at least one anomaly type. Each anomaly type corresponds to a portion of sub-data, which can be used to predict this anomaly type. For example, when the target anomaly type is a disk anomaly, the sub-data may include: underlying data read error rate, relocation sector count, motor start-up retry, terminal check error (terminal check error), communication timeout, reported uncorrectable error, relocation event count, current number of sectors to be processed, offline uncorrectable, and logical read error rate. Among them, the numerical sub-data is directly input into the prediction sub-model, and the categorical sub-data is input into the vector generation sub-model, so that the anomaly detection model can predict the anomaly probability of this anomaly type.

[0096] The exception determined in S203 is a partial exception type, which can be referred to as a target exception type. The aforementioned configuration file can also include alarm data corresponding to at least one exception type. Thus, if the target software system has an exception at a future time, the alarm data corresponding to the target exception type can be obtained from the configuration file to issue an alarm based on the alarm data.

[0097] Among them, the alarm data may include at least one of the following: abnormality type, corresponding cloud platform, monitoring type, policy type, belonging service, alarm device identification, triggering condition, alarm area, alarm prompt information, alarm level, and alarm method.

[0098] The exception type may be, for example, a code exception or a site traffic exception.

[0099] The cloud platform corresponding to the exception type is the abnormal cloud platform where the exception type occurs, for example, cloud platform C1 or cloud platform C2.

[0100] The monitoring type is used to indicate the subsystem of the target software system for which the exception type is targeted, for example, business A system, cloud product system, etc.

[0101] Policy types are a further classification of monitoring types, such as application monitoring and application firewall monitoring.

[0102] The service to which it belongs is an abnormal service of an abnormal type, which is one of the multiple services provided by the target software system. For example, an abnormality of a service item.

[0103] The alarm device identifier is the identifier of the abnormal device that has the abnormal type. The alarm device identifier may be an IP (Internet protocol) address of the alarm device.

[0104] The trigger condition is the condition that triggers this type of exception. For example, for a Java exception, the trigger condition can be the presence of a keyword similar to Java Exception in the log. For another example, for a site traffic exception, the trigger condition can be the number of visits exceeding 10,000.

[0105] The alarm area is used to indicate the geographical area where the anomaly occurs.

[0106] The alarm prompt information is used to distinguish different exception types. Different exception types correspond to different alarm prompt information. For example, the alarm prompt information can be "Program Java exception" or "The current number of visits to the website is XXX, which exceeds the preset alarm number of 10,000 visits."

[0107] The alarm level is used to indicate the impact of the abnormality corresponding to the abnormality type. The higher the alarm level, the greater the impact, and vice versa. For example, the alarm level can be divided into: 0-highest level, 1-medium level, 2-lowest level.

[0108] The alarm method includes the method of prompting the occurrence of the abnormal type and the object of prompting. The method of prompting the occurrence of the abnormal type may include: sound prompt method, flash prompt method, and text prompt method. The object of prompting may be an operation and maintenance personnel. Different types of alarm methods can be selected for different abnormal types.

[0109] When determining an alarm, the embodiment of the present disclosure uses the alarm data pre-configured in the configuration file to issue an alarm. In this way, the alarm data can be flexibly configured for each abnormal type in the configuration file, and different abnormal types can correspond to different alarm methods, alarm prompt information, etc., thus realizing flexible abnormal alarm.

[0110] Corresponding to the abnormality prediction method in the above embodiment, Figure 5 is a structural block diagram of an abnormality prediction device provided by an embodiment of the present disclosure. For the convenience of explanation, only the part related to the embodiment of the present disclosure is shown. Figure 5 The above-mentioned abnormality prediction device 300 includes: a historical monitoring data acquisition module 301, an abnormality probability prediction module 302 and an abnormality determination module 303.

[0111] The historical monitoring data acquisition module 301 is used to acquire historical monitoring data output by at least one cloud platform for a target software system, wherein the historical monitoring data is used to represent the running status of the target software system on the cloud platform.

[0112] The abnormality probability prediction module 302 is used to input the historical monitoring data into the abnormality prediction model to predict the first abnormality probability of the target software system at a future time. The abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model. The vector generation sub-model is used to generate vectors of sub-data in the historical monitoring data, the fusion sub-model is used to fuse vectors of sub-data at the same time, and the prediction sub-model is used to predict the first abnormality probability based on the fused vector of at least one time.

[0113] The abnormality determination module 303 is used to determine whether the target software system is abnormal at the future time according to the first abnormality probability.

[0114] Optionally, the abnormality prediction model is pre-trained by at least one group of training samples, the training samples include: at least one sample monitoring data corresponding to a first time and an abnormality label indicating whether a second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is further used to generate vectors of the sub-data during training, the fusion sub-model is further used to fuse the vectors of the sub-data to obtain a comprehensive vector corresponding to each first time, the prediction sub-model is further used to predict the second abnormality probability of the second time according to the comprehensive vector of each first time, and the device further includes:

[0115] An iterative training module is used to determine a loss value according to the second abnormality probability and the abnormality label, and adjust the parameters of the abnormality prediction model according to the loss value until the loss value meets a preset condition.

[0116] Optionally, the at least two sub-data are divided into at least one pair of sub-data, and the pair of sub-data corresponds to a type label, and the type label is used to indicate whether the pair of sub-data belong to monitoring data of the same abnormal type, and the loss value includes a first sub-loss value and a second sub-loss value, and the first sub-loss value is used to indicate the degree of difference between the second abnormal probability and the abnormal label, and the second sub-loss value is used to indicate the similarity of the vectors of the pair of sub-data and the degree of difference between the type labels of the pair of sub-data.

[0117] Optionally, the input of the vector generation sub-model is a multi-hot encoding of categorical sub-data.

[0118] Optionally, the input of the prediction sub-model also includes numerical sub-data.

[0119] Optionally, the vector generation sub-model is an EMBEDDING model, the fusion sub-model is a DNN model, and the prediction sub-model is an LSTM model.

[0120] Optionally, the historical monitoring data includes at least one sub-data, and the historical monitoring data acquisition module 301 is further used to:

[0121] When obtaining historical monitoring data output by at least one cloud platform for a target software system, monitoring data source information of at least one exception type corresponding to the at least one cloud platform is obtained from a configuration file, wherein the monitoring data source information is used to indicate an acquisition method and storage address of sub-data of the exception type; and the sub-data output for the target software system is obtained from the cloud platform according to the monitoring data source information.

[0122] Optionally, the anomaly corresponds to a target anomaly type, the configuration file further includes alarm data corresponding to the at least one anomaly type, and the device further includes an alarm data acquisition module and an alarm module:

[0123] An alarm data acquisition module is used to obtain alarm data corresponding to the target abnormality type from the configuration file if the target software system has an abnormality at the future time, and the alarm data includes at least one of the following: alarm mode, corresponding cloud platform, alarm device identifier, service, alarm level, alarm area, and alarm prompt information.

[0124] An alarm module is used to generate an alarm based on the alarm data.

[0125] The abnormality prediction device provided in this embodiment can be used to perform the above Figure 3 The technical solution of the method embodiment shown has similar implementation principles and technical effects, and will not be repeated here in this embodiment.

[0126] Figure 6 6 is a block diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device 600 includes a memory 602 and at least one processor 601 .

[0127] The memory 602 stores computer-executable instructions. At least one processor 601 executes the computer-executable instructions stored in the memory 602, so that the electronic device 601 implements the aforementioned Figure 3 The method in .

[0128] In addition, the electronic device may further include a receiver 603 and a transmitter 604, wherein the receiver 603 is used to receive information from other devices or equipment and forward it to the processor 601, and the transmitter 604 is used to send the information to other devices or equipment.

[0129] The present disclosure also provides a computer-readable storage medium in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a computing device is enabled to implement Figure 3 The method in .

[0130] The present disclosure also provides a computer program for implementing Figure 3 The method in .

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. An abnormality prediction method, It is characterized in that include: Acquire historical monitoring data output by multiple cloud platforms for a target software system, wherein the historical monitoring data is used to indicate the running status of the target software system on the cloud platform; Input the historical monitoring data into an abnormality prediction model to predict a first abnormality probability of the target software system at a future time, wherein the abnormality prediction model includes: a vector generation sub-model, a fusion sub-model and a prediction sub-model, wherein the vector generation sub-model is used to generate a vector of sub-data in the historical monitoring data, the fusion sub-model is used to fuse the vectors of sub-data at the same time, and the prediction sub-model is used to predict the first abnormality probability according to the fused vector of at least one time; The abnormality prediction model is pre-trained by at least one group of training samples, the training samples include: at least one sample monitoring data corresponding to a first time and an abnormality label indicating whether a second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is also used to generate vectors of the sub-data during the training process, the fusion sub-model is also used to fuse the vectors of the sub-data to obtain a comprehensive vector corresponding to each first time, the prediction sub-model is also used to predict the second abnormality probability of the second time according to the comprehensive vector of each first time, the training includes: determining a loss value according to the second abnormality probability and the abnormal label, and adjusting the parameters of the abnormality prediction model according to the loss value until the loss value meets the preset conditions; It is determined whether the target software system is abnormal at the future time according to the first abnormality probability.

2. The method according to claim 1, It is characterized in that The at least two sub-data are divided into at least one pair of sub-data, and the pair of sub-data corresponds to a type label, and the type label is used to indicate whether the pair of sub-data belong to monitoring data of the same abnormal type. The loss value includes a first sub-loss value and a second sub-loss value, and the first sub-loss value is used to indicate the degree of difference between the second abnormal probability and the abnormal label, and the second sub-loss value is used to indicate the similarity of the vectors of the pair of sub-data and the degree of difference between the type labels of the pair of sub-data.

3. The method according to claim 2, It is characterized in that The input of the vector generation sub-model is the multi-hot encoding of the categorical sub-data.

4. The method according to claim 1, It is characterized in that The input of the prediction sub-model also includes numerical sub-data.

5. The method according to claim 1, It is characterized in that The vector generation sub-model is an EMBEDDING model, the fusion sub-model is a DNN model, and the prediction sub-model is an LSTM model.

6. The method according to any one of claims 1 to 3, It is characterized in that The historical monitoring data includes at least one sub-data, and the obtaining of the historical monitoring data output by multiple cloud platforms for the target software system includes: Acquire monitoring data source information of at least one abnormality type respectively corresponding to the multiple cloud platforms from the configuration file, wherein the monitoring data source information is used to indicate an acquisition method and a storage address of sub-data of the abnormality type; The sub-data output for the target software system is obtained from the cloud platform according to the monitoring data source information.

7. The method according to claim 6, It is characterized in that The exception corresponds to a target exception type, the configuration file also includes alarm data corresponding to the at least one exception type, and the method further includes: If the target software system has an abnormality at the future time, alarm data corresponding to the target abnormality type is obtained from the configuration file, and the alarm data includes at least one of the following: alarm mode, corresponding cloud platform, alarm device identifier, service, alarm level, alarm area, and alarm prompt information; An alarm is issued according to the alarm data.

8. An abnormality prediction device, It is characterized in that include: A historical monitoring data acquisition module, used to acquire historical monitoring data output by multiple cloud platforms for a target software system, wherein the historical monitoring data is used to represent the running status of the target software system on the cloud platform; an abnormality probability prediction module, used for inputting the historical monitoring data into an abnormality prediction model, and predicting a first abnormality probability of the target software system at a future time, wherein the abnormality prediction model comprises: a vector generation sub-model, a fusion sub-model and a prediction sub-model, wherein the vector generation sub-model is used for generating a vector of sub-data in the historical monitoring data, the fusion sub-model is used for fusing vectors of sub-data at the same time, and the prediction sub-model is used for predicting the first abnormality probability according to the fused vector of at least one time; The abnormality prediction model is pre-trained by at least one group of training samples, the training samples include: at least one sample monitoring data corresponding to a first time and an abnormality label indicating whether a second time after the first time is abnormal, the sample monitoring data includes at least two sub-data, the vector generation sub-model is also used to generate vectors of the sub-data during the training process, the fusion sub-model is also used to fuse the vectors of the sub-data to obtain a comprehensive vector corresponding to each first time, the prediction sub-model is also used to predict the second abnormality probability of the second time according to the comprehensive vector of each first time, the training includes: determining a loss value according to the second abnormality probability and the abnormal label, and adjusting the parameters of the abnormality prediction model according to the loss value until the loss value meets the preset conditions; An abnormality determination module is used to determine whether the target software system is abnormal at the future time according to the first abnormality probability.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor and a memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Intelligent detection method and detection system for server exception of hybrid strategy

    CN111061620A

  • Abnormal event detection method and device

    CN111598610A

  • Vehicle state prediction method and device, server and storage medium

    CN111626491A

  • Unsupervised anomaly prediction method for two-stage cloud server

    CN111914873A

  • Data processing method and device, computer and readable storage medium

    CN112232165A