Fault root cause location model training method, device, equipment and readable storage medium
By training a fault root cause location model based on the attention mechanism and using historical data to predict alarm feature vectors, the problem of low fault root cause location efficiency in the existing technology is solved, and efficient classification of massive alarm information and fault root cause prediction are achieved. .
Patent Information
- Application Number
- CN202211683491.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-12-27
AI Technical Summary
When faced with massive alarm information, the existing technology has low fault root cause location efficiency and relies on expert experience and network topology, making it difficult to quickly and accurately locate the fault root cause.
By obtaining historical fault data and historical KPI data of multiple sample network elements in the communication network, a classification model based on the attention mechanism is trained, a fault root cause location model is generated, and the model is used to predict the alarm feature vector of the target network element and obtain alarms. The degree of correlation between them improves the accuracy and efficiency of fault root cause location.
It improves the accuracy and efficiency of fault root cause location, can effectively process a large number of alarm information, identify highly relevant alarm information, output predicted fault root causes, and help operation and maintenance personnel quickly locate faults.
Smart Images

Figure CN116032726B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication systems, and in particular to a fault root cause location model training method, device, equipment and readable storage medium. Background Art
[0002] With the development of communication technology, the communication network provided by the communication system is becoming increasingly complex. A failure of a network element in the communication network will cause derivative alarms of many network elements, thereby generating a large amount of alarm information.
[0003] At present, the main method to locate the root cause of the fault from the massive amount of alarm information is to use a deep learning network model based on the network topology structure and infer the root cause of the fault in combination with expert experience. However, this method relies on expert inference and has low efficiency in locating the root cause of the fault. Summary of the invention
[0004] The present application provides a fault root cause location model training method, device, equipment and readable storage medium to solve the problem of low efficiency of fault root cause location.
[0005] In a first aspect, the present application provides a fault root cause location model training method, comprising:
[0006] Acquire historical fault data and historical KPI data of multiple sample network elements in the communication network, wherein the historical fault data includes: historical fault tickets and historical alarm data;
[0007] According to the historical alarm data and the historical KPI data of each of the sample network elements, a sample data set is obtained, wherein each group of sample data in the sample data set includes an alarm feature vector generated based on the historical alarm data and the historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault ticket of the group of sample network elements;
[0008] The sample data set is used to train a classification model based on an attention mechanism to obtain a fault root cause location model; the fault root cause location model is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of at least one target network element.
[0009] Optionally, acquiring a sample data set according to historical alarm data and historical KPI data of each of the sample network elements includes:
[0010] According to the alarms of each sample network element, a group of multiple sample network elements and the root causes of faults corresponding to the alarms of the sample network elements in the group are obtained; the alarms of the sample network elements belonging to the same group correspond to one root cause of fault;
[0011] For the sample network elements in each group:
[0012] Extracting key information related to the alarm from the historical alarm data of the group of sample network elements;
[0013] Vectorize and encode the extracted key information to obtain the key information vector corresponding to the historical alarm data of the group of sample network elements;
[0014] Using the historical KPI data of the first time range in the historical KPI data of the group of sample network elements, a KPI vector corresponding to the historical alarm data of the group of sample network elements is constructed; the end time of the first time range is the alarm time of the historical alarm data;
[0015] According to the key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements, the alarm feature vector of the group is obtained.
[0016] Optionally, acquiring the alarm feature vector of the group according to the key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements includes:
[0017] The key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements are concatenated to obtain the initial alarm feature vector of the group;
[0018] If the length of the initial alarm feature vector of the group is equal to the first value, using the initial alarm feature vector of the group as the alarm feature vector of the group;
[0019] If the length of the initial alarm feature vector of the group is less than the first value, padding the initial alarm feature vector with the second value to obtain the alarm feature vector of the group;
[0020] If the length of the initial alarm feature vector of the group is greater than the first value, data with a length of the first value is intercepted from the initial alarm feature vector as the alarm feature vector of the group.
[0021] Optionally, the fault root cause location model includes: an attention module and a classification module;
[0022] The attention module is used to obtain an attention-based alarm scoring matrix corresponding to the at least one target network element according to the alarm feature vector of the at least one target network element;
[0023] The classification module is used to predict the root cause of the fault corresponding to the alarm of the at least one target network element based on the alarm scoring matrix.
[0024] Optionally, the attention module is specifically used to:
[0025] Processing the alarm feature vector of the at least one target network element through two different convolution kernels respectively to obtain a first matrix and a second matrix;
[0026] Concatenate and integrate the first matrices by columns to obtain a first column vector;
[0027] Perform a dot multiplication of the first column vector and the transposed value of the first column vector to obtain an intermediate matrix;
[0028] Performing standardization and normalization processing on the intermediate matrix in sequence to obtain a third matrix;
[0029] Splitting and integrating the third matrix by columns to obtain a fourth matrix;
[0030] The Hadamard product of the fourth matrix and the second matrix is used as the warning score matrix.
[0031] In a second aspect, the present application provides a method for analyzing root causes of faults in a communication network, comprising:
[0032] Obtaining alarm data and KPI data of at least one target network element;
[0033] generating an alarm feature vector of the at least one target network element according to the alarm data and KPI data of the at least one target network element;
[0034] Inputting the alarm feature vector of the at least one target network element into a fault root cause location model trained by a fault root cause location model training method to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element;
[0035] Output the predicted fault root cause corresponding to the alarm of the at least one target network element.
[0036] In a third aspect, the present application provides a fault root cause location model training device, comprising:
[0037] A first acquisition module is used to acquire historical fault data and historical KPI data of multiple sample network elements in the communication network, wherein the historical fault data includes: historical fault tickets and historical alarm data;
[0038] A second acquisition module is used to acquire a sample data set according to the historical alarm data and the historical KPI data of each of the sample network elements, wherein each group of sample data in the sample data set includes an alarm feature vector generated based on the historical alarm data and the historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault sheet of the group of sample network elements;
[0039] A training module is used to use the sample data set to train a classification model based on an attention mechanism to obtain a fault root cause location model; the fault root cause location model is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of at least one target network element.
[0040] In a fourth aspect, the present application provides a communication network-oriented fault root cause analysis device, comprising:
[0041] A third acquisition module is used to acquire alarm data and KPI data of at least one target network element;
[0042] A generating module, configured to generate an alarm feature vector of at least one target network element according to the alarm data and KPI data of the at least one target network element;
[0043] A prediction module, configured to input the alarm feature vector of the at least one target network element into a fault root cause location model trained by the method according to any one of the first aspects, to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element;
[0044] The output module is used to output the predicted root cause of the fault corresponding to the alarm of the at least one target network element.
[0045] In a fifth aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0046] The memory stores computer-executable instructions;
[0047] The processor executes the computer-executable instructions stored in the memory to implement the fault root cause location model training method as described in the first aspect or any one of the second aspects, or the fault root cause analysis method for communication networks.
[0048] In a sixth aspect, the present application provides a computer-readable storage medium, comprising: the computer-readable storage medium stores computer execution instructions, and the computer execution instructions, when executed by a processor, are used to implement a fault root cause location model training method as described in the first aspect, or any one of the second aspects, or a fault root cause analysis method for a communication network.
[0049] In a seventh aspect, the present application provides a computer program product, including a computer program, which, when executed by the processor, implements the fault root cause localization model training method as described in the first aspect or any one of the second aspects, or the fault root cause analysis method for communication networks.
[0050] In an eighth aspect, the present application provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the method for training a fault root cause localization model as described in the first aspect or any one of the second aspects, or the method for analyzing fault root cause for a communication network is implemented.
[0051] The fault root cause location model training method, device, equipment and readable storage medium provided in the present application use a sample data set formed by historical fault data and historical KPI data of multiple sample network elements in a communication network to train a classification model based on an attention mechanism, namely, a fault root cause location model. The fault root cause location model can obtain the correlation between the alarm data of each target network element. The higher the correlation, the greater the probability that the data belongs to the same fault root cause, thereby improving the accuracy of subsequent classification of various alarms and prediction of the root cause of the fault. At the same time, the fault root cause location model can be used to predict the root cause of each group of target network element alarms after classification, thereby improving the efficiency of fault root cause location. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0053] Figure 1 A flowchart of a fault root cause location model training method provided in an embodiment of the present application;
[0054] Figure 2 A schematic diagram of a process for obtaining an alarm feature vector of a group based on historical alarm data and historical KPI data of each sample network element in each group provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of a process for obtaining an alarm scoring matrix based on an alarm feature vector of at least one target network element provided in an embodiment of the present application;
[0056] Figure 4 A flow chart of a method for analyzing root cause of a fault in a communication network provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of the structure of a fault root cause location model training device provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of the structure of a fault root cause analysis device for a communication network provided in an embodiment of the present application;
[0059] Figure 7 A schematic diagram of the structure of an electronic device 700 provided in an embodiment of the present application.
[0060] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0062] First, the terms involved in this application are explained:
[0063] Network element: refers to a network unit entity with certain functions in a communication network, such as a Mobile Switching Center (MSC) network element.
[0064] With the development of communication technology, communication networks are becoming increasingly complex, including many network elements. The alarm of one network element may cause the alarm of many network elements, thus generating a large number of derivative alarms. Operation and maintenance personnel need to quickly locate the root cause of the fault from the massive alarm information and then repair the fault.
[0065] At present, there are two main methods for locating the root cause of faults in communication networks:
[0066] (1) The fluctuation of the key performance indicator (KPI) data of each network element in the communication network is monitored through machine learning algorithms. If the KPI data is abnormal, the root cause of the fault is inferred by combining call history data and expert experience.
[0067] Since this method relies on expert experience inference, it can solve the root cause location of a small number of alarms. However, when faced with massive alarm information including many derivative alarms, the efficiency of fault root cause location is low.
[0068] (2) Build a deep learning model based on network topology structure, input alarm information into the model, and then combine it with expert experience to infer the root cause of the fault.
[0069] This method needs to perform troubleshooting based on the network topology, so the network topology should not be too large, otherwise the root cause of the fault may be inaccurately located, and it will take a long time and the efficiency of locating the root cause of the fault will be low.
[0070] In summary, when faced with a massive amount of alarm information including numerous derivative alarms, the fault root cause location method in the prior art can no longer meet the requirements for fault root cause location, and the fault root cause location efficiency is low.
[0071] In view of this, the present application proposes a method for training a fault root cause location model, which uses the historical fault data and historical KPI data of multiple sample network elements in the communication network to train a fault root cause location model. The trained model can process a large amount of alarm information at the same time, obtain the correlation between a large amount of alarm information, and the alarm information with high correlation corresponds to the same kind of fault root cause. Therefore, the alarm information with high correlation is divided into the same group, and the predicted fault root cause corresponding to each group of alarms is output, which effectively improves the efficiency of fault root cause location.
[0072] The execution subject of this application can be an electronic device such as a computer with processing capabilities, or a model training platform, etc. The platform can be a platform located in the cloud, or a distributed deployment platform (for example, partly deployed in a cloud environment, partly deployed in an edge environment, etc.).
[0073] The following takes the execution subject as an electronic device as an example, and describes in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems in combination with specific embodiments. 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 application will be described below in combination with the accompanying drawings.
[0074] Figure 1 A flowchart of a fault root cause location model training method provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0075] S101. Obtain historical fault data and historical KPI data of multiple sample network elements in a communication network.
[0076] The above-mentioned sample network elements refer to network elements in which alarms have occurred in the communication network.
[0077] The above-mentioned historical fault data includes historical fault tickets and historical alarm data.
[0078] The above-mentioned historical fault tickets are used to record the processing information after the alarm is processed, including the equipment number, work order dispatch time, fault cause, etc., which can be obtained from the database corresponding to the data monitoring platform of the communication system, or from an external device, such as a USB flash drive.
[0079] The above historical alarm data, including the alarm information of the sample network element, such as device number, alarm name, alarm time, etc., can be obtained from the historical alarm log recorded in the database corresponding to the sample network element or from the alarm work order corresponding to the sample network element, or from an external device, such as a USB flash drive, etc. It should be noted that the historical alarm data has a one-to-one correspondence with the sample network element.
[0080] The above historical KPI data is used to characterize the quality of the services undertaken by the sample network element, such as connection rate, call transfer success rate, etc., including KPI name and KPI value, which can be obtained from the database corresponding to the sample network element, or from an external device, such as a USB flash drive, etc. It should be noted that each sample network element has at least one KPI.
[0081] S102: Obtain a sample data set according to the historical alarm data and historical KPI data of each sample network element.
[0082] Each group of sample data in the above sample data set includes an alarm feature vector generated based on the alarm data and historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault ticket of the group of sample network elements.
[0083] Abnormal KPI data of a sample network element may cause an alarm to be generated for the sample network element. Therefore, changes in the KPI data of the sample network element may reflect whether the sample network element is working normally, that is, whether the alarm of the sample network element is caused by a fault of the sample network element, which may help predict the root cause of the fault and make the predicted root cause of the fault more accurate.
[0084] Table 1 Grouped historical alarm data and historical KPI data of the above sample network elements
[0085]
[0086] According to the alarms of each sample network element, the above sample network elements are grouped, that is, the historical alarm data and historical KPI data of each sample network element are grouped. For example, the alarms with the same fault cause, or the alarms of the same type of fault cause, can be divided into the same group, or the sample network elements with alarms caused by the same fault, each group corresponds to a fault root cause. It should be noted that the fault root causes corresponding to different groups can be the same or different. The grouped historical alarm data and historical KPI data of the above sample network elements can be shown in Table 1.
[0087] Regarding how to generate an alarm feature vector based on the historical alarm data and historical KPI data of each group of sample network elements, the following methods can be adopted:
[0088] A possible implementation method is to use a pre-trained named entity recognition model to extract the key information related to the alarm in the above historical alarm data and historical KPI data of each group of sample network elements, and vectorize the above key information to form an alarm feature vector. It should be noted that the above pre-trained named entity model is trained in advance using the above historical alarm data and historical KPI data. The model can be a bidirectional encoder representation from transformers (BERT) and a conditional random field (CRF) model, that is, a BERT-CRF model, or a bidirectional long short-term memory (BiLSTM) and a conditional random field model, that is, a BiLSTM-CRF model, which is not limited in this application. The key information related to the alarm in the above historical alarm data and historical KPI data can be, for example, an alarm name, an alarm time, a device number, a KPI name, a KPI value, etc.
[0089] Another possible implementation method is to first process the historical KPI data of each group of sample network elements mentioned above, for example, intercept the historical KPI data of the sample network element corresponding to the alarm time, and then use the aforementioned pre-trained named entity recognition model to extract the key information related to the alarm in the above historical alarm data and the intercepted historical KPI data, and vectorize the extracted key information to obtain the alarm feature vector.
[0090] Another possible implementation method is to first process the historical KPI data of each group of sample network elements mentioned above, for example, intercept the historical KPI data of the sample network element corresponding to the alarm time, and then vectorize and encode the intercepted historical KPI data to form a KPI vector, and then use the aforementioned named entity recognition model to extract the key information related to the alarm in the historical alarm data, and vectorize and encode the extracted key information to form a key information vector, and finally splice the KPI vector and the key information vector to form an alarm feature vector. The key information related to the alarm in the historical alarm data may be, for example, the alarm name, alarm time, equipment number, etc. It should be noted that the interception of the historical KPI data corresponding to the alarm time of the sample network element in the above another possible implementation method and another possible implementation method may be to only intercept the historical KPI data corresponding to the alarm time, or to intercept the historical KPI data of a period of time before the alarm time, for example, 1 hour before the alarm time. This application is not limited here, as long as the interception method of each group of data is ensured to be the same.
[0091] It should be noted that the above-mentioned vectorized encoding can adopt the word embedding technology, which is not limited in this application, and the specific implementation method can refer to the existing technology.
[0092] It should be noted that the types of key information related to alarms extracted above are only examples, and this application does not limit which data is extracted as key information.
[0093] The historical alarm data and historical KPI data of each sample network element are grouped and formed into a sample data set after the alarm feature vector is formed. According to the root cause of the fault corresponding to each group after the grouping, each group of data in the sample data set is labeled. For example, the above sample network elements are divided into M groups, M≥1, then the sample data set includes M groups of alarm feature vectors, and the labeled root cause of the fault corresponding to each group of alarm feature vectors.
[0094] It should be noted that the above-mentioned labeling of each group of data may be performed immediately after grouping, or may be performed after forming each group of alarm feature vectors, and this application does not limit this.
[0095] S103: Using the sample data set, train a classification model based on the attention mechanism to obtain a fault root cause location model.
[0096] The above-mentioned attention mechanism refers to an allocation mechanism that focuses attention (such as computing resources) on some features and ignores other features. It can be used to determine the weight of each element in the alarm feature vector of at least one target network element to facilitate the allocation of computing resources in the subsequent classification model.
[0097] The above classification model can be a Convolutional Neural Networks (CNN) model, a Long Short-term Memory (LSTM) model, etc., which is not limited in this application.
[0098] The above-mentioned classification model based on the attention mechanism can be any classification model based on the attention mechanism, and this application does not limit its structure.
[0099] The above-mentioned fault root cause location model may, for example, include an attention module and a classification module, which is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of at least one target network element. The target network element refers to the network element in the communication network where the alarm occurs.
[0100] By introducing the attention mechanism, the weight of each data in the alarm feature vector can be obtained, that is, the similarity or correlation between the fault data and KPI data of each target network element can be obtained. The more similar the data, the higher the correlation between the alarms corresponding to the data, and the greater the probability that the alarms may belong to the same fault root cause. The introduction of the attention mechanism can improve the accuracy of subsequent classification models in classifying various alarms and predicting fault root causes.
[0101] The method for training a fault root cause location model provided in the present application utilizes a sample data set formed by historical fault data and historical KPI data of multiple sample network elements in a communication network to train a classification model based on an attention mechanism, namely, a fault root cause location model. The fault root cause location model can obtain the correlation between the alarm data of each target network element. The higher the correlation, the greater the probability that the data belongs to the same fault root cause, thereby improving the accuracy of subsequent classification of various alarms and prediction of the fault root cause. At the same time, the fault root cause location model can be used to predict the fault root cause of each group of target network element alarms after classification, thereby improving the efficiency of fault root cause location.
[0102] The following describes how to obtain the alarm feature vector of the group based on the historical alarm data and historical KPI data of each sample network element in each group.
[0103] Figure 2 A schematic diagram of a process for obtaining an alarm feature vector of a group based on historical alarm data and historical KPI data of each sample network element in each group provided in an embodiment of the present application. Figure 2 As shown, the method includes:
[0104] S201. Extract key information related to alarms from historical alarm data of the group of sample network elements.
[0105] The key information related to the alarm may be, for example, the alarm name, alarm time, device number, etc. The extraction method may be to use a pre-trained named entity recognition model, and reference may be made to the description in the aforementioned step S102, which will not be repeated here.
[0106] S202: Perform vector coding on the extracted key information to obtain a key information vector corresponding to the historical alarm data of the group of sample network elements.
[0107] S203: Use the historical KPI data of the first time range in the historical KPI data of the group of sample network elements to construct a KPI vector corresponding to the historical alarm data of the group of sample network elements.
[0108] The end time of the first time range is the alarm time of the historical alarm data. For example, if the alarm time is time 1, then the first time range may be 1 hour or 12 hours before time 1, which is not limited in this application.
[0109] As mentioned above, the KPI data includes a KPI name and a KPI value, and the KPI data is vectorized and encoded to obtain a KPI vector.
[0110] S204: Obtain an alarm feature vector of the group according to the key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements.
[0111] One possible implementation method is to concatenate the key information vector and KPI vector corresponding to the historical alarm data of the group of sample network elements in a preset order, for example, the data order of each sample network element is: KPI vector + key information vector, to obtain the initial alarm feature vector of the group. It should be noted that the length of the KPI vector between each sample network element is the same, and the length of the key information vector between each sample network element is the same.
[0112] If the length of the initial alarm feature vector of the group is equal to the first value, the initial alarm feature vector of the group is used as the alarm feature vector of the group. For example, the first value may be 512 bytes.
[0113] If the length of the initial alarm feature vector of the group is less than the first value, the second value is used to pad the initial alarm feature vector to obtain the alarm feature vector of the group. The second value may be 0, 1, for example. For example, if the initial alarm feature vector is [1, 2, 3, 4] and has a length of 4 bytes, if the first value is 5 bytes, the alarm feature vector obtained after padding may be [1, 2, 3, 4, 0].
[0114] If the length of the initial alarm feature vector of the group is greater than the first value, data with a length of the first value is intercepted from the initial alarm feature vector as the alarm feature vector of the group. The interception method may be, for example, intercepting data corresponding to the length of the first value from the left to the right. For example, if the initial alarm feature vector is [1,2,3,4] and has a length of 4 bytes, and the first value is 3 bytes, then the alarm feature vector obtained after interception may be [1,2,3].
[0115] Another possible implementation method is to preset the maximum number of sample network elements in each group, and respectively preset the length values of the key information vector and the KPI vector of the sample network elements. For example, the length value of the key information vector is a third value, and the length value of the KPI vector is a fourth value. The lengths of the key information vector and the KPI vector of each sample network element are padded or truncated according to the third value and the fourth value, respectively. The method of padding and truncation can refer to the above description. The remaining length that does not meet the maximum number of sample network elements in each group can also be padded with reference to the above-mentioned padding processing method. Then, the key information vectors and KPI vectors corresponding to the historical fault data of the sample network elements of the same length are spliced in a preset order. For example, the data order of each sample network element is: KPI vector + key information vector, and the initial alarm feature vector of the group is obtained.
[0116] The fault root cause location model training method provided in the present application forms an alarm feature vector for the group based on the historical alarm data and historical KPI data of the sample network elements in each group, and can unify the format of the alarm feature vector of each group to facilitate subsequent model training.
[0117] The following uses the fault root cause location model including the attention module and the classification module as an example to explain how to obtain the fault root cause location model:
[0118] The attention module is used to obtain an attention-based alarm scoring matrix corresponding to the at least one target network element according to the alarm feature vector of the at least one target network element;
[0119] The classification module is used to predict the root cause of the fault corresponding to the alarm of the at least one target network element based on the alarm scoring matrix. Specifically, the classification module groups the alarms of the at least one target network element based on the alarm scoring matrix and outputs the predicted root cause of the fault corresponding to each group.
[0120] Regarding how to obtain the alert score matrix with attention corresponding to the at least one target network element according to the alert feature vector of the at least one target network element, the following method may be adopted:
[0121] A possible implementation method is to first standardize the alarm feature vector of the at least one target network element, calculate the standardized alarm feature vector, and obtain the covariance matrix of the alarm feature vector of the at least one target network element. Because the covariance matrix can be regarded as a similarity calculation for each element in the alarm feature vector, the more similar the data, the larger the value after calculation, which is equivalent to allocating resources for the elements in the alarm feature vector, that is, calculating the weight of each element. Therefore, the covariance matrix can be used as an alarm scoring matrix with attention.
[0122] Another possible implementation method is to first perform convolution processing on the above-mentioned warning feature vector, and then perform standardization, normalization, and Hadamard product processing on the convolution matrix to form a warning score matrix. The matrix after convolution processing can represent the different element features of the warning feature vector, that is, the element features of the warning feature vector are disrupted by convolution processing, and then after standardization, normalization, and Hadamard product processing, a weight matrix representing the different element features of the warning feature vector can be obtained, that is, an alert score matrix with attention.
[0123] Regarding how to obtain the above-mentioned fault root cause location model based on the above-mentioned attention module and the above-mentioned classification module, optionally, the attention-bearing alarm score matrix obtained by the above-mentioned attention module can be used as the input of the above-mentioned classification module to construct a classification model based on the attention mechanism, and the model is trained to obtain the fault root cause location model. It should be noted that regarding how to use the above-mentioned sample data set to train the classification model based on the attention mechanism, reference can be made to the prior art, and this application does not limit it here.
[0124] By introducing the attention module, that is, introducing the attention-based alarm scoring matrix, the similarity or correlation between the fault data and KPI data of each target network element can be obtained. The more similar the data, the higher the correlation between the alarms corresponding to the data, and the greater the probability that the alarms may belong to the same fault root cause. Using the attention-based alarm scoring matrix to obtain the correlation between the elements of the alarm feature vector can make it easier to process data in the subsequent classification module and improve the accuracy of predicting the fault root cause.
[0125] If the alarm data and KPI data of at least one target network element are obtained, the alarm data and KPI data of at least one target network element are divided into H groups. The grouping basis can be random grouping or grouping in sequence according to the device number, which is not limited in this application. Each group of grouped data is subjected to the above steps S201-S204 to obtain the alarm feature vector of at least one target network element. The dimension of the alarm feature vector can be, for example, H×W. The following takes the example of the dimension of the alarm feature vector of at least one target network element being H×W to illustrate how to obtain the alarm scoring matrix based on the alarm feature vector of at least one target network element.
[0126] Figure 3 A schematic diagram of a process for obtaining an alarm scoring matrix based on an alarm feature vector of at least one target network element provided in an embodiment of the present application. Figure 3 As shown, the method includes:
[0127] S301. Process an alarm feature vector of at least one target network element through two different convolution kernels to obtain a first matrix and a second matrix.
[0128] The two different convolution kernels refer to the different values of the convolution kernels, and the values of the two convolution kernels can be randomly initialized between 0 and 1. The following description assumes that both convolution kernels are 1×1×1.
[0129] The dimensions of the first matrix and the second matrix obtained above are both H×W.
[0130] S302, concatenate and integrate the first matrix by columns to obtain a first column vector.
[0131] The dimension of the first column vector is N×1, where N=H×W.
[0132] The above-mentioned column-based splicing and integration can be to integrate all the elements in the above-mentioned first matrix in row order, and integrate the elements of each column in the row under the elements of the first row and the first column in turn. After the data of all columns of the row are integrated, the data of the second row is integrated, and the first column vector is obtained in sequence.
[0133] It should be noted that the above is only an illustration of a method for splicing and integrating by columns, and this application does not limit it.
[0134] S303 , performing a dot multiplication of the first column vector and the transposed value of the first column vector to obtain an intermediate matrix.
[0135] The dimension of the above intermediate matrix is N×N.
[0136] S304 , performing standardization and normalization processing on the above intermediate matrix in sequence to obtain a third matrix.
[0137] The above-mentioned standardization process refers to converting each data in the intermediate matrix into a dimensionless and magnitude-free standardized value to eliminate the influence of different attributes between different types of data for subsequent data processing. For example, each data in the above-mentioned intermediate matrix can be uniformly divided by a constant for standardization. This constant can be, for example,
[0138] The normalization process is to convert the data into a value between 0 and 1. The intermediate matrix after the normalization process is normalized again to obtain the third matrix with a dimension of N×N.
[0139] The normalization process may be, for example, inputting the standardized intermediate matrix into a softmax function to obtain the third matrix.
[0140] The third matrix obtained through this step is obtained by multiplying the data of each target network element respectively and then processing it, which can represent the similarity between the data of each target network element. The larger the value of the data, the higher the similarity between the data, that is, the higher the correlation between the data.
[0141] S305 , split the third matrix by columns and integrate them to obtain a fourth matrix.
[0142] As mentioned above, the third matrix is obtained by performing a normalization process after performing a transposed dot product of the first column vector and the first column vector, which is actually equivalent to performing a transposed dot product of an N×1 second column vector and the second column vector to obtain the third matrix. Therefore, the third matrix can be split according to columns or rows to obtain an N×1 second column vector, and then the second column vector can be integrated into a fourth matrix of dimension H×W according to the format of the alarm feature vector.
[0143] S306: Taking the Hadamard product of the fourth matrix and the second matrix as an alarm scoring matrix.
[0144] The Hadamard product is the value obtained by multiplying the data at the corresponding position in the fourth matrix and the second matrix, which is used as the data at the corresponding position in the warning score matrix. For example, A is the data at position a11 in the fourth matrix, B is the data at position b11 in the second matrix, and C is the data at position c11 in the warning score matrix, then C = A × B.
[0145] After this step, the correlation information between the data can be introduced into the above-mentioned second matrix representing the above-mentioned alarm feature vector, and the obtained alarm scoring matrix is the alarm feature vector with correlation information, that is, the alarm scoring matrix with attention, and the dimension of the alarm scoring matrix is H×W.
[0146] It should be noted that the above is based on the use of two 1×1×1 convolution kernels as an illustration, and convolution kernels of other sizes can also be used for processing. The principle is similar to the above and will not be repeated here.
[0147] The fault root cause location model training method provided by the present application performs convolution processing on the alarm feature vector of at least one target network element, disrupts the data features of the alarm feature vector, and then obtains a third matrix through operations such as point multiplication, standardization, and normalization. The third matrix can represent the correlation of each data feature in the alarm feature vector. Finally, the alarm scoring matrix obtained by calculating the Hadamard product is the alarm feature vector with the data feature correlation introduced, that is, the alarm feature vector with attention added. The introduction of the attention module improves the accuracy of subsequent fault root cause classification prediction.
[0148] The following describes how to use the fault root cause location model obtained in the above embodiment to analyze the fault root cause.
[0149] Figure 4 The present invention provides a flow chart of a method for analyzing the root cause of a fault in a communication network. Figure 4As shown, the method includes:
[0150] S401. Obtain alarm data and KPI data of at least one target network element.
[0151] The content and acquisition method of the alarm data and KPI data have been explained in the previous steps and will not be repeated here.
[0152] S402: Generate an alarm feature vector of at least one target network element according to alarm data and KPI data of at least one target network element.
[0153] Regarding how to generate the alarm feature vector of the at least one target network element, reference may be made to the aforementioned steps S201 - S204 .
[0154] S403: Input the alarm feature vector of the at least one target network element into the trained fault root cause location model to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element.
[0155] As mentioned above, the alarm feature vector of the at least one target network element includes the alarm information of the at least one network element. The alarm feature vector of the at least one target network element is input into the trained root cause location model. The root cause location model can group the alarms of the at least one target network element, predict the root cause of the fault in each group, and sort the probability values of the root cause of the fault in each group from large to small, and output the root causes of the fault corresponding to the first P probability values predicted based on the alarms of each group of target network elements, where P≥1, and the P value is preset in advance.
[0156] S404: Output the predicted fault root cause corresponding to the alarm of the at least one target network element.
[0157] Optionally, expert experience is used to determine whether the predicted root cause of the fault is accurate. If inaccurate, the alarm data and KPI data of the target network element with inaccurate prediction are added to the sample data set of the aforementioned step S102, and the root cause location model is retrained to improve the prediction accuracy of the root cause of the fault.
[0158] The communication network-oriented root cause analysis method provided in the present application processes a large amount of alarm information into the form of alarm feature vectors and inputs them into a trained root cause location model. The large amount of input alarm information can be grouped, and alarm information with high correlation can be grouped together. That is, alarm information with high correlation is considered to correspond to the same root cause of faults. Multiple root causes with large probability values for each group of predictions are output, which can help operation and maintenance personnel quickly locate the root cause of faults and improve the efficiency of locating the root cause of faults.
[0159] Figure 5A schematic diagram of the structure of a fault root cause location model training device provided in an embodiment of the present application. Figure 5 As shown, the device includes: a first acquisition module 11, a second acquisition module 12 and a training module 13.
[0160] The first acquisition module 11 is used to acquire historical fault data and historical KPI data of multiple sample network elements in the communication network, wherein the historical fault data includes: historical fault tickets and historical alarm data;
[0161] The second acquisition module 12 is used to acquire a sample data set according to the historical alarm data and the historical KPI data of each of the sample network elements, wherein each group of sample data in the sample data set includes an alarm feature vector generated based on the historical alarm data and the historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault ticket of the group of sample network elements;
[0162] The training module 13 is used to use the sample data set to train the classification model based on the attention mechanism to obtain a fault root cause location model; the fault root cause location model is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of at least one target network element.
[0163] In a possible implementation, the second acquisition module 12 is used to acquire a group of multiple sample network elements and the root causes of faults corresponding to the alarms of the sample network elements in the group according to the alarms of the sample network elements; the alarms of the sample network elements belonging to the same group correspond to one root cause of fault;
[0164] For the sample network elements in each group:
[0165] Extracting key information related to the alarm from the historical alarm data of the group of sample network elements;
[0166] Vectorize and encode the extracted key information to obtain the key information vector corresponding to the historical alarm data of the group of sample network elements;
[0167] Using the historical KPI data of the first time range in the historical KPI data of the group of sample network elements, a KPI vector corresponding to the historical alarm data of the group of sample network elements is constructed; the end time of the first time range is the alarm time of the historical alarm data;
[0168] According to the key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements, the alarm feature vector of the group is obtained.
[0169] In this implementation mode, the above-mentioned second acquisition module 12 is specifically used to splice the key information vector and KPI vector corresponding to the historical alarm data of the group of sample network elements to obtain the initial alarm feature vector of the group; if the length of the initial alarm feature vector of the group is equal to the first value, the initial alarm feature vector of the group is used as the alarm feature vector of the group; if the length of the initial alarm feature vector of the group is less than the first value, the second value is used to padded the initial alarm feature vector to obtain the alarm feature vector of the group; if the length of the initial alarm feature vector of the group is greater than the first value, data with a length of the first value is intercepted from the initial alarm feature vector as the alarm feature vector of the group.
[0170] In a possible implementation, the fault root cause location model includes: an attention module and a classification module;
[0171] The attention module is used to obtain an attention-based alarm scoring matrix corresponding to the at least one target network element according to the alarm feature vector of the at least one target network element;
[0172] The classification module is used to predict the root cause of the fault corresponding to the alarm of the at least one target network element based on the alarm scoring matrix.
[0173] For example, the attention module is specifically used for:
[0174] Processing the alarm feature vector of the at least one target network element through two different convolution kernels respectively to obtain a first matrix and a second matrix;
[0175] Concatenate and integrate the first matrices by columns to obtain a first column vector;
[0176] Perform a dot multiplication of the first column vector and the transposed value of the first column vector to obtain an intermediate matrix;
[0177] Performing standardization and normalization processing on the intermediate matrix in sequence to obtain a third matrix;
[0178] Splitting and integrating the third matrix by columns to obtain a fourth matrix;
[0179] The Hadamard product of the fourth matrix and the second matrix is used as the warning score matrix.
[0180] The fault root cause localization model training device provided in the present application can execute the fault root cause localization model training method in the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0181] Figure 6 A schematic diagram of a fault root cause analysis device for a communication network provided in an embodiment of the present application. Figure 6As shown, the device includes: a third acquisition module 21, a generation module 22, a prediction module 23, and an output module 24.
[0182] A third acquisition module 21, configured to acquire alarm data and KPI data of at least one target network element;
[0183] A generating module 22, configured to generate an alarm feature vector of at least one target network element according to the alarm data and KPI data of the at least one target network element;
[0184] A prediction module 23, configured to input the alarm feature vector of the at least one target network element into a fault root cause location model trained by the method provided in the above embodiment, to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element;
[0185] The output module 24 is used to output the predicted fault root cause corresponding to the alarm of the at least one target network element.
[0186] The communication network-oriented fault root cause analysis device provided in the present application can execute the communication network-oriented fault root cause analysis method in the above method embodiment, and its implementation principle and technical effect are similar and will not be repeated here.
[0187] Figure 7 FIG. 7 is a schematic diagram of the structure of an electronic device 700 provided in an embodiment of the present application. Figure 7 As shown, the electronic device 700 may include at least one processor 701 and a memory 702, and may be, for example, an electronic device with processing capabilities such as a computer or a tablet computer.
[0188] The memory 702 is used to store programs. Specifically, the program may include program codes, and the program codes include computer operation instructions. The memory 702 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0189] The processor 701 is used to execute the computer-executable instructions stored in the memory 702 to implement the fault root cause location model training method described in the aforementioned method embodiment, or the fault root cause analysis method for communication networks. The processor 701 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0190] The electronic device 700 may further include a communication interface 703, so as to communicate and interact with an external device through the communication interface 703. The external device may be, for example, an electronic device such as a computer or a tablet.
[0191] In specific implementation, if the communication interface 703, the memory 702 and the processor 701 are implemented independently, the communication interface 703, the memory 702 and the processor 701 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0192] Optionally, in a specific implementation, if the communication interface 703, the memory 702 and the processor 701 are integrated on a chip, the communication interface 703, the memory 702 and the processor 701 can communicate through an internal interface.
[0193] The present application also provides a computer-readable storage medium, which may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the fault root cause location model training method in the above-mentioned embodiment, or the fault root cause analysis method for the communication network.
[0194] The present application also provides a computer program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium. At least one processor of the electronic device 700 can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the electronic device 700 implements the fault root cause location model training method provided by the various embodiments above, or the fault root cause analysis method for communication networks.
[0195] The present application also provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the fault root cause location model training method provided in various implementations, or the fault root cause analysis method for communication networks is implemented.
[0196] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0197] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A fault root cause location model training method, characterized in that: The method comprises: Acquire historical fault data and historical KPI data of multiple sample network elements in the communication network, wherein the historical fault data includes: historical fault tickets and historical alarm data; According to the historical alarm data and historical KPI data of each of the sample network elements, a sample data set is obtained, wherein each group of sample data in the sample data set includes an alarm feature vector generated based on the historical alarm data and historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault ticket of the group of sample network elements, Among them, according to the alarm of each sample network element, a grouping of multiple sample network elements and the root cause of the fault corresponding to the alarm of the sample network elements in this group are obtained. The alarms of the sample network elements belonging to the same group correspond to one root cause of the fault. For the sample network elements in each group, the key information related to the alarm is extracted from the historical alarm data of the sample network elements in this group, and the extracted key information is vectorized and encoded to obtain the key information vector corresponding to the historical alarm data of the sample network elements in this group. The historical KPI data of the first time range in the historical KPI data of the sample network elements in this group is used to construct the KPI vector corresponding to the historical alarm data of the sample network elements in this group. The end time of the first time range is the alarm time of the historical alarm data. According to the key information vector and KPI vector corresponding to the historical alarm data of the sample network elements in this group, the alarm feature vector of the group is obtained; Using the sample data set, a classification model based on the attention mechanism is trained to obtain a fault root cause location model; the fault root cause location model is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of the at least one target network element, The fault root cause location model includes: an attention module and a classification module; the attention module is used to obtain an attention-based alarm scoring matrix corresponding to the at least one target network element according to the alarm feature vector of the at least one target network element; the classification module is used to predict the fault root cause corresponding to the alarm of the at least one target network element based on the alarm scoring matrix, Wherein, the attention module is specifically used for: The alarm feature vectors of at least one target network element are processed by two different convolution kernels respectively to obtain a first matrix and a second matrix; the first matrix is spliced and integrated by columns to obtain a first column vector; the first column vector is multiplied by the transposed point of the first column vector to obtain an intermediate matrix; the intermediate matrix is standardized and normalized in turn to obtain a third matrix; the third matrix is split and integrated by columns to obtain a fourth matrix; the Hadamard product of the fourth matrix and the second matrix is used as the alarm scoring matrix.
2. The method according to claim 1, characterized in that The step of obtaining the alarm feature vector of the group according to the key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements includes: The key information vector and the KPI vector corresponding to the historical alarm data of the group of sample network elements are concatenated to obtain the initial alarm feature vector of the group; If the length of the initial alarm feature vector of the group is equal to the first value, using the initial alarm feature vector of the group as the alarm feature vector of the group; If the length of the initial alarm feature vector of the group is less than the first value, padding the initial alarm feature vector with the second value to obtain the alarm feature vector of the group; If the length of the initial alarm feature vector of the group is greater than the first value, data with a length of the first value is intercepted from the initial alarm feature vector as the alarm feature vector of the group.
3. A method for analyzing root causes of faults in communication networks, characterized in that: The method comprises: Obtaining alarm data and KPI data of at least one target network element; generating an alarm feature vector of the at least one target network element according to the alarm data and KPI data of the at least one target network element; Inputting the alarm feature vector of the at least one target network element into a fault root cause location model trained by the method according to any one of claims 1 to 2 to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element; Output the predicted fault root cause corresponding to the alarm of the at least one target network element.
4. A fault root cause location model training device, characterized in that: The device comprises: A first acquisition module is used to acquire historical fault data and historical KPI data of multiple sample network elements in the communication network, wherein the historical fault data includes: historical fault tickets and historical alarm data; A second acquisition module is used to acquire a sample data set according to the historical alarm data and the historical KPI data of each of the sample network elements, wherein each group of sample data in the sample data set includes an alarm feature vector generated based on the historical alarm data and the historical KPI data of each group of sample network elements, and a fault root cause corresponding to the alarm determined based on the historical fault list of the group of sample network elements, Among them, according to the alarm of each sample network element, a grouping of multiple sample network elements and the root cause of the fault corresponding to the alarm of the sample network elements in this group are obtained. The alarms of the sample network elements belonging to the same group correspond to one root cause of the fault. For the sample network elements in each group, the key information related to the alarm is extracted from the historical alarm data of the sample network elements in this group, and the extracted key information is vectorized and encoded to obtain the key information vector corresponding to the historical alarm data of the sample network elements in this group. The historical KPI data of the first time range in the historical KPI data of the sample network elements in this group is used to construct the KPI vector corresponding to the historical alarm data of the sample network elements in this group. The end time of the first time range is the alarm time of the historical alarm data. According to the key information vector and KPI vector corresponding to the historical alarm data of the sample network elements in this group, the alarm feature vector of the group is obtained; A training module is used to train a classification model based on an attention mechanism using the sample data set to obtain a fault root cause location model. The fault root cause location model includes: an attention module and a classification module, wherein the attention module is used to obtain an attention-based alarm scoring matrix corresponding to at least one target network element according to an alarm feature vector of the at least one target network element, and the classification module is used to predict a fault root cause corresponding to the alarm of the at least one target network element based on the alarm scoring matrix. Among them, the attention module specifically processes the alarm feature vector of the at least one target network element through two different convolution kernels respectively to obtain a first matrix and a second matrix, splices and integrates the first matrix by column to obtain a first column vector, multiplies the first column vector by the transposed point of the first column vector to obtain an intermediate matrix, standardizes and normalizes the intermediate matrix in turn to obtain a third matrix, splits and integrates the third matrix by column to obtain a fourth matrix, and uses the Hadamard product of the fourth matrix and the second matrix as the alarm scoring matrix; The fault root cause location model is used to predict the fault root cause corresponding to the alarm of at least one target network element based on the alarm feature vector of the at least one target network element.
5. A communication network-oriented fault root cause analysis device, characterized in that: The device comprises: A third acquisition module is used to acquire alarm data and KPI data of at least one target network element; A generating module, configured to generate an alarm feature vector of at least one target network element according to the alarm data and KPI data of the at least one target network element; A prediction module, configured to input the alarm feature vector of the at least one target network element into a fault root cause location model trained by the method according to any one of claims 1 to 2, to obtain a predicted fault root cause corresponding to the alarm of the at least one target network element; The output module is used to output the predicted root cause of the fault corresponding to the alarm of the at least one target network element.
6. An electronic device, characterized in that: The electronic device comprises: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the fault root cause location model training method according to any one of claims 1 to 2, or to implement the communication network-oriented fault root cause analysis method according to claim 3.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the fault root cause location model training method as described in any one of claims 1-2, or to implement the communication network-oriented fault root cause analysis method as described in claim 3.
Citation Information
Patent Citations
System fault root cause positioning method and device, storage medium and electronic device
CN113254254A
