User operation log data exception identification method and device, medium and product

By constructing an undirected minimum support tree and a population update strategy, abnormal operation logs in communication services are identified, the problem of low algorithm efficiency and accuracy in the existing technology is solved, and efficient classification of user uncertain behavior logs is achieved.

CN118869264AActive Publication Date: 2024-10-29CHINA MOBILE GROUP DESIGN INST +1

Patent Information

Application Number
CN202410857621.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing communication service abnormal operation log detection methods cannot effectively mine and analyze users' uncertain behaviors. They rely too much on existing data. The optimization accuracy and efficiency of the algorithm are low, especially in small data sets, and the learning effect is poor.

Method used

By using user operation log data as network nodes, we calculate the mutual information between nodes, build an undirected minimum support tree, perform node order search and population update, use fitness and optimization strategies to optimize node order, and identify abnormal logs.

Benefits of technology

It improves the efficiency and accuracy of abnormal log identification, can achieve better global convergence and efficient classification in big data structures, and effectively detect abnormal operation logs under user uncertainty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869264A_ABST
    Figure CN118869264A_ABST
Patent Text Reader

Abstract

The invention discloses a user operation log data exception identification method and device, a medium and a product, and the method comprises the steps: taking different logs in obtained user operation log data as network nodes, and calculating mutual information between different nodes; determining an undirected edge according to the size of mutual information among different nodes, constructing an undirected minimum support tree, orienting the nodes in the undirected minimum support tree, and determining a preliminary minimum support tree structure; performing node sequence search in the minimum support tree structure to obtain a node sequence group, taking different node sequences as different individuals in an initial population, and calculating the fitness of the different individuals in the initial population; updating the initial population according to the fitness of different individuals and a preset population optimization strategy; and taking the node sequence of the individual with the maximum fitness in the updated population as a user operation exception log. According to the scheme, the optimization efficiency and the optimization precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication security technology, and in particular to a method, device, medium and product for identifying abnormalities in user operation log data. Background Art

[0002] The amount of business data in communication enterprises is huge, and there are data security risks hidden in the massive data. In order to discover potential and accumulated data security issues, it is necessary to identify abnormal operation data through data mining and analysis methods to achieve security governance. Bayesian network is an important method in the field of data mining, which can solve uncertainty problems. The Bayesian network structure learning algorithm can be used to analyze abnormal operation logs generated by user uncertain behavior.

[0003] However, the existing methods for detecting abnormal operation logs of communication services mainly perform classification through improving text classification algorithms or based on data statistical analysis, and select some key fields of user logs for analysis based on established rules. However, they are unable to perform good mining and analysis on logs generated under uncertain user behaviors, and they are overly dependent on existing data. In addition, the learning effect is poor under small data sets, and the optimization accuracy and efficiency of the algorithm are low. Summary of the invention

[0004] Compared with the prior art, the present invention proposes a method, device, medium and product for identifying abnormalities in user operation log data, which can improve the efficiency and accuracy of optimization.

[0005] An embodiment of the present invention provides a method for identifying abnormalities in user operation log data, the method comprising:

[0006] Different logs in the acquired user operation log data are used as network nodes to calculate the mutual information between different nodes;

[0007] Determine undirected edges according to the mutual information between different nodes, construct an undirected minimum spanning tree, orient the nodes in the undirected minimum spanning tree, and determine a preliminary minimum spanning tree structure;

[0008] Performing node sequence search in the minimum supporting tree structure to obtain a node sequence group, taking different node sequences as different individuals in the initial population, and calculating the fitness of different individuals in the initial population;

[0009] The initial population is updated according to the fitness of different individuals and a preset population optimization strategy;

[0010] The node sequence of the individual with the largest fitness in the updated population is used as the user operation abnormality log.

[0011] Preferably, the initial population is updated according to the fitness of different individuals and a preset population optimization strategy, including:

[0012] A preset first number of individuals are selected from the initial population according to the fitness from large to small as the headhunting group, and a preset second number of individuals are selected from the headhunting group as the wandering group;

[0013] Calculating the fitness of individuals in the headhunting group in the headhunting group and the fitness of individuals in the wandering group in the wandering group;

[0014] The individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group;

[0015] When the preset update termination condition is not met, a headhunting group and a wandering group are selected from the updated initial population, and the individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group until the update termination condition is met;

[0016] When the update termination condition is met, stop updating the initial population.

[0017] Furthermore, the updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group includes:

[0018] When the fitness of the first individual in the wandering group is greater than the fitness of the second individual in the headhunting group, updating the first individual to the headhunting group;

