Abnormal index detection method, system and device, storage medium and product

By matching the target detection model of the data type to be detected, combined with S-ARIMA, box plot, Poisson and other detection modules, KPI anomaly detection is performed, which solves the problem of low KPI threshold monitoring accuracy in the existing technology and improves the abnormality Accuracy and reliability of indicator detection.

CN118656652APending Publication Date: 2024-09-17CHINA MOBILE GROUP JIANGSU +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410736945.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing KPI threshold monitoring method has low accuracy in detecting abnormal indicators in cloud network monitoring and is difficult to adapt to different application scenarios.

Method used

Use a target detection model that matches the indicator type in the data set to be detected, including S-ARIMA, boxplot, Poisson, random forest and other modules to detect anomalies in the indicator data and select the appropriate detection method according to the data type.

Benefits of technology

It improves the accuracy of abnormal indicator detection, enables accurate identification and detection of different types of indicator data, and enhances the reliability of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656652A
    Figure CN118656652A
Patent Text Reader

Abstract

The invention discloses an abnormal index detection method, system and device, a storage medium and a product, relates to the technical field of index data processing, and discloses an abnormal index detection method which comprises the steps that a target detection model matched with the type of an index in a to-be-detected data set is matched, the to-be-detected data set comprises index data corresponding to one or more indexes; and performing anomaly detection on the index data in the to-be-detected data set by adopting the target detection model to obtain an abnormal index detection result. The technical scheme of the invention aims to solve the technical problem of how to improve the accuracy of abnormal index detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of indicator data processing, and in particular, to an abnormal indicator detection method, system, device, storage medium and product. Background Art

[0002] In cloud network monitoring and operation and maintenance scenarios, device KPI (Key Performance Indicators) monitoring is one of the important means to discover and locate network operation and maintenance faults.

[0003] Nowadays, KPI threshold monitoring is usually used to detect abnormal KPIs. However, the KPI threshold needs to be determined based on expert experience, and the same KPI threshold is difficult to adapt to different application scenarios; therefore, the accuracy of KPI anomaly detection is low.

[0004] Therefore, how to improve the accuracy of KPI anomaly detection is a technical problem that needs to be solved by those skilled in the art.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The present application proposes an abnormal indicator detection method, system, device, storage medium and product, aiming to solve the technical problem of how to improve the accuracy of abnormal indicator detection.

[0007] To achieve the above purpose, the present application proposes a method for detecting abnormal indicators, the method comprising:

[0008] Matching a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators;

[0009] The target detection model is used to perform anomaly detection on the indicator data in the detection data set to obtain the abnormal indicator detection results.

[0010] In one embodiment, when the type of the indicator in the data set to be detected is a request number type, the target detection model includes: an S-ARIMA anomaly detection (Seasonal Autoregressive Integrated Moving Average Model) module, a box plot detection module, and a Poisson detection module;

[0011] The step of using the target detection model to perform anomaly detection on the indicator data in the detection data set to obtain the abnormal indicator detection result includes:

[0012] If the indicator data in the data set to be tested does not have a trend, the indicator data is tested through the S-ARIMA anomaly detection module to obtain the abnormal indicator detection result;

[0013] If the indicator data in the data set to be tested has a trend, the indicator data is tested through the box plot detection module. If an anomaly is detected, the indicator data is tested through the Poisson detection module.

[0014] If the Poisson detection module detects that the indicator data is abnormal, the indicator corresponding to the indicator data is used as the abnormal indicator detection result.

[0015] In one embodiment, when the type of the indicator in the data set to be detected is a connection rate type, the target detection model includes: a year-on-year box plot detection module, a global box plot detection module and a random forest detection module;

[0016] The step of using the target detection model to perform anomaly detection on the indicator data in the detection data set to obtain the abnormal indicator detection result includes:

[0017] If the indicator data in the data set to be tested does not have periodicity, the indicator data is tested through the year-on-year box plot detection module;

[0018] If the indicator data in the data set to be tested has periodicity, the indicator data is tested through the global box plot detection module;

[0019] If the global box plot detection module or the year-on-year box plot detection module detects that the indicator data is abnormal, the indicator data is detected through the random forest detection module to obtain the abnormal indicator detection result.

[0020] In one embodiment, when the types of indicators in the data set to be detected include a request number type and a connection rate type, the target detection model includes: a box plot detection module and a Bernoulli detection module;

[0021] The step of using the target detection model to perform anomaly detection on the indicator data in the detection data set to obtain the abnormal indicator detection result includes:

[0022] The indicator data of the indicator of the request number type is detected by the box plot detection module, and the indicator data of the indicator of the connection rate type is detected by the box plot detection module;

[0023] If the box plot detection module detects abnormal indicator data, the indicator data of the indicator of the request number type and the indicator data of the indicator of the connection rate type are detected by the Bernoulli detection module to obtain the abnormal indicator detection result.

[0024] In one embodiment, when the type of the indicator in the data set to be detected includes a request number type and an error code type, the step of using the target detection model to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result includes:

