Alarm and root cause location method, model training method, device, equipment and medium

Through the alarm and root cause location method based on graph neural network, fault and root cause location are combined, which solves the problem of segmented alarm and root cause location in the existing technology, achieves more accurate and reliable fault root cause analysis, and reduces the cost The risk of false alarms and finding the wrong root cause.

CN117149486BActive Publication Date: 2024-08-30BEIJING YOUTEJIE INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311084815.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2024-08-30
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

In the existing technology, fault alarms and root cause location are separated, resulting in a high false positive rate and problems such as failure to find or find the wrong root cause, and the root cause of the system failure cannot be effectively solved.

Method used

The alarm and root cause locating method based on graph neural network is adopted to integrate fault and root cause locating into a framework. By collecting the original historical data in system operation for preprocessing, the target historical data and training sample data are generated, and the graph neural network is used for Classification training is used to obtain a global alarm model and a root cause location model, which are combined with the graph interpretive model for analysis to ensure the accuracy of the root cause location results.

Benefits of technology

It improves the accuracy and reliability of root cause location, can accurately find the root cause of the fault, reduces the number of false alarms, and avoids the situation where the root cause cannot be found or the wrong root cause is found.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117149486B
    Figure CN117149486B
Patent Text Reader

Abstract

The embodiment of the present invention discloses an alarm and root cause location method, a model training method, an apparatus, a device and a medium, the method comprising: collecting the original historical data in the operation of the system for preprocessing to generate target historical data, and generating an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information; generating training sample data according to the historical topological map data, the historical indicator data, and the alarm data label or the non-alarm data label; inputting the training sample data into a preset graph neural network for classification training to obtain a global alarm model; inputting the training sample data into a preset graph explanatory model for model training to obtain a root cause location model. The root cause location result of the fault can be obtained through the root cause location model, and the fault situation is analyzed and the root cause is located through the graph neural network and the graph explanatory model, and the fault and root cause location are incorporated into a framework, thereby improving the accuracy and reliability of the root cause location.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an alarm and root cause positioning method, a model training method, a device, equipment and a medium. Background Art

[0002] With the rapid development of the Internet, computer distributed systems have become an indispensable infrastructure in modern society, providing the basis for communication, data transmission and business computing for various businesses and applications. However, during the operation of the system, problems and failures in the network may occur due to various reasons, such as hardware failure, software errors, configuration problems or malicious attacks. These problems may have a negative impact on the availability and performance of businesses and applications. Therefore, timely fault alarms and root cause location are required.

[0003] In the prior art, a fixed threshold or anomaly detection method is usually used to determine whether an alarm is generated. Then, the fault location is analyzed based on the root cause of the alarm trigger. Specifically, an alarm cause-and-effect diagram can be used, or root cause extraction can be performed based on the correlation degree of application indicators and the depth of the relationship diagram.

[0004] However, fault alarms and root cause location in the prior art are separated. Since the generation of alarms itself has a false positive rate, using alarm causal graphs for root cause location will affect the root cause location effect when an alarm occurs but no fault actually occurs, and may even cause the root cause location result to deviate from reality. Secondly, although an alarm occurs, since the root cause extraction method based on the correlation degree of application indicators and the depth of the relationship graph is not related to the alarm (it is only triggered by the alarm), there may be problems of not finding the root cause or finding the wrong root cause. Summary of the invention

[0005] The present invention provides an alarm and root cause positioning method, a model training method, an apparatus, a device and a medium to incorporate fault and root cause positioning into one framework, thereby improving the accuracy and reliability of root cause positioning.

[0006] In a first aspect, a method for training an alarm and root cause location model based on a graph neural network is provided, the method comprising:

[0007] Collect the original historical data in the system operation and perform preprocessing to generate target historical data, and generate alarm data labels or non-alarm data labels corresponding to the target historical data according to the alarm information;

[0008] Generate training sample data based on historical topology data, historical indicator data, and alarm data labels or non-alarm data labels;

[0009] Input the training sample data into the preset graph neural network for classification training to obtain a global alarm model;

[0010] Input the training sample data into the preset graph explanatory model for model training to obtain the root cause location model;

[0011] Among them, the root cause location model outputs the target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition results for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions.

[0012] Optionally, the original historical data collected during system operation is preprocessed to generate target historical data, including: collecting the original alarm historical data corresponding to the alarm information during system operation, and determining the alarm time period corresponding to the original alarm historical data; based on the alarm time period, determining multiple fault intervals of preset time lengths by sliding interval method; and using the original historical data corresponding to each fault interval as the target historical data corresponding to each fault interval.

[0013] Optionally, the original historical data collected during system operation is preprocessed to generate target historical data, including: determining the number of fault intervals based on the alarm time period and the preset time length; determining the non-alarm time period based on the alarm time period; and generating non-fault intervals the same number as the number of fault intervals based on the non-alarm time period; and using the original historical data corresponding to each non-fault interval as the target historical data corresponding to each non-fault interval.

[0014] Optionally, training sample data is generated based on historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels, including: determining each node in the target historical data based on the historical topology map data and historical indicator data, and generating a feature vector corresponding to each node; generating training sample data based on each node in the historical data, the feature vector of each node, and the alarm data label or non-alarm data label.

[0015] Optionally, the training sample data is input into a preset graph neural network for classification training to obtain a global alarm model, including: inputting the training sample data into a preset graph neural network for feature extraction to obtain representation variables corresponding to each node in the target historical data, and obtaining a representation vector of the target historical data based on the representation variables of each node; based on the representation vector, the preset graph neural network is classified and trained using a loss function to obtain a global alarm model.

[0016] Optionally, the training sample data is input into a preset graph explanatory model for model training to obtain a root cause location model, including: inputting the training sample data into the preset graph explanatory model to obtain target historical sub-data corresponding to the target historical data; performing model training according to the target historical data, the target historical sub-data, and a preset loss function to obtain the root cause location model; wherein the preset loss function includes the distribution difference between the target historical data and the target historical sub-data, and the variable difference in the global alarm model's identification results of the target historical data and the target historical sub-data.