[0019] When the fitness of all individuals in the headhunting group is not less than the fitness of the third individual in the wandering group, the third individual is updated.

[0020] Preferably, the updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group further includes:

[0021] Selecting a preset third number of individuals from the individuals in the initial population except the headhunting group and the wandering group as the entering group;

[0022] Calculate the fitness of individuals in the enterprising group in the enterprising group;

[0023] When the fitness of the fourth individual in the aggressive group is greater than the fitness of the second individual in the headhunting group, the fitness of the individuals in the initial population is recalculated, and the first number of individuals are reselected from the initial population in descending order of fitness as the headhunting group.

[0024] Preferably, the updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group further includes:

[0025] Calculating the absolute value of the difference between the fitness of the fourth individual in the enterprising group and the fitness of the second individual in the headhunting group;

[0026] When the calculated absolute value is within a range determined according to the fitness of the fourth individual and the fitness of the second individual, some node fragments of the second individual are selected, and the mapped node fragments at the same position in the fourth individual are replaced to update the fourth individual.

[0027] Preferably, the updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group further includes:

[0028] When the nodes other than the mapped node fragments in the fourth body are repeated with the nodes at the first position in the partial node fragments, the nodes corresponding to the first position on the fourth body are retained.

[0029] Preferably, performing individual updating on the third individual comprises:

[0030] Calculate the dynamic mutation probability according to the preset dynamic self-mutation strategy;

[0031] Determine the length of the mutation node segment according to the dynamic mutation probability;

[0032] Determine all mutation positions in the third individual according to the mutation node fragment length;

[0033] Determine the variant node fragment through node positioning;

[0034] Traversing and replacing each mutation position in the third individual according to the mutation node fragment to obtain multiple mutation new individuals;

[0035] The fitness of the mutated new individual in the wandering group is calculated, and the mutated new individual with the largest fitness is determined as the third individual after update.

[0036] Preferably, orienting the nodes in the undirected minimum spanning tree to determine a preliminary minimum spanning tree structure includes:

[0037] Taking each element in the potential parent node set of each node of the undirected minimum spanning tree as the parent node of the node, constructing different substructures; calculating the matching scores of different substructures and the preset standard training data set; taking the node with the highest matching score in the substructure of the node as the parent node of the node;

[0038] Each node of the undirected minimum spanning tree is connected to its corresponding parent node to obtain the minimum spanning tree structure.

[0039] The embodiment of the present invention further provides a device for identifying abnormalities in user operation log data, the device comprising:

[0040] A mutual information calculation module is used to use different logs in the acquired user operation log data as network nodes and calculate the mutual information between different nodes;

[0041] A spanning tree determination module, used to determine undirected edges according to the mutual information between different nodes, construct an undirected minimum spanning tree, orient the nodes in the undirected minimum spanning tree, and determine a preliminary minimum spanning tree structure;

[0042] A population determination module, used to search for node sequences in the minimum supporting tree structure to obtain node sequence groups, use different node sequences as different individuals in the initial population, and calculate the fitness of different individuals in the initial population;

[0043] A population updating module, used to update the initial population according to the fitness of different individuals and a preset population optimization strategy;

[0044] The result output module is used to use the node sequence of the individual with the largest fitness in the updated population as the user operation abnormality log.

[0045] Preferably, the population updating module is specifically used for:

[0046] A preset first number of individuals are selected from the initial population according to the fitness from large to small as the headhunting group, and a preset second number of individuals are selected from the headhunting group as the wandering group;

[0047] Calculating the fitness of individuals in the headhunting group in the headhunting group and the fitness of individuals in the wandering group in the wandering group;

[0048] The individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group;

[0049] When the preset update termination condition is not met, a headhunting group and a wandering group are selected from the updated initial population, and the individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group until the update termination condition is met;

[0050] When the update termination condition is met, stop updating the initial population.

[0051] Preferably, the population updating module is specifically used for:

[0052] When the fitness of the first individual in the wandering group is greater than the fitness of the second individual in the headhunting group, updating the first individual to the headhunting group;

[0053] When the fitness of all individuals in the headhunting group is not less than the fitness of the third individual in the wandering group, the third individual is updated.

[0054] Preferably, the population updating module is specifically used for:

[0055] Selecting a preset third number of individuals from the individuals in the initial population except the headhunting group and the wandering group as the entering group;

[0056] Calculate the fitness of individuals in the enterprising group in the enterprising group;

