Pattern mining method and device and electronic equipment
By constructing an original graph centered on the target user and aggregating subgraph information, combined with graph structure and supplementary information, the difficulty of traditional pattern mining technology in high-dimensional graph structure data processing is solved, and accurate and efficient mining of user behavior patterns is achieved. .
Patent Information
- Application Number
- CN202410712785.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-27
AI Technical Summary
Traditional pattern mining technology encounters difficulties when processing high-dimensional and large-scale graph structure data, and it is difficult to effectively mine potential patterns in user behavior data.
By constructing the original graph centered on the target user, extracting and aggregating the information in the subgraphs, matching the graph structure data and supplementary information to determine the user's behavior pattern.
It improves the accuracy and speed of pattern mining, can more effectively mine behavioral patterns from users' graph structure data, and is suitable for financial risk control and other fields.
Smart Images

Figure CN118709148A
Abstract
Description
Technical Field
[0001] This document belongs to the field of data processing technology, and specifically relates to a method, device and electronic equipment for pattern mining. Background Art
[0002] With the advent of the big data era, behavioral data that does not infringe on user privacy is constantly accumulating. How to effectively mine valuable information from this data has become an important topic in research and commercial applications.
[0003] User behavior data may be accompanied by complex graph structures, such as the graph structure formed by friend relationships in social networks, the graph structure formed by user click behaviors on websites, etc. The patterns behind these graph structure data can often reflect users' potential needs, interest preferences, and social behaviors, and are of great value.
[0004] However, traditional pattern mining technology faces challenges in processing high-dimensional, large-scale graph structure data. The complexity of graph structure data makes it difficult to process graph structure data. Therefore, it is necessary to provide a better pattern mining solution to better mine patterns from the user's graph structure data. Summary of the invention
[0005] The embodiments of this specification provide a method, device and electronic device for pattern mining to provide a pattern mining solution.
[0006] In a first aspect, an embodiment of the present specification provides a method for pattern mining, the method comprising: for each group of data groups in a data set, constructing an original graph centered on a target user, each group of the data groups containing at least one behavior data related to the target user targeted by the data group, the nodes in the original graph corresponding to the users in the data group, and the edges in the original graph corresponding to the behavior data in the data group; based on the behavior data in the data groups contained in the data set, constructing supplementary information of each node in the original graph; extracting from the original graph at least one subgraph containing a node corresponding to the target user in the original graph, and performing aggregation processing on the subgraph to obtain aggregated information of the subgraph, the aggregation processing being used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the nodes in the subgraph are aggregated to the nodes; matching the aggregated information corresponding to each of the target users in the data set, and determining the behavior pattern of the target user in the data set based on the matching result.
[0007] In a second aspect, an embodiment of the present specification provides a pattern mining device, comprising: a graph construction module, for constructing an original graph centered on a target user for each group of data groups in a data set, each group of the data groups containing at least one behavior data related to the target user targeted by the data group, the nodes in the original graph corresponding to the users in the data group, and the edges in the original graph corresponding to the behavior data in the data group; a supplementation module, for constructing supplementary information of each node in the original graph based on the behavior data in the data groups contained in the data set; a subgraph extraction module, for extracting at least one subgraph containing nodes corresponding to the target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregated information of the subgraph, wherein the aggregation processing is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the nodes in the subgraph are aggregated to the nodes; a matching module, for matching the aggregated information corresponding to each of the target users in the data set, and determining the behavior pattern of the target user in the data set based on the matching result.
[0008] In a third aspect, an embodiment of the present specification provides an electronic device, comprising: a processor, and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is enabled to: construct an original graph centered on a target user for each group of data in a data set, each group of the data groups containing at least one behavior data related to the target user targeted by the data group, the nodes in the original graph corresponding to the users in the data group, and the edges in the original graph corresponding to the behavior data in the data group; construct supplementary information of each node in the original graph based on the behavior data in the data group contained in the data set; extract at least one subgraph containing a node corresponding to the target user in the original graph from the original graph, and perform aggregation processing on the subgraph to obtain aggregate information of the subgraph, wherein the aggregation processing is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the nodes in the subgraph are aggregated to the nodes; match the aggregate information corresponding to each of the target users in the data set, and determine the behavior pattern of the target user in the data set based on the matching result.
[0009] In a fourth aspect, an embodiment of the present specification provides a storage medium for storing a computer program, which can be executed by a processor to implement the following process: for each group of data groups in a data set, construct an original graph centered on a target user, each group of the data groups contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group; based on the behavior data in the data groups contained in the data set, construct supplementary information of each node in the original graph; from the original graph, extract at least one subgraph containing a node corresponding to the target user in the original graph, and aggregate the subgraph to obtain aggregate information of the subgraph, wherein the aggregation processing is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the nodes in the subgraph are aggregated to the nodes; match the aggregate information corresponding to each of the target users in the data set, and determine the behavior pattern of the target user in the data set based on the matching results.
[0010] In a fifth aspect, an embodiment of the present specification provides a computer program product, comprising a computer program, which implements the following process when executed by a processor: for each group of data groups in a data set, construct an original graph centered on a target user, each group of the data groups containing at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group; based on the behavior data in the data groups contained in the data set, construct supplementary information of each node in the original graph; from the original graph, extract at least one subgraph containing a node corresponding to the target user in the original graph, and perform aggregation processing on the subgraph to obtain aggregate information of the subgraph, wherein the aggregation processing is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the nodes in the subgraph are aggregated to the nodes; match the aggregate information corresponding to each of the target users in the data set, and determine the behavior pattern of the target user in the data set based on the matching results. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0012] Figure 1It is a flowchart of a method for pattern mining provided by an embodiment of this specification;
[0013] Figure 2 It is a schematic diagram of a second-order original graph provided in an embodiment of this specification.
[0014] Figure 3 This is a schematic diagram of an application scenario of a pattern mining method provided in an embodiment of this specification;
[0015] Figure 4 is a schematic diagram of an application example provided in the embodiments of this specification;
[0016] Figure 5 It is a structural schematic diagram of a pattern mining device provided in an embodiment of this specification;
[0017] Figure 6 It is a structural diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this document.
[0019] The terms "first", "second", etc. in the specification and claims of this document are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of this specification can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0020] A pattern is a collection of frequently occurring or strongly related items, subsequences, or substructures in a data set, which represents the essential characteristics and important properties of the data set. Pattern mining is a data mining technique used to identify patterns and relationships in a data set.
[0021] Taking the risk control scenario of e-commerce transactions as an example, during the fraudulent behavior, the fraudster may verify the identity multiple times, change the bank card binding, etc., and there are fund transfers, same device logins, etc. between the fraudster and the fraud gang; while the defrauded person may have multiple funds defrauded in a short period of time, and may delete transaction records, report transactions, and perform password authentication, etc. If the behavior patterns often used by these illegal online industries can be discovered through data mining, the accounts of these illegal online industries can be effectively controlled to prevent users from losing money.
[0022] In order to better illustrate this specification and highlight the main purpose of this specification, the specific embodiments in this specification are described based on the application scenario of mining behavioral patterns in the field of financial risk control. Those skilled in the art should understand that this specification can also be implemented by the same or similar means for other application scenarios of mining behavioral patterns in the fields of personalized services, precision marketing, risk management and intelligent decision-making.
[0023] The method, device and electronic device for pattern mining provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0024] Figure 1 A method for pattern mining provided by an embodiment of the present invention is shown. The method can be executed by an electronic device, and the electronic device may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. In other words, the method can be executed by software or hardware installed in the aforementioned electronic device, and the method for pattern mining includes the following steps:
[0025] Step S102: For each data group in the data set, construct an original graph centered on the target user.
[0026] The data set is a collection of behavioral data of multiple target users, and the data set is used to mine the common behavioral patterns of these target users. In order to mine the behavioral patterns, sufficient behavioral data needs to be set for each target user. In one example, a data group consisting of a set of behavioral data of the target user can be set for each target user in the data set, and each data group contains at least one behavioral data related to the target user.
[0027] Specifically, the behavior data in each data group may be the behavior data in the preset time window that is closely related to the scenario of behavior pattern mining, and the preset time window of each data group does not have to be the same. For example, in the application scenario of mining behavior patterns in the field of financial risk control, the behavior data of the target user may be the target user's transaction behavior, transfer behavior, call behavior, etc. In one example, the quantity and type of behavior data in each data group may be limited so that the data in each data group is consistent, so as to better mine the behavior pattern of the target user in the data group.
[0028] In one example, each behavior data in the data group can be stored in the form of a triple, which can include the name of the behavior data and two users corresponding to the behavior data. Specifically, the two users in the triple can be the target user and the target user's related user, or both can be the target user's related users, and the content of the corresponding triple can be determined according to the specific behavior data.
[0029] For each data group, an original graph can be constructed respectively, that is, the number of original graphs is the same as the number of data groups. The original graph is centered on the target user targeted by the data group and constructed based on the behavior data related to the target user. In one example, the order of the original graph (i.e., the maximum path length between the relevant user and the target user) can be pre-set, and based on the preset order, the target behavior data can be filtered from the behavior data contained in the data group, and then the original graph can be constructed based on the filtered target behavior data.
[0030] Specifically, for each data group in the data set, an original graph centered on the target user is constructed, including: determining the target user's related users and related events from the behavior data of each data group according to the preset order of the original graph; using the target user and related users as nodes and related events as edges to construct the original graph centered on the target user. In this way, the behavior data that is not very relevant to the target user can be removed, and only the target behavior data that is closely related to the target user can be used to construct the original graph, thereby improving the efficiency of constructing the original graph.
[0031] In one example, the information stored in the nodes of the original graph may be the same as the supplementary information mentioned later, or may be different from the supplementary information, and this specification does not specifically limit this. The edges in the original graph can store the behavior data (such as resource flow information) and detailed information of the behavior (such as resource flow quota) between the users corresponding to the two nodes connected by the edge. In addition to the behavior data, the edges in the original graph can also be the relationships between users, such as relatives, friends, colleagues, etc.
[0032] Step S104: constructing supplementary information of each node in the original graph based on the behavior data in the data group included in the data set.
[0033] Among them, the supplementary information is information reflecting the behavioral characteristics of the users corresponding to each node in the original graph. Each behavioral data of the data group contains rich information, and the behavioral data in the data group can be used to construct the supplementary information of each node to better mine the behavioral pattern of the target user.
[0034] The content and form of the supplementary information are not specifically limited in this specification and can be determined according to actual conditions. In one example, the supplementary information and the original graph can be data from the same data group but with different data structure types. For example, the supplementary information can be sequence, table and other data other than graph structure data, so that the combination of different data structure types can be used to better mine the user's behavior pattern. In one example, the supplementary information is data that can reflect the user's behavioral characteristics that are not used to generate the original graph (both come from the same or different data groups), so that the combination of complementary data content can be used to better mine the user's behavior pattern. For example, when the users in two data groups are related, data can be borrowed from each other to construct supplementary information. Specifically, the behavioral characteristics can be transaction frequency, transaction amount, transaction order, etc.
[0035] Corresponding to the behavior characteristics, the supplementary information may be information reflecting the transaction frequency of the user corresponding to the node, the order of various transaction behaviors, and the transaction amount. For example, the content of the supplementary information may be frequently occurring transaction behaviors, transaction frequencies, transaction sequences, etc. The content of the supplementary information may be included in the original graph to emphasize key information, or it may be content that is not in the original graph. Among them, the type of supplementary information of each node in the same subgraph may be consistent, so as to extract regular information from the same information and better determine the behavior pattern.
[0036] In step S104, in addition to the graph structure data, supplementary information is also provided for pattern mining, so that the mining of behavioral patterns can be realized through the combination of multiple data, and the accuracy of the mined behavioral patterns can be improved. In addition to setting supplementary information for nodes, supplementary information can also be set for edges, where the supplementary information of edges can be edge types (such as transaction types, relationship types), etc. Figure 2 shows a second-order original graph, such as Figure 2 As shown, each node in the original graph is mounted with the behavior sequence of the user corresponding to the node, and each edge in the original graph is mounted with the type of the variable.
[0037] Step S106: extracting at least one subgraph including the node corresponding to the target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph.
[0038] The aggregation process is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is gathered to the node.
[0039] The subgraph is a graph structure data generated based on the original graph, which at least includes the nodes corresponding to the target users in the original graph. The original graph contains at least one behavior data. Since it is unclear which combination of behavior data can reflect the behavior pattern of the target user, in one example, a series of different subgraphs contained in each target user can be obtained by random walk, and then the behavior pattern can be mined through the subgraphs corresponding to different target users.
[0040] Specifically, the subgraph generation process can be: taking the target user as the central node, randomly walking in the original graph to obtain at least one subgraph. Figure 1 The subgraphs obtained by using the same method can be deleted to avoid subsequent redundant calculations. In one example, the solution for eliminating duplicate subgraphs can be: respectively compare the edge sets and point sets of two subgraphs corresponding to the same target user to see if they can match one by one. If they can match, it means that the two subgraphs are of the same type and can be merged.
[0041] During the aggregation process, by aggregating the supplementary information of the adjacent nodes of the nodes in the subgraph to the nodes, the information transmission between adjacent nodes can be realized, and the aggregation of the information of each node in the subgraph can obtain the aggregated information that can reflect the characteristics of the subgraph.
[0042] In one example, the aggregation processing process may include: encoding the supplementary information of each node in the subgraph into a feature vector, and through the mean (Mean), sum (Sum) or concatenation (Concat) function, aggregating the representations corresponding to the supplementary information of the node's adjacent nodes to the representation corresponding to the node's own information (such as attribute information or supplementary information), and then using a multilayer perceptron (Multilayer Perceptron, MLP) etc. to map the representations corresponding to the information of each node of the subgraph to the same vector space, thereby realizing the aggregation of the information of each node, and using the aggregated representation as the aggregated information of the subgraph.
[0043] Step S108: matching the aggregate information corresponding to each target user in the data set, and determining the behavior pattern of the target user in the data set according to the matching result.
[0044] As shown in step S106, the aggregate information of each subgraph can be a unique representation of the subgraph in the vector space, so that the aggregate information of the subgraphs of different target users can be used to perform a fast matching operation (such as similarity calculation, etc.) to obtain a matching result, and the behavior pattern of the target user can be determined based on the matching result. Compared with the traditional method of manually analyzing and extracting the user's behavior pattern, the process of determining the behavior pattern using the aggregate information reduces the workload of the behavior pattern determination process.
[0045] Specifically, when subgraph a of target user A matches subgraph b of target user B, it can be determined that the behavior data and / or supplementary information corresponding to subgraph a and subgraph b are similar. Similarly, when more than a certain number / proportion of target users in a data set have matching subgraphs, it means that the behavior data and / or supplementary information corresponding to the matching subgraph is likely to be the common and frequently occurring behavior data and / or supplementary information of these target users, and the common behavior data and / or supplementary information can be used as the behavior pattern of the target users included in the data set.
[0046] In the embodiment of the present specification, a subgraph is extracted from the original graph corresponding to each target user, and the subgraph is subjected to information aggregation and aggregation of supplementary information containing nodes, and then the behavior pattern of the target user in the data set is determined through the matching results of the aggregated information of different users. This process implements a new mining scheme of multiple data fusion, in which the fusion of multiple data of subgraphs and supplementary information helps to improve the accuracy of pattern mining. At the same time, the behavior pattern is determined by using the matching results of aggregated information, which realizes the rapid determination of the behavior pattern in the graph structure data, and helps to improve the speed of pattern mining.
[0047] Figure 3 A schematic diagram of the application scenario of a pattern mining method is provided, such as Figure 3 As shown, the user sends a service request for behavior pattern mining of the target user of the data set to the server through a terminal such as a mobile phone. After receiving the service request, the server uses the pattern mining method in this specification to mine the behavior pattern of the target user, and sends the mined behavior pattern to the terminal for the user to use the obtained behavior pattern for subsequent business analysis and deployment.
[0048] In one implementation, the aggregation process includes a first aggregation process and a second aggregation process. Step S106 may be performed as follows: Steps A1-A2:
[0049] Step A1, performing a first aggregation process on the subgraph to obtain first aggregation information of multiple network levels of each node in the subgraph;
[0050] Step A2, performing a second aggregation process on the subgraph that has been subjected to the first aggregation process, to obtain aggregation information of the subgraph.
[0051] The first aggregation process includes: aggregating the supplementary information of the adjacent nodes of the target node (any node in the subgraph) at the same network level in the subgraph to the target node to obtain the first aggregation information of the target node at the next network level. The second aggregation process is used to aggregate the first aggregation information of each node in the subgraph at the last network level. Specifically, the first aggregation information of the last network level of all nodes in the entire subgraph can be aggregated to the central node as output.
[0052] In one example, the aggregation process can be divided into two steps: firstly, a first aggregation process including information transmission of supplementary information is performed, and then a second aggregation process of aggregating information of each node in the subgraph is performed. Formula 1 shows the process of performing the second aggregation process on the information of each node in the subgraph:
[0053]
[0054] Among them, READOUT(·) is the information aggregation function, which can use the SUM function, "3" represents the total number of network levels, Z g represents the subgraph representation, Represents the subgraph V g Each node v i Representation at the 3rd network level.
[0055] In one example, a graph neural network (GNN) can be used to obtain the first aggregation information and the aggregation information of the subgraph. The type of the graph neural network is not specifically limited in this specification and can be determined according to actual conditions. The number of GNN layers can be the same as the number of network layers. In one implementation, the number of network layers is N, where N is a positive integer. Step A1 can be executed as the following steps B1-B2:
[0056] Step B1, determining first aggregation information of a first network level of each node in the subgraph according to initial information of each node in the subgraph;
[0057] Step B2, at the i-1th network level, perform a first aggregation processing on the supplementary information of the adjacent nodes of the target node in the subgraph, and the first aggregation information of the target node and the adjacent nodes of the target node, to obtain the first aggregation information of the i-th network level of each node in the subgraph, where i is a positive integer greater than 1 and less than or equal to N.
[0058] The initial information is the information of the nodes determined from the original graph during the subgraph construction process, such as the attribute information of the nodes, etc. The attribute information of the nodes may include the transaction information of the users, such as the transaction time, transaction object, transaction amount, transaction frequency, etc.
[0059] In one example, the first aggregation process may be to transmit supplementary information while transmitting node information (the information of the node at the first network level is the initial information, and the information of the node at other network levels is the first aggregate information). Specifically, the supplementary information may be mounted on the corresponding node. In the same network level, while the first aggregate information of the neighboring node of the node is transmitted to the node, the supplementary information of the neighboring node is also transmitted to the node, and the first aggregate information of the node at the next network level may be obtained. In one implementation, step B2 may be executed as the following steps C1-C2:
[0060] Step C1, at the i-1th network level, determining second aggregation information of the neighboring nodes of the target node in the subgraph according to the supplementary information of the neighboring nodes of the target node in the subgraph and the first aggregation information;
[0061] Step C2, determining the first aggregation information of the node in the subgraph at the i-th network level according to the first aggregation information of the target node in the subgraph and the second aggregation information of the adjacent nodes of the target node.
[0062] The second aggregate information is information obtained by combining the first aggregate information with the supplementary information. Specifically, the first aggregate information and the supplementary information may be combined using a mean, sum or concatenation function to obtain the second aggregate information.
[0063] After obtaining the second aggregation information of the neighboring nodes of the target node at the same network level and the first aggregation information of the target node, the two can be combined to determine the first aggregation information of the target node at the next network level.
[0064] In the embodiments of this specification, a computing framework based on a network hierarchy is used, so that aggregate information can be obtained through only one neural network calculation, which greatly reduces the redundancy level of calculation and can be more efficiently applied to industrial scenarios.
[0065] As mentioned above, the supplementary information may be a data structure of a sequence. In one implementation, the supplementary information includes the first supplementary information and / or the second supplementary information. Step S104 may be performed as follows: Steps D1-D4:
[0066] Step D1, from the behavior data in the data group, obtain the behavior data of each node in the original graph corresponding to the data group, and sort the obtained behavior data according to the time node to obtain the behavior sequence of each node in the original graph;
[0067] Step D2, determining first supplementary information of each node in the original graph according to the behavior sequence of each node in the original graph;
[0068] Step D3, constructing a time difference sequence corresponding to the behavior sequence according to the time difference between adjacent time nodes in the behavior sequence;
[0069] Step D4, determining the second supplementary information of each node in the original graph according to the time difference sequence of each node in the original graph.
[0070] The order and time interval of the behavior data are important information for the user. In one example, a behavior sequence and / or time difference sequence can be constructed based on the behavior data in the data group to obtain supplementary information. Specifically, the behavior data corresponding to each node in the subgraph can be determined based on the users included in the behavior data in the data group, and the behavior data under each node can be arranged in the order of time nodes to obtain the behavior sequence.
[0071] In one example, the behavior sequence may be digitized. Specifically, a digital ID may be assigned to the behavior data in the behavior sequence according to the behavior type, and the first supplementary information may be obtained.
[0072] Furthermore, the time difference between the time nodes corresponding to the adjacent behavior data in the behavior sequence can be used to obtain a time difference sequence. Among them, the time difference sequence can be padded (such as padded with 0) to make the time difference sequence consistent with the length of the corresponding behavior sequence. The second supplementary information can be obtained by encoding the time difference into a format suitable for model processing. For example, in some high-frequency scenarios, the time difference can be converted into a value in minutes; and in some low-frequency scenarios, the time difference can be converted into a value in days. Figure 2 The behavior sequence and time difference sequence in the form of digital ID mounted on node v0 are shown.
[0073] Formula 2 shows the process of performing the first aggregation process:
[0074]
[0075] Among them, Represents the node v in the subgraph i The first aggregate information at the kth network level, Then the node v i The first aggregate information (i.e. initial information) at the first network level, Can be represented by node v i The behavior sequence and time difference sequence are spliced together. i ∈N(v i ) represents the subgraph v i The first-order neighbor of and The nodes v jThe behavior sequence and time difference sequence of are represented. ∈, α, β are hyperparameters used to map various representation information (such as the first aggregation information and the aggregation information) to corresponding features to different value domains to ensure the single-value property of the function. MLP stands for multi-layer perception network, and “‖” stands for the representation concatenation operation.
[0076] Formula 2 above shows that MLP for nodes in subgraphs is used for aggregation processing at different network levels. As mentioned above, the edge in the subgraph can also be attached with the type information of the variable. In this way, MLP for edges in subgraphs can be used for aggregation processing at different network levels to utilize the aggregation information of edges in the subgraphs for related business processing (such as determining the relationship or behavior between users corresponding to two nodes connected by an edge, etc.).
[0077] In the embodiments of this specification, the two types of data structures, sequence (behavior sequence and / or time difference sequence) and graph, are combined to determine the behavior pattern of the target user. This process realizes the combination of pattern mining of graph data and pattern mining of sequence data, and can more detailedly characterize the behavior pattern of the target user in the data set to be observed, which helps to improve the effect of pattern mining.
[0078] In one implementation, step S108 may be performed as the following steps E1-E2:
[0079] Step E1, when the matching result of two pieces of aggregate information is greater than a preset matching value, the two pieces of aggregate information are regarded as aggregate information of the same category;
[0080] Step E2, based on the amount of aggregated information of each category, determining the behavior pattern of the target user in the data set.
[0081] The preset matching value is a value used to determine whether two aggregate information match. When the matching result is greater than the preset matching value, it means that the two aggregate information corresponding to the matching result are relatively similar, and the two aggregate information can be merged, that is, the behavior sequences and / or supplementary information corresponding to the subgraphs to which the two aggregate information belong are classified into the same mode. After the respective aggregate information corresponding to the data set is merged, multiple categories of aggregate information can be obtained.
[0082] The number of aggregated information of the same category reflects the number of users hit by the aggregated information of this category, that is, it reflects whether the behavior pattern corresponding to the aggregated information of this category is a frequently occurring behavior pattern of the target user in the data set. Therefore, the number of aggregated information of each category can be used to determine the behavior pattern of the target user in the data set. In one implementation, step E2 can be executed as the following steps F1-F2:
[0083] Step F1, sorting the aggregate information of each category based on the number of target users corresponding to the aggregate information of each category;
[0084] Step F2, taking the pattern corresponding to the aggregated information of the categories in the preset order as the behavior pattern of the target user in the data set.
[0085] Specifically, the number of different types of aggregate information can be ranked from large to small, and the patterns corresponding to the top several types of aggregate information can be used as the behavior patterns of the target users in the data set. Furthermore, these behavior patterns can be manually screened to determine a more appropriate behavior pattern of the target users in the data set.
[0086] In the embodiments of this specification, since the number of aggregated information of the same category is closely related to the behavior pattern of the target user in the data set, determining the behavior pattern of the target user based on the number of aggregated information of each category helps to obtain a behavior pattern that is more consistent with the behavior data of each target user in the data set.
[0087] After determining the behavior pattern of the target user in the data set, it can be determined whether the suspicious user has the behavior pattern. In one implementation, the pattern mining method further includes the following steps G1-G4:
[0088] Step G1, based on the acquired target behavior data of the suspicious user, construct a target original graph centered on the suspicious user;
[0089] Step G2, constructing target supplementary information for each node in the target original graph based on the target behavior data, where the target supplementary information is information reflecting the behavior characteristics of the user corresponding to each node in the target original graph;
[0090] Step G3, based on the subgraph corresponding to the behavior pattern, extract at least one target subgraph containing the node corresponding to the suspicious user in the target original graph from the target original graph, and perform aggregation processing on the target subgraph to obtain the aggregation information of the target subgraph, wherein the aggregation processing is used to aggregate the information of each node in the target subgraph after the supplementary information of the adjacent nodes of the node in the target subgraph is aggregated to the node;
[0091] Step G4, matching the aggregate information of the target subgraph with the aggregate information corresponding to the behavior pattern, and determining whether the suspicious user is a user with the behavior pattern based on the target matching result.
[0092] Among them, the nodes in the target original graph correspond to the users in the target behavior data, the edges of the behavior graph correspond to the target behavior data, the target supplementary information is the information reflecting the behavioral characteristics of the users corresponding to each node in the target original graph, and the aggregation processing is used to aggregate the information of each node in the target subgraph after the supplementary information of the adjacent nodes of the nodes in the target subgraph is gathered to the node.
[0093] The process of determining the target original graph and target supplementary information in this embodiment is similar to the process of determining the original graph and supplementary information described above, and will not be described in detail here. After determining the behavior pattern of the target user in the data set, the subgraph corresponding to the behavior pattern can be used to extract the target subgraph in the target original graph, so that the subgraphs in the target original graph do not need to be enumerated, and the number of target subgraphs determined from the target original graph is reduced, thereby improving the efficiency of the process of determining whether the suspicious user meets the aforementioned behavior pattern.
[0094] After the target subgraph is aggregated to obtain the aggregate information of the target subgraph, the aggregate information of the target subgraph can be matched with the aggregate information corresponding to the behavior pattern. This process can refer to the matching process of the aggregate information corresponding to each target user in the data set. According to the target matching result, it can be determined whether the suspicious user meets the aforementioned behavior pattern.
[0095] Figure 4 A schematic diagram of an application example of pattern mining is shown, where the pattern mining is used to mine the behavior patterns of the financial behavior of multiple users. Figure 4 As shown in Figure 1, the pattern mining process mainly includes the following steps:
[0096] The first step is data input, which is used to obtain data on the financial behavior of multiple users.
[0097] The second step is data preprocessing. This process mainly includes the digitization of the capital behavior sequence and the acquisition of the user's second-order subgraph. The second-order subgraph is constructed based on the sequence and graph data for subsequent neural network calculation and processing.
[0098] The third step is pattern enumeration. The user's complete sequence graph data actually contains a variety of sequence graph patterns. Therefore, we can use the random walk method to generate enumeration subgraphs in the second-order subgraph and remove duplicates, and list the sequence graph data to be calculated for each user (i.e. the aforementioned subgraph) as much as possible to facilitate subsequent representation mapping.
[0099] The fourth step is pattern representation. This process uses the graph neural network structure of SGIN (Sequence-involved graph isomorphism network) to establish an injective relationship between the sequence graph pattern and the representation, and obtain the unique representation of the original sequence graph data of the graph pattern.
[0100] Step 5: Pattern merging and statistics: This process performs merging processing (i.e., merging similar items) based on the graph representation to obtain statistical indicators such as the magnitude of the merged graph patterns and the number of users hit by each graph pattern.
[0101] It should be noted that the execution subject of the pattern mining method provided in the embodiments of this specification may be a pattern mining device, or a control module in the pattern mining device for executing the pattern mining method. In the embodiments of this specification, the pattern mining device provided in the embodiments of this specification is described by taking the pattern mining method executed by the pattern mining device as an example.
[0102] Figure 5 Schematic diagram of the structure of a pattern mining device according to an embodiment of the present invention. Figure 5 As shown, the pattern mining device 500 includes:
[0103] A graph construction module 510 is used to construct an original graph centered on a target user for each data group in the data set, each data group contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group;
[0104] A supplementing module 520, for constructing supplementary information of each node in the original graph based on the behavior data in the data group included in the data set;
[0105] The subgraph extraction module 530 is used to extract at least one subgraph including the node corresponding to the target user in the original graph from the original graph, and perform aggregation processing on the subgraph to obtain the aggregation information of the subgraph. The aggregation processing is used to aggregate the information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is aggregated to the node;
[0106] The matching module 540 is used to match the aggregate information corresponding to each target user in the data set, and determine the behavior pattern of the target user in the data set according to the matching result.
[0107] In one embodiment, the aggregation process includes a first aggregation process and a second aggregation process, and the subgraph extraction module 530 includes:
[0108] A first aggregation unit is used to perform a first aggregation process on the subgraph to obtain first aggregation information of multiple network layers of each node in the subgraph, wherein the first aggregation process includes aggregating supplementary information of adjacent nodes of a target node at the same network layer in the subgraph to the target node to obtain first aggregation information of a target node at a next network layer;
[0109] The second aggregation unit is used to perform a second aggregation process on the subgraph that has been subjected to the first aggregation process to obtain aggregation information of the subgraph, wherein the second aggregation process is used to aggregate the first aggregation information of each node in the subgraph at the last network layer.
[0110] In one embodiment, the number of network layers is N, where N is a positive integer, and the first aggregation unit is used to:
[0111] Determine first aggregation information of a first network level of each node in the subgraph according to initial information of each node in the subgraph;
[0112] At the i-1th network level, a first aggregation process is performed on the supplementary information of the adjacent nodes of the target node in the subgraph and the first aggregation information of the target node and the adjacent nodes of the target node to obtain the first aggregation information of the i-th network level of each node in the subgraph, where i is a positive integer greater than 1 and less than or equal to N.
[0113] In one embodiment, at the i-1th network level, a first aggregation process is performed on the supplementary information of the neighboring nodes of the target node in the subgraph, and the first aggregation information of the target node and the neighboring nodes of the target node, to obtain the first aggregation information of the i-th network level of each node in the subgraph, including:
[0114] At the i-1th network level, second aggregation information of the neighboring nodes of the target node in the subgraph is determined according to the supplementary information of the neighboring nodes of the target node in the subgraph and the first aggregation information;
[0115] The first aggregation information of the node in the subgraph at the i-th network level is determined according to the first aggregation information of the target node in the subgraph and the second aggregation information of the adjacent nodes of the target node.
[0116] In one embodiment, the supplementary information includes first supplementary information and / or second supplementary information, and the supplementary module 520 includes:
[0117] A behavior sequence unit is used to obtain the behavior data of each node in the original graph corresponding to the data group from the behavior data in the data group, and sort the obtained behavior data according to the time node to obtain the behavior sequence of each node in the original graph;
[0118] A first supplementing unit, used for determining first supplementing information of each node in the original graph according to a behavior sequence of each node in the original graph;
[0119] A time difference sequence unit is used to construct a time difference sequence corresponding to the behavior sequence according to the time difference between adjacent time nodes in the behavior sequence;
[0120] The second supplementing unit is used to determine the second supplementing information of each node in the original graph according to the time difference sequence of each node in the original graph.
[0121] In one embodiment, the matching module 540 includes:
[0122] A merging unit, configured to treat the two pieces of aggregate information as aggregate information of the same category when the matching result of the two pieces of aggregate information is greater than a preset matching value;
[0123] The pattern unit is used to determine the behavior pattern of the target user in the dataset based on the amount of aggregated information of each category.
[0124] In one embodiment, the mode unit is used to:
[0125] sorting the aggregate information of each category based on the number of target users corresponding to the aggregate information of each category;
[0126] The pattern corresponding to the aggregated information of the categories in the preset order is taken as the behavior pattern of the target user in the data set.
[0127] In one embodiment, the pattern mining apparatus 500 further includes:
[0128] A target original graph module is used to construct a target original graph centered on the suspicious user based on the acquired target behavior data of the suspicious user;
[0129] A target supplementary information module, used to construct target supplementary information of each node in the target original graph based on target behavior data;
[0130] A target subgraph module is used to extract at least one target subgraph including nodes corresponding to suspicious users in the target original graph from the target original graph based on the subgraph corresponding to the behavior pattern, and perform aggregation processing on the target subgraph to obtain aggregation information of the target subgraph;
[0131] The target matching module is used to match the aggregate information of the target subgraph with the aggregate information corresponding to the behavior pattern, and determine whether the suspicious user is a user with the behavior pattern based on the target matching result.
[0132] It should be noted that the embodiment of the device for pattern mining in the present application and the embodiment of the method for pattern mining in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding pattern mining method mentioned above, and the repeated parts will not be repeated.
[0133] Each module in the above-mentioned pattern mining device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device or the processor on the server side in the form of hardware, or can be stored in the memory in the terminal device or the memory on the server side in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0134] Furthermore, corresponding to the pattern mining method described above, based on the same technical concept, one or more embodiments of the present application further provide an electronic device, which is used to execute the pattern mining method described above. Figure 6 A schematic diagram of the structure of an electronic device provided for one or more embodiments of the present application.
[0135] Based on the same idea, one or more embodiments of this specification also provide an electronic device, such as Figure 6 As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 can be a temporary storage or a permanent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device. Furthermore, the processor 601 can be configured to communicate with the memory 602 to execute a series of computer executable instructions in the memory 602 on the electronic device. The electronic device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, and one or more keyboards 606.
[0136] In a specific embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs configured to be executed by one or more processors include the following computer executable instructions:
[0137] For each data group in the data set, construct an original graph centered on the target user, each data group contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group;
[0138] Based on the behavioral data in the data groups contained in the data set, construct the supplementary information of each node in the original graph;
[0139] Extracting at least one subgraph including a node corresponding to the target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is aggregated to the node;
[0140] The aggregate information corresponding to each target user in the data set is matched, and the behavior pattern of the target user in the data set is determined based on the matching results.
[0141] It should be noted that the embodiment of the electronic device in the present application and the embodiment of the pattern mining method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding pattern mining method mentioned above, and the repeated parts will not be repeated.
[0142] Furthermore, corresponding to the pattern mining method described above, based on the same technical concept, one or more embodiments of the present application further provide a storage medium for storing computer executable instructions. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instructions stored in the storage medium are executed by a processor, the following process can be implemented:
[0143] For each data group in the data set, construct an original graph centered on the target user, each data group contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group;
[0144] Based on the behavioral data in the data groups contained in the data set, construct the supplementary information of each node in the original graph;
[0145] Extracting at least one subgraph including a node corresponding to the target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is aggregated to the node;
[0146] The aggregate information corresponding to each target user in the data set is matched, and the behavior pattern of the target user in the data set is determined based on the matching results.
[0147] It should be noted that the embodiment of the storage medium in the present application and the method of pattern mining in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding pattern mining method mentioned above, and the repeated parts will not be repeated.
[0148] Furthermore, corresponding to the pattern mining method described above, based on the same technical concept, one or more embodiments of the present application further provide a computer program product, the computer program product including a computer program, which can implement the following process when executed by a processor:
[0149] For each data group in the data set, construct an original graph centered on the target user, each data group contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group;
[0150] Based on the behavioral data in the data groups contained in the data set, construct the supplementary information of each node in the original graph;
[0151] Extracting at least one subgraph including a node corresponding to the target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is aggregated to the node;
[0152] The aggregate information corresponding to each target user in the data set is matched, and the behavior pattern of the target user in the data set is determined based on the matching results.
[0153] It should be noted that the embodiment of the computer program product in the present application and the embodiment of the pattern mining method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding pattern mining method mentioned above, and the repeated parts will not be repeated.
[0154] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0155] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0156] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0157] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0158] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0159] Those skilled in the art will appreciate that one or more embodiments of the present application may be provided as methods, systems or computer program products. Therefore, one or more embodiments of the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0164] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0165] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0166] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0167] One or more embodiments of the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present application may also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0168] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0169] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.
Claims
1. A method for pattern mining, comprising: For each data group in the data set, construct an original graph centered on a target user, each of the data groups contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group; constructing supplementary information of each node in the original graph based on the behavior data in the data group included in the data set; Extracting at least one subgraph including a node corresponding to a target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of adjacent nodes of the node in the subgraph is aggregated to the node; The aggregate information corresponding to each of the target users in the data set is matched, and the behavior pattern of the target users in the data set is determined according to the matching result.
2. According to the method of claim 1, the aggregation process comprises a first aggregation process and a second aggregation process, and the performing of the aggregation process on the subgraph to obtain the aggregation information of the subgraph comprises: Performing a first aggregation process on the subgraph to obtain first aggregation information of multiple network layers of each node in the subgraph, wherein the first aggregation process includes aggregating supplementary information of adjacent nodes of a target node at the same network layer in the subgraph to the target node to obtain first aggregation information of the target node at the next network layer; A second aggregation process is performed on the subgraph that has been subjected to the first aggregation process to obtain aggregation information of the subgraph, wherein the second aggregation process is used to aggregate the first aggregation information of each node in the subgraph at the last network layer.
3. According to the method of claim 2, the number of the network levels is N, where N is a positive integer, and the first aggregation processing is performed on the subgraph to obtain first aggregation information of multiple network levels of each node in the subgraph, including: Determine first aggregation information of a first network level for each node in the subgraph according to initial information of each node in the subgraph; At the i-1th network level, a first aggregation processing is performed on the supplementary information of the adjacent nodes of the target node in the subgraph and the first aggregation information of the target node and the adjacent nodes of the target node to obtain the first aggregation information of the i-th network level of each node in the subgraph, where i is a positive integer greater than 1 and less than or equal to N.
4. The method according to claim 3, wherein at the i-1th network level, performing a first aggregation process on the supplementary information of the neighboring nodes of the target node in the subgraph and the first aggregation information of the target node and the neighboring nodes of the target node to obtain the first aggregation information of the i-th network level of each node in the subgraph comprises: At an i-1th network level, determining second aggregation information of neighboring nodes of the target node in the subgraph according to the supplementary information of the neighboring nodes of the target node in the subgraph and the first aggregation information; The first aggregation information of the node in the subgraph at the i-th network level is determined according to the first aggregation information of the target node in the subgraph and the second aggregation information of the adjacent nodes of the target node.
5. The method according to claim 1, wherein the supplementary information comprises first supplementary information and / or second supplementary information, and the constructing the supplementary information of each node in the original graph based on the behavior data in the data group included in the data set comprises: From the behavior data in the data group, obtain the behavior data of each node in the original graph corresponding to the data group, and sort the obtained behavior data according to time nodes to obtain the behavior sequence of each node in the original graph; Determining first supplementary information of each node in the original graph according to a behavior sequence of each node in the original graph; According to the time differences between adjacent time nodes in the behavior sequence, construct a time difference sequence corresponding to the behavior sequence; The second supplementary information of each node in the original graph is determined according to the time difference sequence of each node in the original graph.
6. The method according to claim 1, wherein determining the behavior pattern of the target user in the data set according to the matching result comprises: When the matching result of the two pieces of aggregate information is greater than a preset matching value, the two pieces of aggregate information are regarded as aggregate information of the same category; Based on the amount of aggregated information of each category, a behavior pattern of the target user in the data set is determined.
7. The method according to claim 6, wherein determining the behavior pattern of the target user in the data set based on the amount of aggregated information of each category comprises: sorting the aggregate information of each category based on the number of target users corresponding to the aggregate information of each category; The pattern corresponding to the aggregated information of the categories in the preset order is used as the behavior pattern of the target user in the data set.
8. The method according to claim 1, further comprising: Based on the acquired target behavior data of the suspicious user, construct a target original graph centered on the suspicious user; Based on the target behavior data, construct target supplementary information for each node in the target original graph; Based on the subgraph corresponding to the behavior pattern, extracting at least one target subgraph including the node corresponding to the suspicious user in the target original graph from the target original graph, and performing aggregation processing on the target subgraph to obtain aggregation information of the target subgraph; The aggregate information of the target subgraph is matched with the aggregate information corresponding to the behavior pattern, and based on the target matching result, it is determined whether the suspicious user is a user with the behavior pattern.
9. A pattern mining device, comprising: A graph construction module, for constructing an original graph centered on a target user for each data group in the data set, wherein each data group contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group; A supplementing module, configured to construct supplementary information of each node in the original graph based on the behavior data in the data group included in the data set; A subgraph extraction module, used to extract at least one subgraph containing a node corresponding to a target user in the original graph from the original graph, and perform aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of the adjacent nodes of the node in the subgraph is aggregated to the node; The matching module is used to match the aggregate information corresponding to each of the target users in the data set, and determine the behavior pattern of the target users in the data set according to the matching result.
10. An electronic device, comprising: processor, and a memory arranged to store computer executable instructions which, when executed, cause the processor to: For each data group in the data set, construct an original graph centered on a target user, each of the data groups contains at least one behavior data related to the target user targeted by the data group, the nodes in the original graph correspond to the users in the data group, and the edges in the original graph correspond to the behavior data in the data group; constructing supplementary information of each node in the original graph based on the behavior data in the data group included in the data set; Extracting at least one subgraph including a node corresponding to a target user in the original graph from the original graph, and performing aggregation processing on the subgraph to obtain aggregation information of the subgraph, wherein the aggregation processing is used to aggregate information of each node in the subgraph after the supplementary information of adjacent nodes of the node in the subgraph is aggregated to the node; The aggregate information corresponding to each of the target users in the data set is matched, and the behavior pattern of the target users in the data set is determined according to the matching result.