[0017] In the second aspect, a method for locating an alarm and root cause based on a graph neural network is provided, the method comprising:

[0018] Collect the data to be analyzed in real time during system operation, and pre-process the data to be analyzed to generate target data to be analyzed;

[0019] Inputting the target data to be analyzed into a global alarm model generated by the alarm and root cause location model training method based on a graph neural network according to any embodiment of the present invention, to obtain an alarm analysis result;

[0020] When the alarm analysis result is to generate an alarm, the target data to be analyzed is input into the root cause location model generated by the alarm and root cause location model training method based on the graph neural network of any embodiment of the present invention, to obtain the target sub-data to be analyzed corresponding to the target data to be analyzed;

[0021] The target sub-data to be analyzed is used as the root cause location result.

[0022] In a third aspect, a graph neural network-based alarm and root cause location model training device is provided, the device comprising:

[0023] The data label generation module is used to collect the original historical data in the system operation, perform preprocessing to generate target historical data, and generate an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information;

[0024] A training sample data generation module is used to generate training sample data based on historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels;

[0025] A preset graph neural network training module is used to input training sample data into the preset graph neural network for classification training to obtain a global alarm model;

[0026] The preset graph explanatory model training module is used to input the training sample data into the preset graph explanatory model for model training to obtain the root cause location model; wherein the root cause location model outputs the target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition results for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions.

[0027] In a fourth aspect, a graph neural network-based alarm and root cause location device is provided, the device comprising:

[0028] The target data to be analyzed generation module is used to collect the data to be analyzed in real time during the operation of the system, and pre-process the data to be analyzed to generate the target data to be analyzed;

[0029] An alarm analysis result determination module is used to input the target data to be analyzed into a global alarm model generated by the alarm and root cause location model training method based on a graph neural network according to any embodiment of the present invention to obtain an alarm analysis result;

[0030] A target sub-data to be analyzed acquisition module, which is used to input the target data to be analyzed into a root cause location model generated by the alarm and root cause location model training method based on a graph neural network according to any embodiment of the present invention when the alarm analysis result is to generate an alarm, to obtain the target sub-data to be analyzed corresponding to the target data to be analyzed;

[0031] The root cause location result determination module is used to use the target sub-data to be analyzed as the root cause location result.

[0032] In a fifth aspect, an electronic device is provided, the electronic device comprising:

[0033] at least one processor; and

[0034] a memory communicatively connected to at least one processor; wherein,

[0035] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the alarm and root cause location model training method based on graph neural network or the alarm and root cause location method based on graph neural network of any embodiment of the present invention.

[0036] In a sixth aspect, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the alarm and root cause location model training method based on a graph neural network or the alarm and root cause location method based on a graph neural network according to any embodiment of the present invention when executed.

[0037] The technical solution of the embodiment of the present invention generates target historical data by preprocessing the original historical data in the operation of the acquisition system, and generates an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information; generates training sample data according to the historical topology map data, the historical indicator data, and the alarm data label or the non-alarm data label; inputs the training sample data into the preset graph neural network for classification training to obtain a global alarm model; inputs the training sample data into the preset graph explanatory model for model training to obtain a root cause location model; wherein, the root cause location model outputs the target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition result for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions, which solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault. The root cause location result of the fault can be obtained through the root cause location model, and the fault situation is analyzed and the root cause is located through the graph neural network and the graph explanatory model, and the fault and the root cause location are incorporated into a framework, which improves the accuracy and reliability of the root cause location.

[0038] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0040] Figure 1 It is a flowchart of a method for training an alarm and root cause location model based on a graph neural network according to Embodiment 1 of the present invention;

[0041] Figure 2 is a flowchart of another method for training an alarm and root cause location model based on a graph neural network according to Embodiment 2 of the present invention;

[0042] Figure 3 is a flowchart of another method for training an alarm and root cause location model based on a graph neural network according to Embodiment 3 of the present invention;

[0043] Figure 4 is a flowchart of an alarm and root cause location method based on a graph neural network according to Embodiment 4 of the present invention;

[0044] Figure 5 This is an application scenario diagram of an alarm and root cause location method based on a graph neural network provided by an embodiment of the present invention;

[0045] Figure 6 It is a structural schematic diagram of an alarm and root cause location model training device based on a graph neural network according to Embodiment 5 of the present invention;

[0046] Figure 7 is a structural schematic diagram of an alarm and root cause location device based on a graph neural network provided according to Embodiment 6 of the present invention;

[0047] Figure 8 It is a structural diagram of an electronic device that implements the graph neural network-based alarm and root cause location model training method or the graph neural network-based alarm and root cause location method of an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] Embodiment 1

[0051] Figure 1This is a flowchart of a method for training an alarm and root cause location model based on a graph neural network according to the first embodiment of the present invention. This embodiment is applicable to the situation of alarming and locating the root cause of system abnormalities. The method can be executed by a training device for alarm and root cause location model based on a graph neural network. The training device for alarm and root cause location model based on a graph neural network can be implemented in the form of hardware and / or software. The training device for alarm and root cause location model based on a graph neural network can be configured in an electronic device such as a computer. Figure 1 As shown, the method includes:

[0052] S110 , collecting the original historical data in the system operation and performing preprocessing to generate target historical data, and generating an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information.

[0053] In this embodiment, the original historical data may be data of a fault time period or a non-fault time period. The target historical data may be a part of the original historical data. The alarm information may be a notification information issued by the system after detecting an abnormal situation. The abnormal situation may include hardware failure, software error, network congestion, security attack, etc. There may be multiple ways to notify the alarm information, such as email, text message, and phone call.