[0025] In the indicators of the request number type, obtaining a first quantity of indicators corresponding to the indicators of the error code type, and calculating a ratio between the first quantity and the total quantity of indicators of the request number type;

[0026] According to the target detection model and the ratio, anomaly detection is performed on the indicator data in the data set to be detected to obtain the abnormal indicator detection result.

[0027] In one embodiment, the target detection model includes: a box plot detection module, an S-ARIMA anomaly detection module, a Poisson detection module, a random forest detection module, and a Bernoulli detection module;

[0028] The steps of performing anomaly detection on the indicator data in the to-be-detected data set according to the target detection model and the ratio to obtain the abnormal indicator include:

[0029] The comparison value is tested through the box plot detection module, and when an anomaly is detected, the indicator data in the test data set is tested through the random forest detection module;

[0030] When the indicator data of the error code type has a trend, the indicator data is detected through the S-ARIMA anomaly detection module;

[0031] When the indicator data of the error code type does not have a trend, the indicator data is detected through the box plot detection module. If an abnormality is detected, the indicator data is detected through the Poisson detection module;

[0032] If the Poisson detection module, the S-ARIMA anomaly detection module, or the random forest detection module detects an anomaly, the indicator data of the error code type is detected through the Bernoulli detection module, and the indicator data of the request number type corresponding to the indicator of the error code type is detected through the Bernoulli detection module to obtain the abnormal indicator detection result.

[0033] The present application also proposes an abnormal indicator detection system, the system comprising:

[0034] A matching module, used to match a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators;

[0035] The anomaly detection module is used to use the target detection model to perform anomaly detection on the indicator data in the detection data set to obtain the abnormal indicator detection result.

[0036] The present application also proposes an abnormal indicator detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the above abnormal indicator detection method.

[0037] The present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the above abnormal indicator detection method are implemented.

[0038] The present application also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the above abnormal indicator detection method are implemented.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] The present application matches a target detection model that matches the type of indicators in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators, and can match the target detection model for detecting abnormal indicators according to the type of the indicators; then the target detection model is used to perform anomaly detection on the indicators in the data set to be detected to obtain abnormal indicator detection results. For each indicator in the data set to be detected, anomaly detection can be performed on the indicator through the target detection model that is pre-associated with the type of the indicator, thereby improving the accuracy of abnormal indicator detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the embodiments of the present application, and together with the description are used to explain the principles of the embodiments of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flowchart of the first embodiment of the abnormal indicator detection method of the present application is provided;

[0044] Figure 2 This is a schematic diagram of a request number type anomaly detection process according to an embodiment of an abnormal indicator detection method according to an embodiment of the present application;

[0045] Figure 3 This is a schematic diagram of a connection rate type anomaly detection process according to an embodiment of an abnormality indicator detection method according to an embodiment of the present application;

[0046] Figure 4 This is a schematic diagram of a dual-indicator anomaly detection process of an abnormal indicator detection method according to an embodiment of the present application;

[0047] Figure 5 This is a schematic diagram of a multi-index anomaly detection process of an abnormal index detection method according to an embodiment of the present application;

[0048] Figure 6 This is a schematic diagram of the model training process of an embodiment of the abnormal indicator detection method of the present application;

[0049] Figure 7 This is a schematic diagram of the risk reporting process of an embodiment of the abnormal indicator detection method of the present application;

[0050] Figure 8 This is a schematic diagram of the module structure of the abnormal indicator detection system according to an embodiment of the present application;

[0051] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the abnormal indicator detection method in the embodiment of the present application.

[0052] The purpose, features and advantages of the embodiments of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The main solution of the present application is: matching a target detection model with the type of indicators in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators; using the target detection model to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result.

[0056] Since the prior art requires setting a KPI threshold to determine abnormal indicators, that is, when the value of a certain indicator is greater than or less than the set threshold, the indicator is determined to be an abnormal indicator. However, a set threshold cannot adapt to each indicator, so there is a technical problem of low accuracy in detecting abnormal indicators. The present application provides a new abnormal indicator detection method, which can match a target detection model for determining abnormal indicators based on the type of indicators in the data set to be detected, so as to detect the indicators in the data set to be detected through the target detection model.

[0057] Since the target detection model used in the present application corresponds to the type of indicators in the data set to be detected, the target detection model can more accurately identify abnormal indicators, thereby improving the accuracy of detecting abnormal indicators.

[0058] It should be noted that the execution subject of each embodiment of the abnormal indicator detection method of the present application can be an abnormal indicator detection device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, a server, etc. The following embodiments are described below taking a server as an example.

[0059] Based on this, the present application embodiment provides a method for detecting abnormal indicators. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the abnormal indicator detection method of the present application.

[0060] In this embodiment, the abnormal index detection method includes steps S10 to S20:

[0061] Step S10, matching a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators;

[0062] It should be noted that the data set to be detected refers to the data set that needs to be detected for abnormal indicators. The type of indicator is classified according to the workload and work quality of the device or system. The indicator data refers to the value of the indicator. The target detection model is a pre-set detection model that matches the type of data. The detection model may include one or more methods for detecting indicator anomalies.