[0057] When the fitness of the fourth individual in the aggressive group is greater than the fitness of the second individual in the headhunting group, the fitness of the individuals in the initial population is recalculated, and the first number of individuals are reselected from the initial population in descending order of fitness as the headhunting group.

[0058] Preferably, the population updating module is specifically used for:

[0059] Calculating the absolute value of the difference between the fitness of the fourth individual in the enterprising group and the fitness of the second individual in the headhunting group;

[0060] When the calculated absolute value is within a range determined according to the fitness of the fourth individual and the fitness of the second individual, some node fragments of the second individual are selected, and the mapped node fragments at the same position in the fourth individual are replaced to update the fourth individual.

[0061] Preferably, the population updating module is specifically used for:

[0062] When the nodes other than the mapped node fragments in the fourth body are repeated with the nodes at the first position in the partial node fragments, the nodes corresponding to the first position on the fourth body are retained.

[0063] Preferably, the population updating module is specifically used for:

[0064] Calculate the dynamic mutation probability according to the preset dynamic self-mutation strategy;

[0065] Determine the length of the mutation node segment according to the dynamic mutation probability;

[0066] Determine all mutation positions in the third individual according to the mutation node fragment length;

[0067] Determine the variant node fragment through node positioning;

[0068] Traversing and replacing each mutation position in the third individual according to the mutation node fragment to obtain multiple mutation new individuals;

[0069] The fitness of the mutated new individual in the wandering group is calculated, and the mutated new individual with the largest fitness is determined as the third individual after update.

[0070] Preferably, orienting the nodes in the undirected minimum spanning tree to determine a preliminary minimum spanning tree structure includes:

[0071] Taking each element in the potential parent node set of each node of the undirected minimum spanning tree as the parent node of the node, constructing different substructures; calculating the matching scores of different substructures and the preset standard training data set; taking the node with the highest matching score in the substructure of the node as the parent node of the node;

[0072] Each node of the undirected minimum spanning tree is connected to its corresponding parent node to obtain the minimum spanning tree structure.

[0073] An embodiment of the present invention also provides a user operation log data anomaly identification device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a user operation log data anomaly identification method as described in any of the above embodiments is implemented.

[0074] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for identifying anomalies in user operation log data as described in any of the above embodiments.

[0075] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any of the above embodiments when executed by a processor.

[0076] Compared with the prior art, the present invention provides a method, device, medium and product for identifying abnormalities in user operation log data, which uses different logs in the acquired user operation log data as network nodes to calculate the mutual information between different nodes; determines undirected edges according to the mutual information between different nodes, constructs an undirected minimum supporting tree, orients the nodes in the undirected minimum supporting tree, and determines a preliminary minimum supporting tree structure; performs node sequence search in the minimum supporting tree structure to obtain a node sequence group, uses different node sequences as different individuals in the initial population, and calculates the fitness of different individuals in the initial population; updates the initial population according to the fitness of different individuals and a preset population optimization strategy; uses the node sequence of the individual with the largest fitness in the updated population as the abnormal user operation log. The present application scheme can improve the efficiency and accuracy of optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 It is a flowchart of a method for identifying abnormalities in user operation log data provided by an embodiment of the present invention;

[0078] Figure 2 It is another flowchart of the method for identifying abnormalities in user operation log data provided by an embodiment of the present invention;

[0079] Figure 3 It is a schematic diagram of the principle of eliminating abnormal nodes for individual variation update provided by an embodiment of the present invention;

[0080] Figure 4 It is a structural schematic diagram of a device for identifying abnormalities in user operation log data provided by an embodiment of the present invention;

[0081] Figure 5 It is another structural schematic diagram of a device for identifying abnormalities in user operation log data provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0083] In the prior art, most of the abnormal operation log classification methods based on the improved text classification algorithm have problems such as low classification processing efficiency and inaccurate classification results. In the classification, the correlation between each log of user operation is not considered, but each data is regarded as a separate individual for feature calculation to achieve classification. For example, in the log classification analysis performed by the DBSCAN algorithm, when the new log data is updated, all the data needs to be re-clustered each time, which consumes a lot of time and makes the analysis inefficient; the clustering results of the traditional K-means clustering algorithm are random, and each calculation result will be different because the initial randomly selected center mass point is different. The algorithm needs to continuously adjust the classification of the object and continuously calculate the new cluster center point after adjustment. Therefore, when the amount of data is very large, the time overhead of the algorithm is very large, which cannot meet the processing requirements of massive communication business log data.

[0084] Regarding the above technical problems of the prior art, see Figure 1 , is a flow chart of a method for identifying abnormalities in user operation log data provided by an embodiment of the present invention, the method comprising steps S1 to S5;