[0054] There are many methods for preprocessing the original historical data. For example, the original historical data can be divided into target historical data collected during the fault time period and target historical data collected during the non-fault time period. Alternatively, the fault time period can be divided into multiple fault intervals of equal size. Then, the target historical data corresponding to each fault interval is obtained from the original historical data. After that, the non-fault intervals with the same number as the fault intervals can be extracted from the non-fault time period. Finally, the target historical data corresponding to each non-fault interval can be obtained from the original historical data.

[0055] In a specific implementation, the original historical data can be classified to generate target historical data corresponding to the fault time period and target historical data corresponding to the non-fault time period, and based on the alarm information, alarm data labels corresponding to the target historical data of the fault time period and non-alarm data labels corresponding to the target historical data of the non-fault time period are generated.

[0056] S120 , generating training sample data according to historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels.

[0057] In this embodiment, the historical topology map data may include each node in the historical topology map and the topological relationship between each node. The above-mentioned nodes may include services, hosts, and middleware. The historical indicator data may be used to indicate whether there is an abnormality in the system. Historical indicators may include latency, error rate, and average time consumption. The training sample data may be used to train a preset graph neural network and a preset graph explanatory model.

[0058] In a specific implementation, a historical topology map corresponding to the target historical data may be obtained. Then, the historical topology map data is obtained from the above historical topology map. Afterwards, a feature map corresponding to each time period may be generated based on each node in the historical topology map data and the historical indicator data corresponding to each node. Finally, a training data sample may be generated based on each feature map, and an alarm data label or a non-alarm data label. For example, the feature map may be denoted as Gi, and the alarm data label or the non-alarm data label may be denoted as Yi, and the training data sample may be denoted as (Gi, Yi).

[0059] S130: Input the training sample data into a preset graph neural network for classification training to obtain a global alarm model.

[0060] In this embodiment, the preset graph neural network may be a graph neural network model that does not rely on fixed nodes. The preset graph neural network may be used to process graph data. The above-mentioned graph data may include social networks, protein interaction networks, and chemical molecular structures, etc. Preferably, the preset graph neural network may be a graph attention network model (GraphAttention Network, GAT). The global alarm model may be used to classify the target historical data to determine whether to generate an alarm.

[0061] In a specific embodiment, after the training sample data is input into the preset graph neural network, the training sample data can be classified and trained through multiple graph attention layers in the preset graph neural network. Specifically, since each graph attention layer in the preset graph neural network includes an attention mechanism and a nonlinear activation function, and the attention mechanism includes a learning-based weight matrix and a normalized exponential function. Therefore, the importance between each node and its neighboring nodes in the training sample data can be calculated through the weight matrix. The importance between each of the above nodes and its neighboring nodes can be converted into an attention coefficient through a normalized exponential function. Then, the neighboring node features corresponding to each node can be weighted and summed with the corresponding attention coefficient to obtain the representation variables corresponding to each node. After that, each representation variable can be reduced in dimension through a linear layer to generate a representation vector corresponding to each representation variable. Finally, since each training sample data corresponds to a feature map, and the number of nodes contained in each feature map may be different, all the representation vectors of each feature map can be added to obtain the final representation vectors corresponding to each feature map. According to the final representation vector, the loss function can be used for classification training to obtain a global alarm model.

[0062] The advantage of this setting is that, since the core idea of ​​the preset graph neural network is to represent graph data as a collection of nodes and edges, and then calculate the global representation of the graph by aggregating the local information of each node and edge, compared with existing neural networks, the preset graph neural network can handle graph data of different sizes, structures, and topological shapes. Secondly, since the preset graph neural network can update the representation of each node by iteration, so that the representation of each node can take into account the information of its neighboring nodes, the preset graph neural network can learn the representation of each node, the representation of the edge, and the complex structure and relationship in the graph data, which is suitable for performing tasks such as node classification, graph classification, and connection prediction.

[0063] S140: Input the training sample data into a preset graph explanatory model for model training to obtain a root cause location model.

[0064] Among them, the root cause location model outputs the target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition results for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions.

[0065] In this embodiment, the preset graph explanatory model can be used to explain the decision-making process and prediction results of the global alarm model. Preferably, the preset graph explanatory model can be a graph stochastic attention model (GSAT). The root cause location model can be used to explain the prediction results of the global alarm model and locate the root cause of the abnormality. The target history sub-data can be the part of the target history data that is most relevant to the root cause location result. The preset conditions can be set according to user needs. For example, if the distribution of the target history sub-data is close to that of the target history data (that is, the target history sub-data at least contains content related to the root cause location of the fault), it can be considered that the distribution difference between the target history sub-data and the target history data meets the preset conditions. Specifically, since the root cause location model can compress the content in the target history data that is not related to the root cause location of the fault, the target history sub-data at least contains content related to the root cause location of the fault.

[0066] In a specific embodiment, after the target historical data is input into the preset graph explanatory model, the neighboring node features corresponding to each node and the corresponding attention coefficient can be weighted and summed to obtain the representation variables corresponding to each node. Then, each representation variable can be reduced in dimension through a linear layer to generate a representation vector corresponding to each representation variable. Afterwards, the weight of the representation vector corresponding to the target historical data can be updated based on the information bottleneck principle so that the distribution difference between the output target historical sub-data and the target historical data meets the preset conditions. Among them, the loss function can be used to train the model according to the updated representation vector to obtain the root cause location model.

[0067] In this step, optionally, the target historical sub-data may be input into the global alarm model so that the recognition result of the target historical sub-data is the same as the recognition result of the target historical data.

[0068] The advantage of such a setting is that the transparency and comprehensibility of the global alarm model can be improved by training the preset graph explanatory model. Secondly, compared with the existing method of locating the root cause based on alarm triggering, for example, after the alarm is generated, the root cause is determined through various types of troubleshooting and debugging (such as checking logs, analyzing network traffic, testing network equipment and applications, etc.). The technical solution of this embodiment uses a root cause location model to explain the decision-making process and alarm analysis results of the global alarm model to obtain the cause and basis of the alarm, thereby locating the root cause of the fault and avoiding the situation where an alarm occurs but the root cause cannot be found or is found incorrectly.