[0063] In a feasible implementation manner, the types of indicators include three categories: connection rate type, request number type and error code type.

[0064] Step S20, using the target detection model to perform anomaly detection on the indicator data in the detection data set to obtain an abnormal indicator detection result.

[0065] It should be noted that the abnormal indicator detection result includes abnormal indicators.

[0066] Exemplarily, before performing abnormal indicator detection, it is also necessary to obtain the data set to be detected. For example, the call system, alarm, configuration, CHR (Change History Record), log and other data of the service network element can be obtained across fields, and then the acquired data is stored. When abnormal indicator detection is required, the stored configuration, log and other data are extracted as the data to be detected. Then, the type of each indicator in the data to be detected is identified, and then the target detection model that matches the indicator type can be matched based on the type of the indicator, and then the indicator data in the data to be detected can be detected based on the target detection model, so as to detect indicators with abnormal values, and use the indicators with abnormal values ​​as abnormal indicator detection results.

[0067] In a feasible implementation, in addition to extracting the data set to be detected from the storage device, the data to be detected can also be obtained according to a preset period and a preset amount of collected data. Please refer to Table 1, which shows the source, period, and amount of collected data of the data to be detected. Through the source, period, and amount of data shown in Table 1, the present application can perform abnormal indicator detection on the data sets to be detected from different sources.

[0068] Table 1

[0069] Data Source cycle Data size Conversation Statistics Every 5 minutes 153MB / NE Alerts real time 0.1MB / NE Configuration per hour 0.12MB / NE Operation log per hour 3.12MB / NE System log per hour 6GB / NE CHR Every 1 minute 12GB / NE

[0070] In a feasible implementation, in order to improve the accuracy of detecting abnormal indicators, the quality of the data set to be detected can also be improved. For example, after obtaining the data set to be detected, the indicator data with a missing rate of more than 20% can be deleted from the data set to be detected. Among them, the missing rate data refers to the proportion of missing values ​​in the data set. Usually, the missing values ​​can be represented by NaN (Nota Number) or other specific values. It is obtained by calculating the number of missing values ​​in each field and dividing it by the total number of rows, which is used to determine whether the data quality meets the preset threshold requirements. For the remaining data sets to be processed, the following preprocessing steps can be performed: first, by filling the timestamps, the integrity of the time series is ensured; second, the outliers are identified and removed by the algorithm; then, the missing values ​​in the data set are filled by the interpolation method to ensure data integrity; finally, the moving average method is applied to smooth the data to reduce the impact of short-term fluctuations on data trend analysis. Through the above preprocessing steps, the quality of the data set to be processed can be improved, thereby improving the accuracy of abnormal indicator detection.

[0071] In a feasible implementation, after obtaining the data set to be detected, the indicators in the data set to be detected can also be classified according to the business scenario, and then anomaly detection is performed for the indicators of the number of requests, connection rate type (such as success rate, failure rate) and error code type (failure cause, etc.) in each business scenario. In a feasible implementation, the indicators divided according to the business scenario are shown in Table 2.

[0072] Table 2

[0073]

[0074]

[0075] In this embodiment, the present application matches a target detection model that matches the type of indicators in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators, and can match the detection model for detecting abnormal indicators according to the type of the indicators; then, the target detection model is used to perform anomaly detection on the indicators in the data set to be detected to obtain abnormal indicator detection results. For each indicator in the data set to be detected, anomaly detection can be performed on the indicator through a target detection model that is pre-associated with the type of the indicator, thereby improving the accuracy of abnormal indicator detection.

[0076] Further, based on the first embodiment of the abnormal indicator detection method of the embodiment of the present application, a second embodiment of the abnormal indicator detection method of the embodiment of the present application is proposed. In the second embodiment of the embodiment of the present application, the same or similar contents as the first embodiment can be referred to the above introduction, and will not be repeated later.

[0077] In this embodiment, in order to distinguish the abnormality detection methods corresponding to different indicator types, different detection tasks can be pre-set for different indicator types. When the indicator types include the number of requests, the connection rate, and the error code, the detection tasks can include: a single indicator detection task of the number of requests, a single indicator detection task of the connection rate, a dual indicator detection task including the number of requests and the connection rate, and a multi-indicator detection task including the error code and the number of requests.

[0078] When the type of the indicator in the data set to be detected is the request number type, the detection task is a single indicator detection task of the request number type, and the target detection model includes: S-ARIMA anomaly detection module, box plot detection module and Poisson detection module;

[0079] It should be noted that the box plot detection module refers to a data visualization and statistical analysis tool used to identify outliers in a data set, assess the central tendency of the data, the degree of dispersion, and the skewness of the data distribution. The Poisson detection module is a tool for testing whether the data conforms to the Poisson distribution.

[0080] Please refer to Figure 2 , the above step S20 includes steps S201 to S203:

[0081] Step S201: If the indicator data in the data set to be detected does not have a trend, the indicator data is detected by the S-ARIMA anomaly detection module to obtain an abnormal indicator detection result;