[0085] S1, taking different logs in the acquired user operation log data as network nodes and calculating the mutual information between different nodes;

[0086] S2, determining undirected edges according to the mutual information between different nodes, constructing an undirected minimum spanning tree, orienting the nodes in the undirected minimum spanning tree, and determining a preliminary minimum spanning tree structure;

[0087] S3, performing a node sequence search in the minimum supporting tree structure to obtain a node sequence group, taking different node sequences as different individuals in the initial population, and calculating the fitness of different individuals in the initial population;

[0088] S4, updating the initial population according to the fitness of different individuals and a preset population optimization strategy;

[0089] S5, the node sequence of the individual with the largest fitness in the updated population is used as the user operation abnormality log.

[0090] When this embodiment is implemented, in the communication service, the user operation log data is continuous and has no fixed rules and characteristics. According to the user's continuous or intermittent operation, the log data generated by the user changes over time, and the number of log data sets constructed is also updated.

[0091] When identifying abnormalities in user operation log data, it is difficult to conduct unified analysis because the log formats generated by various types of business access resources and equipment within the operator enterprise are different. Therefore, the user operation log data is first standardized. The standardized log data contains fields such as organization affiliation, user name, operation time, operation content, and data sensitivity level. The data sensitivity level indicates the importance of the user operation. The higher the level, the more important the log.

[0092] The log data set generated by the operation of a business user X is C(X) = {l1,l2,...l n}, each log is regarded as a network node, then the log data set is a Bayesian network node set, and the mutual information value between each log in C(X) is calculated according to the mutual information formula.

[0093] Bayesian network, also known as belief network, is an extension of Bayes method and one of the most effective theoretical models in the field of uncertain knowledge expression and reasoning. Bayesian network is a directed acyclic graph, consisting of nodes representing variables and directed edges connecting these nodes, which can express and analyze uncertain and probabilistic events. It is commonly used in decision-making that conditionally depends on multiple control factors, and can make inferences from incomplete, imprecise or uncertain knowledge or information.

[0094] Mutual information is a useful information measure in information theory. It can be viewed as the amount of information contained in a random variable about another random variable, or the uncertainty of a random variable reduced by knowing another random variable.

[0095] Abnormal logs are generally different from normal operation logs, so the smaller the value calculated by mutual information, the more obvious the abnormal characteristics of the log. Traverse any node in the log data set C(X) and retain the undirected edge with the minimum mutual information to construct an undirected minimum spanning tree.

[0096] At this time, there are undirected edges between the nodes in the minimum supporting tree structure. It is necessary to determine the sequence between the nodes, that is, to orient the nodes, so as to obtain a oriented minimum supporting tree structure and obtain the node sequence group as the input of population optimization.

[0097] Learn the node order in the minimum supporting tree structure t1, randomly select a starting vertex a in t1, obtain the directed edge b connecting the point, and obtain the edge connected to the next node a1. All nodes that have a path connected to the starting point are visited until no directed edge is obtained, indicating that the path search is completed, and a node order is obtained.

[0098] The node sequence group obtained by searching the directed minimum supporting tree structure t1 is used, and different node sequences are used as different individuals in the initial population, and the fitness of different individuals in the initial population is calculated.

[0099] As a preferred implementation, the fitness of all node sequences in G(l) is calculated using the node sequence scoring function FIT, and the calculated fitness is Where i,j∈(1,n), T is the weight matrix.

[0100] It should be noted that the above node order scoring function FIT is used as a method of calculating fitness. In other embodiments, other functions may be used to calculate fitness.

[0101] The node sequence is constructed to construct an initial population, and individuals are updated through a population optimization strategy to update the initial population.

[0102] The node sequence of the individual with the largest fitness in the updated population is finally obtained to obtain an optimal node sequence. All nodes in the sequence are abnormal logs, and finally the abnormal logs in the log group are classified.

[0103] The present application scheme uses each log generated by the user as a node in the Bayesian network structure, constructs a node sequence to construct an initial population, and can quickly find the optimal solution with a higher probability based on population algorithm learning, thereby finding the global optimal solution and determining the abnormal operation log. It can also have good global convergence and high efficiency in larger data structures.

[0104] In another embodiment provided by the present invention, see Figure 2 , is another flow chart of the method for identifying abnormal operation log data provided by an embodiment of the present invention. When identifying abnormal operation log data, the following steps are performed:

[0105] Standardized logs, because different operators provide different log formats, it is difficult to conduct unified analysis. First, the user operation log data is standardized.

[0106] Construct a log dataset based on the normalized logs.