[0069] The technical solution of this embodiment generates target historical data by preprocessing the original historical data in the operation of the acquisition system, and generates alarm data labels or non-alarm data labels corresponding to the target historical data according to the alarm information; generates training sample data according to the historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels; inputs the training sample data into the preset graph neural network for classification training to obtain a global alarm model; inputs the training sample data into the preset graph explanatory model for model training to obtain a root cause location model, and interprets the decision-making process and alarm analysis results of the global alarm model through the root cause location model to obtain the technical means of the root cause location result of the fault, which solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault. The root cause location result of the fault can be obtained through the root cause location model, and the fault situation is analyzed and the root cause is located through the graph neural network and the graph explanatory model, and the fault and root cause location are incorporated into one framework, which improves the accuracy and reliability of the root cause location.

[0070] Embodiment 2

[0071] Figure 2 It is a flowchart of another alarm and root cause location model training method based on graph neural network provided according to Example 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments.

[0072] Optionally, the original historical data collected during system operation is preprocessed to generate target historical data, including: collecting the original alarm historical data corresponding to the alarm information during system operation, and determining the alarm time period corresponding to the original alarm historical data; based on the alarm time period, determining multiple fault intervals of preset time lengths by sliding interval method; and using the original historical data corresponding to each fault interval as the target historical data corresponding to each fault interval.

[0073] Optionally, the original historical data collected during system operation is preprocessed to generate target historical data, including: determining the number of fault intervals based on the alarm time period and the preset time length; determining the non-alarm time period based on the alarm time period; and generating non-fault intervals the same number as the number of fault intervals based on the non-alarm time period; and using the original historical data corresponding to each non-fault interval as the target historical data corresponding to each non-fault interval.

[0074] Specifically, Figure 2 As shown, the method includes:

[0075] S210 , collecting original alarm history data corresponding to the alarm information during system operation, and determining the alarm time period corresponding to the original alarm history data.

[0076] In this embodiment, the original alarm history data may be data collected during an alarm period, which may be a period when a system failure or abnormality occurs.

[0077] S220: Based on the alarm time period, determine a plurality of fault intervals of preset time lengths by sliding interval method.

[0078] For example, assuming that the alarm time period is 19:00-19:10, the preset time length may be set to 5. By means of sliding intervals, 15 fault intervals such as 18:56-19:01, 18:57-19:02, ..., 19:10-19:15 may be divided.

[0079] The advantage of such a setting is that, since the non-alarm time period is generally longer than the alarm time period, by determining the fault interval by means of a sliding interval, as many fault samples as possible can be obtained, thus avoiding the imbalance of the training sample data corresponding to the alarm time period and the non-alarm time period, thereby improving the accuracy of the alarm and root cause location results. Secondly, compared to the prior art, which requires manual judgment of the fault location every time a fault occurs, the technical solution of this embodiment only needs to mark the time period when the fault occurs (that is, only needs to judge whether a fault occurs), and does not need to mark the location of the fault, which simplifies the fault marking method on the basis of ensuring the accuracy of fault detection.

[0080] Optionally, multiple fault intervals of preset time lengths may be determined based on the alarm time period by a rolling interval method, wherein the fault intervals obtained by the rolling interval method do not have overlapping time points.

[0081] S230: Use the original historical data corresponding to each fault interval as the target historical data corresponding to each fault interval.

[0082] S240: Determine the number of fault intervals according to the alarm time period and the preset time length.

[0083] In a specific implementation, the fault intervals may be divided according to the alarm time period and the preset time length, and then the number of fault intervals may be counted.

[0084] S250, determine the non-alarm time period according to the alarm time period; and generate non-fault intervals of the same number as the fault interval according to the non-alarm time period; and use the original historical data corresponding to each non-fault interval as the target historical data corresponding to each non-fault interval.

[0085] In this embodiment, there is no overlapping time point between the alarm time period and the non-alarm time period.

[0086] Specifically, the time period other than the alarm time period may be determined as the non-fault time period. Then, the same number of non-fault intervals as the fault intervals may be extracted from the non-fault time period. In an optional implementation, a plurality of non-fault intervals of preset time lengths may be determined based on the non-fault time period by means of sliding intervals or rolling intervals.

[0087] The advantage of such a setting is that, since the non-alarm time period is generally longer than the alarm time period, by extracting the same number of non-fault intervals as the number of fault intervals from the non-alarm time period, the training sample data corresponding to the alarm time period and the training sample data corresponding to the non-alarm time period can be balanced, thereby improving the accuracy of the alarm result, avoiding the situation where the root cause location result deviates from the actual situation due to the false positive rate of the alarm, and improving the accuracy and reliability of the root cause location. Secondly, the present invention adopts a global alarm model to monitor the system as a whole, reducing the number of overall false alarms, avoiding the situation where local alarms lead to excessive number of false alarms and the need for root cause location.

[0088] S260: Generate an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information.

[0089] In this embodiment, the alarm data label and the non-alarm data label may be represented in the form of numerical values. Specifically, the numerical value corresponding to the alarm data label may be set to 1, and the numerical value corresponding to the non-alarm data label may be set to 0, which is not limited in this embodiment.

[0090] S270: Determine each node in the target historical data according to the historical topology data and the historical indicator data, and generate a feature vector corresponding to each node.

[0091] In a specific implementation, first, the fault interval and the non-fault interval can be determined. Then, the historical topological map data corresponding to the fault interval or the non-fault interval can be obtained, and each node in the target historical data can be determined based on the above historical topological map data. After that, a node identifier can be set for each node, and the historical indicator data corresponding to each node can be determined based on the above node identifier. Finally, in the current fault interval or non-fault interval, the feature vector of each node can be determined based on the historical indicator data corresponding to each node and the node type. Among them, the node type may include services, hosts, and middleware, etc. Optionally, the dimension of the feature vector can be determined based on the number of historical indicator data and the number of node types.