[0082] Step S202: if the indicator data in the to-be-detected data set has a trend, the indicator data is detected by a box plot detection module; if an anomaly is detected, the indicator data is detected by a Poisson detection module;

[0083] Step S203: If the Poisson detection module detects that the indicator data is abnormal, the indicator corresponding to the indicator data is used as the abnormal indicator detection result.

[0084] It should be noted that whether the detection index data has a trend can be analyzed by an autocorrelation function or by other methods, and the present application does not limit this.

[0085] In this embodiment, when it is detected that the indicator data does not have a trend, since the box plot algorithm is mainly used to detect outliers in the data and does not rely on the trend of the data, the box plot anomaly detection module can be used to detect whether there are abnormal indicators. For example, if the box plot anomaly detection module detects that there are abnormal values, it is determined that there are abnormal indicators. When it is detected that the indicator data has a trend, since S-ARIMA is a time series model that can capture the trend of the data, the S-ARIMA detection algorithm can be used for anomaly detection to determine whether there are abnormal indicators. For example, if the standardized residual of the indicator exceeds a preset threshold, it is determined that there are abnormal indicators.

[0086] After the box plot anomaly detection module detects data anomalies, in order to verify the reliability of the anomaly, the threshold of the box plot anomaly detection module can be used as a priori parameter of the Poisson test. Then, through the Poisson detection module, check whether the abnormal index deviates significantly from the Poisson distribution, and then confirm its abnormality. It is worth mentioning that for indicators of the type of request number, this application considers it to be the number of random events that occur per unit time, which is suitable for Poisson distribution test, so the Poisson detection module can detect abnormal indicators more accurately.

[0087] In one embodiment, when the type of the indicator in the data set to be detected is a connection rate type, the detection task is a single indicator detection task of the connection rate type, and the target detection model includes: a year-on-year box plot detection module, a global box plot detection module, and a random forest detection module;

[0088] It should be noted that the year-on-year box plot detection module is a tool for analyzing and comparing the distribution changes of time series at different time points (usually continuous identical cycles, such as this year and last year). The global box plot is a box plot analysis tool applied to the entire data set or across multiple data sets, which can examine the overall distribution of the data from a global perspective. The random forest detection module refers to a machine learning detection tool based on the random forest algorithm.

[0089] Please refer to Figure 3 , the above step S20 also includes steps S204 to S206:

[0090] Step S204, if the indicator data in the to-be-detected data set does not have periodicity, the indicator data is detected by a year-on-year box-and-whisker plot detection module;

[0091] Step S205, if the indicator data in the to-be-detected data set has periodicity, the indicator data is detected by a global box plot detection module;

[0092] Step S206: If the global box plot detection module or the year-on-year box plot detection module detects that the indicator data is abnormal, the indicator data is detected by the random forest detection module to obtain an abnormal indicator detection result.

[0093] It is worth mentioning that when the indicator data is detected to be periodic, since the year-on-year box plot can reflect the relative position of the data in different time periods, it is possible to more accurately identify anomalies caused by periodic fluctuations. Therefore, this application uses a year-on-year box plot anomaly detection module to detect abnormal indicators. For example, if the year-on-year box plot anomaly detection module detects that the median and quartiles of the year-on-year data of a certain indicator at a certain time point are significantly different from those at other time points, it is determined that there is an abnormal indicator. If the indicator data is not periodic, since the global box plot can identify the outliers in the data set as a whole (for example, any data outside the upper and lower thresholds is regarded as an outlier), it is not limited by the interference of periodic fluctuations that may exist in a specific time period. Therefore, this application uses overall box plot detection to detect abnormal indicators.

[0094] After the year-on-year box plot model is detected or the year-on-year box plot model detects data anomalies, in order to verify the reliability of the anomaly, the random forest detection module can also be used for anomaly detection (for example, if the value of a data point of an indicator on an important feature deviates greatly from the average value, then this data point is an anomaly). Among them, random forest, as an integrated learning method, improves the accuracy of prediction by constructing multiple decision trees and taking the average value. It can capture the nonlinear relationship and interaction in the indicator data of the connection rate type, so as to more accurately identify outliers.

[0095] In a feasible implementation, after the random forest detection module detects an anomaly, the threshold deviation value can be calculated based on the box plot detection threshold and the anomaly value obtained by the random forest detection model, and then the threshold deviation value is normalized, so that the degree of abnormality of the abnormal indicator can be judged according to the normalized value.

[0096] In one embodiment, when the types of indicators in the data set to be detected include request number type and connection rate type, the detection task is a dual-indicator detection task of request number and connection rate, and the target detection model includes: a box plot detection module and a Bernoulli detection module;

[0097] It should be noted that the Bernoulli detection module is a module that uses the Bernoulli algorithm for detection.

[0098] Please refer to Figure 4 , the above step S20 also includes steps S207 to S208:

[0099] Step S207, detecting the indicator data of the indicator of the request number type through the box plot detection module, and detecting the indicator data of the indicator of the connection rate type through the box plot detection module;

[0100] Step S208, if the box plot detection module detects that there is abnormal indicator data, the indicator data of the request number type indicator and the indicator data of the connection rate type indicator are detected by the Bernoulli detection module to obtain an abnormal indicator detection result.