[0107] Compute the mutual information between different logs in a log dataset.

[0108] Determine the structure and orientation of the supporting tree, determine the undirected edges according to the mutual information between different nodes, construct an undirected minimum supporting tree, orient the nodes in the undirected minimum supporting tree, and determine a preliminary minimum supporting tree structure.

[0109] Generate an initial population G(l).

[0110] When the initial population is updated according to the fitness of different individuals and the preset population optimization strategy, the headhunting group and the wandering group are divided from the initial population. The first n / 2 node sequences are selected as the headhunting group in the initial population G(l), where n is the number of the initial population, and m node sequences outside the headhunting group are randomly selected as the wandering group.

[0111] The fitness of the individuals in the headhunting group in the headhunting group and the fitness of the individuals in the roaming group in the roaming group are calculated.

[0112] Select one individual from each of the headhunters and wanderers. h , l w .

[0113] The individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group.

[0114] Output the updated population G(l)' and calculate the fitness FIT values ​​of all individuals in the population.

[0115] When the preset update termination condition is not met, a headhunting group and a wandering group are selected from the updated initial population, and the individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group until the update termination condition is met;

[0116] It should be noted that, as a preferred solution, the update termination condition can be set to the user operation not updating. In other embodiments, the update termination condition can also be set to the update iteration number.

[0117] The individuals updated by the above strategy form a new population G(l)′, and then calculate the fitness values ​​of all individuals. When the user operation is no longer updated, it means that the iteration of the algorithm has reached the maximum value, that is, the algorithm ends. Output the node sequence L with the largest fitness value in the updated population G(l)′ max =L1,L2,...L n , each node in this node sequence corresponds to a user operation exception log.

[0118] Based on the log data generated by user operations, this proposal designs and constructs a minimum support tree structure model, and proposes a method for substructure scoring and directional nodes. Each log in the user operation data set is mapped to the Bayesian network structure, and a log is regarded as a node. The minimum support tree structure is constructed through mutual information calculation, and the substructure matching scoring is used for directional. The method designed in this proposal can effectively detect operation logs with abnormal characteristics under user uncertain behavior, thereby improving the accuracy of classification.

[0119] In another embodiment provided by the present invention, updating the individuals in the initial population specifically includes:

[0120] The fitness of individuals in the wandering group is compared with the fitness of individuals in the headhunting group, and individuals are updated by comparing the fitness FIT values ​​of other populations with the FIT values ​​of individuals in the headhunting group.

[0121] When the fitness of the first individual in the wandering group is greater than the fitness of the second individual in the headhunting group, that is, FIT(l w ) is better than FIT(l h ), indicating that there are better individuals in the wandering group than in the headhunting group. w Update to the headhunter group.

[0122] When the fitness of all individuals in the headhunting group is not less than the fitness of the third individual in the wandering group, it means that the individuals in the headhunting group are better, and the third individual is updated according to the population strategy.

[0123] It should be noted that when updating population individuals, other population update strategies or optimization algorithms in the prior art can also be used to update population individuals. This embodiment only provides a preferred implementation method. When implementing this solution, it is not limited to the population individual update solution provided in this embodiment.

[0124] The final result is obtained by optimizing according to the evolutionary strategy of the population algorithm. The mining and analysis of log data generated by users under uncertain behavior is realized, and the efficiency of classification is not affected by the size of the data set.

[0125] In another embodiment provided by the present invention, when the population is updated by dividing the headhunter group and the wandering group, an aggressive group is added to perform individual updates, specifically:

[0126] In the initial population G(l), k individuals are selected from the individuals other than the headhunting group and the wandering group as the aggressive group, and the fitness of the individuals in the aggressive group in the aggressive group is calculated.

[0127] Select any individual and compare its fitness value with the fitness value of the headhunter group FIT(l h )'s second individual h Make a comparison.

[0128] When the fitness of the fourth individual is greater than the fitness of the second individual, that is, if l d The fitness is better than l h The headhunting group is updated according to the fitness of the individuals in the initial population, that is, the fitness of the individuals in the initial population is recalculated, and the first number of individuals are reselected from the initial population according to the fitness from large to small as the headhunting group; otherwise, the headhunting group is not updated.

[0129] By increasing the aggressive group to update the population, the optimization efficiency in the population update process is improved.

[0130] In another embodiment provided by the present invention, when updating the population, considering that updating only the headhunting group may fall into a local optimum, in order to increase the global search capability, an individual node fragment mutation method is provided, specifically:

[0131] Calculate the fourth individual l in the progressive group d The absolute value f of the difference between the fitness of the second individual in the headhunting group d , f d =|FIT(l h )-FIT(l d )|.

[0132] The absolute value calculated is based on the fitness of the fourth individual FIT(l d ) and the fitness of the second individual FIT(l h ) is determined within the range, that is, f d Between FIT(l h ) and FIT(l d ) between the fourth individual l d To update, select the second individual l h The middle part of the genome and the fourth individual ld Perform selective mutation.

[0133] Randomly select the fourth individual l d The node segment in the middle is used as the variable region, and in the second individual l h Select the corresponding node fragments at the same position and replace them with l d The mutation region of the updated fourth individual l d ′.

[0134] Right now:

[0135] Get l d ′=d1,d2,h3,h4,h5.

[0136] In this case, the mutation strategy is used to mutate individuals, so as to avoid the headhunting group from falling into the local optimum during updates and increase the global search capability.

[0137] In another embodiment of the present invention, in the above-mentioned variation update, it is necessary to ensure that there are no duplicate nodes in the node sequence of the updated individual, that is, in the above-mentioned variation update, the nodes in the node variation fragment and the nodes other than the replacement are not duplicated, and the updated l d ′ is the correct node sequence.

[0138] It is also possible that duplicate nodes will appear during the individual mutation update process, so it is necessary to remove duplicate nodes based on illegal node mapping detection in the optimal mutation.

[0139] Compare the nodes in the fourth individual except the mapped node fragment with the nodes in the first position in the partial node fragment, see Figure 3 , is a schematic diagram of the principle of eliminating abnormal nodes for individual variation update provided by an embodiment of the present invention.

[0140] For the fourth node l d In addition to the mapping node fragment, the remaining nodes are d1 and d2, and the second node l h The node segments h1, h2 and h3 are mapped one by one to compare whether there are duplications.

[0141] It is found that the node h3 is repeated with d1, and then the node is removed from some node fragments, and the node d3 corresponding to the position on the fourth body is retained to obtain the updated l d , l d =d1,d2,d3,h4,h5.

[0144] By removing duplicate nodes according to illegal node mapping detection in the optimal mutation, the incorrect node order is prevented from affecting the accuracy of the final result.

[0145] In another embodiment provided by the present invention, a dynamic self-mutation strategy is proposed for individual update, which specifically includes the following steps:

[0146] Calculate the dynamic mutation probability P according to the dynamic self-mutation strategy;

[0147] The dynamic mutation probability is used to determine the length of the mutation node fragment.

[0148] It should be noted that when determining the length of the mutation node segment, the corresponding mutation node segment length is matched through the dynamic mutation probability and the preset corresponding relationship table.

[0149] According to the length of the variant node fragment, the variant node fragment is determined by node positioning.

[0150] According to the mutation node fragment, each mutation position in the third individual is replaced by traversing, and multiple mutation new individuals are obtained by traversing all mutation positions of the third individual, l w 1 ~l w n ;

[0151] Calculate the fitness of the mutated new individual in the wandering group, take the individual with the largest fitness value as the final updated individual of the mutation, and finally obtain the updated individual l w ',Right now:

[0152] l w ′={l w |FIT(l w )}=max{FIT(l w 1 ),FIT(l w 2 ),...,FIT(l w n )};

[0153] A dynamic self-mutation strategy is proposed to "optimize" the population individuals and obtain the optimal result. The detection and classification of abnormal logs are realized through the population optimization method. The proposed individual optimization strategy improves the global convergence performance and improves the search efficiency.

[0154] In another embodiment provided by the present invention, when determining a preliminary minimum supporting tree structure through node positioning, the following steps are specifically performed:

[0155] For each node of the undirected minimum spanning tree, let a node l in the minimum spanning tree structure t i The potential parent node set of is M, and all elements in this set are respectively regarded as l i The parent node builds the substructure S i, the matching degree r between the substructure and the standard training data set D is calculated, and the calculation formula is as follows:

[0156]

[0157] Where N is the number of nodes in the training data set D, m j is the jth node in the training dataset D.

[0158] The node in the highest scoring substructure is taken as the parent node of the node, and all nodes in the supporting tree structure t are updated to obtain an updated parent node set.

[0159] Each node of the undirected minimum spanning tree is connected to its corresponding parent node to obtain the minimum spanning tree structure.

[0160] In another embodiment provided by the present invention, mutual information is a statistic used to measure the correlation between two random variables. Since the logs generated by user operations are random variables, mutual information can be used to calculate the degree of association between nodes. The mutual information calculation formula is specifically:

[0161]