[0092] Exemplarily, assuming that the fault interval is 19:00-19:05, the historical topology map corresponding to the fault interval can be obtained. The above historical topology map includes nodes such as services, hosts and middleware. Assuming that the node is a service, the identifier of the service node can be set as service:frontend. Then, according to the node identifier, the service delay index corresponding to the above fault interval can be obtained in the database. In the current fault interval, if a service delay index data is collected every minute, 5 service delay index data can be obtained. Afterwards, an 8-dimensional feature vector can be obtained based on the above 5 service delay index data and the unique hot encoding of the node type.

[0093] S280: Generate training sample data using each node in the historical data, the feature vector of each node, and the warning data label or the non-warning data label.

[0094] In a specific implementation, a feature map corresponding to the current fault interval or non-fault interval can be generated based on each node and the feature vector of each node in the historical data. Then, training sample data can be generated based on the feature map and the warning data label or non-warning data label.

[0095] Exemplarily, assuming that the feature graph corresponding to the current fault interval is Gi, and the alarm data label is Yi, training sample data (Gi, Yi) can be generated. Gi includes nodes such as services, hosts, and middleware, as well as feature vectors corresponding to each node. The value range of i is 1 to n, where n is the number of all intervals. All the above intervals may include fault intervals and non-fault intervals.

[0096] S290, input the training sample data into a preset graph neural network for classification training to obtain a global alarm model; input the training sample data into a preset graph explanatory model for model training to obtain a root cause location model.

[0097] Among them, the root cause location model outputs the target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition results for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions.

[0098] In this embodiment, GAT can aggregate each node by weighting the neighbor nodes of each node based on the attention mechanism, and then extract the representation of each node in the entire graph. Compared with the existing graph neural network, GAT does not rely on a fixed number of neighbor nodes, but adaptively weights the actual neighbor nodes of the node, thereby achieving better utilization of information in the graph structure.

[0099] The technical solution of this embodiment is to collect the original alarm history data corresponding to the alarm information during the operation of the system, and determine the alarm time period corresponding to the original alarm history data; based on the alarm time period, determine multiple fault intervals of preset time lengths by sliding intervals; use the original historical data corresponding to each fault interval as the target historical data corresponding to each fault interval; generate an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information; determine each node in the target historical data according to the historical topology map data and the historical indicator data, and generate a feature vector corresponding to each node; Each node, each node's feature vector, and the alarm data label or non-alarm data label are used to generate training sample data; the training sample data is input into a preset graph neural network for classification training to obtain a global alarm model; the training sample data is input into a preset graph explanatory model for model training to obtain a technical means of a root cause location model, which solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault. By generating non-fault intervals with the same number as the number of fault intervals, the training sample data corresponding to the alarm time period and the non-alarm time period can be balanced, thereby improving the accuracy of the alarm and root cause location results. Secondly, the present invention uses a global alarm model to monitor the system as a whole, reduces the number of overall false alarms, and avoids the situation where local alarms are performed, resulting in too many false alarms and the need for root cause location.

[0100] Embodiment 3

[0101] Figure 3 1 is a flowchart of another method for training an alarm and root cause location model based on a graph neural network according to Embodiment 3 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with each optional solution in one or more of the above embodiments. Figure 3 As shown, the method includes:

[0102] S310, collecting the original historical data in the system operation and preprocessing it to generate target historical data, and generating an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information.

[0103] S320: Generate training sample data according to historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels.

[0104] S330, input the training sample data into a preset graph neural network for feature extraction, obtain the representation variables corresponding to each node in the target historical data, and obtain the representation vector of the target historical data according to the representation variables of each node.

[0105] In a specific implementation, each node in the historical data, the feature vector of each node, and the alarm data label or non-alarm data label can be input into a preset graph neural network. The preset neural network can process the feature vector of each node to obtain a characterization vector corresponding to each node. Then, in each fault interval or non-fault interval, the characterization variables corresponding to each node can be added to obtain a characterization vector of the target historical data. Optionally, the characterization vector of the target historical data can be classified and trained by the linear layer of the preset graph neural network.

[0106] S340. According to the representation vector, the preset graph neural network is classified and trained by using a loss function to obtain a global alarm model.

[0107] In this embodiment, specifically, the loss function may be a cross entropy loss function.

[0108] Exemplarily, assuming that the training sample data is (Gi, Yi), (Gi, Yi) can be input into the preset graph neural network for feature extraction to obtain the representation vector of Gi. Among them, Gi is a feature map, and Yi is an alarm data label or a non-alarm data label. Afterwards, the representation vector of Gi can be input into the next graph attention layer of the preset graph neural network, and the cross entropy loss function is used to perform classification training on the preset graph neural network.

[0109] The reason for this setting is that the false positive rate of alarms cannot be reduced to 0% under the existing algorithm system, and a large number of false alarms will affect the effect of root cause location. Assuming that the false alarm rate of an indicator is 1% per day, if 10,000 indicators are monitored at the same time, 100 false alarms can be generated per day. At this time, if each alarm triggers root cause location, 100 meaningless or even misleading root cause location results can be generated per day. Therefore, compared with the existing technology, the global alarm model is used to perform global detection of the system, which reduces the number of false alarms of the system and improves the availability of the root cause location results.

[0110] S350, input the training sample data into the preset graph explanatory model to obtain the target historical sub-data corresponding to the target historical data.

[0111] In this embodiment, the preset graph explanatory model may be a graph generation model. For example, if a feature graph is input into the preset graph explanatory model, a subgraph corresponding to the input feature graph may be generated.

[0112] In a specific embodiment, according to the feature graph in the training sample data input to the root cause location model, the characterization variables of the current node and the neighboring nodes are weighted and summed with the corresponding attention coefficients based on the attention mechanism to obtain a new characterization variable of the current node. Then, the weight matrix of the linear layer in the preset graph explanatory model is used to reduce the dimension of the characterization variables of each node to generate a one-dimensional value, that is, the sampling rate of the current node. The sampling rate of the edge between the current node and the neighboring node is obtained by splicing. After that, the generation probability of all edges and nodes can be determined based on the sampling rate of each node and the sampling rate of each edge. Finally, a subgraph corresponding to the above original image can be generated by setting a threshold method or a sampling algorithm. For example, if the above generation probability exceeds a preset threshold, a subgraph can be generated.