[0101] In this embodiment, the box plot model can perform independent anomaly detection on the indicator data of the two types of indicators. If the box plot model detects that any indicator is abnormal, that is, the data points of the indicators of the connection rate type or the number of requests type exceed the preset threshold range, the Bernoulli detection module performs anomaly detection on the indicators of the number of requests type and the connection rate type.

[0102] It should be noted that the Bernoulli detection module is used to evaluate the probability of two independent events occurring at the same time. In this application, the two independent events are the abnormal states of the connection rate and the number of requests. This application uses the Bernoulli test to ultimately determine whether the two indicators are abnormal at the same time, and obtains the abnormal indicator detection result based on the abnormal situation of the indicator.

[0103] For example, for each indicator, a Bernoulli trial is defined, where "success" means the indicator is abnormal and "failure" means the indicator is normal. Then, the Bernoulli detection module can detect anomalies through the following steps:

[0104] Conduct experiments: Perform Bernoulli trials on each indicator separately and record the results of each trial (success or failure).

[0105] Observation results: If the test results of both indicators are "successful" (that is, both indicators are abnormal), then both indicators are abnormal at the same time.

[0106] This application uses a box plot detection module to perform independent anomaly detection on the data of two types of indicators. Combined with the Bernoulli detection method, it can effectively detect anomalies between the connection rate and the number of requests, and detect abnormal indicators based on the anomalies.

[0107] In one embodiment, when the types of indicators in the data set to be detected include request number type and error code type, the detection task is: a multi-indicator detection task of error code and request number;

[0108] The above step S20 further includes steps S209 to S210:

[0109] Step S209, obtaining a first quantity of indicators corresponding to the indicators of the error code type in the indicators of the request number type, and calculating a ratio between the first quantity and the total quantity of the indicators of the request number type;

[0110] It should be noted that since the indicator of the request number type will get a response result in the actual network request, when the response result represents an error response, the response result will include an indicator of the error code type. Therefore, the request number type can also include an indicator corresponding to the indicator of the error code type.

[0111] Step S210, performing anomaly detection on the indicator data in the to-be-detected data set according to the target detection model and the ratio to obtain an abnormal indicator detection result.

[0112] For example, please refer to Figure 5 ,In one embodiment, the target detection model includes: a box plot detection module, an S-ARIMA anomaly detection module, a Poisson detection module, a random forest detection module, and a Bernoulli detection module;

[0113] The above step S210 includes steps S2101 to S2104:

[0114] Step S2101, using a box plot detection module to detect the comparison value, and when an abnormality is detected, using a random forest detection module to detect the indicator data in the data set to be detected;

[0115] Step S2102: When the indicator data of the error code type has a trend, the indicator data is detected by the S-ARIMA anomaly detection module;

[0116] Step S2103, when the indicator data of the error code type does not have a trend, the indicator data is detected by a box plot detection module, and if an abnormality is detected, the indicator data is detected by a Poisson detection module;

[0117] Step S2104, if the Poisson detection module or the S-ARIMA anomaly detection module or the random forest detection module detects an anomaly, the indicator data of the error code type is detected by the Bernoulli detection module, and the indicator data of the request number type corresponding to the indicator of the error code type is detected by the Bernoulli detection module to obtain the abnormal indicator detection result.

[0118] It should be noted that Figure 5 The single indicator request number algorithm in includes the above-mentioned box plot detection module, S-ARIMA anomaly detection module, and Poisson detection module. Figure 5 The single indicator connection rate algorithm in includes: random forest detection module and box plot detection module.

[0119] In this embodiment, the present application calculates the proportion of different indicators in the error code type in the indicator of the request number type at different times to obtain ratios, and combines the various ratios to obtain the ratio sequences corresponding to the different indicators in the error code type, which can quantify the correlation between the error code and the number of requests. Then, the single indicator connection rate algorithm is used to perform anomaly detection on the ratio sequence of the proportion of indicators of the error code type, and the anomalies between different indicators in the error code type and the number of requests can be obtained. Furthermore, for each indicator in the error code type, the present application uses a single indicator request number algorithm for anomaly detection, and the anomalies of each indicator of the error code type can be obtained.

[0120] In this embodiment, if the Poisson detection module or the S-ARIMA anomaly detection module or the random forest detection module detects an anomaly, the error code type indicator and the request number type indicator are further subjected to Bernoulli detection based on the correlation between the error code type indicator and the request number type indicator. In this embodiment, the two independent events in the Bernoulli detection are the abnormal states of the error code ratio and the error code number. Thus, the Bernoulli detection can be used to confirm whether the two indicators are abnormal at the same time, thereby obtaining the abnormal indicator detection result.

[0121] This application can effectively detect abnormal situations between error code type indicators and request number type indicators by calculating proportions, single indicator success rate algorithms, single indicator request number algorithms, and Bernoulli detection.

[0122] In a feasible embodiment, before performing anomaly detection through the target detection model, it is also necessary to train each module in the target detection model according to the historical indicator data and the anomaly indicators in the historical indicator data. Thus, through multiple automatic trainings, the false positive and false negative ratio of the target detection model can be minimized.