[0162] Among them, I(l i , l j ) is the mutual information between the i-th node and the j-th node, P(l i ,l j ) is the joint probability between the i-th node and the j-th node, P(l i ) and P(l j ) are the edge probabilities of the i-th and j-th nodes respectively, i, j = 1, 2…, n, and n is the number of nodes.

[0163] This application scheme considers the correlation between each log generated by the user, takes each log as a node in the Bayesian network structure, constructs the node sequence to construct the initial population, updates the individuals through the population optimization strategy, and finally obtains an "optimal" node sequence. All nodes in the sequence are abnormal logs, and finally realizes the classification of abnormal logs in the log group. It can effectively detect operation logs with abnormal characteristics under user uncertain behavior, and improve the accuracy of classification.

[0164] The detection and classification of abnormal logs are realized through the population optimization method. The proposed individual optimization strategy improves the global convergence performance and the search efficiency. This proposal can be used for the subsequent diagnosis of system fault node detection.

[0165] See also Figure 4 , is a schematic diagram of a structure of a device for identifying abnormalities in user operation log data provided by an embodiment of the present invention, the device comprising:

[0166] A mutual information calculation module is used to use different logs in the acquired user operation log data as network nodes and calculate the mutual information between different nodes;

[0167] A spanning tree determination module, used to determine undirected edges according to the mutual information between different nodes, construct an undirected minimum spanning tree, orient the nodes in the undirected minimum spanning tree, and determine a preliminary minimum spanning tree structure;

[0168] A population determination module, used to search for node sequences in the minimum supporting tree structure to obtain node sequence groups, use different node sequences as different individuals in the initial population, and calculate the fitness of different individuals in the initial population;

[0169] A population updating module, used to update the initial population according to the fitness of different individuals and a preset population optimization strategy;

[0170] The result output module is used to use the node sequence of the individual with the largest fitness in the updated population as the user operation abnormality log.

[0171] It should be noted that the user operation log data anomaly identification device provided in this embodiment can execute all the steps and functions of the user operation log data anomaly identification method provided in any of the above embodiments, and the specific functions of the device are not described in detail here.

[0172] See also Figure 5 , is another structural diagram of a user operation log data anomaly identification device provided by an embodiment of the present invention. The user operation log data anomaly identification device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a user operation log data anomaly identification program. When the processor executes the computer program, the steps in each of the above-mentioned user operation log data anomaly identification method embodiments are implemented, such as Figure 1 Alternatively, the processor implements the functions of each module in the above-mentioned device embodiments when executing the computer program.

[0173] Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the user operation log data anomaly identification device. For example, the computer program can be divided into several modules, and the specific functions of each module have been described in detail in a user operation log data anomaly identification method provided in any of the above embodiments, and the specific functions of the device will not be repeated here.

[0174] The user operation log data anomaly identification device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The user operation log data anomaly identification device may include, but is not limited to, a processor and a memory. Those skilled in the art may understand that the schematic diagram is merely an example of a user operation log data anomaly identification device and does not constitute a limitation on a user operation log data anomaly identification device. It may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the user operation log data anomaly identification device may also include input and output devices, network access devices, buses, etc.

[0175] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the user operation log data anomaly identification device, and uses various interfaces and lines to connect the various parts of the entire user operation log data anomaly identification device.

[0176] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the user operation log data abnormality identification device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0177] Wherein, if the module integrated in the user operation log data abnormality identification device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0178] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any of the above embodiments when executed by a processor.

[0179] It should be noted that the computer program product provided in this embodiment can execute all the steps and functions of the method for identifying abnormalities in user operation log data provided in any of the above embodiments, and the specific functions of the device are not described in detail here.

[0180] It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for identifying abnormalities in user operation log data, characterized in that: The method comprises: Different logs in the acquired user operation log data are used as network nodes to calculate the mutual information between different nodes; Determine undirected edges according to the mutual information between different nodes, construct an undirected minimum spanning tree, orient the nodes in the undirected minimum spanning tree, and determine a preliminary minimum spanning tree structure; Performing node sequence search in the minimum supporting tree structure to obtain a node sequence group, taking different node sequences as different individuals in the initial population, and calculating the fitness of different individuals in the initial population; The initial population is updated according to the fitness of different individuals and a preset population optimization strategy; The node sequence of the individual with the largest fitness in the updated population is used as the user operation abnormality log.