[0113] Exemplarily, assuming that there is a graph G input to the global alarm model, G can be processed by a preset graph explanatory model to output a subgraph Gs corresponding to G. The above Gs can best explain the root cause of the fault.

[0114] S360: Perform model training according to the target historical data, the target historical sub-data, and the preset loss function to obtain a root cause location model.

[0115] Among them, the preset loss function includes the distribution difference between the target historical data and the target historical sub-data, and the variable difference in the recognition results of the global alarm model for the target historical data and the target historical sub-data.

[0116] In this embodiment, the variable difference may be the difference between each characterization variable corresponding to the target historical data and the target historical sub-data. Specifically, the variable difference between the result of identifying the target historical data by the global alarm model and the result of identifying the target historical sub-data by the global alarm model may be determined by relative entropy (Kullback-Leibler, KL) divergence. A preset loss function may be used to extract features from the target historical data and the target historical sub-data to determine the distribution difference between the target historical data and the target historical sub-data.

[0117] In a specific implementation, the target history data and the target history sub-data may be input into a preset graph explanatory model, and then, a preset loss function is used to perform iterative training to obtain a root cause location model.

[0118] The technical solution of this embodiment generates target historical data by preprocessing the original historical data collected during system operation, and generates an alarm data label or non-alarm data label corresponding to the target historical data according to the alarm information; generates training sample data according to the historical topology data, historical indicator data, and the alarm data label or non-alarm data label; inputs the training sample data into the preset graph neural network for feature extraction to obtain the characterization variables corresponding to each node in the target historical data, and obtains the characterization vector of the target historical data according to the characterization variables of each node; classifies and trains the preset graph neural network according to the characterization vector and adopts the loss function to obtain the global alarm model; inputs the training sample data into the preset graph explanatory model to obtain the target historical sub-data corresponding to the target historical data; performs model training according to the target historical data, the target historical sub-data, and the preset loss function to obtain the technical means of the root cause location model, which solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault. The technical solution of this embodiment performs global detection of the system through the global alarm model, reducing the number of false alarms of the system. Secondly, through the root cause location model, the subgraph that best explains the root cause of the fault can be found.

[0119] Embodiment 4

[0120] Figure 4 1 is a flowchart of a method for locating an alarm and root cause based on a graph neural network according to Embodiment 4 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with each optional solution in one or more of the above embodiments. Figure 4 As shown, the method includes:

[0121] S410 , collecting data to be analyzed in real time during system operation, and preprocessing the data to be analyzed to generate target data to be analyzed.

[0122] In this embodiment, the data to be analyzed may be data collected by the system in real time. The target data to be analyzed may be data collected in the interval to be analyzed. The interval to be analyzed may be determined according to the time point when the fault occurs. For example, if the time point when the fault occurs is a, the interval to be analyzed may be determined to be (ak, a), where k is the number of subgraph nodes.

[0123] S420. Input the target data to be analyzed into a global alarm model generated by the alarm and root cause location model training method based on graph neural network according to any embodiment of the present invention to obtain an alarm analysis result.

[0124] In a specific implementation, a global alarm model may be used to analyze the target data to be analyzed, and whether to generate an alarm is determined based on the output result. The alarm analysis result may be to generate an alarm or not.

[0125] For example, assume that in the process of generating training sample data, the value corresponding to the alarm data label is set to 1, and the value corresponding to the non-alarm data label is set to 0. Therefore, if the output result is 1, it can be considered that the target data to be analyzed has the same characteristics as the historical fault interval, and an alarm is generated at this time. If the output result is 0, no analysis is performed.

[0126] S430. When the alarm analysis result is to generate an alarm, the target data to be analyzed is input into the root cause location model generated by the alarm and root cause location model training method based on the graph neural network according to any embodiment of the present invention, and the target sub-data to be analyzed corresponding to the target data to be analyzed is obtained.

[0127] In this embodiment, the target sub-data to be analyzed may be the part of the target data to be analyzed that can best explain the cause of the fault. The target sub-data to be analyzed may be used to explain the cause of the target data to be analyzed generating an alarm.

[0128] Optionally, the target sub-data to be analyzed may be input into the global alarm model for analysis, and the output alarm analysis result is consistent with the alarm analysis result corresponding to the target sub-data to be analyzed.

[0129] Exemplarily, the data label corresponding to the graph G can be set to Y. After the subgraph Gs corresponding to G is output through the root cause location model, Gs can be input into the global alarm model for analysis, so that the data label corresponding to Gs is also Y. Through the above process, when G is classified as Y through the global alarm model, the subgraph Gs corresponding to G can be found through the root cause location model to explain why G is classified as Y.

[0130] The advantage of this setting is that it improves the explainability of root cause location and avoids the situation where an alarm is generated but the root cause of the fault cannot be found.

[0131] S440: Use the target sub-data to be analyzed as the root cause location result.

[0132] The technical solution of this embodiment collects the data to be analyzed in real time during the operation of the system, and pre-processes the data to be analyzed to generate the target data to be analyzed; inputs the target data to be analyzed into the global alarm model generated by the alarm and root cause location model training method based on the graph neural network to obtain the alarm analysis result; when the alarm analysis result is an alarm, the target data to be analyzed is input into the root cause location model generated by the alarm and root cause location model training method based on the graph neural network to obtain the target sub-data to be analyzed corresponding to the target data to be analyzed; the target sub-data to be analyzed is used as the technical means of the root cause location result, which solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault, and can accurately, reliably and timely locate the root cause of the fault. Secondly, the technical solution of this embodiment improves the accuracy and reliability of the root cause location result by performing interpretability analysis (i.e., root cause location analysis) only on the target data to be analyzed that generates the alarm.

