A network indicator early warning method and system
Through the training and cross-validation of network performance indicators through multiple machine learning algorithms, combined with the ensemble learning method, a high-precision alarm prediction model is obtained, which solves the problem of low network alarm efficiency and accuracy in the existing technology and achieves rapid response and accuracy. alarm prediction.
Patent Information
- Application Number
- CN202010568192.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-19
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2040-06-19
AI Technical Summary
In the existing technology, network alarms require manual configuration, resulting in low accuracy, low efficiency, lack of real-time alarms, and prolonged repair time for maintenance personnel.
Multiple machine learning algorithms are used to train network performance indicators, and a high-precision alarm prediction model is obtained through cross-validation and integrated learning to achieve automatic learning and rapid response.
It improves the accuracy and efficiency of network alarms, allows maintenance personnel to quickly identify effective alarm information, and shortens emergency repair time.
Smart Images

Figure CN113824580B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a network indicator early warning method and system. Background Art
[0002] With the development of technology, network structure has become more and more complex, and the increase in the number of people accessing the network has led to increased network load pressure.
[0003] In the network maintenance scenarios of operators, the operator's alarm thresholds generally need to be manually configured. The configuration process is complicated, the learning threshold is high, and it takes a lot of manpower and time. The alarm lacks real-time performance and can only be issued a long time after the alarm occurs, which prolongs the repair time for maintenance personnel.
[0004] Therefore, how to improve the efficiency and accuracy of network early warning has become an urgent problem to be solved in network maintenance. Summary of the invention
[0005] The embodiment of the present invention provides a network indicator early warning method and system, which are used to solve the defects in the prior art that network alarms need to be manually configured, resulting in low accuracy and low efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a network indicator early warning method, comprising:
[0007] Obtain the network data set to be predicted;
[0008] The network data set to be predicted is input into a pre-trained alarm prediction model to obtain the alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is trained based on the network indicator sample set data and the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by cross-validation method and the optimal output model among several machine learning methods is obtained by ensemble learning method.
[0009] Furthermore, the obtaining of the network data set to be predicted specifically includes:
[0010] Collecting a number of preset network performance indicators at preset time intervals within a preset time period;
[0011] The plurality of preset network performance indicators are used as the network data set to be predicted.
[0012] Furthermore, the alarm prediction model is obtained by the following steps:
[0013] Acquire the network indicator sample set data according to a preset sample collection period, and preprocess the network indicator sample set data to obtain preprocessed sample set data;
[0014] Classifying the pre-processed sample set data according to the network alarm standard template to obtain the classification label;
[0015] Storing the preprocessed sample set data marked with corresponding classification labels in several folders to generate several data sets for training;
[0016] Obtain several machine learning algorithms as initial model sets;
[0017] Inputting the plurality of data sets into the initial model set for training to obtain an initial training model set;
[0018] The cross-validation method is used to verify the output accuracy of the initial training model set, and the model with the highest accuracy in the initial training model set is selected as the alarm prediction model according to the ensemble learning method.
[0019] Further, the acquiring the network indicator sample set data according to a preset sample collection period, and preprocessing the network indicator sample set data to obtain preprocessed sample set data specifically includes:
[0020] Adjust the preset sample collection period according to the network prediction accuracy requirement, and collect the network performance indicator data set within the preset sample collection period;
[0021] The network performance indicator data set is cleaned and output according to a preset format to obtain the preprocessed sample set data.
[0022] Furthermore, the several machine learning algorithms include logistic regression, XGboost, GBDT, random forest and SVM.
[0023] Further, the using the cross-validation method to verify the output accuracy of the initial training model set specifically includes:
[0024] The plurality of data sets are randomly divided into K sets, of which K-1 sets are used as training sets and the remaining set is used as a test set;
[0025] Repeat the training K times to obtain K models and K performance evaluation results;
[0026] Based on the K performance evaluation results, calculating an average performance evaluation result;
[0027] The model is retrained on the several data sets, and tested with independent test sets in the K sets to obtain a final performance evaluation result, which is used as the output accuracy of the initial training model set.
[0028] Furthermore, the selecting, according to the ensemble learning method, the model with the highest accuracy in the initial training model set as the alarm prediction model specifically includes:
[0029] Changing the structures of the plurality of data sets to obtain a plurality of changed data sets;
[0030] Constructing a plurality of classifiers according to different linear combinations of the plurality of changed data sets;
[0031] According to several preset evaluation indicators, the model with the highest accuracy among the several classifiers is selected as the alarm prediction model.
[0032] In a second aspect, an embodiment of the present invention provides a network indicator early warning system, including:
[0033] An acquisition module, used to acquire a set of network data to be predicted;
[0034] A processing module is used to input the network data to be predicted into a pre-trained alarm prediction model to obtain the alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is based on the network indicator sample set data, and is trained with the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by cross-validation method and the optimal output model among several machine learning methods is obtained by ensemble learning method.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0036] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the network indicator early warning methods are implemented.
[0037] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the network indicator early warning methods.
[0038] The network indicator early warning method and system provided in the embodiment of the present invention adopts multiple machine learning algorithms to train network performance indicators, and adopts cross-validation and ensemble learning to obtain a high-precision prediction model. The model has automatic learning, so that network alarm prediction can be responded to quickly and accurately, and maintenance personnel can quickly identify effective alarm information. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flow chart of a network indicator early warning method provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of cross-validation provided by an embodiment of the present invention;
[0042] Figure 3 A structural diagram of a network indicator early warning system provided by an embodiment of the present invention;
[0043] Figure 4 This is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In view of the problems existing in the prior art regarding network maintenance alarm information, an embodiment of the present invention introduces a machine learning algorithm, summarizes the performance data collected in the operator network in chronological order under a specified directory as input for model training, and the trained model outputs prediction results. Cross-validation is applied to verify the training results of multiple machine learning algorithms, and an integrated learning method is combined for model optimization to obtain an alarm prediction model with higher prediction accuracy.
[0046] Figure 1 A flow chart of a network indicator early warning method provided by an embodiment of the present invention, such as Figure 1 As shown, including:
[0047] S1, obtain the network data set to be predicted;
[0048] S2, the network data set to be predicted is input into a pre-trained alarm prediction model to obtain the alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is based on the network indicator sample set data, and is trained with the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by cross-validation method and the optimal output model among several machine learning methods is obtained by ensemble learning method.
[0049] Specifically, a series of network operation indicator data are input into the trained alarm prediction model to determine whether there will be alarm information within the next preset time. The trained alarm prediction model is a sample set data composed of a large amount of collected network performance data. The alarm levels are divided according to hierarchical labels, and the cross-validation method is used to verify the accuracy of the results trained by multiple machine learning algorithms. The integrated learning method is also used to select the optimal model.
[0050] The embodiment of the present invention achieves rapid and accurate response to network alarm prediction and enables maintenance personnel to quickly identify effective alarm information through multi-dimensional cross-validation of model training and optimal output of ensemble learning.
[0051] Based on the above embodiment, obtaining the network data set to be predicted specifically includes:
[0052] Collecting a number of preset network performance indicators at preset time intervals within a preset time period;
[0053] The plurality of preset network performance indicators are used as the network data set to be predicted.
[0054] Specifically, according to the actual network operation requirements and test accuracy requirements, the data input of the model can be dynamically adjusted so that the model can adapt to the changes in the dynamic network more flexibly. For example, according to the preset time period of the previous hour, a number of preset network performance indicators, such as LU success rate data and alarm information, are periodically collected. The interval period can be set to, for example, 5 minutes, and these large amounts of data are used as the network data set to be predicted.
[0055] The embodiments of the present invention enhance the dynamic adjustment and generalization capabilities of the model by flexibly adjusting the input data range of the model.
[0056] Based on any of the above embodiments, the alarm prediction model is obtained by the following steps:
[0057] Acquire the network indicator sample set data according to a preset sample collection period, and preprocess the network indicator sample set data to obtain preprocessed sample set data;
[0058] Classifying the pre-processed sample set data according to the network alarm standard template to obtain the classification label;
[0059] Storing the preprocessed sample set data marked with corresponding classification labels in several folders to generate several data sets for training;
[0060] Obtain several machine learning algorithms as initial model sets;
[0061] Inputting the plurality of data sets into the initial model set for training to obtain an initial training model set;
[0062] The cross-validation method is used to verify the output accuracy of the initial training model set, and the model with the highest accuracy in the initial training model set is selected as the alarm prediction model according to the ensemble learning method.
[0063] The acquiring of the network indicator sample set data according to a preset sample collection period, and preprocessing of the network indicator sample set data to obtain preprocessed sample set data specifically includes:
[0064] Adjust the preset sample collection period according to the network prediction accuracy requirement, and collect the network performance indicator data set within the preset sample collection period;
[0065] The network performance indicator data set is cleaned and output according to a preset format to obtain the preprocessed sample set data.
[0066] Among them, the several machine learning algorithms include logistic regression, XGboost, GBDT, random forest and SVM.
[0067] The step of using the cross-validation method to verify the output accuracy of the initial training model set specifically includes:
[0068] The plurality of data sets are randomly divided into K sets, of which K-1 sets are used as training sets and the remaining set is used as a test set;
[0069] Repeat the training K times to obtain K models and K performance evaluation results;
[0070] Based on the K performance evaluation results, calculating an average performance evaluation result;
[0071] The model is retrained on the several data sets, and tested with independent test sets in the K sets to obtain a final performance evaluation result, which is used as the output accuracy of the initial training model set.
[0072] The step of selecting the model with the highest accuracy in the initial training model set as the alarm prediction model according to the ensemble learning method specifically includes:
[0073] Changing the structures of the plurality of data sets to obtain a plurality of changed data sets;
[0074] Constructing a plurality of classifiers according to different linear combinations of the plurality of changed data sets;
[0075] According to several preset evaluation indicators, the model with the highest accuracy among the several classifiers is selected as the alarm prediction model.
[0076] Specifically, firstly, the sample set data for model training is collected. The collection scope is dynamically changed, for example, monthly / quarterly / yearly, to prevent the model from being unable to better adapt to the changing data. Then, the data is cleaned and processed and output in the specified format to obtain the pre-processed sample set data. Here, the corresponding pre-processed sample set data is classified according to the level corresponding to the alarm, and the hierarchical labels for model training are obtained, which are placed in multiple folders to generate multiple training data sets.
[0077] Then, multiple machine learning algorithms are used as the initial network model structure. The embodiment of the present invention uses the following machine learning algorithms:
[0078] (1) Logistic regression: also known as logistic regression analysis, is a generalized linear regression analysis model, commonly used in data mining, automatic disease diagnosis, economic forecasting and other fields;
[0079] (2) XGBoost: is an optimized distributed gradient boosting library that implements machine learning algorithms under the Gradient Boosting framework. XGBoost provides parallel tree boosting (also known as GBDT, GBM) and can solve many data science problems quickly and accurately.
[0080] (3) GBDT: The full name is Gradient Descent Tree, which is an algorithm that achieves data classification or regression by adopting an additive model (i.e., a linear combination of basis functions) and continuously reducing the residual error generated during the training process;
[0081] (4) Random Forest: refers to a classifier that uses multiple trees to train and predict samples. The category of its output is determined by the mode of the category output by individual trees;
[0082] (5) SVM: Support Vector Machine (SVM) is a generalized linear classifier that performs binary classification of data using supervised learning. Its decision boundary is the maximum-margin hyperplane found on the learning samples.
[0083] After obtaining multiple initial training results using the above machine learning algorithms, cross-validation is used to test the generalization ability of the model. The schematic diagram of the cross-validation method is as follows: Figure 2 As shown in the figure, the training data set is used to evaluate the training model. Unlike the Handout method, no new data testing is required. The specific process is as follows:
[0084] The dataset is randomly divided into K parts without replacement, k-1 parts are used for model training, and the remaining part is used for performance evaluation;
[0085] Repeat k times to obtain K models and performance evaluation results;
[0086] After obtaining K performance evaluations, the average performance evaluation is calculated;
[0087] The model is retrained on the entire dataset and a separate test set is used to get the final performance estimate.
[0088] The cross-validation method uses the same model to perform K different tests on a data set, but each training data set is not exactly the same due to random sampling, which is equivalent to expanding the data set; if the mean effect of these K models is good, it means that the trained model has a certain generalization ability.
[0089] Finally, we use ensemble learning, also known as boosting method, which is widely used in classification and regression tasks. The main idea is to use some (different) methods to change the distribution of original training samples, so as to build multiple different classifiers, and linearly combine these classifiers to obtain a more powerful classifier to make the final decision.
[0090] Here, there are three mainstream integrated learning methods:
[0091] 1. Boosting methods: including Adaboosting, boosting tree (represented by GBDT), XGBoost, etc.;
[0092] 2.Bagging method: the typical one is random forest;
[0093] 3.Stacking algorithm.
[0094] After obtaining the alarm prediction model, the results are verified in multiple dimensions. Table 1 summarizes the cross-validation accuracy of five machine learning algorithms and the prediction of new data from the three dimensions of accuracy, precision and recall using integrated learning verification.
[0095]
[0096] The purpose of this stage is to compare the results of all models and check the generalization ability of the models. From the data in the table, we can see that the success rate, precision rate and recall rate of the model learned by the current random forest algorithm when predicting new data are significantly higher than those of other models, and the generalization performance is the best. It can be selected as the algorithm for the current model according to the integrated learning method.
[0097] Figure 3 A network indicator early warning system structure diagram provided by an embodiment of the present invention, such as Figure 3 As shown, it includes: an acquisition module 31 and a processing module 32; wherein:
[0098] The acquisition module 31 is used to acquire the network data set to be predicted; the processing module 32 is used to input the network data set to be predicted into a pre-trained alarm prediction model to obtain the alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is based on the network indicator sample set data, and is trained with the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by the cross-validation method, and the optimal output model among several machine learning methods is obtained by the ensemble learning method.
[0099] The system provided in the embodiment of the present invention is used to execute the corresponding method mentioned above. Its specific implementation method is consistent with the implementation method of the method, and the algorithm flow involved is the same as the corresponding method algorithm flow, which will not be repeated here.
[0100] The embodiment of the present invention achieves rapid and accurate response to network alarm prediction and enables maintenance personnel to quickly identify effective alarm information through multi-dimensional cross-validation of model training and optimal output of ensemble learning.
[0101] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the following method: obtaining a set of network data to be predicted; inputting the set of network data to be predicted into a pre-trained alarm prediction model to obtain an alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is based on the network indicator sample set data, and is trained by the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by the cross-validation method, and the optimal output model among several machine learning methods is obtained by the ensemble learning method.
[0102] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0103] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the transmission methods provided by the above-mentioned embodiments, for example, including: obtaining a set of network data to be predicted; inputting the set of network data to be predicted into a pre-trained alarm prediction model to obtain an alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is based on the network indicator sample set data, and is trained with the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by a cross-validation method, and the optimal output model among several machine learning methods is obtained by an integrated learning method.
[0104] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A network indicator early warning method, characterized in that: include: Obtain the network data set to be predicted; Input the network data set to be predicted into a pre-trained alarm prediction model to obtain the alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is trained based on the network indicator sample set data and the hierarchical labels obtained by classification according to the network alarm standard template, and the model output accuracy is obtained by cross-validation method and the optimal output model among several machine learning methods is obtained by ensemble learning method; The alarm prediction model is obtained by following the steps below: Acquire the network indicator sample set data according to a preset sample collection period, and preprocess the network indicator sample set data to obtain preprocessed sample set data; Classifying the pre-processed sample set data according to the network alarm standard template to obtain the classification label; Storing the preprocessed sample set data marked with corresponding classification labels in several folders to generate several data sets for training; Obtain several machine learning algorithms as initial model sets; Inputting the plurality of data sets into the initial model set for training to obtain an initial training model set; Using the cross-validation method to verify the output accuracy of the initial training model set, and selecting the model with the highest accuracy in the initial training model set as the alarm prediction model according to the ensemble learning method; The step of selecting the model with the highest accuracy in the initial training model set as the alarm prediction model according to the ensemble learning method specifically includes: Changing the structures of the plurality of data sets to obtain a plurality of changed data sets; Constructing a plurality of classifiers according to different linear combinations of the plurality of changed data sets; According to a number of preset evaluation indicators, the model with the highest accuracy among the several classifiers is selected as the alarm prediction model; The preset evaluation indicators include cross-validation accuracy and prediction indicators reflected by ensemble learning verification from three dimensions: accuracy, precision and recall.
2. The network indicator early warning method according to claim 1 is characterized in that: The obtaining of the to-be-predicted network data set specifically includes: Collecting a number of preset network performance indicators at preset time intervals within a preset time period; The plurality of preset network performance indicators are used as the network data set to be predicted.
3. The network indicator early warning method according to claim 1 is characterized in that: The acquiring the network indicator sample set data according to a preset sample collection period, and preprocessing the network indicator sample set data to obtain preprocessed sample set data, specifically includes: Adjust the preset sample collection period according to the network prediction accuracy requirement, and collect the network performance indicator data set within the preset sample collection period; The network performance indicator data set is cleaned and output according to a preset format to obtain the preprocessed sample set data.
4. The network indicator early warning method according to claim 1 is characterized in that: The several machine learning algorithms include logistic regression, XGboost, GBDT, random forest and SVM.
5. The network indicator early warning method according to claim 1 is characterized in that: The using the cross-validation method to verify the output accuracy of the initial training model set specifically includes: The plurality of data sets are randomly divided into K sets, of which K-1 sets are used as training sets and the remaining set is used as a test set; Repeat the training K times to obtain K models and K performance evaluation results; Based on the K performance evaluation results, calculating an average performance evaluation result; The model is retrained on the several data sets, and tested with independent test sets in the K sets to obtain a final performance evaluation result, which is used as the output accuracy of the initial training model set.
6. A network indicator early warning system, characterized in that: include: An acquisition module, used to acquire a set of network data to be predicted; A processing module, used for inputting the network data set to be predicted into a pre-trained alarm prediction model to obtain an alarm prediction result output by the alarm prediction model; wherein the alarm prediction model is trained based on the hierarchical labels obtained by classifying the network indicator sample set data according to the network alarm standard template, and the model output accuracy is obtained by a cross-validation method and the optimal output model among several machine learning methods is obtained by an ensemble learning method; The processing module is used to execute the network indicator early warning method as described in any one of claims 1 to 5.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the network indicator early warning method as described in any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the network indicator early warning method as described in any one of claims 1 to 5 are implemented.