2. The method for identifying abnormalities in user operation log data according to claim 1, characterized in that: The initial population is updated according to the fitness of different individuals and the preset population optimization strategy, including: A preset first number of individuals are selected from the initial population according to the fitness from large to small as the headhunting group, and a preset second number of individuals are selected from the headhunting group as the wandering group; Calculating the fitness of individuals in the headhunting group in the headhunting group and the fitness of individuals in the wandering group in the wandering group; The individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group; When the preset update termination condition is not met, a headhunting group and a wandering group are selected from the updated initial population, and the individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group until the update termination condition is met; When the update termination condition is met, the initial population update is stopped; the individuals in the initial population are updated according to the fitness of the individuals in the headhunting group and the fitness of the individuals in the wandering group, including: When the fitness of the first individual in the wandering group is greater than the fitness of the second individual in the headhunting group, updating the first individual to the headhunting group; When the fitness of all individuals in the headhunting group is not less than the fitness of the third individual in the wandering group, the third individual is updated.

3. The method for identifying abnormalities in user operation log data according to claim 2, characterized in that: The updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group also includes: Selecting a preset third number of individuals from the individuals in the initial population except the headhunting group and the wandering group as the entering group; Calculate the fitness of individuals in the enterprising group in the enterprising group; When the fitness of the fourth individual in the aggressive group is greater than the fitness of the second individual in the headhunting group, the fitness of the individuals in the initial population is recalculated, and the first number of individuals are reselected from the initial population in descending order of fitness as the headhunting group.

4. The method for identifying abnormalities in user operation log data according to claim 3, characterized in that: The updating of individuals in the initial population according to the fitness of individuals in the headhunting group and the fitness of individuals in the wandering group also includes: Calculating the absolute value of the difference between the fitness of the fourth individual in the enterprising group and the fitness of the second individual in the headhunting group; When the calculated absolute value is within a range determined according to the fitness of the fourth individual and the fitness of the second individual, select some node fragments of the second individual, replace the mapped node fragments at the same position in the fourth individual, and update the fourth individual; When the nodes other than the mapped node fragments in the fourth body are repeated with the nodes at the first position in the partial node fragments, the nodes corresponding to the first position on the fourth body are retained.

5. The method for identifying abnormalities in user operation log data according to claim 2, characterized in that: Performing individual updating on the third individual includes: Calculate the dynamic mutation probability according to the preset dynamic self-mutation strategy; Determine the length of the mutation node segment according to the dynamic mutation probability; Determine all mutation positions in the third individual according to the mutation node fragment length; Determine the variant node fragment through node positioning; Traversing and replacing each mutation position in the third individual according to the mutation node fragment to obtain multiple mutation new individuals; The fitness of the mutated new individual in the wandering group is calculated, and the mutated new individual with the largest fitness is determined as the third individual after update.

6. The method for identifying abnormalities in user operation log data according to claim 1, characterized in that: Orienting the nodes in the undirected minimum spanning tree to determine a preliminary minimum spanning tree structure includes: Taking each element in the potential parent node set of each node of the undirected minimum spanning tree as the parent node of the node, constructing different substructures; calculating the matching scores of different substructures and the preset standard training data set; taking the node with the highest matching score in the substructure of the node as the parent node of the node; Each node of the undirected minimum spanning tree is connected to its corresponding parent node to obtain the minimum spanning tree structure.

7. A device for identifying abnormalities in user operation log data, characterized in that: The device comprises: A mutual information calculation module is used to use different logs in the acquired user operation log data as network nodes and calculate the mutual information between different nodes; A spanning tree determination module, used to determine undirected edges according to the mutual information between different nodes, construct an undirected minimum spanning tree, orient the nodes in the undirected minimum spanning tree, and determine a preliminary minimum spanning tree structure; A population determination module, used to search for node sequences in the minimum supporting tree structure to obtain node sequence groups, use different node sequences as different individuals in the initial population, and calculate the fitness of different individuals in the initial population; A population updating module, used to update the initial population according to the fitness of different individuals and a preset population optimization strategy; The result output module is used to use the node sequence of the individual with the largest fitness in the updated population as the user operation abnormality log.

8. A device for identifying abnormalities in user operation log data, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the user operation log data anomaly identification method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for identifying abnormalities in user operation log data according to any one of claims 1 to 6.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Decomposable aggregate query processing method of wireless sensing network

    CN103077251A

  • Multi-power-supply scene prediction method and system

    CN115906402A

  • Mixed Bayesian network structure learning method based on mutual information guidance

    CN117391204A

  • Method and system for abnormal detection of power monitoring operation data

    CN118152962A

  • User data acquisition method and system, electronic equipment, chip and medium

    CN118171129A

Cited By

  • Network security management method based on communication data processing

    CN119728313A