[0123] Please refer to Figure 6 , the steps for training the target detection model can be:

[0124] Obtain historical indicator data, pre-process the historical indicator data, and then determine the indicator type in the historical indicator data, and train the corresponding target detection model according to the indicator type, and save the data after the training is completed. After obtaining the real-time indicator data, model detection can be performed through the target detection model corresponding to the indicator type in the real-time indicator data to detect abnormal indicators.

[0125] In a feasible implementation, the abnormal index detection result also includes: an abnormal significance score. When training the target detection model, the abnormal significance score can also be set according to the results output by each module in the target detection model, and then an alarm result is output when the total score is detected to be greater than or equal to the set threshold.

[0126] In a feasible implementation, the scoring rule for the abnormal significance score may be:

[0127] In the single-metric anomaly detection task of the request number type: when the metric value exceeds the box plot boundary or the prediction boundary, 1 point is scored;

[0128] In the single-indicator anomaly detection task of the connection rate type: after exceeding the box plot boundary, iForest detection is performed. If it is abnormal, 2 points are scored, otherwise 1 point is maintained;

[0129] In dual-indicator or multi-indicator scenarios: After exceeding the box plot or prediction boundary, a hypothesis test is performed based on the prior distribution of the indicator. If the hypothesis test is abnormal at a significance level of 0.05, 2 points are awarded, otherwise 1 point is maintained;

[0130] Specifically, in dual-indicator scenarios or multi-indicator scenarios, when an indicator is abnormal, the critical range of the current indicator is calculated, and the effect_size is calculated. The final score is 2+f(effect_size). The calculation process of f(effect_size) is:

[0131] ① According to the hypothesis test target, calculate the value range of the indicator [lower, upper] at the significance level of 0.05;

[0132] ② Let effect_size be equal to the distance from the indicator value to the nearest endpoint of the value range;

[0133] ③f(effect_size) is the normalization function, that is, the ratio of effect_size to the current value of the indicator, and then divided by the significant level of the benefit value 0.03, and then the obtained ratio is compared with 0.05. If it is lower than 0.05, 2 points are scored, otherwise 1 point is scored.

[0134] In a feasible implementation, after obtaining the abnormality significance score, a low-risk abnormality significance score threshold and a high-risk abnormality significance score threshold may be set to facilitate risk reporting.

[0135] Please refer to Figure 7 , Figure 7 Hat in the formula represents the low-risk anomaly significance score threshold; Haht represents the high-risk anomaly significance score threshold; Mdhs represents the control parameter for whether high-risk anomalies are reported as a single point; Nnca represents the number of consecutive anomalies reported for risk; True represents single-point reporting, and False represents judgment based on the continuous anomaly point rule.

[0136] After calculating the significance score, the risk level can be divided by the abnormal significance score output by the target detection model, which is specifically divided into three categories: high risk (the score output by the model is higher than the high risk abnormal significance score threshold), low risk (the score output by the model is between the low risk abnormal significance score threshold and the high risk abnormal significance score threshold), and no risk (the score output by the model is lower than the low risk abnormal significance score threshold). For indicators with no risk level, no risk report is made. For indicators with low risk level, the solution determines whether there is potential risk based on business experience rules. If it is determined that there is no risk, risk suppression measures are taken. If it is determined that there is a risk, further analysis is performed to determine whether the nodes that have been continuously reported before the risk indicator are abnormal and whether they are high risk. If there is an abnormality but it is not a high risk abnormality, it is reported as low risk; if it is a high risk abnormality, it is reported as high risk.

[0137] For indicators with high risk levels, if it is determined that the indicator should not have risks based on business experience rules, risk suppression measures are also taken. Otherwise, it is determined whether the indicator currently has risks. If so, it is determined whether it is a high risk. If it is a high risk, it is directly reported as a high risk. If it is not a high risk, it is not reported. In addition, after determining that there is a risk, it is also possible to analyze whether the nodes that have been continuously reported before the risk indicator are abnormal. If there is an abnormality, it is reported as a high risk; if there is no abnormality, risk suppression is performed.

[0138] This application improves the accuracy of risk identification and the efficiency of risk handling by combining significance scores, risk threshold divisions, business experience rules and single-point reporting rules.

[0139] The present application also proposes an abnormal indicator detection system, please refer to Figure 8 , the system includes:

[0140] A matching module 10 is used to match a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators;

[0141] The anomaly detection module 20 is used to perform anomaly detection on the indicator data in the detection data set using the target detection model to obtain anomaly indicator detection results.

[0142] In one embodiment, when the type of the indicator in the data set to be detected is a request number type, the target detection model includes: an S-ARIMA anomaly detection module, a box plot detection module, and a Poisson detection module;

[0143] The anomaly detection module 20 is also used for:

[0144] If the indicator data in the data set to be tested does not have a trend, the indicator data is tested through the S-ARIMA anomaly detection module to obtain the abnormal indicator detection result;