[0133] Figure 5 is an application scenario diagram of an alarm and root cause location method based on a graph neural network provided by an embodiment of the present invention. Figure 5 As shown, training sample data can be generated based on historical topological map data, historical indicator data and target historical data. Then, the above training sample data can be input into the preset graph neural network and the preset graph explanatory network for training to obtain a global alarm model and a root cause location model. The global alarm model and the root cause location model can be stored in a database. After starting real-time monitoring and analysis of the system, the global alarm model or the root cause location model can be obtained from the database. After preprocessing the target data to be analyzed and the real-time indicator data, the global alarm model can be loaded to determine whether an alarm is generated. If an alarm is generated, the root cause location model can be loaded to locate the root cause and output the target sub-data to be analyzed. If no alarm is generated, the operation of locating the root cause according to the target data to be analyzed is not performed.

[0134] Embodiment 5

[0135] Figure 6 Schematic diagram of the structure of a warning and root cause location model training device based on a graph neural network according to Embodiment 5 of the present invention. Figure 6 As shown, the device comprises:

[0136] Data label generation module 61, training sample data generation module 62, global alarm model training module 63 and root cause location model training module 64.

[0137] The data label generation module 61 is used to collect the original historical data in the system operation, perform preprocessing to generate target historical data, and generate an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information;

[0138] A training sample data generating module 62 is used to generate training sample data according to historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels;

[0139] A preset graph neural network training module 63 is used to input training sample data into a preset graph neural network for classification training to obtain a global alarm model;

[0140] The preset graph explanatory model training module 64 is used to input the training sample data into the preset graph explanatory model for model training to obtain a root cause location model; wherein the root cause location model outputs target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition result for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset conditions.

[0141] The technical solution provided by the embodiment of the present invention solves the problem that the existing root cause location method is independent of the alarm, resulting in the inability to find the root cause of the fault, through the cooperation of the data label generation module, the training sample data generation module, the preset graph neural network training module and the preset graph explanatory model training module. It can incorporate the fault and root cause location into one framework, thereby improving the accuracy and reliability of the root cause location.

[0142] Optionally, the data label generating module 61 includes:

[0143] The alarm time period determination unit is used to collect the original alarm history data corresponding to the alarm information during the system operation, and determine the alarm time period corresponding to the original alarm history data;

[0144] A fault interval determination unit, used to determine a plurality of fault intervals of preset time lengths by sliding intervals based on the alarm time period;

[0145] A first target data determination unit, configured to use original historical data corresponding to each fault interval as target historical data corresponding to each fault interval;

[0146] A fault interval quantity determination unit, used to determine the number of fault intervals according to the alarm time period and the preset time length;

[0147] A non-fault interval generating unit, configured to determine a non-alarm time period according to the alarm time period; and to generate non-fault intervals having the same number as the fault intervals according to the non-alarm time period;

[0148] The second target data determination unit is used to use the original historical data corresponding to each non-fault interval as the target historical data corresponding to each non-fault interval.

[0149] Optionally, the training sample data generating module 62 includes:

[0150] A feature vector generating unit, used to determine each node in the target historical data according to the historical topology data and the historical indicator data, and to generate a feature vector corresponding to each node;

[0151] The training sample data generating unit is used to generate training sample data from each node in the historical data, the feature vector of each node, and the alarm data label or the non-alarm data label.

[0152] Optionally, the preset graph neural network training module 63 includes:

[0153] A representation vector acquisition unit is used to input the training sample data into a preset graph neural network for feature extraction, obtain the representation variables corresponding to each node in the target historical data, and obtain the representation vector of the target historical data according to the representation variables of each node;

[0154] The global alarm model determination unit is used to perform classification training on a preset graph neural network according to the representation vector and adopt a loss function to obtain a global alarm model.

[0155] Optionally, the preset graph explanatory model training module 64 includes:

[0156] A target history sub-data acquisition unit, used to input the training sample data into a preset graph explanatory model to obtain target history sub-data corresponding to the target history data;

[0157] The root cause location model determination unit is used to perform model training based on the target historical data, the target historical sub-data, and a preset loss function to obtain a root cause location model; wherein the preset loss function includes the distribution difference between the target historical data and the target historical sub-data, and the variable difference in the global alarm model's recognition results of the target historical data and the target historical sub-data.

[0158] The graph neural network-based alarm and root cause location model training device provided in an embodiment of the present invention can execute the graph neural network-based alarm and root cause location model training method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0159] Embodiment 6

[0160] Figure 71 is a schematic diagram of the structure of an alarm and root cause location device based on a graph neural network according to Embodiment 6 of the present invention. Figure 7 As shown, the device comprises:

[0161] The target data to be analyzed generating module 71 , the alarm analysis result determining module 72 , the target sub-data to be analyzed acquiring module 73 and the root cause location result determining module 74 .

[0162] The target data to be analyzed generating module 71 is used to collect the data to be analyzed in real time during the operation of the system, and to pre-process the data to be analyzed to generate the target data to be analyzed;

[0163] An alarm analysis result determination module 72 is used to input the target data to be analyzed into a global alarm model generated by the alarm and root cause location model training method based on a graph neural network according to any embodiment of the present invention to obtain an alarm analysis result;

[0164] The target sub-data to be analyzed acquisition module 73 is used for inputting the target data to be analyzed into the root cause location model generated by the alarm and root cause location model training method based on the graph neural network according to any embodiment of the present invention when the alarm analysis result is to generate an alarm, to obtain the target sub-data to be analyzed corresponding to the target data to be analyzed;

[0165] The root cause location result determination module 74 is used to use the target sub-data to be analyzed as the root cause location result.

[0166] The technical solution provided by the embodiment of the present invention solves the problem that the existing root cause locating method is independent of the alarm, resulting in the inability to find the root cause of the fault, through the mutual cooperation of the target data to be analyzed generation module, the alarm analysis result determination module, the target sub-data to be analyzed acquisition module and the root cause location result determination module. It can realize the combination of alarm and root cause, and improve the accuracy and reliability of root cause location.

