Index anomaly analysis method and device, computer equipment, storage medium and product
By using the indicator anomaly analysis method in business operations to obtain and filter characteristic data and perform discretization processing, the problem of low efficiency in indicator anomaly analysis is solved and the effect of quickly determining the cause of the anomaly is achieved.
Patent Information
- Application Number
- CN202310233548.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
In business operations, indicator anomaly analysis requires a lot of manual participation, resulting in low efficiency, and the calculation process is complex and time-consuming, making it difficult to quickly determine the root cause of indicator anomalies.
By obtaining the characteristic data of the object sample logged into the client and the characteristic dimensions related to the indicators to be attributed, the importance is calculated and filtered to obtain the target characteristic dimensions, and the data is discretized, and then root cause analysis is performed to determine the causing indicators. Abnormal abnormal feature dimensions.
It improves the efficiency of indicator anomaly analysis, reduces the feature dimensions that need to be processed, can quickly determine the causes of indicator anomalies, and improves the efficiency of root cause analysis.
Smart Images

Figure CN118586751A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and specifically to an indicator abnormality analysis method, device, computer equipment, storage medium and product, wherein the storage medium is a computer-readable storage medium and the product is a computer program product. Background Art
[0002] In business operations, there are usually some indicators used to detect whether business operations are normal, such as daily active users and active duration indicators. In the process of business operations, abnormal indicators may occur, which may be caused by abnormal activities on the day of the business launch, system errors, holidays, or abnormal user groups. It is necessary to analyze the factors that may affect the abnormal indicators. The analysis process usually requires a lot of manual participation. First, it is necessary to manually process the feature data under the feature dimension based on operational experience, and it is necessary to calculate the probability of each feature dimension causing the abnormal indicator. The calculation process is complicated and time-consuming, resulting in low efficiency in root cause analysis of abnormal indicators. Summary of the invention
[0003] The embodiments of the present application provide an indicator abnormality analysis method, apparatus, computer equipment, storage medium and product, which can improve the efficiency of root cause analysis of attribution indicators.
[0004] An abnormality analysis method for an indicator provided in an embodiment of the present application includes:
[0005] Obtain feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed;
[0006] Calculate the importance of the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension;
[0007] Screening the feature dimensions based on the feature importance to obtain target feature dimensions;
[0008] Performing data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension;
[0009] A root cause analysis process is performed based on the discrete feature data of the object sample with respect to the target feature dimension, so as to determine the abnormal feature dimension causing the abnormality of the indicator to be attributed from the feature dimension.
[0010] Accordingly, an embodiment of the present application also provides an indicator abnormality analysis device, including:
[0011] An acquisition unit, used to acquire feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed;
[0012] A calculation unit, configured to calculate the importance of the feature data of the object sample with respect to the feature dimension, so as to obtain the feature importance of each feature dimension;
[0013] A screening unit, configured to screen the feature dimensions based on the feature importance to obtain a target feature dimension;
[0014] A processing unit, configured to perform data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension;
[0015] An analysis unit is used to perform root cause analysis based on the discrete feature data of the object sample about the target feature dimension, so as to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
[0016] In one embodiment, the object sample includes a first object sample that logs into the client during a target time period when the indicator to be attributed is abnormal, and a second object sample that logs into the client during a reference time period when the indicator to be attributed is normal, and the calculation unit includes:
[0017] a label determination subunit, configured to determine a sample label of the object sample according to an object intersection between a first object sample logged in during the target time period and a second object sample logged in during the reference time period;
[0018] A classification subunit, configured to classify the object sample based on the feature data of the object sample about the feature dimension to obtain a classification result;
[0019] The importance calculation subunit is used to calculate the feature importance of each feature dimension corresponding to the object sample according to the classification result and the sample label.
[0020] In one embodiment, the feature dimension has feature factors, the feature factors correspond to the discrete feature data, and the analysis unit includes:
[0021] A first feature calculation subunit is configured to calculate a prediction value corresponding to the target feature dimension based on feature data of a first object sample that logs in to the client during the target time period about the feature dimension;
[0022] A second feature calculation subunit is used to calculate a true value corresponding to the target feature dimension according to feature data of a second object sample that logs in to the client during the reference time period about the feature dimension;
[0023] The attribution unit is used to calculate based on the predicted value and the actual value corresponding to the target feature dimension to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed in the target time period, and the abnormal feature factors related to the abnormality of the indicator to be attributed under the abnormal feature dimension.
[0024] In one embodiment, the attribution unit includes:
[0025] A fluctuation calculation module, used to perform fluctuation calculation on the characteristic factors under the characteristic dimension based on the predicted value of the factor and the true value of the factor, so as to obtain the fluctuation degree of the characteristic factors;
[0026] The factor determination module is used to determine the abnormal characteristic dimension related to the abnormality of the indicator to be attributed occurring in the target time period and the abnormal characteristic factor under the abnormal characteristic dimension according to the fluctuation degree of the characteristic factor.
[0027] In one embodiment, the analysis unit comprises:
[0028] A root cause analysis subunit is used to perform root cause analysis based on the discrete feature data corresponding to each reference time period and the discrete feature data corresponding to the target time period, and obtain candidate feature dimensions in which the discrete feature data corresponding to the target time period is abnormal when compared with the feature data of each reference time period;
[0029] The first dimension determination subunit is used to determine, based on the candidate feature data, the feature dimension that causes the abnormality of the indicator to be attributed within the target time period.
[0030] In one embodiment, the analysis unit comprises:
[0031] A probability calculation subunit, used for calculating the root cause probability of the characteristic dimension causing the abnormality of the indicator to be attributed based on the discrete characteristic data;
[0032] The second dimension determination subunit is used to determine the characteristic dimension causing the abnormality of the indicator to be attributed from the characteristic dimensions according to the root cause probability.
[0033] In one embodiment, the processing unit includes:
[0034] A sorting subunit, used to sort the feature data of the object sample with respect to the target feature dimension to obtain sorted feature data corresponding to the target feature dimension;
[0035] The discrete processing subunit is used to perform discretization processing based on the sorted feature data to obtain discrete feature data of the object sample with respect to the target feature dimension.
[0036] Correspondingly, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any indicator anomaly analysis method provided in the embodiment of the present application.
[0037] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is loaded by a processor to execute any indicator anomaly analysis method provided in the embodiment of the present application.
[0038] Correspondingly, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any one of the indicator anomaly analysis methods provided in the embodiments of the present application.
[0039] The embodiment of the present application obtains feature data corresponding to feature dimensions related to the indicator to be attributed by acquiring object samples logged into the client; performs importance calculation based on the feature data of the object samples on the feature dimensions to obtain the feature importance of each feature dimension; screens the feature dimensions based on the feature importance to obtain the target feature dimensions; performs data discretization processing on the feature data corresponding to the target feature dimensions to obtain discrete feature data corresponding to the target feature dimensions; performs root cause analysis processing based on the discrete feature data of the object samples on the target feature dimensions to determine the abnormal feature dimensions that cause the abnormal indicator to be attributed from the feature dimensions.
[0040] The embodiment of the present application calculates the importance of the feature dimensions related to the indicator to be attributed, so as to screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 It is a scene diagram of the indicator abnormality analysis method provided in the embodiment of the present application;
[0043] Figure 2 is a flow chart of the indicator abnormality analysis method provided in an embodiment of the present application;
[0044] Figure 3 is another flow chart of the indicator abnormality analysis method provided in an embodiment of the present application;
[0045] Figure 4 is a schematic diagram of an indicator abnormality analysis device provided in an embodiment of the present application;
[0046] Figure 5 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0048] The embodiment of the present application provides an indicator abnormality analysis method, device, computer equipment and computer readable storage medium. The indicator abnormality analysis device can be integrated in a computer equipment, which can be a server or a terminal.
[0049] The terminal may include a mobile phone, a wearable smart device, a tablet computer, a laptop computer, a personal computer (PC), and a vehicle-mounted computer.
[0050] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0051] For example, Figure 1 As shown, the computer device obtains feature data corresponding to feature dimensions related to the object sample logged in to the client and the indicator to be attributed; importance calculation is performed based on the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension; the feature dimension is screened based on the feature importance to obtain the target feature dimension; data discretization is performed on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; root cause analysis is performed based on the discrete feature data of the object sample on the target feature dimension to determine the abnormal feature dimension that causes the abnormal indicator to be attributed from the feature dimension.
[0052] The embodiment of the present application calculates the importance of the feature dimensions related to the indicator to be attributed, so as to screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed.
[0053] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0054] This embodiment will be described from the perspective of an indicator abnormality analysis device, which can be integrated into a computer device, which can be a server or a terminal.
[0055] First, the application scenario of the indicator anomaly analysis method provided in the embodiment of the present application is introduced.
[0056] The indicator anomaly analysis method provided in the embodiment of the present application can be applied to scenarios where business data anomalies need to be analyzed, such as game business operations, product operations, content recommendations, product marketing, and live shopping.
[0057] Then, a brief introduction is given to some terms involved in the indicator anomaly analysis method provided in the embodiment of the present application.
[0058] Among them, the object samples may include users in application scenarios, such as game players, commodity buyers, users of application software (such as social software), etc.
[0059] Among them, the indicators to be attributed may be abnormal indicators, such as daily active users (DAU), active time, sales volume or total revenue, etc. The indicators can be used to measure whether the business is normal. For example, in the content recommendation scenario, DAU can indicate the number of users accessing the content browsing app, and DAU can be used to measure whether the number of users logging into the content browsing app is abnormal. In the game business operation scenario, DAU can indicate the number of game players logging into the game account, and DAU can be used to measure whether the game business has a normal number of players logging into the game. In product marketing and live shopping scenarios, sales volume can indicate the number of products sold to customers, and sales volume can measure whether the marketing of the product is normal, etc.
[0060] Among them, the feature dimension can be a dimension related to the indicator to be attributed. The abnormality of the feature data under the feature dimension may cause the abnormality of the indicator to be attributed. The feature dimension can be flexibly set according to the application scenario. For example, for the indicator to be attributed is daily activity, its related feature dimensions may include the user's level, payment amount, active duration and type, etc. The feature data is the value of the object sample under the feature dimension. The feature data can also be called the feature factor under the feature dimension. Different values are different feature factors. For example, if the user level is 5, 5 is the feature data under the feature dimension of user level; if the user gender is male, male is the feature data under the feature dimension of user gender.
[0061] The specific selected feature dimensions can be set according to the needs of the application scenario. The business involved in the application scenario and the feature dimensions related to the attribution indicators generally have dozens or nearly a hundred feature dimensions, and the number of feature dimensions is relatively large.
[0062] The present application provides a method for analyzing abnormal indicators. Figure 2 As shown, the specific process of the indicator abnormality analysis method can be as follows:
[0063] 101. Obtain feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed.
[0064] There may be multiple object samples, for example, users who log in to the client during a normal period of the to-be-attributed indicator and users who log in to the client during an abnormal period of the to-be-attributed indicator. The client is a client that provides corresponding business services in the application scenario, such as a game client, a social client, and a shopping client.
[0065] 102. Perform importance calculation based on the feature data of the object sample about the feature dimension to obtain the feature importance of each feature dimension.
[0066] Since there are generally dozens to nearly a hundred feature dimensions related to the indicator to be attributed, it is very time-consuming and consumes computer resources to perform attribution calculations on a large number of feature dimensions. The target feature dimension can be screened out from the feature dimensions according to the feature importance of the feature dimension. The target feature dimension is a more relevant feature dimension that causes the abnormality of the indicator to be attributed.
[0067] The feature dimensions can be classified by decision tree or random forest algorithms to obtain classification results, and then the feature importance of each feature dimension can be calculated based on the classification results. First, sample labels can be added to object samples to classify object samples into categories, such as positive samples and negative samples.
[0068] For adding sample labels to object samples, the classification criteria can be selected according to the application scenario and the characteristics of the indicator to be attributed. For example, the classification criteria can be based on whether the object samples that paid in the reference time period paid in the abnormal time period.
[0069] Optionally, the classification criterion may also be based on whether the object sample that logs in to the client during the reference time period logs in to the client during the target time period. If the object sample logs in to the client during the target time period, the sample label of the object sample is a positive sample label, and the positive sample label indicates that the object sample is a positive sample; if the object sample does not log in to the client during the target time period, the sample label of the object sample is a negative sample label, and the positive sample label indicates that the object sample is a negative sample.
[0070] The feature importance of each feature dimension is calculated based on the classification result and the sample label of the object sample. That is, in one embodiment, the login status of the object sample is used as the division standard for setting the sample label. The object sample includes a first object sample that logs in to the client during the target time period when the indicator to be attributed is abnormal, and a second object sample that logs in to the client during the reference time period when the indicator to be attributed is normal. The step of "calculating the importance based on the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension" may specifically include:
[0071] Determine a sample label of the object sample according to an object intersection between a first object sample that logs into the client during a target time period and a second object sample that logs into the client during a reference time period;
[0072] Classifying the object samples based on feature data of the object samples on feature dimensions to obtain classification results;
[0073] The feature importance of each feature dimension corresponding to the object sample is calculated based on the classification results and sample labels.
[0074] The object intersection may include users who log in to the client in both the reference time period and the target time period, the sample labels of the object samples in the object intersection are set as positive sample labels, and the sample labels of other object samples are set as negative sample labels.
[0075] The feature dimensions can be classified by decision tree or random forest algorithms to obtain classification results. The following takes the classification results obtained by classifying the feature dimensions by the random forest algorithm as an example. Since the random forest is composed of multiple decision trees, the classification process of the feature dimensions by the decision tree can refer to the classification process of the random forest algorithm.
[0076] For example, for each feature dimension, determine the importance of the feature dimension in each decision tree in the random forest, and then calculate the feature importance of the feature dimension based on the importance of the feature dimension in each decision tree. Suppose there are J feature dimensions f1, f2, f3, …, f J , there are I decision trees and two categories (positive samples and negative samples).
[0077] The Gini index of node q of the i-th decision tree in the random forest is:
[0078]
[0079] in, represents the Gini index of node q of the i-th decision tree, Indicates the proportion of object samples of category c in node q, Indicates the proportion of object samples of category c` in node q.
[0080] If the split feature of node q is feature dimension f i , then the feature dimension f i The importance of node q in the i-th decision tree is:
[0081]
[0082] in, and is the Gini index of the left and right child nodes obtained after the node q is split, and the feature dimension f i The importance of node q in the i-th decision tree is the change in the Gini index before and after the node q splits.
[0083] If in the i-th decision tree, with feature dimension f i The node set as the split feature is Q, then the feature dimension f i The importance of the i-th decision tree is:
[0084]
[0085] The random forest has I decision trees, so based on the random forest algorithm feature dimension f i The feature importance of is:
[0086]
[0087] Optionally, the feature importance of the feature dimension may be normalized to constrain the feature importance of the feature dimension to be between 0 and 1, so that the feature importance of the feature dimension can be determined more intuitively. Specifically, the normalization may be performed using the following formula:
[0088]
[0089] Among them, j′ represents the j′th feature dimension among the J feature dimensions.
[0090] Using algorithms such as random forest or decision tree, the feature importance of feature dimensions related to the indicator to be attributed can be obtained. Feature importance can measure the degree of correlation between feature dimensions and the indicator to be attributed. The greater the feature importance, the more relevant it is to the indicator to be attributed, and the smaller the feature importance, the less relevant it is to the indicator to be attributed.
[0091] 103. Filter the feature dimensions based on feature importance to obtain the target feature dimensions.
[0092] For example, a preset number of feature dimensions can be selected as target feature dimensions from the feature dimensions related to the indicator to be attributed according to feature importance. For example, the feature importance is sorted from large to small, and the top 10 feature dimensions are selected. Alternatively, feature dimensions whose feature importance is greater than a preset threshold can be selected as target feature dimensions, where the preset threshold can be a pre-set numerical value for selecting feature dimensions.
[0093] 104. Perform data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension.
[0094] Since root cause algorithms, such as Hotspot, Adtributor, iDice algorithm and Squeeze, are all calculated based on discrete features, and in actual application scenarios, feature dimensions are usually continuous numerical features, such as payment amount and active duration, etc. Therefore, it is necessary to discretize the feature data corresponding to the discrete numerical feature dimension in the target feature dimension so that the target feature dimension is a discrete feature.
[0095] Data discretization processing refers to segmenting continuous data into discrete intervals. For example, by performing data discretization processing on the target feature dimension "active duration", the feature data originally of continuous data type can be divided into multiple intervals such as (0,2], (2,4], (4,6], (6,8] and (8,10].
[0096] There are many ways to discretize the feature data of the target feature dimension, such as equidistance discretization, equal frequency discretization, clustering model discretization, quantile discretization, binary discretization, chi-square binning discretization and 1-Rule (1R) discretization.
[0097] Among them, the chi-square binning discretization method is a supervised bottom-up (i.e., merging-based) data discretization method. It relies on the chi-square test to merge adjacent intervals with the smallest chi-square value until a certain stopping criterion is met. 2 The test is based on x 2 A hypothesis testing method based on distribution. Its basic idea is to infer whether the distribution of the population is significantly different from the expected distribution based on the sample data, or to infer whether two categorical variables are related or independent. Generally, the null hypothesis can be set as H0: there is no difference between the observed frequency and the expected frequency, or the two variables are independent and unrelated.
[0098] In practical applications, we first assume that H0 is true and calculate x 2 The value of x 2 Indicates the degree of deviation between the observed value and the theoretical value. 2 Distribution, x 2 Statistics and degrees of freedom can determine the probability p of obtaining the current statistics and more extreme situations when H0 is true. If p is very small, it means that the observed value deviates greatly from the theoretical value, and the null hypothesis should be rejected. Otherwise, the null hypothesis cannot be rejected.
[0099] x 2 The calculation formula is:
[0100]
[0101] Among them, A is the actual value and T is the theoretical value.
[0102] x 2 It is used to measure the difference between the actual value and the theoretical value, which is also the core idea of the chi-square test. 2 It contains two pieces of information: 1. The absolute size of the deviation between the actual value and the theoretical value; 2. The relative size of the difference between the actual value and the theoretical value.
[0103] The idea of the chi-square binning discretization method is: if two adjacent intervals have very similar class distributions, the two intervals can be merged; otherwise, they should remain separate, and a low chi-square value indicates that they have similar class distributions. Therefore, it is necessary to sort the feature data corresponding to the target feature dimension according to the numerical value, and then discretize it according to the arrangement order, that is, in one embodiment, the step of "discretizing the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension" can specifically include:
[0104] Sorting the feature data of the object samples with respect to the target feature dimension to obtain sorted feature data corresponding to the target feature dimension;
[0105] Discretization processing is performed based on the sorted feature data to obtain discrete feature data of the object sample regarding the target feature dimension.
[0106] For example, a chi-square threshold may be pre-set, and for each discrete numerical target feature dimension, the feature data of the object sample on the target feature dimension is sorted based on the numerical value to obtain sorted feature data. Initially, each object sample is regarded as an interval, and the chi-square value of each pair of adjacent intervals is calculated based on the sorted feature data, and the pair of intervals with the smallest chi-square value is merged to obtain the discretized feature data. The chi-square value is calculated as follows:
[0107]
[0108] Among them, A ij represents the number of samples of the jth class in the i-th interval; E ij Indicates A ij The expected frequency is N i ×C j / N, N represents the total number of samples, N i is the number of samples in the ith interval, C j is the proportion of the j-th type of samples in the whole. Based on the iteration of the above steps, the feature data of the object sample about the target feature dimension can be discretized to obtain segments of discretized intervals.
[0109] 105. Perform root cause analysis based on the discrete feature data of the target feature dimension of the object sample to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension, and determine the feature factors related to the abnormality of the indicator to be attributed in the abnormal feature dimension.
[0110] For example, based on the discrete feature data obtained in step 104, a root cause analysis process may be performed on the target feature dimension through a root cause algorithm to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
[0111] In one embodiment, the discrete feature data of the target feature dimension of the second object sample that logs in to the client in the reference time period can be used as the true value, and the discrete feature data of the target feature dimension of the first object sample that logs in to the client in the target time period can be used as the predicted value. For each target feature dimension, the abnormal feature dimension that causes the abnormality of the indicator to be attributed is determined according to the difference between the corresponding predicted value and the true value. By performing data discretization processing on the feature data corresponding to the target feature dimension, the feature data of the target feature dimension can be obtained and divided into multiple intervals. For example, the data discretization processing is performed on the target feature dimension "active duration", and the feature data originally of the continuous data type can be divided into multiple intervals such as (0,2], (2,4], (4,6], (6,8] and (8,10], each interval is a feature factor, that is, there are multiple feature factors under the feature dimension, and the feature factors correspond to the discrete feature data one by one. The step of "performing root cause analysis processing based on the discrete feature data of the object sample on the target feature dimension to determine the feature dimension that causes the abnormality of the indicator to be attributed" can specifically include:
[0112] Calculate the factor prediction value corresponding to the target feature dimension according to the feature data of the first object sample that logs in to the client during the target time period about the target feature dimension;
[0113] Calculate the true value of the factor corresponding to the target feature dimension according to the feature data of the second object sample that logs in to the client during the reference time period about the target feature dimension;
[0114] Calculations are performed based on the predicted values of the factors and the actual values of the factors to determine the abnormal feature dimensions related to the abnormal indicators to be attributed in the target time period, as well as the abnormal feature factors that cause the abnormal indicators to be attributed under the abnormal feature dimensions.
[0115] The predicted value corresponding to the target feature dimension may include a feature factor predicted value and a dimension predicted value. For example, the first object sample that logs in to the client in the target time period may be obtained, and based on the discrete feature data of the first object sample about the target feature dimension, the predicted value corresponding to each target feature dimension is calculated, and the proportion of the factor predicted value of each feature factor in the dimension predicted value under the target feature dimension is calculated. The calculation method is as follows:
[0116]
[0117] Among them, m represents the indicator to be attributed, such as the active time indicator or the daily active indicator, etc., and p ij (m) represents the ratio of the factor prediction value of the jth feature factor under the i-th target feature dimension to the dimension prediction value of the i-th target feature dimension, F ijrepresents the factor prediction value of the jth characteristic factor under the i-th target characteristic dimension. The factor prediction value can be the sample number of the object sample corresponding to the statistical discrete characteristic data and the characteristic factor. ij It can represent the number of samples, F represents the dimension prediction value of the i-th target feature dimension, and the dimension prediction value can be the sum of the factor prediction values of all feature factors under the i-th target feature dimension. ij It can also represent the product of the sample size and the discrete feature data corresponding to the feature factor. For example, the product between the median value of the interval and the sample size can be calculated. Then, the product of the discrete feature data corresponding to each feature factor and the sample size of the object sample under the i-th target feature dimension is calculated respectively to obtain the factor prediction value of each feature factor. The factor prediction values of each feature factor under the i-th target feature dimension are summed to obtain the dimension prediction value of the i-th target feature dimension.
[0118] Refer to the above calculation F ij In the manner of and F, based on the second object sample that logs in to the client during the reference time period, the true value corresponding to the target feature dimension can be calculated. The true value may include the factor true value and the dimension true value. The calculation formula is as follows:
[0119]
[0120] Among them, A ij represents the true value of the jth feature factor under the i-th target feature dimension, A represents the dimension prediction value of the i-th target feature dimension, q ij (m) represents the ratio of the factor true value of the jth feature factor under the i-th target feature dimension to the dimension true value of the i-th target feature dimension.
[0121] Then calculate p ij (m) and q ij (m) difference, for example, the divergence can be used to calculate p ij (m) and q ij (m) difference, such as js (Jensen-Shannon divergence) divergence or kl (Kullback–Leibler divergence), the larger the divergence value, the higher the p ij (m) and q ij The greater the difference between (m).
[0122] Under the target feature dimension, the feature factors whose divergence values are greater than the preset threshold are determined as abnormal feature factors that cause the indicator to be attributed to be abnormal. The target feature dimension is the abnormal feature dimension that causes the indicator to be attributed to be abnormal.
[0123] In addition to calculating the difference between the predicted value and the true value of the target feature dimension by divergence, the fluctuation degree of each feature factor under the target feature dimension can also be calculated, and the abnormal feature dimension and abnormal feature factor can be determined according to the fluctuation degree of the feature factor. That is, in one embodiment, the step of "calculating based on the factor predicted value and the factor true value to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed in the target time period, and the abnormal feature factor related to the abnormality of the indicator to be attributed under the abnormal feature dimension" can specifically include:
[0124] Based on the predicted value and the actual value of the factor, the fluctuation of the characteristic factor under each target characteristic dimension is calculated to obtain the fluctuation degree of each characteristic factor;
[0125] According to the fluctuation degree of each characteristic factor, determine the abnormal characteristic dimensions related to the abnormality of the indicator to be attributed in the target time period and the abnormal characteristic factors under the abnormal characteristic dimensions.
[0126] For example, it can be calculated by the following formula:
[0127]
[0128] EP ij It can represent the fluctuation degree of the jth characteristic factor of the i-th target characteristic dimension, also known as explanatory power (EP).
[0129] Among the target characteristic factors, the characteristic factors whose fluctuation degree meets the preset conditions can be determined as abnormal characteristic factors that cause abnormality in the indicator to be attributed. The target characteristic dimension is the abnormal characteristic dimension that causes abnormality in the indicator to be attributed. The preset condition can be that the fluctuation degree is greater than a preset threshold.
[0130] Optionally, a target characteristic factor whose divergence value is greater than a preset threshold or whose fluctuation degree meets a preset condition may be determined as an abnormal characteristic factor causing the indicator to be attributed to be abnormal.
[0131] In addition to determining the abnormal feature dimension causing the abnormality of the indicator to be attributed according to the fluctuation degree of each target feature dimension, the abnormal feature dimension may also be determined according to the probability that each target feature dimension is the feature dimension causing the abnormality of the indicator to be attributed. That is, in one embodiment, the step of "performing root cause analysis processing based on the discrete feature data of the target feature dimension of the object sample to determine the feature dimension causing the abnormality of the indicator to be attributed" may specifically include:
[0132] Calculate the root cause probability of the target feature dimension causing the abnormality of the indicator to be attributed based on discrete feature data;
[0133] According to the root cause probability, determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the target feature dimension.
[0134] For example, the discrete feature data of the object sample about the target feature dimension can be input into the neural network model. The object sample is marked with the corresponding time period (reference time period or target time period). The neural network model is used to predict the root cause probability of each target feature dimension causing the abnormality of the indicator to be attributed. The abnormal feature dimension that causes the abnormality of the indicator to be attributed is determined from the target feature dimension based on the root cause probability.
[0135] Optionally, since the divergence value and fluctuation degree of each characteristic factor are calculated based on the factor prediction value and the factor true value of the target characteristic dimension, and the influence between different target characteristic dimensions is not involved, the HotSpot algorithm can be used to calculate the probability that the target characteristic dimension combination is the root cause of the abnormal indicator to be attributed, and the abnormal characteristic dimension that causes the abnormal indicator to be attributed is determined based on the root cause probability. The abnormal characteristic dimension can be at least one target characteristic dimension combination.
[0136] The HotSpot algorithm proposes a root cause judgment method based on RippleEffect for basic indicators (additive, such as transaction volume, PV, etc.), which means that there is a relationship between the anomalies of the dimension combination caused by the same root cause, and all dimension combinations affected by the same root cause will change at the same rate. The more the dimension combination and its child nodes meet the Ripple Effect conditions, the more likely it is to be the root cause. Potential Score is proposed to quantify the degree to which a node and all its leaf nodes meet the Ripple Effect. The HotSpot algorithm will consider the root cause combination under the same dimension.
[0137] The abnormal feature dimension can be obtained by comprehensively comparing the candidate abnormal feature dimensions of the abnormal indicator to be attributed in the target time period determined with reference to multiple reference time periods. That is, in one embodiment, there are multiple reference time periods. The step of "performing root cause analysis based on the discrete feature data of the object sample on the target feature dimension to determine the feature dimension causing the abnormal indicator to be attributed" can specifically include:
[0138] Perform root cause analysis based on the discrete feature data corresponding to each reference time period and the discrete feature data corresponding to the target time period to obtain candidate feature dimensions where the discrete feature data corresponding to the target time period is abnormal when compared with the feature data of each reference time period.
[0139] Based on the candidate feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed within the target time period.
[0140] The embodiment of the present application determines the abnormal feature dimension in the target feature dimension that causes the indicator to be attributed to be abnormal by comparing it with the feature data of the reference time period when the indicator to be attributed is normal. Therefore, in one embodiment, multiple reference times when the indicator to be attributed is normal can be set. By comparing the feature data of each reference time, different attribution results can be obtained, that is, different candidate abnormal feature dimensions that cause the indicator to be attributed to be abnormal in the target time period are obtained, and the target abnormal feature dimension is determined based on the candidate feature dimensions.
[0141] Among them, the attribution result can include a single target feature dimension or a combination of target feature dimensions, that is, the candidate feature dimension can be a single target feature dimension or a combination of target feature dimensions.
[0142] By counting the number of occurrences of each target feature dimension and target feature dimension combination in the candidate feature dimensions, the abnormal feature dimension that causes the abnormality of the indicator to be attributed within the target time period can be determined. For example, the target feature dimension or target factor combination with the largest number of occurrences can be determined as the abnormal feature dimension.
[0143] In the specific implementation of this application, user information and other related data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0144] As can be seen from the above, the embodiment of the present application obtains feature data corresponding to feature dimensions related to the object sample logged in to the client and the indicator to be attributed; importance calculation is performed based on the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension; the feature dimensions are screened based on the feature importance to obtain the target feature dimension; data discretization is performed on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; root cause analysis is performed based on the discrete feature data of the object sample on the target feature dimension to determine the abnormal feature dimension that causes the abnormal indicator to be attributed from the feature dimension.
[0145] The embodiment of the present application calculates the importance of the feature dimensions related to the indicator to be attributed, so as to screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed.
[0146] Based on the above embodiments, further detailed description will be given below with examples.
[0147] This embodiment will take the to-be-attributed indicator as a daily activity indicator as an example and describe it from the perspective of an indicator anomaly analysis device. The indicator anomaly analysis device can be specifically integrated in a computer device, which can be a server or a terminal.
[0148] The present application provides a method for analyzing abnormal indicators. Figure 3 As shown, the specific process of the indicator abnormality analysis method can be as follows:
[0149] 201. The server obtains feature data corresponding to feature dimensions related to the logged-in client object sample and the indicator to be attributed.
[0150] For example, the server obtains a first object sample logged in during a target time period and a second object sample logged in during a reference time period, and extracts feature data corresponding to feature dimensions related to the attribution indicator of the first object sample and the second object sample.
[0151] In one embodiment, the feature dimensions related to the indicator to be attributed may include the user level of the user who logged in on the day, the historical payment amount of the user who logged in on the day, the payment amount of the user who logged in on the day in the most recent month, the active time of the user who logged in on the day in the most recent three days, whether the user who logged in on the day participated in an activity on that day, and the type of the user who logged in on the day (for example, new, retained, or returning, etc.), etc.
[0152] The feature dimensions related to the indicator to be attributed can be designed according to the application scenario. There are dozens of feature dimensions related to the daily activity indicator in the business, and there may even be nearly a hundred of them. It takes a long time to perform attribution calculations in many feature dimensions. Step 203 can use the random forest algorithm to filter out the target feature dimensions from the many feature dimensions, reduce the number of feature dimensions for attribution calculations, and improve calculation efficiency. Before filtering the target feature dimensions, it is necessary to set labels for the acquired object samples to construct the sample data required for using the random forest algorithm.
[0153] 202. The server determines a sample label of the object sample according to an object intersection between a first object sample that logs into the client in a target time period and a second object sample that logs into the client in a reference time period.
[0154] For example, the object sample may include players who log in to the client during the target time period and players who log in to the client during the reference time period. If the object sample logs in to the client during the reference time period and the target time period, the sample label of the object sample is set to a positive sample label. If the object sample logs in to the client during the reference time period but not during the target time period, the sample label of the object sample is set to a negative sample label. The object sample in the object intersection of the first object sample and the second object sample is the object sample that logs in to the client during both the reference time period and the target time period. The server sets the sample label of the object sample in the object intersection to a positive sample label, and sets the sample label of other object samples to a negative sample label.
[0155] 203. The server calculates the feature importance of each feature dimension by using a random forest algorithm based on the sample label of the object sample and the feature data about the feature dimension.
[0156] For example, for each feature dimension, determine the importance of the feature dimension in each decision tree in the random forest, and then calculate the feature importance of the feature dimension based on the importance of the feature dimension in each decision tree. Suppose there are J feature dimensions f1, f2, f3, …, f J , there are I decision trees and two categories (positive samples and negative samples).
[0157] The Gini index of node q of the i-th decision tree in the random forest is:
[0158]
[0159] in, represents the Gini index of node q of the i-th decision tree, Indicates the proportion of object samples of category c in node q, It represents the proportion of object samples of category c` in node q. Category c=1 can be positive samples in object samples, and category c=2 can be negative samples in object samples.
[0160] If the split feature of node q is feature dimension f i , then the feature dimension f i The importance of node q in the i-th decision tree is:
[0161]
[0162] in, and is the Gini index of the left and right child nodes obtained after the node q is split, and the feature dimension f i The importance of node q in the i-th decision tree is the change in the Gini index before and after the node q splits.
[0163] If in the i-th decision tree, with feature dimension f i The node set as the split feature is Q, then the feature dimension f i The importance of the i-th decision tree is:
[0164]
[0165] The random forest has I decision trees, so based on the random forest algorithm feature dimension f i The feature importance of is:
[0166]
[0167] Optionally, the feature importance of the feature dimension may be normalized to constrain the feature importance of the feature dimension to be between 0 and 1, so that the feature importance of the feature dimension can be determined more intuitively. Specifically, the normalization may be performed using the following formula:
[0168]
[0169] Among them, j′ represents the j′th feature dimension among the J feature dimensions.
[0170] Feature importance can measure the correlation between the feature dimension and the indicator to be attributed. The greater the feature importance, the more relevant it is to the indicator to be attributed, and the smaller the feature importance, the less relevant it is to the indicator to be attributed.
[0171] 204. The server filters the feature dimensions according to the feature importance to obtain the target feature dimensions.
[0172] For example, a preset number of feature dimensions can be selected as target feature dimensions from the feature dimensions related to the indicator to be attributed according to feature importance. For example, the feature importance is sorted from large to small, and the top 10 feature dimensions are selected. Alternatively, feature dimensions whose feature importance is greater than a preset threshold can be selected as target feature dimensions, where the preset threshold can be a pre-set numerical value for selecting feature dimensions.
[0173] 205. The server performs data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension.
[0174] Since root cause algorithms, such as Hotspot, Adtributor, iDice algorithm and Squeeze, are all calculated based on discrete features, and in actual application scenarios, feature dimensions are usually continuous numerical features, such as payment amount and active duration, etc. Therefore, it is necessary to discretize the feature data corresponding to the discrete numerical feature dimension in the target feature dimension so that the target feature dimension is a discrete feature.
[0175] Data discretization refers to segmenting continuous data into discrete intervals. There are many ways to discretize the feature data of the target feature dimension, such as equidistance discretization, equal frequency discretization, clustering model discretization, quantile discretization, binary discretization, chi-square binning discretization and 1-Rule (1R) discretization.
[0176] 206. The server calculates a factor prediction value corresponding to the target feature dimension based on the feature data of the first object sample about the target feature dimension.
[0177] The predicted value corresponding to the target feature dimension may include a feature factor predicted value and a dimension predicted value. For example, the first object sample that logs in to the client in the target time period may be obtained, and based on the discrete feature data of the first object sample about the target feature dimension, the predicted value corresponding to each target feature dimension is calculated, and the proportion of the factor predicted value of each feature factor in the dimension predicted value under the target feature dimension is calculated. The calculation method is as follows:
[0178]
[0179] Where m represents the indicator to be attributed, such as the active time indicator or the daily active indicator, and p ij (m) represents the ratio of the factor prediction value of the jth feature factor under the i-th target feature dimension to the dimension prediction value of the i-th target feature dimension, F ij represents the factor prediction value of the jth characteristic factor under the i-th target characteristic dimension. The factor prediction value can be the sample number of the object sample corresponding to the statistical discrete characteristic data and the characteristic factor. ij It can represent the number of samples, F represents the dimension prediction value of the i-th target feature dimension, and the dimension prediction value can be the sum of the factor prediction values of all feature factors under the i-th target feature dimension. ijIt can also represent the product of the sample size and the discrete feature data corresponding to the feature factor. For example, the product between the median value of the interval and the sample size can be calculated. Then, the product of the discrete feature data corresponding to each feature factor and the sample size of the object sample under the i-th target feature dimension is calculated respectively to obtain the factor prediction value of each feature factor. The factor prediction values of each feature factor under the i-th target feature dimension are summed to obtain the dimension prediction value of the i-th target feature dimension.
[0180] 207. The server calculates the true value of the factor corresponding to the target feature dimension based on the feature data of the second object sample about the target feature dimension.
[0181] Refer to the above calculation F ij In the manner of and F, based on the second object sample that logs in to the client during the reference time period, the true value corresponding to the target feature dimension can be calculated. The true value may include the factor true value and the dimension true value. The calculation formula is as follows:
[0182]
[0183] Among them, A ij represents the true value of the jth feature factor under the i-th target feature dimension, A represents the dimension prediction value of the i-th target feature dimension, q ij (m) represents the ratio of the factor true value of the jth feature factor under the i-th target feature dimension to the dimension true value of the i-th target feature dimension.
[0184] 208. Calculation is performed based on the predicted value of the factor and the actual value of the factor to determine the abnormal characteristic dimension related to the abnormality of the indicator to be attributed in the target time period and the abnormal characteristic factor under the abnormal characteristic dimension.
[0185] For example, to calculate p ij (m) and q ij (m) difference, for example, the divergence can be used to calculate p jj (m) and q ij (m) difference, such as js (Jensen-Shannon divergence) divergence or kl (Kullback–Leibler divergence), the larger the divergence value, the higher the p ij (m) and q ij The greater the difference between (m).
[0186] Then the fluctuation degree of each characteristic factor is calculated by the following formula:
[0187]
[0188] EPij It can represent the fluctuation degree of the jth characteristic factor of the i-th target characteristic dimension, also known as explanatory power (EP).
[0189] The characteristic factors whose divergence values are greater than a preset threshold or whose fluctuation degree meets the preset conditions are determined as abnormal characteristic factors causing the abnormality of the indicator to be attributed, and the target characteristic dimension is the abnormal characteristic dimension causing the abnormality of the indicator to be attributed.
[0190] As can be seen from the above, the server in the embodiment of the present application obtains feature data corresponding to the feature dimension related to the indicator to be attributed by the object sample of the logged-in client; determines the sample label of the object sample according to the object intersection between the first object sample logged in to the client in the target time period and the second object sample logged in to the client in the reference time period; calculates the feature importance of each feature dimension through the random forest algorithm based on the sample label of the object sample and the feature data about the feature dimension; filters the feature dimension according to the feature importance to obtain the target feature dimension; discretizes the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; and calculates the factor prediction value corresponding to the target feature dimension according to the feature data of the first object sample about the target feature dimension.
[0191] The embodiment of the present application calculates the importance of the feature dimensions related to the indicator to be attributed, so as to screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed.
[0192] In order to better implement the index abnormality analysis method provided in the embodiment of the present application, an index abnormality analysis device is also provided in one embodiment. The meanings of the terms are the same as those in the above-mentioned index abnormality analysis method, and the specific implementation details can refer to the description in the method embodiment.
[0193] The indicator abnormality analysis device can be integrated into a computer device, such as Figure 4 As shown, the indicator abnormality analysis device may include: an acquisition unit 301, a calculation unit 302, a screening unit 303, a processing unit 304 and an analysis unit 305, which are specifically as follows:
[0194] (1) Acquisition unit 301: used to acquire feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed.
[0195] (2) Calculation unit 302: used to calculate the importance based on the feature data of the object sample about the feature dimension, and obtain the feature importance of each feature dimension.
[0196] In one embodiment, the object sample includes a first object sample that logs into the client during a target time period when the indicator to be attributed is abnormal, and a second object sample that logs into the client during a reference time period when the indicator to be attributed is normal. The calculation unit 302 may include a label determination subunit, a classification subunit, and an importance calculation subunit. Specifically:
[0197] A label determination subunit: used to determine a sample label of an object sample according to an object intersection between a first object sample logged in during a target time period and a second object sample logged in during a reference time period;
[0198] Classification subunit: used to classify the object sample based on the feature data of the object sample on the feature dimension to obtain the classification result;
[0199] Importance calculation subunit: used to calculate the feature importance of each feature dimension corresponding to the object sample based on the classification results and sample labels.
[0200] (3) Screening unit 303: used to screen feature dimensions based on feature importance to obtain target feature dimensions.
[0201] (4) Processing unit 304: used to perform data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension.
[0202] In one embodiment, the processing unit 304 may include a sorting subunit and a discrete processing subunit, specifically:
[0203] Sorting subunit: used to sort the feature data of the object sample with respect to the target feature dimension, and obtain sorted feature data corresponding to the target feature dimension;
[0204] Discrete processing subunit: used to perform discretization processing based on the sorted feature data to obtain discrete feature data of the object sample about the target feature dimension.
[0205] (5) Analysis unit 305: used to perform root cause analysis based on the discrete feature data of the object sample about the target feature dimension, so as to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
[0206] In one embodiment, there are characteristic factors under the characteristic dimension, and the characteristic factors correspond to the discrete characteristic data. The analysis unit 305 may include a first characteristic calculation subunit, a second characteristic calculation subunit and an attribution unit. Specifically:
[0207] A first feature calculation subunit: used to calculate a prediction value corresponding to a target feature dimension according to feature data of a first object sample that logs in to the client during a target time period about a feature dimension;
[0208] The second feature calculation subunit is used to calculate the real value corresponding to the target feature dimension according to the feature data of the second object sample that logs in to the client during the reference time period about the feature dimension;
[0209] Attribution factor unit: used to calculate based on the predicted value and true value corresponding to the target feature dimension to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed in the target time period, as well as the abnormal feature factors related to the abnormality of the indicator to be attributed under the abnormal feature dimension.
[0210] In one embodiment, the attribution factor unit may include a fluctuation calculation module and a factor determination module, specifically:
[0211] Fluctuation calculation module: used to calculate the fluctuation of the characteristic factors under the characteristic dimension based on the predicted value and the actual value of the factor, and obtain the fluctuation degree of the characteristic factors;
[0212] Factor determination module: used to determine the abnormal characteristic dimensions and abnormal characteristic factors under the abnormal characteristic dimensions related to the abnormality of the indicator to be attributed in the target time period according to the fluctuation degree of the characteristic factors.
[0213] In one embodiment, the analyzing unit 305 may include a root cause analyzing subunit and a first dimension determining subunit, specifically:
[0214] Root cause analysis subunit: used to perform root cause analysis based on the discrete feature data corresponding to each reference time period and the discrete feature data corresponding to the target time period, and obtain candidate feature dimensions for abnormal discrete feature data corresponding to the target time period when compared with the feature data of each reference time period;
[0215] The first dimension determination subunit is used to determine the feature dimension that causes the abnormality of the indicator to be attributed within the target time period based on the candidate feature data.
[0216] In one embodiment, the analysis unit 305 may include a probability calculation subunit and a second dimension determination subunit, specifically:
[0217] Probability calculation subunit: used to calculate the root cause probability of the abnormality of the indicator to be attributed caused by the feature dimension based on discrete feature data;
[0218] The second dimension determination subunit is used to determine the characteristic dimension causing the abnormality of the indicator to be attributed from the characteristic dimension according to the root cause probability.
[0219] As can be seen from the above, the indicator anomaly analysis device of the embodiment of the present application obtains the feature data corresponding to the feature dimension related to the indicator to be attributed of the object sample logged in to the client through the acquisition unit 301; the calculation unit 302 performs importance calculation based on the feature data of the object sample on the feature dimension, and obtains the feature importance of each feature dimension; the screening unit 303 screens the feature dimension based on the feature importance, and obtains the target feature dimension; the processing unit 304 performs data discretization processing on the feature data corresponding to the target feature dimension, and obtains discrete feature data corresponding to the target feature dimension; the analysis unit 305 performs root cause analysis processing based on the discrete feature data of the object sample on the target feature dimension, so as to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
[0220] The embodiment of the present application calculates the importance of the feature dimensions related to the indicator to be attributed, so as to screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed.
[0221] The present application also provides a computer device, which may be a terminal or a server. Figure 5 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0222] The computer device may include components such as a processor 1001 with one or more processing cores, a memory 1002 with one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will appreciate that Figure 5 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0223] The processor 1001 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 1002 and calling data stored in the memory 1002, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, computer program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1001.
[0224] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
[0225] The computer device also includes a power supply 1003 for supplying power to various components. Preferably, the power supply 1003 can be logically connected to the processor 1001 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 1003 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0226] The computer device may further include an input unit 1004, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0227] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 1001 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 will run the computer programs stored in the memory 1002, thereby realizing various functions, as follows:
[0228] Obtain feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed;
[0229] Importance calculation is performed based on the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension;
[0230] Screen the feature dimensions based on feature importance to obtain the target feature dimensions;
[0231] Performing data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension;
[0232] Root cause analysis is performed based on the discrete feature data of the object sample about the target feature dimension to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
[0233] The specific implementation of the above operations can be found in the previous embodiments and will not be described in detail here.
[0234] From the above, it can be seen that the computer device of the embodiment of the present application can obtain the feature data corresponding to the feature dimensions related to the object sample logged in to the client and the indicator to be attributed; perform importance calculation based on the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension; screen the feature dimensions based on the feature importance to obtain the target feature dimension; perform data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; perform root cause analysis processing based on the discrete feature data of the object sample on the target feature dimension to determine the abnormal feature dimension that causes the abnormal indicator to be attributed from the feature dimension.
[0235] The computer device of the embodiment of the present application can calculate the importance of the feature dimensions related to the indicator to be attributed, and can screen out the target feature dimensions that are more important for the abnormality of the indicator to be attributed, reduce the feature dimensions for root cause analysis, and then discretize the feature data under the target feature dimensions, so that attribution analysis can be performed on the target feature dimensions, determine the abnormal feature dimensions that cause the abnormality of the indicator to be attributed, and improve the efficiency of root cause analysis of the indicator to be attributed.
[0236] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations in the above-mentioned embodiments.
[0237] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0238] To this end, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program can be loaded by a processor to execute any indicator anomaly analysis method provided in the embodiment of the present application.
[0239] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0240] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0241] Since the computer program stored in the computer-readable storage medium can execute any one of the indicator abnormality analysis methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the indicator abnormality analysis methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0242] The above is a detailed introduction to an indicator abnormality analysis method, device, computer equipment and computer-readable storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for analyzing abnormal indicators, characterized in that: include: Obtain feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed; Calculate the importance of the feature data of the object sample on the feature dimension to obtain the feature importance of each feature dimension; Screening the feature dimensions based on the feature importance to obtain target feature dimensions; Performing data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; A root cause analysis process is performed based on the discrete feature data of the object sample with respect to the target feature dimension, so as to determine the abnormal feature dimension causing the abnormality of the indicator to be attributed from the feature dimension.
2. The method according to claim 1, characterized in that The object sample includes a first object sample that logs into the client during a target time period when the indicator to be attributed is abnormal, and a second object sample that logs into the client during a reference time period when the indicator to be attributed is normal, and the importance calculation based on the feature data of the feature dimension of the object sample is performed to obtain the feature importance of each feature dimension, including: determining a sample label of the object sample according to an object intersection between a first object sample logged in during the target time period and a second object sample logged in during the reference time period; Classifying the object sample based on the feature data of the object sample about the feature dimension to obtain a classification result; The feature importance of each feature dimension corresponding to the object sample is calculated according to the classification result and the sample label.
3. The method according to claim 2, characterized in that The feature dimension has feature factors corresponding to the discrete feature data. The discrete feature data of the target feature dimension is subjected to root cause analysis based on the object sample to determine the feature dimension causing the abnormality of the indicator to be attributed, including: Calculate and obtain a prediction value corresponding to the target feature dimension according to feature data of the first object sample that logs in to the client during the target time period about the feature dimension; Calculate the true value corresponding to the target feature dimension according to the feature data of the second object sample that logs in to the client during the reference time period about the feature dimension; Calculation is performed based on the predicted value and the actual value corresponding to the target feature dimension to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed in the target time period, and the abnormal feature factors related to the abnormality of the indicator to be attributed under the abnormal feature dimension.
4. The method according to claim 2, characterized in that: The calculation based on the predicted value of the factor and the actual value of the factor to determine the abnormal feature dimension causing the abnormality of the indicator to be attributed in the target time period, and the abnormal feature factors related to the abnormality of the indicator to be attributed under the abnormal feature dimension, include: Based on the predicted value of the factor and the actual value of the factor, a fluctuation calculation is performed on the characteristic factor under the characteristic dimension to obtain the fluctuation degree of the characteristic factor; According to the fluctuation degree of the characteristic factors, the abnormal characteristic dimensions related to the abnormality of the indicator to be attributed occurring in the target time period and the abnormal characteristic factors under the abnormal characteristic dimensions are determined.
5. The method according to claim 2, characterized in that: There are multiple reference time periods, and the root cause analysis processing is performed based on the discrete feature data of the object sample on the target feature dimension to determine the feature dimension causing the abnormality of the indicator to be attributed, including: Perform root cause analysis on the discrete feature data corresponding to each reference time period and the discrete feature data corresponding to the target time period to obtain candidate feature dimensions where the discrete feature data corresponding to the target time period is abnormal when compared with the feature data of each reference time period; Determine, based on the candidate feature data, the feature dimension causing the abnormality of the indicator to be attributed within the target time period.
6. The method according to claim 1, characterized in that The performing root cause analysis processing on the discrete feature data of the target feature dimension based on the object sample to determine the feature dimension causing the abnormality of the indicator to be attributed includes: Calculate the root cause probability of the characteristic dimension causing the abnormality of the indicator to be attributed based on the discrete characteristic data; The characteristic dimension causing the abnormality of the indicator to be attributed is determined from the characteristic dimensions according to the root cause probability.
7. The method according to any one of claims 1 to 6, characterized in that: The step of performing data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension includes: Sorting the feature data of the object samples with respect to the target feature dimension to obtain sorted feature data corresponding to the target feature dimension; Discretization processing is performed based on the sorted feature data to obtain discrete feature data of the object sample with respect to the target feature dimension.
8. An indicator abnormality analysis device, characterized in that: include: An acquisition unit, used to acquire feature data corresponding to feature dimensions related to the object sample logged into the client and the indicator to be attributed; A calculation unit, configured to calculate the importance of the feature data of the object sample with respect to the feature dimension, so as to obtain the feature importance of each feature dimension; A screening unit, configured to screen the feature dimensions based on the feature importance to obtain a target feature dimension; A processing unit, configured to perform data discretization processing on the feature data corresponding to the target feature dimension to obtain discrete feature data corresponding to the target feature dimension; An analysis unit is used to perform root cause analysis based on the discrete feature data of the object sample about the target feature dimension, so as to determine the abnormal feature dimension that causes the abnormality of the indicator to be attributed from the feature dimension.
9. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the indicator abnormality analysis method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the indicator abnormality analysis method according to any one of claims 1 to 9.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the indicator abnormality analysis method according to any one of claims 1 to 7 is implemented.