[0145] If the indicator data in the data set to be tested has a trend, the indicator data is tested through the box plot detection module. If an anomaly is detected, the indicator data is tested through the Poisson detection module.

[0146] If the Poisson detection module detects that the indicator data is abnormal, the indicator corresponding to the indicator data is used as the abnormal indicator detection result.

[0147] In one embodiment, when the type of the indicator in the data set to be detected is a connection rate type, the target detection model includes: a year-on-year box plot detection module, a global box plot detection module and a random forest detection module;

[0148] The anomaly detection module 20 is also used for:

[0149] If the indicator data in the data set to be tested does not have periodicity, the indicator data is tested through the year-on-year box plot detection module;

[0150] If the indicator data in the data set to be tested has periodicity, the indicator data is tested through the global box plot detection module;

[0151] If the global box plot detection module or the year-on-year box plot detection module detects that the indicator data is abnormal, the indicator data is detected through the random forest detection module to obtain the abnormal indicator detection result.

[0152] In one embodiment, when the types of indicators in the data set to be detected include a request number type and a connection rate type, the target detection model includes: a box plot detection module and a Bernoulli detection module;

[0153] The anomaly detection module 20 is also used for:

[0154] The indicator data of the indicator of the request number type is detected by the box plot detection module, and the indicator data of the indicator of the connection rate type is detected by the box plot detection module;

[0155] If the box plot detection module detects abnormal indicator data, the indicator data of the indicator of the request number type and the indicator data of the indicator of the connection rate type are detected by the Bernoulli detection module to obtain the abnormal indicator detection result.

[0156] In one embodiment, when the types of indicators in the data set to be detected include request number type and error code type, the detection task is: a multi-indicator detection task of error code and request number;

[0157] The anomaly detection module 20 is also used for:

[0158] In the indicators of the request number type, obtaining a first quantity of indicators corresponding to the indicators of the error code type, and calculating a ratio between the first quantity and the total quantity of indicators of the request number type;

[0159] According to the target detection model and the ratio, anomaly detection is performed on the indicator data in the data set to be detected to obtain the abnormal indicator detection result.

[0160] In one embodiment, the target detection model includes: a box plot detection module, an S-ARIMA anomaly detection module, a Poisson detection module, a random forest detection module, and a Bernoulli detection module;

[0161] The anomaly detection module 20 is also used for:

[0162] The comparison value is tested through the box plot detection module, and when an anomaly is detected, the indicator data in the test data set is tested through the random forest detection module;

[0163] When the indicator data of the error code type has a trend, the indicator data is detected through the S-ARIMA anomaly detection module;

[0164] When the indicator data of the error code type does not have a trend, the indicator data is detected through the box plot detection module. If an abnormality is detected, the indicator data is detected through the Poisson detection module;

[0165] If the Poisson detection module, the S-ARIMA anomaly detection module, or the random forest detection module detects an anomaly, the indicator data of the error code type is detected by the Bernoulli detection module, and the indicator data of the request number type corresponding to the indicator of the error code type is detected by the Bernoulli detection module to obtain the abnormal indicator detection result.

[0166] The abnormal indicator detection system provided in the embodiment of the present application adopts the abnormal indicator detection method in the above embodiment, which can solve the technical problem of how to improve the accuracy of KPI abnormality detection. Compared with the prior art, the beneficial effects of the abnormal indicator detection system provided in the embodiment of the present application are the same as the beneficial effects of the abnormal indicator detection method provided in the above embodiment, and other technical features in the abnormal indicator detection system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0167] An embodiment of the present application provides an abnormal indicator detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the abnormal indicator detection method in the above-mentioned embodiment 1.

[0168] Reference below Fig. 9 , which shows a schematic diagram of the structure of an abnormality indicator detection device suitable for implementing the embodiment of the present application. The abnormality indicator detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The abnormal indicator detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0169] like Fig. 9As shown, the abnormal index detection device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the abnormal index detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the abnormal indicator detection device to communicate with other devices wirelessly or wired to exchange data. Although the abnormal indicator detection device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0170] In particular, according to the embodiments disclosed in the embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the embodiment of the present application are executed.

[0171] The abnormal indicator detection device provided in the embodiment of the present application adopts the abnormal indicator detection method in the above embodiment, which can solve the technical problem of low abnormal indicator detection efficiency. Compared with the prior art, the beneficial effects of the abnormal indicator detection device provided in the embodiment of the present application are the same as the beneficial effects of the abnormal indicator detection method provided in the above embodiment, and other technical features in the abnormal indicator detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0172] It should be understood that the various parts disclosed in the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0173] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

[0174] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the abnormal indicator detection method in the above-mentioned embodiment.

[0175] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0176] The computer-readable storage medium may be included in the abnormal index detection device; or may exist independently without being assembled into the abnormal index detection device.

[0177] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the abnormal indicator detection device, the abnormal indicator detection device: matches a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators; uses the target detection model to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result.