[0167] Embodiment 7

[0168] Figure 8 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0169] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0170] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0171] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the alarm and root cause location model training method based on the graph neural network or the alarm and root cause location method based on the graph neural network.

[0172] In some embodiments, the alarm and root cause location model training method based on graph neural network or the alarm and root cause location method based on graph neural network can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the alarm and root cause location model training method based on graph neural network or the alarm and root cause location method based on graph neural network described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the alarm and root cause location model training method based on graph neural network or the alarm and root cause location method based on graph neural network in any other appropriate manner (for example, by means of firmware).

[0173] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0174] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0175] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0176] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0177] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0178] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0179] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0180] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for training an alarm and root cause location model based on a graph neural network, characterized in that: include: Collecting the original historical data in the system operation and preprocessing it to generate target historical data, and generating an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information; Generate training sample data based on historical topology data, historical indicator data, and alarm data labels or non-alarm data labels; Input the training sample data into a preset graph neural network for classification training to obtain a global alarm model; The training sample data is input into a preset graph explanatory model for model training to obtain a root cause location model; wherein the preset graph explanatory model is used to explain the decision-making process and prediction results of the global alarm model; The root cause location model outputs target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition result for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset condition; The step of inputting the training sample data into a preset graph explanatory model for model training to obtain a root cause location model includes: Inputting the training sample data into a preset graph explanatory model to obtain target historical sub-data corresponding to the target historical data; Performing model training according to the target historical data, the target historical sub-data, and a preset loss function to obtain a root cause location model; The preset loss function includes the distribution difference between the target historical data and the target historical sub-data, and the variable difference in the recognition results of the global alarm model for the target historical data and the target historical sub-data.

2. The method according to claim 1, characterized in that The original historical data collected during system operation is preprocessed to generate target historical data, including: Collecting original alarm history data corresponding to the alarm information during system operation, and determining the alarm time period corresponding to the original alarm history data; Based on the alarm time period, a plurality of fault intervals of preset time lengths are determined by sliding interval method; The original historical data corresponding to each of the fault sections is used as the target historical data corresponding to each of the fault sections.

3. The method according to claim 2, characterized in that The original historical data collected during system operation is preprocessed to generate target historical data, including: Determining the number of fault intervals according to the alarm time period and the preset time length; Determine a non-alarm time period according to the alarm time period; and generate non-fault intervals having the same number as the fault intervals according to the non-alarm time period; The original historical data corresponding to each of the non-fault intervals is used as the target historical data corresponding to each of the non-fault intervals.

4. The method according to claim 1, characterized in that: Generate training sample data based on historical topology data, historical indicator data, and alarm data labels or non-alarm data labels, including: Determine each node in the target historical data according to the historical topology data and the historical indicator data, and generate a feature vector corresponding to each node; Each node in the historical data, the feature vector of each node, and the warning data label or the non-warning data label are used to generate training sample data.

5. The method according to claim 4, characterized in that The training sample data is input into a preset graph neural network for classification training to obtain a global alarm model, including: Input the training sample data into a preset graph neural network for feature extraction to obtain a representation variable corresponding to each node in the target historical data, and obtain a representation vector of the target historical data according to the representation variable of each node; According to the representation vector, the preset graph neural network is classified and trained using a loss function to obtain a global alarm model.

6. A method for locating alarms and root causes based on graph neural networks, characterized in that: include: Collect the data to be analyzed in real time during the operation of the system, and pre-process the data to be analyzed to generate target data to be analyzed; Inputting the target data to be analyzed into a global alarm model generated by the alarm and root cause location model training method based on a graph neural network according to any one of claims 1 to 5 to obtain an alarm analysis result; When the alarm analysis result is to generate an alarm, the target data to be analyzed is input into a root cause location model generated by the alarm and root cause location model training method based on a graph neural network according to any one of claims 1 to 5, to obtain target sub-data to be analyzed corresponding to the target data to be analyzed; The target sub-data to be analyzed is used as the root cause location result.

7. A warning and root cause location model training device based on graph neural network, characterized in that: include: A data label generation module is used to collect the original historical data in the system operation, perform preprocessing to generate target historical data, and generate an alarm data label or a non-alarm data label corresponding to the target historical data according to the alarm information; A training sample data generation module is used to generate training sample data based on historical topology map data, historical indicator data, and alarm data labels or non-alarm data labels; A preset graph neural network training module is used to input the training sample data into a preset graph neural network for classification training to obtain a global alarm model; A preset graph explanatory model training module is used to input the training sample data into the preset graph explanatory model for model training to obtain a root cause location model; wherein the preset graph explanatory model is used to explain the decision-making process and prediction results of the global alarm model; The root cause location model outputs target historical sub-data corresponding to the target historical data; the global alarm model has the same recognition result for the target historical data and the corresponding target historical sub-data; the distribution difference between the target historical sub-data and the target historical data meets the preset condition; The preset graph explanatory model training module includes: A target history sub-data acquisition unit, used for inputting the training sample data into a preset graph explanatory model to obtain target history sub-data corresponding to the target history data; A root cause localization model determination unit, configured to perform model training according to the target historical data, the target historical sub-data, and a preset loss function to obtain a root cause localization model; The preset loss function includes the distribution difference between the target historical data and the target historical sub-data, and the variable difference in the recognition results of the global alarm model for the target historical data and the target historical sub-data.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the alarm and root cause location model training method based on the graph neural network described in any one of claims 1-5 or the alarm and root cause location method based on the graph neural network described in claim 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the alarm and root cause location model training method based on the graph neural network described in any one of claims 1-5 or the alarm and root cause location method based on the graph neural network described in claim 6 when executed.

Citation Information

Patent Citations

  • Fault root cause positioning model training method, device and equipment and readable storage medium

    CN116032726A

  • Fault root cause positioning method, device and equipment and readable storage medium

    CN116582414A