Prediction method, device, equipment and storage medium for network fault solution
By using the twin Bert model fusion model to predict network fault data, generate and send solutions, it solves the problem of high user dependence on operation and maintenance personnel and low efficiency, and improves the efficiency and user experience of network fault resolution.
Patent Information
- Application Number
- CN202211548537.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-12-05
AI Technical Summary
When users encounter network failures, they rely on operation and maintenance personnel to determine solutions, resulting in high dependence and low efficiency, which reduces user experience.
The fusion model of the bidirectional encoder representation quantity Bert model of multiple twin transformers is used to predict network fault data, generate a solution, and send it to the user terminal.
It reduces dependence on operation and maintenance personnel, improves the efficiency of solution acquisition, and directly improves user experience.
Smart Images

Figure CN116016122B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a prediction method, device, equipment and storage medium for a network fault solution. Background Art
[0002] With the development of society, users' demand for the network continues to increase, which also increases the probability of network failure during use. In order to handle network failures in a timely manner, operators have also made a lot of efforts.
[0003] In the prior art, when a user encounters a network failure in life or work, the user promptly informs the corresponding operation and maintenance personnel of the network failure situation, and then the operation and maintenance personnel determine the corresponding solution to the network failure based on the network failure situation, and then inform the user how to solve it. Among them, for complex network failure situations, the operation and maintenance personnel may need to determine the corresponding solution through offline survey.
[0004] It can be seen that in the prior art, when users encounter network failures, they rely on the expertise of the operation and maintenance personnel to find solutions and then take corresponding measures, so users are highly dependent on the operation and maintenance personnel; at the same time, since the operation and maintenance personnel need to spend a lot of time in finding solutions, their efficiency is low, which will also reduce the user's experience of using the network. Summary of the invention
[0005] The present application provides a prediction method, device, equipment and storage medium for a network fault solution, which is used to solve the problem that users are highly dependent on operation and maintenance personnel, and that operation and maintenance personnel need to spend a lot of time and have low efficiency when looking for solutions.
[0006] In a first aspect, the present application provides a method for predicting a network fault solution, the method comprising:
[0007] Receiving target network fault data corresponding to the target network sent by the user terminal;
[0008] A solution prediction model that has been trained to convergence is used to predict a solution of a target network according to the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder characterization quantity Bert model of multiple twin converters;
[0009] The target solution is sent to the user terminal to instruct the user terminal to display the target solution.
[0010] In one embodiment, the solution prediction model that has been trained to convergence includes multiple twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are parameters of the Bert model regarding the capture features of semantic granularity;
[0011] The method of using the solution prediction model that has been trained to convergence to predict the solution of the target network according to the target network fault data to obtain the target solution includes:
[0012] Inputting the target network fault data into each of the twin Bert models that have been trained to convergence;
[0013] Using each of the twin Bert models that have been trained to convergence to perform feature extraction of corresponding semantic granularity on the target network fault data, so as to obtain a corresponding network fault feature vector;
[0014] A solution to a target network is predicted according to the plurality of network fault feature vectors to obtain a target solution.
[0015] In one embodiment, the solution prediction model that has been trained to convergence further includes a linear layer; the linear layer includes a preset prediction label formula;
[0016] The method of predicting a solution of a target network according to a plurality of network fault feature vectors to obtain a target solution includes:
[0017] Calculate a network fault fusion feature vector based on a network fault weight formula and a plurality of the network fault feature vectors;
[0018] Inputting the network fault fusion feature vector into the preset prediction label formula to calculate the target prediction label value;
[0019] Determine a corresponding target prediction label range based on the target prediction label value;
[0020] A corresponding target solution is determined based on the target prediction label range.
[0021] In one embodiment, determining a corresponding target solution based on the target prediction label range includes:
[0022] Obtaining a mapping relationship between a pre-stored preset prediction tag range and its corresponding solution;
[0023] In response to the target prediction label range being consistent with any preset prediction label range in the mapping relationship, a solution corresponding to the consistent preset prediction label range is determined as a target solution.
[0024] In one embodiment, before predicting the solution of the target network according to the target network fault data using the solution prediction model that has been trained to convergence, the method further includes:
[0025] Acquire a training sample set; the network fault data in the training sample set is derived from historical network fault data sent by a user terminal and network fault data in an expert experience knowledge base; the training sample set includes a plurality of network fault data and a predicted label value of a solution corresponding to each network fault data;
[0026] Using the training sample set to train multiple twin preset Bert models;
[0027] Multiple twin Bert models that meet preset training convergence conditions are determined as multiple twin Bert models that have been trained to convergence.
[0028] In one embodiment, after determining the multiple twin Bert models that meet the preset training convergence condition as the multiple twin Bert models that have been trained to convergence, the method further includes:
[0029] Constructing a fusion model of multiple twin Bert models based on the multiple twin Bert models that have been trained to convergence and the linear layer;
[0030] The fusion model of the multiple twin Bert models is determined as a solution prediction model that has been trained to convergence.
[0031] In one embodiment, the method further comprises:
[0032] Acquire a network fault update data set; the network fault update data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base; the network fault update data set includes multiple network fault update data and predicted label values of solutions corresponding to each network fault update data;
[0033] Using the network fault update data set to perform update training on multiple twin BERT models that have been trained to convergence;
[0034] Determine multiple twin Bert models that meet preset update training conditions as multiple updated twin Bert models that have been trained to convergence;
[0035] Constructing a fusion model of multiple updated twin Bert models based on the multiple updated twin Bert models that have been trained to convergence and the linear layer;
[0036] The fusion model of the multiple updated twin Bert models is determined as the latest solution prediction model that has been trained to convergence.
[0037] In a second aspect, the present application provides a prediction device for a network fault solution, the device comprising:
[0038] A receiving module, used for receiving target network fault data corresponding to the target network sent by the user terminal;
[0039] A prediction module, used to predict the solution of the target network according to the target network fault data using a solution prediction model that has been trained to convergence, so as to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder characterization quantity Bert model of multiple twin converters;
[0040] The sending module is used to send the target solution to the user terminal to instruct the user terminal to display the target solution.
[0041] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0042] The memory stores computer-executable instructions;
[0043] The processor executes the computer-executable instructions stored in the memory to implement the method as described in the first aspect or any one of the embodiments.
[0044] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect or any one of the methods.
[0045] The present application provides a prediction method, device, equipment and storage medium for a network fault solution, which specifically include: receiving target network fault data corresponding to the target network sent by a user terminal; using a solution prediction model that has been trained to convergence to predict the solution of the target network based on the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder characterization quantity Bert model of multiple twin converters; sending the target solution to the user terminal to instruct the user terminal to display the target solution. The prediction device of the network fault solution of the present application (hereinafter referred to as the prediction device) first receives the target network fault data corresponding to the target network sent by the user terminal, and then the prediction device uses the solution prediction model that has been trained to convergence to predict the target network solution. Since the solution prediction model is pre-trained to convergence, it is a better prediction model. At the same time, since the solution prediction model that has been trained to convergence is a fusion model of multiple twin Bert models, the target network fault data is predicted based on multiple twin Bert models, so the target solution finally predicted is more accurate; compared with the prior art, since the present application no longer relies on operation and maintenance personnel to find solutions to target network fault data, the dependence on operation and maintenance personnel is reduced; further, the operation and maintenance personnel need to spend a lot of time when looking for the target solution, so the efficiency is low, while the present application does not rely on the operation and maintenance personnel, and the target solution can be predicted with the help of the solution prediction model that has been trained to convergence, so it can save time and improve the efficiency of finding solutions, and users of the present application can directly obtain the target solution themselves, further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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.
[0047] Figure 1 An application scenario diagram of a prediction method for a network fault solution provided in this application;
[0048] Figure 2 A flowchart of a method for predicting a network fault solution provided in Example 1 of the present application;
[0049] Figure 3 A flowchart of a method for predicting a network fault solution provided in Embodiment 2 of the present application;
[0050] Figure 4 A flowchart of a method for predicting a network fault solution provided in Embodiment 3 of the present application;
[0051] Figure 5 A flowchart of a method for predicting a network fault solution provided in Embodiment 4 of the present application;
[0052] Figure 6 A schematic diagram of a solution prediction model that has been trained to convergence provided in Embodiment 4 of the present application;
[0053] Figure 7 A flowchart of a method for predicting a network fault solution provided in Embodiment 5 of the present application;
[0054] Figure 8 A schematic diagram of a prediction device for a network fault solution provided in Example 6 of the present application;
[0055] Fig. 9 A schematic diagram of the structure of an electronic device provided in Example 7 of the present application.
[0056] 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
[0057] 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.
[0058] First, the terms involved in this application are explained:
[0059] Bidirectional Encoder Representation from Transformers (Bert): refers to an unsupervised pre-trained language model for natural language processing tasks.
[0060] In the prior art, when a user encounters a network failure in life or work, the user promptly informs the corresponding operation and maintenance personnel of the network failure situation, and then the operation and maintenance personnel determine the corresponding solution to the network failure based on the network failure situation, and then inform the user how to solve it. Among them, for complex network failure situations, the operation and maintenance personnel may need to determine the corresponding solution through offline survey.
[0061] It can be seen that in the prior art, when users encounter network failures, they rely on operation and maintenance personnel to find solutions and then take corresponding measures, so users are highly dependent on operation and maintenance personnel; at the same time, since operation and maintenance personnel need to spend a lot of time to find solutions, their efficiency is low, which will also reduce the user's experience of using the network.
[0062] In order to solve the defects of the prior art, the inventor of this solution has designed a new solution after creative research. This solution provides a prediction method for a network fault solution. In order to solve the problem that users are highly dependent on operation and maintenance personnel, the prediction device of this solution receives the target network fault data sent by the user terminal, and then predicts the target network fault data through the solution prediction model that has been trained to convergence to obtain the solution of the target network. Since this solution uses the solution prediction model that has been trained to convergence to obtain the solution, it does not rely on the operation and maintenance personnel to find the target solution, thereby reducing the dependence on the operation and maintenance personnel; in order to solve the problem that the operation and maintenance personnel need to spend time to find the target solution, which is inefficient, this solution obtains the target solution through a machine instead of manually, so it can save time and improve the efficiency of obtaining the target solution. This solution sends the obtained target solution directly to the user terminal, so that the user can make corresponding processing based on the target solution displayed by the user terminal. Since the target solution can be displayed through the user terminal, the user can directly obtain it, thereby improving the user experience.
[0063] The following introduces the application scenarios of the prediction method, device, equipment and storage medium for a network fault solution provided by the present application.
[0064] Figure 1 This is an application scenario diagram of a prediction method for a network fault solution provided in this application. Figure 1 As shown, the application scenario diagram includes a user terminal 101 and an electronic device 102, wherein the electronic device 102 includes a prediction device (hereinafter referred to as a prediction device) 103 for a network fault solution, and the prediction device 103 includes a prediction model 104 of a solution that has been trained to convergence.
[0065] The user terminal 101 is connected to the electronic device 102 for communication, and the communication connection may be a wired connection or a wireless connection.
[0066] Specifically, the user inputs the target network fault data corresponding to the target network through the user terminal 101 , and then the user terminal 101 sends the target network fault data to the electronic device 102 , and the electronic device 102 transmits the target network fault data to the prediction device 103 .
[0067] Furthermore, the prediction device 103 inputs the target network fault data into the solution prediction model 104 that has been trained to convergence, and then uses the solution prediction model 104 that has been trained to convergence to predict the target fault data to obtain a target solution.
[0068] Further, the prediction device 103 sends the target solution to the user terminal 101 to instruct the user terminal 101 to display the target solution.
[0069] The method for predicting network fault solutions provided in this application is intended to solve the above technical problems in the prior art.
[0070] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below 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 conjunction with the accompanying drawings.
[0071] Embodiment 1
[0072] Figure 2 The flowchart of a prediction method for a network fault solution provided in the first embodiment of the present application is shown in FIG. The execution subject of the method in this embodiment is a prediction device for a network fault solution (hereinafter referred to as a prediction device), such as Figure 2 As shown, the specific steps are as follows.
[0073] S201, receiving target network fault data corresponding to a target network sent by a user terminal.
[0074] The user terminal is a device used by the user, which can be a mobile phone or a computer, etc., and is not limited here.
[0075] The target network is the network used by the user in society or work.
[0076] The target network fault data is a description of a situation in which a fault occurs in the target network.
[0077] Specifically, the user inputs the target network fault data in the user terminal, and then sends the target network fault data to the prediction device, which receives the target network fault data.
[0078] Wherein, the user terminal may be loaded with a network fault application software, and the user opens the network fault application software and inputs the target network fault data.
[0079] S202, using a solution prediction model that has been trained to convergence to predict the solution of the target network based on the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of pre-built bidirectional encoder characterization quantity Bert models of multiple twin converters.
[0080] Among them, the solution prediction model that has been trained to convergence is a fusion model of multiple pre-built twin BERT models.
[0081] Specifically, the target network fault data is input into a solution prediction model that has been trained to convergence, and then the solution prediction model that has been trained to convergence predicts a target solution through a semantic description of the target network fault data.
[0082] S203: Send the target solution to the user terminal to instruct the user terminal to display the target solution.
[0083] Specifically, the prediction device sends the target solution to the user terminal via a wired or wireless method, so that the target solution is displayed in the user terminal.
[0084] In one embodiment, when the target solution is sent to the user terminal, a reminder message is also generated to remind the user to view the target solution through the user terminal.
[0085] The present embodiment provides a method for predicting a network fault solution, specifically including: receiving target network fault data corresponding to the target network sent by a user terminal; using a solution prediction model that has been trained to convergence to predict a solution to the target network based on the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder characterization quantity Bert model of multiple twin converters; and sending the target solution to the user terminal to instruct the user terminal to display the target solution. The prediction device of the network fault solution of this embodiment (hereinafter referred to as the prediction device) first receives the target network fault data corresponding to the target network sent by the user terminal, and then the prediction device uses the solution prediction model that has been trained to convergence to predict the target network solution. Since the solution prediction model is pre-trained to convergence, it is a better prediction model. At the same time, since the solution prediction model that has been trained to convergence is a fusion model of multiple twin Bert models, the target network fault data is predicted based on multiple twin Bert models, so the target solution finally predicted is more accurate; compared with the prior art, since the present application no longer relies on operation and maintenance personnel to find solutions to target network fault data, the dependence on operation and maintenance personnel is reduced; further, the operation and maintenance personnel need to spend a lot of time when looking for the target solution, so the efficiency is low, while the present application does not rely on the operation and maintenance personnel, and the target solution can be predicted with the help of the solution prediction model that has been trained to convergence, so it can save time and improve the efficiency of finding solutions, and users of the present application can directly obtain the target solution by themselves, further improving the user experience.
[0086] Embodiment 2
[0087] This embodiment is a further refinement of the above-mentioned embodiment 1. In this embodiment, the solution prediction model that has been trained to convergence includes multiple twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are the parameters of the Bert model regarding the capture features of semantic granularity.
[0088] Among them, the configuration parameters can be Transformers with different numbers of layers and the number of hidden layers.
[0089] Figure 3 A flowchart of a method for predicting a network fault solution provided in Example 2 of the present application. This embodiment is an optional method for obtaining a target solution by using a solution prediction model that has been trained to convergence to predict a target network solution based on target network fault data, such as Figure 3 As shown, the specific steps are as follows.
[0090] S301, input the target network fault data into each twin Bert model that has been trained to convergence.
[0091] Specifically, the prediction device inputs the target network fault data in parallel into the twin BERT model that is trained to convergence.
[0092] S302 , respectively use the twin Bert models that have been trained to convergence to perform feature extraction of corresponding semantic granularity on the target network fault data to obtain the corresponding network fault feature vector.
[0093] Among them, semantic granularity refers to whether the text is segmented and whether the input features of a sentence are represented by words or characters.
[0094] Among them, the network fault feature vector is a vector of fixed length.
[0095] Specifically, each twin Bert model that has been trained to convergence performs feature extraction of the corresponding semantic granularity on the same network fault data. Due to the inconsistency of the semantic granularity, the obtained network fault feature vectors are also inconsistent, and then the corresponding network fault feature vectors are obtained respectively.
[0096] S303: predicting a solution to the target network according to the multiple network fault feature vectors to obtain a target solution.
[0097] Specifically, a target solution is predicted based on the characteristics of multiple network fault feature vectors.
[0098] The present embodiment provides a prediction method for a network fault solution. In the present embodiment, the solution prediction model that has been trained to convergence includes multiple twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are parameters of the Bert model regarding the capture features of semantic granularity. When using the solution prediction model that has been trained to convergence to predict the solution of the target network based on the target network fault data to obtain the target solution, it specifically includes: inputting the target network fault data into each twin Bert model that has been trained to convergence; using each twin Bert model that has been trained to convergence to extract features of the corresponding semantic granularity from the target network fault data to obtain the corresponding network fault feature vector; predicting the solution of the target network based on multiple network fault feature vectors to obtain the target solution. This embodiment uses multiple twin Bert models that have been trained to convergence to predict network fault data. Since the Bert model has been trained to convergence, it is a better model. At the same time, this embodiment uses multiple twin Bert models that have been trained to convergence. Different twin Bert models have different levels of configuration parameters. Since the configuration parameters are the feature parameters of the Bert model regarding the semantic granularity, multiple twin Bert models that have been trained to convergence can be used to obtain their respective corresponding network fault feature vectors. The network fault feature vector is accurate and more comprehensive considering multiple configuration parameters. Then, the target solution is predicted based on the multiple network fault feature vectors. Since the network fault feature vector is both accurate and comprehensive, the obtained target solution is also accurate.
[0099] Embodiment 3
[0100] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the solution prediction model that has been trained to convergence also includes a linear layer; the linear layer includes a preset prediction label formula.
[0101] The preset prediction label formula may be a Softmax function. The preset prediction label formula is a prediction label formula that has been trained to convergence. During the training process, the parameters in the prediction label formula are trained, and after reaching the convergence condition, the final preset prediction label formula is obtained.
[0102] Figure 4 A flowchart of a method for predicting a network fault solution provided in Example 3 of the present application. This embodiment is a further refinement of any of the above embodiments. This embodiment predicts a solution to a target network based on multiple network fault feature vectors to obtain an optional method of a target solution, such as Figure 4 As shown, the specific steps are as follows.
[0103] S401, calculating a network fault fusion feature vector based on a network fault weight formula and multiple network fault feature vectors.
[0104] The network fault weight formula is preset, wherein the weight can be configured according to own needs or the importance of each network fault feature vector, and is not limited here.
[0105] In one approach, the network fault weight formula can be shown as formula (1):
[0106] (1) V = ω 1 V 1 +ω 2 V 2 +……+ω i V i
[0107] Where V represents the network fault fusion feature vector, Vi represents the feature vector of each network fault, i represents the number of twin Bert models, ω i Represents the corresponding weight parameters.
[0108] Specifically, the prediction device inputs multiple network fault feature vectors into a network fault weight formula to calculate a network fault fusion feature vector, wherein the network fault fusion feature vector is a fixed-length vector.
[0109] S402: Input the network fault fusion feature vector into a preset prediction label formula to calculate a target prediction label value.
[0110] In one approach, the preset prediction label formula can be shown as formula (2):
[0111] (2)Y=f(WV+b)
[0112] Where f(V) represents the activation function, which can be a Softmax function, V represents the network fault fusion feature vector, b represents the preset deviation, W represents the weight matrix of the linear layer, and Y represents the output of the linear layer, which is a fixed-length vector, that is, Y = [Y 1 ,...Y m ] T , where Y m are the elements of Y and m is the number of elements.
[0113] Specifically, the network fault fusion feature vector V is input into formula (2) to obtain the output Y of the linear layer, and then the largest element Y is determined from multiple elements of Y max , and use it as the target prediction label value.
[0114] S403: Determine a corresponding target prediction label range based on the target prediction label value.
[0115] The target prediction label range is the range to which the target prediction label value belongs, and the prediction label range can be determined according to the total number of preset solutions.
[0116] Specifically, Y is the output of the Softmax function, Y m The value of is between [0,1], all elements in Y are normalized, and the sum of all elements is equal to 1. Assuming that the total number of preset solutions is n, the interval [0,1] is divided into n interval ranges, each interval range is the prediction label range, and each prediction label range corresponds to the preset solution to which it belongs.
[0117] Exemplarily, assuming that the total number of preset solutions is 5, the interval [0,1] is divided into 5 interval ranges, specifically, [0,0.2], (0.2,0.4], (0.4,0.6], (0.6,0.8], and (0.8,1]. At the same time, each prediction label range corresponds to a preset solution.
[0118] Furthermore, the corresponding target prediction label range is determined according to the target prediction label value. According to the above exemplary example, assuming that the target prediction label value is 0.88, the target prediction label range is determined to be (0.8, 1].
[0119] S404: Determine a corresponding target solution based on the target prediction label range.
[0120] Exemplarily, in the mapping relationship, the target prediction label range (0.8, 1] corresponds to the preset solution 10, and the preset solution 10 is determined as the target solution corresponding to the target prediction label range.
[0121] The present embodiment provides a prediction method for a network fault solution. When predicting a solution of a target network based on multiple network fault feature vectors to obtain a target solution, the method specifically includes: calculating a network fault fusion feature vector based on a network fault weight formula and multiple network fault feature vectors; inputting the network fault fusion feature vector into a preset prediction label formula to calculate a target prediction label value; determining a corresponding target prediction label range based on the target prediction label value; and determining a corresponding target solution based on the target prediction label range. The prediction device of the present embodiment first calculates a network fault fusion feature vector based on a network fault weight formula and multiple network fault feature vectors, and then inputs the network fault fusion feature vector into a preset prediction label formula to calculate a target prediction label value. Since the target prediction label value belongs to a certain target prediction label range, and each target prediction label range corresponds to a solution, the prediction device will determine the target prediction label range based on the target prediction label value, so as to accurately determine the target solution.
[0122] In one embodiment, this method is an optional method for determining a corresponding target solution based on a target prediction label range, and the specific steps are as follows.
[0123] Get the mapping relationship between the pre-stored preset prediction label range and its corresponding solution.
[0124] The corresponding solution may be determined by an experienced expert.
[0125] The mapping relationship may be expressed in a table or other manner, which is not limited here.
[0126] Specifically, the prediction device obtains a mapping relationship between a preset prediction label range and its corresponding solution from its own storage area, and the mapping relationship may include multiple prediction label ranges and corresponding solutions.
[0127] Exemplarily, assuming that the total number of preset solutions is n, the mapping relationship is shown in Table 1 below.
[0128] Table 1: Mapping relationship between preset prediction label ranges and their corresponding solutions
[0129] Preset prediction label range Corresponding solutions [0,1 / n] Solution 1 (1 / n,2 / n] Solution 2 (3 / n,4 / n] Solution 3 …… The solution… (n-1 / n,1] Solution
[0130] In response to the target prediction label range being consistent with any preset prediction label range in the mapping relationship, a solution corresponding to the consistent preset prediction label range is determined as the target solution.
[0131] According to the above illustrative example, the prediction device compares the target prediction label range with the preset prediction label range in Table 1, and finds any preset prediction label range in Table 1 that is consistent with the target prediction label range. For example, if the target prediction label range is (3 / n, 4 / n], then the corresponding preset prediction label range in Table 1 is (3 / n, 4 / n], and then determines that the solution corresponding to the preset prediction label range (3 / n, 4 / n] is solution 3, and thus solution 3 is determined as the target solution.
[0132] When determining the corresponding target solution based on the target prediction label range, this method specifically includes: obtaining a mapping relationship between a pre-stored preset prediction label range and its corresponding solution; in response to the target prediction label range being consistent with any preset prediction label range in the mapping relationship, determining the solution corresponding to the consistent preset prediction label range as the target solution. The prediction device of this embodiment obtains the mapping relationship between the preset prediction label range and its corresponding solution. Since the mapping relationship can accurately reflect the solution corresponding to the preset prediction label range, and then in response to the target prediction label range being consistent with the preset prediction label range in the mapping relationship, the solution corresponding to the consistent preset prediction label range is then determined as the target solution, so that the determined target solution is accurate.
[0133] Embodiment 4
[0134] Figure 5 A flowchart of a method for predicting a network fault solution provided in Embodiment 4 of the present application. This embodiment is a further refinement of any of the above embodiments. This embodiment is an optional method for predicting a target network solution based on target network fault data using a solution prediction model that has been trained to convergence, such as Figure 5 As shown, the specific steps are as follows.
[0135] S501, obtaining a training sample set; the network fault data in the training sample set comes from the historical network fault data sent by the user terminal and the network fault data in the expert experience knowledge base; the training sample set includes multiple network fault data and the predicted label value of the solution corresponding to each network fault data.
[0136] The historical network fault data refers to the data previously sent by the user terminal, and the expert experience knowledge base refers to the data summarized by the experts of the operator.
[0137] The predicted label values of the solutions corresponding to the network fault data included in the training sample set can be pre-processed with artificially set label values. The predicted label values of the solutions corresponding to the network fault data can reflect the solutions to the network fault data.
[0138] Specifically, the prediction device obtains network fault data from the user terminal and the expert experience knowledge base, and then displays the network fault data to the expert through a display. The expert inputs the predicted label value of the set solution and sends it to the prediction device. Then, the network fault data set includes multiple network fault data and the predicted label value of the solution corresponding to each network fault data.
[0139] S502, use the training sample set to train multiple twin preset Bert models.
[0140] Specifically, all network fault data in the training sample set and the predicted label values of the solutions corresponding to each network fault data are input into multiple twin preset Bert models for training, so that the preset Bert model optimizes the model parameters based on the training sample set.
[0141] S503: Determine multiple twin Bert models that meet preset training convergence conditions as multiple twin Bert models that have been trained to convergence.
[0142] When the preset training convergence conditions are met, multiple twin BERT models that have been trained to convergence are obtained.
[0143] The present embodiment provides a prediction method for a network fault solution. Before using a solution prediction model that has been trained to convergence to predict a solution for a target network based on target network fault data, the method specifically includes: obtaining a training sample set; the network fault data in the training sample set comes from historical network fault data sent by a user terminal and network fault data in an expert experience knowledge base; the training sample set contains multiple network fault data and predicted label values of solutions corresponding to each network fault data; the training sample set is used to train multiple twin preset Bert models; and multiple twin Bert models that meet preset training convergence conditions are determined as multiple twin Bert models that have been trained to convergence. The prediction device of this embodiment first obtains a training sample set, and then trains multiple twin preset Bert models based on the training sample set, and then determines the twin Bert models that meet the training convergence conditions as multiple twin Bert models that have been trained to convergence. Since the network fault data in the training sample set comes from historical network fault data sent by the user terminal and network fault data in the expert experience knowledge base, and the training sample set also contains the predicted label value of the solution corresponding to each network fault data, the training sample set has a wide and comprehensive source, and the data conforms to the actual situation of the user, so the obtained twin Bert model that has been trained to convergence is better, not only professional, but also conforms to the actual situation of the user.
[0144] In one method, this method is an optional method after determining multiple twin Bert models that meet preset training convergence conditions as multiple twin Bert models that have been trained to convergence. The specific content is as follows.
[0145] A fusion model of multiple twin Bert models is constructed based on multiple twin Bert models that have been trained to convergence and linear layers.
[0146] The fusion model of multiple twin BERT models is determined as the solution prediction model that has been trained to convergence.
[0147] Figure 6A schematic diagram of a solution prediction model that has been trained to convergence is provided in Example 4 of the present application. Figure 6 As shown, the multiple twin Bert models that have been trained to convergence are Bert model 1, Bert model 2, Bert model 3 and Bert model 4. The multiple twin Bert models that have been trained to convergence and the linear layer construct a fusion model, which is a solution prediction model that has been trained to convergence. Among them, the configuration parameters of the multiple twin Bert models that have been trained to convergence are different.
[0148] After determining multiple twin Bert models that meet preset training convergence conditions as multiple twin Bert models that have been trained to convergence, this method specifically includes: constructing a fusion model of multiple twin Bert models based on multiple twin Bert models that have been trained to convergence and linear layers; and determining the fusion model of multiple twin Bert models as a solution prediction model that has been trained to convergence. The prediction device constructs a fusion model of multiple twin Bert models from multiple twin Bert models that have been trained to convergence and linear layers. The fusion model is a solution prediction model that has been trained to convergence. Since the solution prediction model that has been trained to convergence contains multiple twin Bert models that have been trained to convergence and linear layers, the solution prediction model is a better model.
[0149] Embodiment 5
[0150] Figure 7 A flowchart of a prediction method for a network fault solution provided in Embodiment 5 of the present application is shown. This embodiment is a further refinement of any of the above embodiments, such as Figure 7 As shown, the specific steps are as follows.
[0151] S701, obtain a network fault update data set; the network fault update data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base; the network fault update data set includes multiple network fault update data and the predicted label value of the solution corresponding to each network fault update data.
[0152] Specifically, the prediction device obtains network fault update data from the user terminal and the expert experience knowledge base, and then the prediction device displays the network fault update data to the expert through a display. The expert inputs the predicted label value of the set solution and sends it to the prediction device, and then the network fault update data set includes multiple network fault update data and the predicted label value of the solution corresponding to each network fault update data.
[0153] S702, using a network fault update data set to update the training of multiple twin BERT models that have been trained to convergence.
[0154] Specifically, all network fault update data in the network fault update data set and the predicted label values of the solutions corresponding to each network fault update data are input into the twin Bert model that has been trained to convergence for update training, so as to further optimize the model parameters in the twin Bert model that has been trained to convergence.
[0155] S703, determine multiple twin Bert models that meet preset update training conditions as multiple updated twin Bert models that have been trained to convergence.
[0156] Among them, the preset update training condition is a condition pre-set specifically for update training.
[0157] Specifically, when multiple twin Bert models meet the preset update training conditions, the twin Bert model that has been trained to convergence will be updated, and the model parameters contained therein will be more optimized.
[0158] Furthermore, the prediction device determines multiple twin Bert models that meet preset update training conditions as multiple updated twin Bert models that have been trained to convergence.
[0159] S704, constructing a fusion model of multiple updated twin Bert models based on multiple updated twin Bert models that have been trained to convergence and linear layers.
[0160] Specifically, the prediction device will reselect multiple updated twin Bert models that have been trained to convergence and the linear layer to construct a fusion model of multiple updated twin Bert models. Therefore, the fusion model of the updated twin Bert model finally obtained is the most recent and more in line with actual needs.
[0161] In one approach, the prediction device can also update and train the linear layer to obtain a better preset prediction label formula.
[0162] S705, determining the fusion model of multiple updated twin Bert models as the latest solution prediction model that has been trained to convergence.
[0163] The present embodiment provides a prediction method for a network fault solution, which specifically also includes: obtaining a network fault update data set; the network fault update data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base; the network fault update data set contains multiple network fault update data and the predicted label value of the solution corresponding to each network fault update data; using the network fault update data set to update and train multiple twin Bert models that have been trained to convergence; determining multiple twin Bert models that meet preset update training conditions as multiple updated twin Bert models that have been trained to convergence; constructing a fusion model of multiple updated twin Bert models based on multiple updated twin Bert models that have been trained to convergence and a linear layer; determining the fusion model of multiple updated twin Bert models as the latest solution prediction model that has been trained to convergence. The prediction device of this embodiment can obtain a network fault update data set, and thus perform update training based on the network fault update data contained in the network update data set and the predicted label value of the solution corresponding to each network fault update data, so as to construct the latest solution prediction model that has been trained to convergence. Since the update training is performed, the latest solution prediction model that has been trained to convergence can be obtained, which is more in line with the actual situation. At the same time, since the network fault data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base, the latest solution prediction model that has been trained to convergence is also more comprehensive.
[0164] Embodiment 6
[0165] The following is an embodiment of the device of the present application. Figure 8 A schematic diagram of a prediction device for a network fault solution provided in Example 6 of the present application, such as Figure 8 As shown, the device 800 includes the following modules.
[0166] The receiving module 801 is used to receive target network fault data corresponding to the target network sent by the user terminal;
[0167] A prediction module 802 is used to predict the solution of the target network according to the target network fault data using a solution prediction model that has been trained to convergence, so as to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder representation quantity Bert model of multiple twin converters;
[0168] The sending module 803 is used to send the target solution to the user terminal to instruct the user terminal to display the target solution.
[0169] In one embodiment, the solution prediction model that has been trained to convergence includes multiple twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are parameters of the Bert model regarding the capture features of semantic granularity; the prediction module 802, when using the solution prediction model that has been trained to convergence to predict the solution of the target network according to the target network fault data to obtain the target solution, is specifically used to:
[0170] The target network fault data is respectively input into each twin Bert model that has been trained to convergence; each twin Bert model that has been trained to convergence is used to extract features of the target network fault data at the corresponding semantic granularity to obtain the corresponding network fault feature vector; the solution of the target network is predicted based on multiple network fault feature vectors to obtain the target solution.
[0171] In one embodiment, the solution prediction model that has been trained to convergence also includes a linear layer; the linear layer includes a preset prediction label formula; the prediction module 802, when predicting a solution of the target network according to multiple network fault feature vectors to obtain a target solution, is specifically used to:
[0172] A network fault fusion feature vector is calculated based on a network fault weight formula and multiple network fault feature vectors; the network fault fusion feature vector is input into a preset prediction label formula to calculate a target prediction label value;
[0173] Based on the target prediction label value, the corresponding target prediction label range is determined; based on the target prediction label range, the corresponding target solution is determined.
[0174] In one embodiment, when determining a corresponding target solution based on a target prediction tag range, the prediction module 802 is specifically configured to:
[0175] Obtain a mapping relationship between a pre-stored preset prediction label range and its corresponding solution; in response to the target prediction label range being consistent with any preset prediction label range in the mapping relationship, determine the solution corresponding to the consistent preset prediction label range as the target solution.
[0176] In one embodiment, before using a solution prediction model that has been trained to convergence to predict a solution to a target network based on target network fault data, this embodiment provides a network fault solution prediction device, further comprising: an acquisition module, a training module, and a determination module.
[0177] Among them, the acquisition module is used to obtain the training sample set; the network fault data in the training sample set comes from the historical network fault data sent by the user terminal and the network fault data in the expert experience knowledge base; the training sample set contains multiple network fault data and the predicted label value of the solution corresponding to each network fault data; the training module is used to use the training sample set to train multiple twin preset Bert models; the determination module is used to determine multiple twin Bert models that meet the preset training convergence conditions as multiple twin Bert models that have been trained to convergence.
[0178] In one method, after determining multiple twin Bert models that meet preset training convergence conditions as multiple twin Bert models that have been trained to convergence, this embodiment provides a prediction device for a network fault solution, which also includes: a construction module.
[0179] Among them, the construction module is used to construct a fusion model of multiple twin Bert models based on multiple twin Bert models that have been trained to convergence and linear layers; the determination module is also used to determine the fusion model of multiple twin Bert models as a solution prediction model that has been trained to convergence.
[0180] In one embodiment, this embodiment provides a prediction device for a network failure solution.
[0181] Among them, the acquisition module is also used to obtain a network fault update data set; the network fault update data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base; the network fault update data set contains multiple network fault update data and the predicted label value of the solution corresponding to each network fault update data; the training module is also used to use the network fault update data set to update and train multiple twin Bert models that have been trained to convergence; the determination module is also used to determine multiple twin Bert models that meet the preset update training conditions as multiple updated twin Bert models that have been trained to convergence; the construction module is also used to construct a fusion model of multiple updated twin Bert models based on multiple updated twin Bert models that have been trained to convergence and a linear layer; the determination module is also used to determine the fusion model of multiple updated twin Bert models as the latest solution prediction model that has been trained to convergence.
[0182] Embodiment 7
[0183] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in Embodiment 7 of the present application. Fig. 9As shown, the electronic device 900 may include: a processor 901, and a memory 902 in communication with the processor 901. The memory 902 stores computer-executable instructions; the processor 901 executes the computer-executable instructions stored in the memory 902 to implement any one of the method embodiments of the first to fifth embodiments described above, and the specific implementation methods and technical effects are similar, which will not be repeated here.
[0184] In this embodiment, the memory 902 and the processor 901 are connected via a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0185] Embodiment 8
[0186] The present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement any one of the method embodiments of Embodiments 1 to 5 above. The specific implementation methods and technical effects are similar and will not be repeated here.
[0187] 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.
[0188] 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 method for predicting a network fault solution, characterized in that: The method comprises: Receiving target network fault data corresponding to the target network sent by the user terminal; A solution prediction model that has been trained to convergence is used to predict a solution of a target network according to the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a pre-built bidirectional encoder characterization quantity Bert model of multiple twin converters; sending the target solution to a user terminal to instruct the user terminal to display the target solution; The solution prediction model that has been trained to convergence includes multiple twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are parameters of the Bert model regarding the capture features of semantic granularity; The method of using the solution prediction model that has been trained to convergence to predict the solution of the target network according to the target network fault data to obtain the target solution includes: Inputting the target network fault data into each of the twin Bert models that have been trained to convergence; Using each of the twin Bert models that have been trained to convergence to perform feature extraction of corresponding semantic granularity on the target network fault data, so as to obtain a corresponding network fault feature vector; Predicting a solution to a target network according to a plurality of network fault feature vectors to obtain a target solution; The solution prediction model that has been trained to convergence also includes a linear layer; the linear layer includes a preset prediction label formula; The method of predicting a solution of a target network according to a plurality of network fault feature vectors to obtain a target solution includes: Calculate a network fault fusion feature vector based on a network fault weight formula and a plurality of the network fault feature vectors; Inputting the network fault fusion feature vector into the preset prediction label formula to calculate the target prediction label value; Determine a corresponding target prediction label range based on the target prediction label value; A corresponding target solution is determined based on the target prediction label range.
2. The method according to claim 1, characterized in that The determining a corresponding target solution based on the target prediction label range includes: Obtaining a mapping relationship between a pre-stored preset prediction tag range and its corresponding solution; In response to the target prediction label range being consistent with any preset prediction label range in the mapping relationship, a solution corresponding to the consistent preset prediction label range is determined as a target solution.
3. The method according to any one of claims 1 to 2, characterized in that: Before predicting the solution of the target network according to the target network fault data using the solution prediction model that has been trained to convergence, the method further includes: Acquire a training sample set; the network fault data in the training sample set is derived from historical network fault data sent by a user terminal and network fault data in an expert experience knowledge base; the training sample set includes a plurality of network fault data and a predicted label value of a solution corresponding to each network fault data; Using the training sample set to train multiple twin preset Bert models; Multiple twin Bert models that meet preset training convergence conditions are determined as multiple twin Bert models that have been trained to convergence.
4. The method according to claim 3, characterized in that: After determining the multiple twin Bert models that meet the preset training convergence conditions as multiple twin Bert models that have been trained to convergence, the method further includes: Constructing a fusion model of multiple twin Bert models based on the multiple twin Bert models that have been trained to convergence and the linear layer; The fusion model of the multiple twin Bert models is determined as a solution prediction model that has been trained to convergence.
5. The method according to claim 1, characterized in that The method further comprises: Acquire a network fault update data set; the network fault update data in the network fault update data set comes from the network fault update data sent by the user terminal and the network fault update data in the expert experience knowledge base; the network fault update data set includes multiple network fault update data and predicted label values of solutions corresponding to each network fault update data; Using the network fault update data set to perform update training on multiple twin BERT models that have been trained to convergence; Determine multiple twin Bert models that meet preset update training conditions as multiple updated twin Bert models that have been trained to convergence; Constructing a fusion model of multiple updated twin Bert models based on the multiple updated twin Bert models that have been trained to convergence and the linear layer; The fusion model of the multiple updated twin Bert models is determined as the latest solution prediction model that has been trained to convergence.
6. A prediction device for a network fault solution, characterized in that: The device comprises: A receiving module, used for receiving target network fault data corresponding to the target network sent by the user terminal; A prediction module, used to use a solution prediction model that has been trained to convergence to predict the solution of the target network according to the target network fault data to obtain a target solution; the solution prediction model that has been trained to convergence is a fusion model of a plurality of pre-built bidirectional encoder characterization Bert models of twin transformers; the solution prediction model that has been trained to convergence includes a plurality of twin Bert models that have been trained to convergence; different twin Bert models have different levels of configuration parameters; the configuration parameters are parameters of the Bert model regarding the capture features of semantic granularity; the solution prediction model that has been trained to convergence also includes a linear layer; the linear layer includes a preset prediction label formula; A sending module, used for sending the target solution to a user terminal to instruct the user terminal to display the target solution; The prediction module is specifically used to input the target network fault data into each of the twin Bert models that have been trained to convergence; respectively use each of the twin Bert models that have been trained to convergence to perform feature extraction of corresponding semantic granularity on the target network fault data to obtain a corresponding network fault feature vector; predict the solution of the target network according to the multiple network fault feature vectors to obtain a target solution; the solution prediction model that has been trained to convergence also includes a linear layer; the linear layer includes a preset prediction label formula; The prediction module is also specifically used to calculate a network fault fusion feature vector based on a network fault weight formula and multiple network fault feature vectors; input the network fault fusion feature vector into the preset prediction label formula to calculate a target prediction label value; determine a corresponding target prediction label range based on the target prediction label value; and determine a corresponding target solution based on the target prediction label range.
7. An electronic device comprising: 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 method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