[0178] The computer program code for performing the operation of the embodiment of the present application can be written in one or more programming languages ​​or a combination thereof, and the above-mentioned programming languages ​​include object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0179] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the function marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0180] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0181] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned abnormal indicator detection method, and can solve the technical problem of how to improve the accuracy of KPI abnormality detection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the abnormal indicator detection method provided in the above-mentioned embodiment, and will not be repeated here.

[0182] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned abnormal indicator detection method when executed by a processor.

[0183] The computer program product provided in the embodiment of the present application can solve the technical problem of how to improve the accuracy of KPI anomaly detection. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as the beneficial effects of the abnormal indicator detection method provided in the above embodiment, which will not be repeated here.

[0184] The above descriptions are only some embodiments of the embodiments of the present application, and do not limit the patent scope of the embodiments of the present application. All equivalent structural transformations made by using the description and drawings of the embodiments of the present application under the technical concept of the embodiments of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the embodiments of the present application.

Claims

1. A method for detecting abnormal indicators, characterized in that: The method includes: Matching a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators; The target detection model is used to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result.

2. The method according to claim 1, characterized in that When the type of the indicator in the data set to be detected is a request number type, the target detection model includes: an S-ARIMA anomaly detection module, a box plot detection module and a Poisson detection module; The step of using the target detection model to perform anomaly detection on the indicator data in the to-be-detected data set to obtain an abnormal indicator detection result includes: If the indicator data in the data set to be detected does not have a trend, the indicator data is detected by the S-ARIMA anomaly detection module to obtain an abnormal indicator detection result; If the indicator data in the data set to be detected has a trend, the indicator data is detected by the box plot detection module, and if an abnormality is detected, the indicator data is detected by the Poisson detection module; If the Poisson detection module detects that the indicator data is abnormal, the indicator corresponding to the indicator data is used as the abnormal indicator detection result.

3. The method according to claim 1, characterized in that When the type of the indicator in the data set to be detected is a connection rate type, the target detection model includes: a year-on-year box plot detection module, a global box plot detection module and a random forest detection module; The step of using the target detection model to perform anomaly detection on the indicator data in the to-be-detected data set to obtain an abnormal indicator detection result includes: If the indicator data in the to-be-detected data set does not have periodicity, the indicator data is detected by the year-on-year box plot detection module; If the indicator data in the data set to be detected has periodicity, the indicator data is detected by the global box plot detection module; If the global box plot detection module or the year-on-year box plot detection module detects that the indicator data is abnormal, the indicator data is detected by the random forest detection module to obtain an abnormal indicator detection result.

4. The method according to claim 1, characterized in that When the types of indicators in the to-be-detected data set include a request number type and a connection rate type, the target detection model includes: a box plot detection module and a Bernoulli detection module; The step of using the target detection model to perform anomaly detection on the indicator data in the to-be-detected data set to obtain an abnormal indicator detection result includes: The indicator data of the indicator of the request number type is detected by the box plot detection module, and the indicator data of the indicator of the connection rate type is detected by the box plot detection module; If the box plot detection module detects abnormal indicator data, the Bernoulli detection module detects the indicator data of the indicator of the request number type and the indicator data of the indicator of the connection rate type to obtain an abnormal indicator detection result.

5. The method according to claim 1, characterized in that When the type of the indicator in the data set to be detected includes a request number type and an error code type, the step of using the target detection model to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result includes: In the indicators of the request number type, obtaining a first quantity of indicators corresponding to the indicators of the error code type, and calculating a ratio between the first quantity and the total quantity of indicators of the request number type; Anomaly detection is performed on the indicator data in the to-be-detected data set according to the target detection model and the ratio to obtain an abnormal indicator detection result.

6. The method according to claim 5, characterized in that The target detection model includes: a box plot detection module, an S-ARIMA anomaly detection module, a Poisson detection module, a random forest detection module and a Bernoulli detection module; The step of performing anomaly detection on the indicator data in the to-be-detected data set according to the target detection model and the ratio to obtain an abnormal indicator comprises: The ratio is detected by the box plot detection module, and when an abnormality is detected, the indicator data in the to-be-detected data set is detected by the random forest detection module; When the indicator data of the error code type has a trend, the indicator data is detected by the S-ARIMA anomaly detection module; When the indicator data of the error code type does not have a trend, the indicator data is detected by the box plot detection module, and if an abnormality is detected, the indicator data is detected by the Poisson detection module; If the Poisson detection module, the S-ARIMA anomaly detection module, or the random forest detection module detects an anomaly, the indicator data of the error code type is detected by the Bernoulli detection module, and the indicator data of the request number type corresponding to the indicator of the error code type is detected by the Bernoulli detection module to obtain the abnormal indicator detection result.

7. An abnormal index detection system, characterized in that: The system comprises: A matching module, used to match a target detection model that matches the type of the indicator in the data set to be detected, wherein the data set to be detected includes indicator data corresponding to one or more indicators; The anomaly detection module is used to use the target detection model to perform anomaly detection on the indicator data in the data set to be detected to obtain an abnormal indicator detection result.

8. An abnormal index detection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the abnormal indicator detection method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the abnormal indicator detection method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the abnormal indicator detection method according to any one of claims 1 to 6 are implemented.