WO2021139513A1 - Method and apparatus for processing interaction sequence data - Google Patents

Method and apparatus for processing interaction sequence data Download PDF

Info

Publication number
WO2021139513A1
WO2021139513A1 PCT/CN2020/137922 CN2020137922W WO2021139513A1 WO 2021139513 A1 WO2021139513 A1 WO 2021139513A1 CN 2020137922 W CN2020137922 W CN 2020137922W WO 2021139513 A1 WO2021139513 A1 WO 2021139513A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
interaction
nodes
target
event
Prior art date
Application number
PCT/CN2020/137922
Other languages
French (fr)
Chinese (zh)
Inventor
常晓夫
文剑烽
刘旭钦
宋乐
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021139513A1 publication Critical patent/WO2021139513A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces

Definitions

  • One or more embodiments of this specification relate to the field of machine learning, and more particularly to methods and devices for processing interactive sequence data using machine learning.
  • Interaction events are one of the basic elements of Internet events.
  • the click behavior of a user when browsing a page can be regarded as an interaction event between the user and the page content block
  • the purchase behavior in e-commerce can be regarded as the interaction between the user and the product
  • Interaction events between users, communication between users through social platforms, and transfer behavior between accounts are interaction events between users.
  • a series of user interaction events contain the user's fine-grained habits and preferences, as well as the characteristics of interactive objects, which are important source of features for machine learning models. Therefore, in many scenarios, it is desirable to characterize and model interactive participants based on interactive events.
  • an interactive event involves both parties to the interaction, and the status of each participant itself can be dynamically changed. Therefore, it is very difficult to accurately express the characteristics of the interactive participants comprehensively considering the various characteristics of the interactive parties. Therefore, it is hoped that there will be an improved solution to analyze and process the interactive objects in the interactive event more effectively, so as to obtain feature vectors suitable for subsequent analysis.
  • One or more embodiments of this specification describe methods and devices for processing interactive data, in which the interactive events participating in the interactive objects and the influence of other objects in the interactive events are considered, and the interactive objects are processed into feature vectors, which is beneficial to subsequent interaction with the interactive objects. Analysis and analysis of interaction events.
  • a method for processing interaction data comprising: obtaining a dynamic interaction graph constructed according to an interaction event set, wherein the interaction event set includes a plurality of interaction events, and each interaction event includes at least , The two objects at which the interaction behavior occurs and the interaction time; the dynamic interaction graph includes any first node, and the first node corresponds to the first object in the interaction event that occurred at the first time, and the first node Pointing to the M associated nodes corresponding to the N associated events through the connecting edge, the N associated events all occur at the second time, and all include the first object as one of the interactive objects, and the second time is, Looking back from the first time forward, the time before the interaction behavior of the first object occurred; the dynamic interaction graph includes at least one multi-element node whose number of associated nodes is greater than 2; in the dynamic interaction graph, it is determined A first target subgraph corresponding to a first target node, where the first target subgraph includes nodes within a predetermined range that start from the first target no
  • the object includes a user
  • the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
  • the above-mentioned M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
  • the dynamic interaction graph can be obtained in the following ways: obtaining an existing dynamic interaction graph constructed based on an existing set of interaction events; obtaining P new interaction events that occurred at the first update time; in the existing dynamic interaction 2P new nodes are added in the figure, and the 2P new nodes respectively correspond to the two objects included in each new interaction event in the P new interaction events; for each new node, if there is an association Node, add a connecting edge from the newly added node to its associated node.
  • the aforementioned M associated nodes are N+1 nodes, respectively corresponding to N other objects interacting with the first object in the N associated events, and the first object itself.
  • the dynamic interaction graph can be obtained in the following ways: obtaining an existing dynamic interaction graph constructed based on an existing set of interaction events; obtaining P newly added interaction events occurring at the first update time; determining the P newly added interaction events Q different objects involved in the interaction event; adding Q new nodes to the existing dynamic interaction graph, the Q new nodes corresponding to the Q different objects; for each new node, If there is an associated node, add a connecting edge from the newly added node to its associated node.
  • the above-mentioned first target node is a node: in the dynamic interaction graph, there is no connecting edge pointing to the node.
  • the nodes within the predetermined range include: nodes within a connecting edge of a preset order K; and/or nodes whose interaction time is within a preset time range.
  • each interaction event also includes the event characteristics of the interaction event; in this case, the node characteristics of each node may include the attribute characteristics of the object corresponding to each node, and the characteristics of the interaction event where each node is located. Event characteristics.
  • the performed service processing related to the first target node may include predicting the classification category of the object corresponding to the first target node according to the first feature vector.
  • the method further includes, in the dynamic interaction graph, determining a second target subgraph corresponding to a second target node, where the second target subgraph includes starting from the second target node, Nodes within the predetermined range that are reached via the connecting edge; based on the node characteristics of each node contained in the second target subgraph and the direction relationship of the connecting edges between the nodes, determine the corresponding to the second target node The second feature vector.
  • the performed service processing related to the first target node may further include predicting the first target node and the second target node according to the first feature vector and the second feature vector Whether the represented objects will interact.
  • the first target node and the second target node are two nodes corresponding to the first interaction event; in this case, the service processing may include, according to the first feature vector and the second feature vector , Predict the event category of the first interaction event.
  • the first feature vector corresponding to the first target node can be determined by the following method: inputting the first target subgraph into a pre-trained neural network model, the neural network model based on the first target subgraph The node features of each node included in the graph and the direction relationship of the connecting edges between the nodes are outputted as the first feature vector.
  • the neural network model includes one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer
  • an apparatus for processing interaction data comprising: an interaction graph obtaining unit configured to obtain a dynamic interaction graph constructed according to an interaction event set, wherein the interaction event set includes a plurality of interaction events , Each interaction event includes at least two objects where the interaction behavior occurs and the interaction time; the dynamic interaction graph includes any first node, and the first node corresponds to the first one of the interaction events occurring at the first time.
  • the first node points to the M associated nodes corresponding to the N associated events through the connecting edge, the N associated events all occur at the second time, and all include the first object as one of the interactive objects,
  • the second time is, looking back from the first time, the time before the interaction of the first object occurs;
  • the dynamic interaction graph includes at least one multi-node with more than 2 associated nodes;
  • a subgraph The determining unit is configured to determine, in the dynamic interaction graph, a first target subgraph corresponding to a first target node, where the first target subgraph includes a predetermined value that starts from the first target node and arrives via a connecting edge.
  • a subgraph processing unit configured to determine the first target node corresponding to the first target node based on the node characteristics of each node contained in the first target subgraph and the direction relationship of the connecting edges between the nodes A feature vector; a service processing unit configured to use at least the first feature vector to perform service processing related to the first target node.
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method of the first aspect.
  • a computing device including a memory and a processor, characterized in that executable code is stored in the memory, and when the processor executes the executable code, the method of the first aspect is implemented .
  • a dynamic interaction diagram is constructed based on a set of interaction events, and the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influences between interactive objects transmitted through each interaction event.
  • the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influences between interactive objects transmitted through each interaction event.
  • there are multiple interaction events occurring simultaneously in the above-mentioned interaction event set and multiple nodes connected to multiple associated nodes are allowed to exist in the corresponding dynamic interaction graph, thereby enriching the relationship information contained in the dynamic interaction graph. Therefore, based on the subgraph related to the node corresponding to the interactive object to be analyzed in the dynamic interaction graph, the feature vector of the interactive object can be extracted.
  • the feature vector obtained in this way introduces the influence of other interactive objects in each interactive event on it, so that the in-depth characteristics of the interactive object can be comprehensively expressed, and business processing can be better performed.
  • Figure 1A shows a two-part diagram of the interaction relationship in an example
  • FIG. 1B shows an interactive relationship network diagram in another example
  • Fig. 2 shows a schematic diagram of an implementation scenario according to an embodiment
  • FIG. 3 shows a flowchart of a method for processing interactive data according to an embodiment
  • Figure 4 shows a dynamic interaction diagram constructed according to an embodiment
  • Figure 5 shows a dynamic interaction diagram constructed according to another embodiment
  • Figure 6 shows an example of a target subgraph in one embodiment
  • Figure 7 shows an example of a target subgraph in another embodiment
  • Figure 8 shows a flowchart of training a neural network model in one embodiment
  • Figure 9 shows a flowchart of training a neural network model in another embodiment
  • Fig. 10 shows a schematic block diagram of an apparatus for processing interactive data according to an embodiment.
  • the participants in the interaction event that is, the interaction object, can be characterized and modeled.
  • a static interaction relationship network diagram is constructed based on historical interaction events, so that each interaction object is analyzed based on the interaction relationship network diagram.
  • participants in each historical event can be used as nodes, and connecting edges can be established between nodes that have an interactive relationship, so as to form the foregoing interactive network graph.
  • FIG. 1A and Fig. 1B respectively show the interactive relationship network diagram in a specific example. More specifically, Figure 1A shows a bipartite graph, which contains user nodes (U1-U4) and product nodes (V1-V3). If a user has purchased a product, it will be between the user and the product. Construct a connecting edge between.
  • Figure 1B shows a user transfer relationship diagram, in which each node represents a user, and there is a connecting edge between two users who have made transfer records.
  • FIG. 1A and FIG. 1B show the interaction relationship between objects, they do not contain the timing information of these interaction events.
  • Simply embedding the graph based on such an interactive relationship network graph the obtained feature vector does not express the influence of the time information of the interactive event on the node.
  • the scalability of such a static graph is not strong enough, and it is difficult to flexibly handle the situation of newly-added interactive events and newly-added nodes.
  • a behavior sequence of the object is constructed, and the characteristic expression of the object is extracted based on the behavior sequence.
  • a behavior sequence only characterizes the behavior of the object to be analyzed, and interactive events are events involving multiple parties, and the participants will indirectly transmit influence through the interaction events. Therefore, this method does not express the influence between the participating objects in the interaction event.
  • a dynamically changing set of interaction events is constructed into a dynamic interaction graph, wherein each interaction object involved in each interaction event corresponds to each node in the dynamic interaction graph.
  • An arbitrary node is connected to a number of associated nodes, where the associated node is the node corresponding to the interaction event that the object corresponding to the arbitrary node participated in last time.
  • the subgraph part related to the corresponding node is obtained from the dynamic interaction graph, and the feature vector expression of the interactive object is obtained based on the node characteristics of the nodes contained in the subgraph part and the connection relationship between the nodes.
  • Fig. 2 shows a schematic diagram of an implementation scenario according to an embodiment.
  • a dynamic interaction diagram 200 is constructed based on the set of interaction events.
  • the individual interactive objects each interaction event a i, b i represented by nodes, and establishes a connection between the edges containing the same event object. Since multiple interaction events are allowed to occur at the same time, the dynamic interaction graph 200 contains at least one multi-element node, and the multi-element node can be connected to 3 or more associated nodes. The structure of the dynamic interaction graph 200 will be described in more detail later.
  • the corresponding target subgraph in the dynamic interaction graph can be determined.
  • the target subgraph includes nodes that can be reached through a certain range of connected edges starting from the target node. This subgraph reflects the influence of other objects in the interaction event directly or indirectly associated with the target interaction object on the target node.
  • the feature vector corresponding to the target node is obtained.
  • the feature vector obtained in this way can extract the timing information of the associated interaction events and the influence between the interaction objects in each interaction event, so as to more accurately express the in-depth characteristics of the target interaction object represented by the target node.
  • Such feature vectors can be subsequently applied to various machine learning models and various business scenarios. For example, reinforcement learning can be performed based on the feature vector thus obtained, or cluster analysis can be performed based on the feature vector, for example, clustering users into groups of people.
  • Fig. 3 shows a flowchart of a method for processing interactive data according to an embodiment. It is understandable and understandable that the method can be executed by any device, device, platform, or device cluster with computing and processing capabilities. The following describes each step in the method for processing interactive data as shown in FIG. 3 in conjunction with specific embodiments.
  • step 31 a dynamic interaction graph constructed according to the set of interaction events is obtained.
  • the interaction event may be a user's purchase behavior, where the first object may be a certain user, and the second object may be a certain commodity.
  • the interaction event may be a user's click behavior on a page block, where the first object may be a certain user, and the second object may be a certain page block.
  • the interaction event may be a transaction event, for example, a user transfers money to another user, or a user makes a payment to a store or platform.
  • the interaction event may be a social event that a user occurs through a social platform, such as chatting, calling, sending red envelopes, and so on. In other business scenarios, interaction events can also be other interaction behaviors that occur between two objects.
  • the two objects interacting may be objects of different types, such as objects of the first type and objects of the second type.
  • the first type of object may be a certain user
  • the second type of object may be a certain commodity.
  • the two objects involved in the interaction event may be objects of the same type.
  • the interaction event may be an instant communication between two users. At this time, both the first object and the second object are users and belong to the same type of objects.
  • whether to distinguish the types of two interactive objects can be set according to the needs of the business.
  • the two users belong to the same type of object.
  • the user who transfers the amount may be regarded as an object of the first type, and the user who is the recipient is regarded as an object of the second type.
  • the interaction feature group corresponding to each interaction event may also include event feature or behavior feature f.
  • the event feature or behavior feature f may include background and context information of the occurrence of the interaction event, some attribute features of the interaction behavior, and so on.
  • the event feature f may include the type of terminal used by the user to click, browser type, app version, etc.; in the case where the interaction event is a transaction event, the event The feature f may include, for example, transaction type (commodity purchase transaction, transfer transaction, etc.), transaction amount, transaction channel, and so on.
  • the time is always measured and recorded in an appropriate duration unit.
  • the unit duration for recording the interaction time can be hours h or minutes m. Therefore, multiple interaction events are likely to occur within the unit duration. Even if it takes a short duration as a unit, such as seconds or even milliseconds, for some service platforms that interact very frequently, such as Alipay, there will inevitably be multiple interaction events within a unit of time.
  • the user edits a message in advance, selects a group of friends, and then performs a batch group sending operation. This is equivalent to initiating an interaction event with multiple friends at the same time.
  • a user adds multiple items to the shopping cart and then selects batch settlement, which is equivalent to simultaneously initiating interaction events with multiple items.
  • interaction event set S is obtained.
  • the interaction events in the interaction event set S are arranged in chronological order and expressed in the form of interaction feature groups, which can be recorded as follows:
  • a, b, c, d, e, f, u, v are interaction objects, interaction events E 2 and E 3 all occur at time t 2 and interaction events E 4 , E 5 and E 6 all occur at t 3 At time, the interaction events E 7 and E 8 both occurred at time t 4.
  • a dynamic interaction diagram can be constructed to depict the association relationships between interaction events and interaction objects.
  • the objects contained in the interaction events occurring at each time can be used as the nodes of the dynamic interaction graph.
  • a node can correspond to an object that interacts at a time, but the same physical object may correspond to multiple nodes.
  • the physical object v at time t 6 u interact with an object
  • the node may correspond to construct v (t 6)
  • c interact with objects in the time t 5
  • the node may correspond to construct v (t 5). Therefore, it can be considered that the nodes in the dynamic interaction graph correspond to the interactive object at a certain interaction time, or in other words, correspond to the state of the interactive object at a certain interaction time.
  • the connecting edge For each node in the dynamic interaction graph, construct the connecting edge in the following way: For any node i, it is called the first node for simplicity; assuming that it corresponds to the first object at the first interaction time t, then in the interaction In the event sequence, backtracking from the first interaction time t, that is, backtracking in the direction earlier than the first interaction time t, it is determined that the last time when the first object interacted is the second time (t-), and The N interaction events that occur in the second time and the first object participates in are regarded as the N associated events of the first node, and the M nodes corresponding to the N associated events are regarded as the associated nodes, and it is established to point from the first node i to M The connecting edge of the associated node. Due to the possibility of multiple interaction events occurring at the same time, N may be greater than 1. In this way, the dynamic interaction graph may include multiple nodes, that is, nodes with more than two connected associated nodes.
  • corresponding nodes are respectively established for the two objects of each interaction event.
  • the aforementioned N associated events correspond to 2N nodes, and these 2N nodes are regarded as the aforementioned M associated nodes.
  • FIG. 4 shows a dynamic interaction diagram constructed according to an embodiment. Specifically, the left side of FIG. 4 shows a schematic diagram of an interaction sequence that organizes the foregoing interaction event set S in chronological order, and the right side shows a dynamic interaction diagram.
  • this dynamic interaction graph two interaction objects in each interaction event are respectively regarded as nodes. The following takes nodes u(t 6 ) and v(t 6 ) as examples to describe the construction of connecting edges.
  • the node u(t 6 ) represents the object u at time t 6. Therefore, starting from time t 6 and backtracking, it can be determined that the time when the object u had an interactive behavior last time is t 4 , during which time t 4 participated in two related events E 7 and E 8 , namely, the interaction event E 7 Both E and E 8 contain the object u as one of the interactive objects. Therefore, the four nodes corresponding to the associated events E 7 and E 8 are the associated nodes of the node u(t 6 ). In Fig. 4, in order to distinguish the object node u in the events E 7 and E 8 , they are denoted as u 1 (t 4 ) and u 2 (t 4 ). Thus, a connecting edge from the node u(t 6 ) to its 4 associated nodes is established.
  • the node v(t 6 ) represents the object v at time t 6. Therefore, starting from time t 6 and looking back forward, it can be determined that the time when the object v had an interactive behavior last time is t 5 , during which time t 5 participated in an associated event E 9 . Therefore, the two nodes v(t 5 ) and c(t 5 ) corresponding to the associated event E 9 are the associated nodes of node v(t 6 ). Then, a connecting edge from the node v(t 6 ) to the two associated nodes is established. For each other node, the above-mentioned method can be used to determine its associated event and associated node, so as to establish a connection edge to the associated node. In the dynamic interaction graph shown in Figure 4, the nodes u(t 6 ) and c(t 5 ) are all multi-element nodes.
  • a dynamic interaction graph when constructing a dynamic interaction graph, for multiple interaction events that occur at the same time, different interaction objects involved in the multiple interaction events are determined, and corresponding nodes are established for each different interaction object. In other words, if multiple interaction events that occur at the same time contain the same object, only one node is established for the same object. In this way, when establishing a connection edge, if there are N associated events corresponding to the first node of the first object, then these N associated events correspond to N+1 associated nodes, corresponding to the first object itself, and N N other objects interacting with the first object in the associated event.
  • Fig. 5 shows a dynamic interaction diagram constructed according to another embodiment. Specifically, the left side of FIG. 5 shows the aforementioned interaction event set S, and the right side shows a dynamic interaction diagram.
  • the dynamic interaction graph shows corresponding nodes are respectively established for different interaction objects in the interaction events that occur at the same time.
  • the difference between the dynamic interaction diagram of FIG. 5 and that of FIG. 4 is that the nodes of the same object in the multiple interaction events that occur at the same time in FIG. 4 are merged into one node.
  • the node u(t 6 ) represents the object u at time t 6. Starting from time t 6 and looking back, it can be determined that the time when the object u had an interactive behavior last time is t 4 , during which time t 4 participated in two related events E 7 and E 8 , namely, interactive events E 7 and E 8 all contain the object u as one of the interactive objects.
  • the three nodes a(t 4 ), b(t 4 ), and u(t 4 ) corresponding to the associated events E 7 and E 8 are associated nodes of the node u(t 6 ). Then, a connecting edge from the node u(t 6 ) to the three associated nodes is established.
  • a connecting edge pointing to the two nodes v(t 5 ) and c(t 5 ) corresponding to the associated event E 9 can be established. This process is the same as the description in conjunction with FIG. 4 and will not be repeated.
  • the above-mentioned methods can be used to determine the associated events and associated nodes, so as to establish a connection edge to the associated node.
  • the nodes u(t 6 ) and c(t 5 ) are all multi-element nodes.
  • step 31 a dynamic interaction diagram is constructed on-site according to the interaction event set.
  • the construction method is as described above.
  • a dynamic interaction graph may be constructed based on a set of interaction events in advance. In step 31, read or receive the formed dynamic interaction graph.
  • step 31 may also include a process of updating the dynamic interaction graph.
  • an existing dynamic interaction diagram constructed based on an existing interaction event set can be obtained, and then as time is updated, new interaction events that occur during the update time are continuously detected, and the existing dynamic interaction diagram is updated according to the new interaction events .
  • the existing dynamic interaction graph adopts the form of FIG. 4, and each interaction event corresponds to two nodes.
  • each interaction event corresponds to two nodes.
  • 2P new nodes are added to the existing dynamic interaction graph, and the 2P new nodes respectively correspond to P Two objects included in each of the new interactive events. Then, for each newly added node, find its associated events and associated nodes in the aforementioned manner. If there is an associated node, add a connecting edge from the newly added node to its associated node.
  • the existing dynamic interaction graph adopts the form of FIG. 5, and different objects in simultaneous interaction events correspond to different nodes.
  • first determine the Q different objects involved in the P newly-added interaction events. If the same interaction object does not exist in the P newly added interaction events, then Q 2P; if the same interaction object exists in the P newly added interaction events, then Q ⁇ 2P. Then, Q new nodes are added to the existing dynamic interaction graph, and the Q new nodes respectively correspond to Q different objects. Then, for each newly added node, find its associated events and associated nodes in the aforementioned manner. If there is an associated node, add a connecting edge from the newly added node to its associated node.
  • step 31 a dynamic interaction graph constructed based on the set of interaction events is obtained.
  • step 32 in the acquired dynamic interaction graph, a first target subgraph corresponding to the first target node is determined, where the first target subgraph includes a predetermined range that starts from the first target node and reaches via the connecting edge Within the node.
  • the first target node may be a node corresponding to a certain target interaction object to be analyzed.
  • an entity object can correspond to multiple nodes, expressing the state of the entity object at different times.
  • such a node is selected as the first target node, that is, in the dynamic interaction graph, there is no connecting edge pointing to the node. That is to say, select the node corresponding to the time when the object to be analyzed recently interacted as the first target node. For example, in the dynamic interaction diagrams shown in Figures 4 and 5, when you want to analyze the interactive object u, you can select the node u(t 6 ) as the target node.
  • nodes may also be selected as the first target node.
  • the node u(t 4 ) may also be selected as the first target node.
  • nodes within a predetermined range reached via the connecting edge form a first target subgraph corresponding to the first target node.
  • the nodes within the foregoing predetermined range may be nodes that are reachable by connecting edges of at most a preset order K.
  • the order K is a preset hyperparameter, which can be selected according to business conditions. It can be understood that the preset order K reflects the number of steps of historical interaction events that are traced forward when the information of the target node is expressed. The larger the number K is, the more historical interactive information of order is considered.
  • the nodes within the foregoing predetermined range may also be nodes whose interaction time is within the predetermined time range. For example, backtracking from the interaction time of the target node for a duration of T (for example, one day), within the range of duration and reachable through the connecting edge.
  • T for example, one day
  • the above-mentioned predetermined range considers both the order of the connected edges and the time range.
  • the nodes within the predetermined range refer to nodes whose connection edges passing through the preset order K at most are reachable and whose interaction time is within the predetermined time range.
  • connection edge of the preset order K is taken as an example for description.
  • Figure 6 shows an example of a target subgraph in one embodiment.
  • the nodes that can be reached by the connecting edge of the level are shown in the gray nodes in the figure.
  • These gray nodes and the connection relationship between them are the first target subgraph corresponding to the first target node u(t 6 ).
  • Fig. 7 shows an example of a target subgraph in another embodiment.
  • u(t 6 ) in Fig. 5 is the first target node
  • the nodes that can be reached by the connecting edge of the level are shown in the gray nodes in the figure.
  • These gray nodes and the connection relationship between them are the first target subgraph corresponding to the first target node u(t 6 ).
  • a first feature vector corresponding to the first target node is determined based on the node characteristics of each node included in the first target subgraph and the direction relationship of the connecting edges between the nodes.
  • the node characteristics may include the attribute characteristics of the object represented by the node.
  • the node feature may include the attribute characteristics of the user, such as age, occupation, education level, location, etc.
  • the node feature may include the attribute feature of the product. For example, product category, shelf time, sales volume, etc.
  • the original node characteristics can be obtained accordingly.
  • the feature group of the interaction event further includes an event feature f.
  • the node feature may also include the event feature f of the event where the node is located. If the dynamic interaction diagram in the form of Figure 5 is used, a node can correspond to multiple interaction events occurring at the same time, then the node characteristics of the node may include the synthesis of the event characteristics f of multiple events that the node participates in at the same time.
  • the node feature of each node in the first target subgraph can be obtained, and then, according to the distance of each node from the first target node in the subgraph, It assigns corresponding weights, and synthesizes the node features of each node based on the weights to obtain the first feature vector corresponding to the first target node.
  • the distance between a certain node and the first target node can be determined based on the number of connection edges experienced from the first target node to the node, or based on the interaction time T1 of the interaction event where the first target node is located and the interaction corresponding to the certain node The time difference between time T2 is determined.
  • the first feature vector corresponding to the first target node is determined.
  • a graph embedding algorithm or graph embedding model may be used to perform graph embedding on the first target subgraph, thereby obtaining the first feature vector corresponding to the first target node.
  • supervised or unsupervised graph embedding algorithms or graph embedding models Based on the characteristics and needs of the actual business, an appropriate algorithm or model can be selected to obtain the first feature vector.
  • the first target sub-graph is input into a pre-trained neural network model, and the neural network model is based on the node characteristics of each node contained in the first target sub-graph and the relationship between the nodes.
  • the direction relationship of the connecting edge is output, and the first feature vector is output.
  • the neural network model is a neural network model based on RNN.
  • a node sequence is formed according to the directional relationship between the nodes in the first target subgraph, and the RNN neural network model is used to sequentially process the nodes in the node sequence to obtain the first feature vector of the first target node.
  • the neural network model is a neural network model based on LSTM.
  • the LSTM neural network model is an improvement of the RNN neural network model. It also processes each node based on the node timing relationship represented by the connection edge between the nodes. More specifically, for any current node in the first target subgraph, the LSTM neural network model performs the following processing: at least according to the node characteristics of the current node, the respective intermediate vectors and hidden vectors of several associated nodes pointed to by the current node , To determine the implicit vector and intermediate vector of the current node. In this way, the LSTM neural network model sequentially iteratively processes each node according to the direction relationship of the connecting edge between each node in the first target subgraph, so as to obtain the implicit vector of the first target node as the first feature vector.
  • the neural network model is a neural network model based on Transformer.
  • the position code reflects the relative relationship of the node in the first target subgraph.
  • the position of the first target node for example, how many connecting edges are away from it, etc.
  • the node sequence and position code are input into the Transfomer neural network model, so that the Transformer neural network model calculates the first feature vector of the first target node based on the node feature and position code of each node in the node sequence.
  • the neural network model may also be a neural network model based on other network structures and algorithms, which will not be listed here.
  • the first feature vector corresponding to the first target node is determined based on the first target subgraph in various ways. Since the first target subgraph reflects the time-series interaction history (for example, K related interaction events) information related to the interactive object corresponding to the first target node, the first feature vector thus obtained not only expresses the interactive object The characteristics of itself can also express the influence that the interactive object has received in previous interactive events, thereby fully characterizing the characteristics of the interactive object.
  • K related interaction events for example, K related interaction events
  • step 34 at least the above-mentioned first feature vector is used to perform service processing related to the first target node.
  • the foregoing business processing may be to predict the classification category of the object corresponding to the first target node based on the first feature vector obtained above.
  • the user category of the user may be predicted based on the first feature vector, such as the category of the group to which it belongs, the category of risk level, and so on.
  • the category of the item may be predicted based on the first feature vector, such as the category of the business to which it belongs, the category of a suitable group of people, the category of the scene being purchased, and so on.
  • the service processing may further include analyzing and predicting interaction events related to the first target node. Since interaction events generally involve two objects, it is also necessary to analyze the feature vector of another node.
  • another node can be analyzed in a manner similar to steps 32 and 33 in FIG. 3. That is to say, in the dynamic interaction graph, a second target subgraph corresponding to the second target node is determined, and the second target subgraph includes nodes within the predetermined range starting from the second target node and arriving via the connecting edge. ; Then, based on the node characteristics of each node included in the second target subgraph and the direction relationship of the connecting edges between the nodes, the second feature vector corresponding to the second target node is determined.
  • the specific execution process is similar to the description of steps 32 and 33 in conjunction with the first target node, and will not be repeated here.
  • the above-mentioned second target node is any node in the dynamic interaction graph that is different from the object represented by the first target node, such as v(t 6 ) in FIG. 4 and FIG. 5.
  • the first target node and the second target node can be predicted based on the first feature vector and the second feature vector. Whether the object represented by the target node will interact.
  • the first target node represents a certain user
  • the second target node represents a certain commodity. Then, according to the first feature vector and the second feature vector, it is possible to predict whether the user will purchase the commodity.
  • the first target node represents a certain user
  • the second target node represents a certain page block. Based on the first feature vector and the second feature vector, it is possible to predict whether the user will click on the page block.
  • the first target node and the second target node are two nodes corresponding to the first interaction event that has occurred. Then, the event category of the first interaction event can be predicted based on the first feature vector corresponding to the first target node and the second feature vector corresponding to the second target node.
  • the user represented by the first target node has confirmed to purchase the commodity represented by the second target node, thereby generating the first interaction event.
  • the user requests payment it can predict whether the first interaction event is a fraudulent transaction suspected of cashing out according to the first feature vector and the second feature vector, so as to determine whether the current payment is allowed.
  • the user represented by the first target node has performed a comment operation, such as liking or posting a text comment, on the item (such as a movie) represented by the second target node, thereby generating the first interaction event. After that, based on the first feature vector and the second feature vector, it can be predicted whether the first interaction event is a real operation, so as to exclude some false comments about naval operations.
  • expressing the nodes therein as feature vectors can facilitate subsequent analysis and prediction of the objects represented by the nodes or events related to multiple nodes.
  • a neural network model is used to analyze and process the target subgraph corresponding to the target node. It can be understood that the neural network model relies on a large number of parameters in the calculation process of determining the feature vector of the target node, and these parameters need to be determined by training the neural network model.
  • the neural network model can be trained through different tasks, especially the business processing tasks in step 34. The following describes the training process of the neural network.
  • the neural network model is trained by predicting the interaction behavior.
  • Fig. 8 shows a flowchart of training a neural network model in this embodiment.
  • historical interaction events are acquired.
  • historical interaction events can be obtained from the aforementioned collection of interaction events.
  • the two objects included in the historical interaction event are called the first sample object and the second sample object.
  • a first sample subgraph corresponding to the first sample object and a second sample subgraph corresponding to the second sample object are respectively determined. Specifically, first, the first sample node and the second sample node are respectively determined in the dynamic interaction graph, where the first sample node corresponds to the first sample object under the historical time of the historical interaction event, and the second sample node Corresponds to the second sample object at the historical time. Then, the first sample node and the second sample node are respectively used as target nodes, and the corresponding first sample subgraph and second sample subgraph are determined in a similar manner to step 32 in FIG. 3.
  • step 83 the above-mentioned first sample subgraph and the second sample subgraph are respectively input into the neural network model, and the first sample vector corresponding to the first sample object and the second sample vector corresponding to the second sample object are respectively obtained .
  • the specific process of the neural network model determining the sample vector of the sample object based on the pointing relationship of the nodes in the subgraph is as described above in conjunction with step 33, and will not be repeated.
  • step 84 according to the first sample vector of the first sample object and the second sample vector of the second sample object, predict whether the first sample object and the second sample object will interact, and obtain the prediction result.
  • a two-class classifier can be used to predict whether two sample objects will interact, and the obtained prediction result is usually expressed as the probability of the two sample objects interacting.
  • the prediction loss is determined based on the above prediction result. It can be understood that the above-mentioned first sample object and second sample object come from historical interaction events, so the interaction has actually occurred, which is equivalent to knowing the relationship label between the two sample objects. According to the loss function form such as the cross entropy calculation method, the loss of this prediction can be determined based on the above prediction result.
  • the neural network model is updated based on the predicted loss.
  • methods such as gradient descent and back propagation can be used to adjust the parameters in the neural network to update the neural network model until the prediction accuracy of the neural network model reaches a certain requirement.
  • the foregoing uses two sample objects in historical interaction events to predict the relationship between objects, which is equivalent to using positive samples for training.
  • two sample objects that have not interacted with each other can also be found in the dynamic interaction graph as negative samples for further training, so as to achieve a better training effect.
  • the neural network model is trained by predicting the classification of interactive objects.
  • Fig. 9 shows a flow chart of training the neural network model in this embodiment.
  • a sample object is selected from the set of interaction events, and the classification label of the sample object is obtained.
  • the sample object can be any interaction object in any event, and the classification label for the sample object can be a label related to a business scenario.
  • the classification label may be a pre-set group classification label or a user risk level classification label; in the case where the sample object is a commodity, the classification label may be a commodity classification label.
  • Such labels can be generated by manual labeling, or generated through other business-related processing.
  • a sample subgraph corresponding to the sample object is determined. Specifically, a certain node corresponding to the sample object can be determined in the dynamic interaction graph. Since one entity object can correspond to multiple nodes in the dynamic interaction graph, preferably, the node corresponding to the sample object at the most recent interaction time can be selected here. With this node as the target node, the corresponding sample subgraph is determined in a similar manner to step 32 in FIG. 3.
  • step 93 the above-mentioned sample subgraph is input into the neural network model to obtain the sample vector of the sample object. This process is the same as that described in step 33, and will not be repeated here.
  • step 94 the classification of the sample object is predicted based on the sample vector of the sample object, and the prediction result is obtained.
  • a classifier can be used to predict each probability that the sample object belongs to each category as the prediction result.
  • the prediction loss is determined based on the prediction result and the classification label.
  • a cross-entropy calculation method can be used to predict each probability and classification label in the result, and determine the loss of this prediction.
  • step 96 the neural network model is updated based on the predicted loss. In this way, the neural network model is trained by predicting the task of classifying sample objects.
  • a dynamic interaction diagram is constructed based on a set of interaction events, and the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influence between interactive objects transmitted through each interaction event.
  • the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influence between interactive objects transmitted through each interaction event.
  • there are multiple interaction events occurring simultaneously in the above-mentioned interaction event set and multiple nodes connected to multiple associated nodes are allowed to exist in the corresponding dynamic interaction graph, thereby enriching the relationship information contained in the dynamic interaction graph. Therefore, based on the subgraph related to the node corresponding to the interactive object to be analyzed in the dynamic interaction graph, the feature vector of the interactive object can be extracted.
  • the feature vector obtained in this way introduces the influence of other interactive objects in each interactive event on it, so that the in-depth characteristics of the interactive object can be comprehensively expressed, and business processing can be better performed.
  • an apparatus for processing interactive data is provided.
  • the apparatus can be deployed in any device, platform, or device cluster with computing and processing capabilities.
  • Fig. 10 shows a schematic block diagram of an apparatus for processing interactive data according to an embodiment. As shown in FIG. 10, the processing device 100 includes:
  • the interaction graph obtaining unit 101 is configured to obtain a dynamic interaction graph constructed according to a set of interaction events, wherein the set of interaction events includes a plurality of interaction events, and each interaction event includes at least two objects on which the interaction behavior occurs and the interaction time;
  • the dynamic interaction graph includes any first node, the first node corresponds to the first object in the interaction event that occurs at the first time, and the first node points to the M corresponding to the N associated events through the connecting edge.
  • the N associated events all occur at a second time, and all include the first object as one of the interactive objects, and the second time is backtracking from the first time, the The time before the interaction of the first object occurs;
  • the dynamic interaction graph includes at least one multi-node with the number of associated nodes greater than two;
  • the subgraph determining unit 102 is configured to determine a relationship with the first target in the dynamic interaction graph A first target subgraph corresponding to a node, where the first target subgraph includes nodes within a predetermined range that start from the first target node and reach via connecting edges;
  • the subgraph processing unit 103 is configured to be based on the first target node.
  • the node features of each node included in the target subgraph and the direction relationship of the connecting edges between the nodes determine the first feature vector corresponding to the first target node; the service processing unit 104 is configured to use at least the first The feature vector performs service processing related to the first target node.
  • the object includes a user
  • the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
  • the above-mentioned M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
  • the interaction graph obtaining unit 101 is specifically configured to: obtain an existing dynamic interaction graph constructed based on an existing set of interaction events; obtain P new interaction events that occurred at the first update time; There are 2P new nodes added to the dynamic interaction graph, and the 2P new nodes respectively correspond to the two objects included in each new interaction event in the P new interaction events; for each new node, if If there is an associated node, add a connecting edge from the newly added node to its associated node.
  • the M associated nodes are N+1 nodes, which respectively correspond to the N other objects interacting with the first object in the N associated events, and the first object itself .
  • the interaction graph acquiring unit 101 is specifically configured to: acquire an existing dynamic interaction graph constructed based on an existing interaction event set; acquire P new interaction events that occur at the first update time; determine the P Q different objects involved in new interactive events; add Q new nodes to the existing dynamic interaction graph, and the Q new nodes correspond to the Q different objects; for each new Add a node, if it has an associated node, add a connecting edge from the newly added node to its associated node.
  • the first target node is a node: in the dynamic interaction graph, there is no connecting edge pointing to the node.
  • the nodes within the predetermined range include: nodes within a connecting edge of a preset order K; and/or nodes whose interaction time is within a preset time range.
  • each interaction event may also include the event characteristics of the interaction event; in this case, the node characteristics of each node may include the attribute characteristics of the object corresponding to each node, and the interaction event where each node is located. The characteristics of the event.
  • the service processing unit 104 is configured to predict the classification category of the object corresponding to the first target node according to the first feature vector.
  • the subgraph determining unit 102 is further configured to determine, in the dynamic interaction graph, a second target subgraph corresponding to a second target node, and the second target subgraph includes the subgraph from the The second target node starts and arrives at the nodes within the predetermined range via the connecting edge; the sub-graph processing unit 103 is further configured to be based on the node characteristics of each node included in the second target sub-graph, and the number of nodes The directional relationship of the connecting edges between the two determines the second feature vector corresponding to the second target node.
  • the service processing unit 104 may be further configured to predict whether the objects represented by the first target node and the second target node will meet according to the first feature vector and the second feature vector. Interaction occurs.
  • the first target node and the second target node are two nodes corresponding to the first interaction event; at this time, the service processing unit 104 may be configured to, according to the first feature vector and the first feature vector The second feature vector predicts the event category of the first interaction event.
  • the sub-graph processing unit 103 is configured to input the first target sub-graph into a pre-trained neural network model, and the neural network model is based on each node contained in the first target sub-graph And output the first feature vector.
  • the neural network model may include one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer.
  • the interactive objects are processed based on the dynamic interaction graph, and feature vectors suitable for subsequent analysis are obtained.
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method described in conjunction with FIG. 3.
  • a computing device including a memory and a processor, the memory is stored with executable code, and when the processor executes the executable code, it implements the method described in conjunction with FIG. 3 method.

Abstract

Provided are a method and apparatus for processing interaction data. In the method, firstly, a dynamic interaction graph constructed according to an interaction event set is obtained, wherein any node i points, by means of connection edges, to M associated nodes corresponding to N associated events in which an object represented by the node i participated the last time, the object is allowed to simultaneously participate in multiple associated events, and the node is allowed to be connected to more than two associated nodes. Then, in the dynamic interaction graph, a target sub-graph corresponding to a target node is determined. The target sub-graph comprises nodes within a predetermined range which are reached via connection edges, starting from the target node. Therefore, on the basis of node features of the nodes included in the target sub-graph and a pointing relationship of the connection edges between the nodes, a feature vector corresponding to the target node can be determined for service processing.

Description

处理交互序列数据的方法及装置Method and device for processing interactive sequence data 技术领域Technical field
本说明书一个或多个实施例涉及机器学习领域,尤其涉及利用机器学习处理交互序列数据的方法和装置。One or more embodiments of this specification relate to the field of machine learning, and more particularly to methods and devices for processing interactive sequence data using machine learning.
背景技术Background technique
在许多场景下,需要对用户交互事件进行分析和处理。交互事件是互联网事件的基本组成元素之一,例如,用户浏览页面时的点击行为,可以视为用户与页面内容区块之间的交互事件,电商中的购买行为可以视为用户与商品之间的交互事件,用户通过社交平台进行的沟通,以及账户间转账行为则是用户与用户之间的交互事件。用户的一系列交互事件中蕴含了用户的细粒度习惯偏好等特点,以及交互对象的特点,是机器学习模型的重要特征来源。因此,在许多场景下,希望根据交互事件对交互参与方进行特征表达和建模。In many scenarios, user interaction events need to be analyzed and processed. Interaction events are one of the basic elements of Internet events. For example, the click behavior of a user when browsing a page can be regarded as an interaction event between the user and the page content block, and the purchase behavior in e-commerce can be regarded as the interaction between the user and the product Interaction events between users, communication between users through social platforms, and transfer behavior between accounts are interaction events between users. A series of user interaction events contain the user's fine-grained habits and preferences, as well as the characteristics of interactive objects, which are important source of features for machine learning models. Therefore, in many scenarios, it is desirable to characterize and model interactive participants based on interactive events.
然而,交互事件涉及交互双方,并且各个参与方本身的状态可以是动态变化的,因此,综合考虑交互参与方的多方面特点对其进行准确的特征表达非常困难。由此,希望能有改进的方案,更为有效地对交互事件中的交互对象进行分析处理,以得到适于后续分析的特征向量。However, an interactive event involves both parties to the interaction, and the status of each participant itself can be dynamically changed. Therefore, it is very difficult to accurately express the characteristics of the interactive participants comprehensively considering the various characteristics of the interactive parties. Therefore, it is hoped that there will be an improved solution to analyze and process the interactive objects in the interactive event more effectively, so as to obtain feature vectors suitable for subsequent analysis.
发明内容Summary of the invention
本说明书一个或多个实施例描述了处理交互数据的方法和装置,其中考虑交互对象参与的交互事件以及交互事件中其他对象的影响,将交互对象处理为特征向量,从而有利于后续对交互对象的分析和对交互事件的分析。One or more embodiments of this specification describe methods and devices for processing interactive data, in which the interactive events participating in the interactive objects and the influence of other objects in the interactive events are considered, and the interactive objects are processed into feature vectors, which is beneficial to subsequent interaction with the interactive objects. Analysis and analysis of interaction events.
根据第一方面,提供了一种处理交互数据的方法,所述方法包括:获取根据交互事件集构建的动态交互图,其中,所述交互事件集包括多个交互事件,每个交互事件至少包括,发生交互行为的两个对象和交互时间;所述动态交互图包括任意的第一节点,所述第一节点对应于发生在第一时间的交互事件中的第一对象,所述第一节点通过连接边指向N个关联事件所对应的M个关联节点,所述N个关联事件均发生于第二时间,且均包含所述第一对象作为交互对象之一,所述第二时间为,从所述第一时间向前回溯,所述第一对象发生交互行为的前一时间;所述动态交互图中包括至少一个关联节点数目 大于2的多元节点;在所述动态交互图中,确定与第一目标节点对应的第一目标子图,所述第一目标子图包括从所述第一目标节点出发,经由连接边到达的预定范围内的节点;基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一目标节点对应的第一特征向量;至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理。According to a first aspect, there is provided a method for processing interaction data, the method comprising: obtaining a dynamic interaction graph constructed according to an interaction event set, wherein the interaction event set includes a plurality of interaction events, and each interaction event includes at least , The two objects at which the interaction behavior occurs and the interaction time; the dynamic interaction graph includes any first node, and the first node corresponds to the first object in the interaction event that occurred at the first time, and the first node Pointing to the M associated nodes corresponding to the N associated events through the connecting edge, the N associated events all occur at the second time, and all include the first object as one of the interactive objects, and the second time is, Looking back from the first time forward, the time before the interaction behavior of the first object occurred; the dynamic interaction graph includes at least one multi-element node whose number of associated nodes is greater than 2; in the dynamic interaction graph, it is determined A first target subgraph corresponding to a first target node, where the first target subgraph includes nodes within a predetermined range that start from the first target node and reach via connecting edges; based on the first target subgraph To determine the first feature vector corresponding to the first target node by including the node features of each node and the direction relationship of the connecting edges between the nodes; at least use the first feature vector to communicate with the first target node Related business processing.
在一个实施例中,所述对象包括用户,所述交互事件包括以下中的至少一种:点击事件,社交事件,交易事件。In one embodiment, the object includes a user, and the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
在一个实施例中,上述M个关联节点为2N个节点,分别对应于所述N个关联事件中各个关联事件所包括的两个对象。In an embodiment, the above-mentioned M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
根据该实施例,可以通过以下方式获取动态交互图:获取基于已有交互事件集构建的已有动态交互图;获取第一更新时间发生的P个新增交互事件;在所述已有动态交互图中添加2P个新增节点,所述2P个新增节点分别对应于所述P个新增交互事件中各个新增交互事件包括的两个对象;对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。According to this embodiment, the dynamic interaction graph can be obtained in the following ways: obtaining an existing dynamic interaction graph constructed based on an existing set of interaction events; obtaining P new interaction events that occurred at the first update time; in the existing dynamic interaction 2P new nodes are added in the figure, and the 2P new nodes respectively correspond to the two objects included in each new interaction event in the P new interaction events; for each new node, if there is an association Node, add a connecting edge from the newly added node to its associated node.
在另一实施例中,上述M个关联节点为N+1个节点,分别对应于所述N个关联事件中与所述第一对象交互的N个其他对象,以及所述第一对象自身。In another embodiment, the aforementioned M associated nodes are N+1 nodes, respectively corresponding to N other objects interacting with the first object in the N associated events, and the first object itself.
根据该实施例,可以通过以下方式获取动态交互图:获取基于已有交互事件集构建的已有动态交互图;获取第一更新时间发生的P个新增交互事件;确定所述P个新增交互事件所涉及的Q个不同对象;在所述已有动态交互图中添加Q个新增节点,所述Q个新增节点分别对应于所述Q个不同对象;对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。According to this embodiment, the dynamic interaction graph can be obtained in the following ways: obtaining an existing dynamic interaction graph constructed based on an existing set of interaction events; obtaining P newly added interaction events occurring at the first update time; determining the P newly added interaction events Q different objects involved in the interaction event; adding Q new nodes to the existing dynamic interaction graph, the Q new nodes corresponding to the Q different objects; for each new node, If there is an associated node, add a connecting edge from the newly added node to its associated node.
根据一种实施方式,上述第一目标节点是这样的节点:在所述动态交互图中,不存在指向该节点的连接边。According to an embodiment, the above-mentioned first target node is a node: in the dynamic interaction graph, there is no connecting edge pointing to the node.
在一种实施方式中,所述预定范围内的节点包括:预设阶数K的连接边之内的节点;和/或,交互时间在预设时间范围内的节点。In an embodiment, the nodes within the predetermined range include: nodes within a connecting edge of a preset order K; and/or nodes whose interaction time is within a preset time range.
根据一个实施例,每个交互事件还包括,交互事件的事件特征;在这样的情况下,各个节点的节点特征可以包括,各个节点所对应的对象的属性特征,以及各个节点所在的交互事件的事件特征。According to one embodiment, each interaction event also includes the event characteristics of the interaction event; in this case, the node characteristics of each node may include the attribute characteristics of the object corresponding to each node, and the characteristics of the interaction event where each node is located. Event characteristics.
根据一种实施方式,所进行的与第一目标节点相关的业务处理可以包括,根据所述第一特征向量,预测所述第一目标节点对应的对象的分类类别。According to an embodiment, the performed service processing related to the first target node may include predicting the classification category of the object corresponding to the first target node according to the first feature vector.
根据一个实施例,所述方法还包括,在所述动态交互图中,确定与第二目标节点对应的第二目标子图,所述第二目标子图包括从所述第二目标节点出发,经由连接边到达的所述预定范围内的节点;基于所述第二目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第二目标节点对应的第二特征向量。According to an embodiment, the method further includes, in the dynamic interaction graph, determining a second target subgraph corresponding to a second target node, where the second target subgraph includes starting from the second target node, Nodes within the predetermined range that are reached via the connecting edge; based on the node characteristics of each node contained in the second target subgraph and the direction relationship of the connecting edges between the nodes, determine the corresponding to the second target node The second feature vector.
基于以上实施例,所进行的与第一目标节点相关的业务处理还可以包括,根据所述第一特征向量和所述第二特征向量,预测所述第一目标节点和所述第二目标节点代表的对象是否会发生交互。Based on the above embodiment, the performed service processing related to the first target node may further include predicting the first target node and the second target node according to the first feature vector and the second feature vector Whether the represented objects will interact.
或者,在一个实施例中,第一目标节点和第二目标节点为第一交互事件对应的两个节点;此时,业务处理可以包括,根据所述第一特征向量和所述第二特征向量,预测所述第一交互事件的事件类别。Or, in one embodiment, the first target node and the second target node are two nodes corresponding to the first interaction event; in this case, the service processing may include, according to the first feature vector and the second feature vector , Predict the event category of the first interaction event.
根据一种实施方式,可以通过以下方式确定第一目标节点对应的第一特征向量:将所述第一目标子图输入预先训练的神经网络模型,所述神经网络模型基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,输出所述第一特征向量。According to an embodiment, the first feature vector corresponding to the first target node can be determined by the following method: inputting the first target subgraph into a pre-trained neural network model, the neural network model based on the first target subgraph The node features of each node included in the graph and the direction relationship of the connecting edges between the nodes are outputted as the first feature vector.
进一步的,在不同实施例中,所述神经网络模型包括以下之一:基于LSTM的神经网络模型,基于RNN的神经网络模型,基于Transformer的神经网络模型Further, in different embodiments, the neural network model includes one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer
根据第二方面,提供了一种处理交互数据的装置,所述装置包括:交互图获取单元,配置为获取根据交互事件集构建的动态交互图,其中,所述交互事件集包括多个交互事件,每个交互事件至少包括,发生交互行为的两个对象和交互时间;所述动态交互图包括任意的第一节点,所述第一节点对应于发生在第一时间的交互事件中的第一对象,所述第一节点通过连接边指向N个关联事件所对应的M个关联节点,所述N个关联事件均发生于第二时间,且均包含所述第一对象作为交互对象之一,所述第二时间为,从所述第一时间向前回溯,所述第一对象发生交互行为的前一时间;所述动态交互图中包括至少一个关联节点数目大于2的多元节点;子图确定单元,配置为在所述动态交互图中,确定与第一目标节点对应的第一目标子图,所述第一目标子图包括从所述第一目标节点出发,经由连接边到达的预定范围内的节点;子图处理单元,配置为基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一 目标节点对应的第一特征向量;业务处理单元,配置为至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理。According to a second aspect, there is provided an apparatus for processing interaction data, the apparatus comprising: an interaction graph obtaining unit configured to obtain a dynamic interaction graph constructed according to an interaction event set, wherein the interaction event set includes a plurality of interaction events , Each interaction event includes at least two objects where the interaction behavior occurs and the interaction time; the dynamic interaction graph includes any first node, and the first node corresponds to the first one of the interaction events occurring at the first time. Object, the first node points to the M associated nodes corresponding to the N associated events through the connecting edge, the N associated events all occur at the second time, and all include the first object as one of the interactive objects, The second time is, looking back from the first time, the time before the interaction of the first object occurs; the dynamic interaction graph includes at least one multi-node with more than 2 associated nodes; a subgraph The determining unit is configured to determine, in the dynamic interaction graph, a first target subgraph corresponding to a first target node, where the first target subgraph includes a predetermined value that starts from the first target node and arrives via a connecting edge. Nodes within the range; a subgraph processing unit configured to determine the first target node corresponding to the first target node based on the node characteristics of each node contained in the first target subgraph and the direction relationship of the connecting edges between the nodes A feature vector; a service processing unit configured to use at least the first feature vector to perform service processing related to the first target node.
根据第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机中执行时,令计算机执行第一方面的方法。According to a third aspect, there is provided a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method of the first aspect.
根据第四方面,提供了一种计算设备,包括存储器和处理器,其特征在于,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码时,实现第一方面的方法。According to a fourth aspect, there is provided a computing device, including a memory and a processor, characterized in that executable code is stored in the memory, and when the processor executes the executable code, the method of the first aspect is implemented .
根据本说明书实施例提供的方法和装置,基于交互事件集构建动态交互图,该动态交互图反映了各个交互事件的时序关系,以及交互对象之间通过各个交互事件传递的相互影响。并且,上述交互事件集中存在多个交互事件同时发生,相应的动态交互图中允许存在连接到多个关联节点的多元节点,以此丰富动态交互图中包含的关系信息。于是,基于该动态交互图中与待分析交互对象对应的节点相关的子图,可以提取得到该交互对象的特征向量。如此得到的特征向量中引入了各个交互事件中其他交互对象对其的影响,从而可以综合全面地表达该交互对象的深层特征,更好地进行业务处理。According to the method and device provided in the embodiments of this specification, a dynamic interaction diagram is constructed based on a set of interaction events, and the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influences between interactive objects transmitted through each interaction event. In addition, there are multiple interaction events occurring simultaneously in the above-mentioned interaction event set, and multiple nodes connected to multiple associated nodes are allowed to exist in the corresponding dynamic interaction graph, thereby enriching the relationship information contained in the dynamic interaction graph. Therefore, based on the subgraph related to the node corresponding to the interactive object to be analyzed in the dynamic interaction graph, the feature vector of the interactive object can be extracted. The feature vector obtained in this way introduces the influence of other interactive objects in each interactive event on it, so that the in-depth characteristics of the interactive object can be comprehensively expressed, and business processing can be better performed.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. A person of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1A示出在一个例子中的交互关系二部图;Figure 1A shows a two-part diagram of the interaction relationship in an example;
图1B示出在另一例子中的交互关系网络图;FIG. 1B shows an interactive relationship network diagram in another example;
图2示出根据一个实施例的实施场景示意图;Fig. 2 shows a schematic diagram of an implementation scenario according to an embodiment;
图3示出根据一个实施例的处理交互数据的方法流程图;Fig. 3 shows a flowchart of a method for processing interactive data according to an embodiment;
图4示出根据一个实施例构建的动态交互图;Figure 4 shows a dynamic interaction diagram constructed according to an embodiment;
图5示出根据另一个实施例构建的动态交互图;Figure 5 shows a dynamic interaction diagram constructed according to another embodiment;
图6示出在一个实施例中目标子图的示例;Figure 6 shows an example of a target subgraph in one embodiment;
图7示出在另一个实施例中目标子图的示例;Figure 7 shows an example of a target subgraph in another embodiment;
图8示出在一个实施例中训练神经网络模型的流程图;Figure 8 shows a flowchart of training a neural network model in one embodiment;
图9示出在另一实施例中训练神经网络模型的流程图;Figure 9 shows a flowchart of training a neural network model in another embodiment;
图10示出根据一个实施例的处理交互数据的装置的示意性框图。Fig. 10 shows a schematic block diagram of an apparatus for processing interactive data according to an embodiment.
具体实施方式Detailed ways
下面结合附图,对本说明书提供的方案进行描述。The following describes the solutions provided in this specification with reference to the accompanying drawings.
如前所述,希望能够基于交互事件序列,对交互事件的参与方,即交互对象进行特征表达和建模。As mentioned earlier, it is hoped that based on the sequence of interaction events, the participants in the interaction event, that is, the interaction object, can be characterized and modeled.
在一种方案中,基于历史交互事件构建静态的交互关系网络图,从而基于该交互关系网络图,分析各个交互对象。具体地,可以以各个历史事件的参与者作为节点,在存在交互关系的节点之间建立连接边,从而形成上述交互网络图。In one solution, a static interaction relationship network diagram is constructed based on historical interaction events, so that each interaction object is analyzed based on the interaction relationship network diagram. Specifically, participants in each historical event can be used as nodes, and connecting edges can be established between nodes that have an interactive relationship, so as to form the foregoing interactive network graph.
图1A和图1B分别示出在具体例子中的交互关系网络图。更具体而言,图1A示出一个二部图,其中包含用户节点(U1-U4)和商品节点(V1-V3),如果某个用户购买过某件商品,则在该用户和该商品之间构建一条连接边。图1B示出一个用户转账关系图,其中每个节点代表一个用户,发生过转账记录的两个用户之间存在连接边。Fig. 1A and Fig. 1B respectively show the interactive relationship network diagram in a specific example. More specifically, Figure 1A shows a bipartite graph, which contains user nodes (U1-U4) and product nodes (V1-V3). If a user has purchased a product, it will be between the user and the product. Construct a connecting edge between. Figure 1B shows a user transfer relationship diagram, in which each node represents a user, and there is a connecting edge between two users who have made transfer records.
然而,可以看到,图1A和图1B尽管示出了对象之间的交互关系,但是没有包含这些交互事件的时序信息。简单地基于这样的交互关系网络图进行图嵌入,获得的特征向量也没有表达出交互事件的时间信息对节点的影响。并且,这样的静态图可扩展性不够强,对于新增交互事件和新增节点的情况,难以灵活进行处理。However, it can be seen that although FIG. 1A and FIG. 1B show the interaction relationship between objects, they do not contain the timing information of these interaction events. Simply embedding the graph based on such an interactive relationship network graph, the obtained feature vector does not express the influence of the time information of the interactive event on the node. Moreover, the scalability of such a static graph is not strong enough, and it is difficult to flexibly handle the situation of newly-added interactive events and newly-added nodes.
在另一方案中,对于各个待分析的交互对象,构建该对象的行为序列,基于该行为序列,提取该对象的特征表达。然而,这样的行为序列仅表征了待分析对象本身的行为,而交互事件是多方参与的事件,参与者之间会通过交互事件间接传递影响。因此,这样的方式没有表达出交互事件中的参与对象之间的影响。In another solution, for each interactive object to be analyzed, a behavior sequence of the object is constructed, and the characteristic expression of the object is extracted based on the behavior sequence. However, such a behavior sequence only characterizes the behavior of the object to be analyzed, and interactive events are events involving multiple parties, and the participants will indirectly transmit influence through the interaction events. Therefore, this method does not express the influence between the participating objects in the interaction event.
综合考虑以上因素,根据本说明书的一个或多个实施例,将动态变化的交互事件集合构建成动态交互图,其中各个交互事件中涉及的各个交互对象对应于该动态交互图中的各个节点。任意节点连接到若干关联节点,其中关联节点为该任意节点所对应的对象上次参与的交互事件对应的节点。对于待分析的交互对象,从该动态交互图中得到对应节点相关的子图部分,基于该子图部分中包含的节点的节点特征和节点间连接关系,得到该交互对象的特征向量表达。Taking the above factors into consideration, according to one or more embodiments of this specification, a dynamically changing set of interaction events is constructed into a dynamic interaction graph, wherein each interaction object involved in each interaction event corresponds to each node in the dynamic interaction graph. An arbitrary node is connected to a number of associated nodes, where the associated node is the node corresponding to the interaction event that the object corresponding to the arbitrary node participated in last time. For the interactive object to be analyzed, the subgraph part related to the corresponding node is obtained from the dynamic interaction graph, and the feature vector expression of the interactive object is obtained based on the node characteristics of the nodes contained in the subgraph part and the connection relationship between the nodes.
图2示出根据一个实施例的实施场景示意图。如图2所示,可以获取发生的多个交 互事件所构成的交互事件集。更具体的,该交互事件集可以是将多个交互事件按时间顺序组织成的交互事件序列<E 1,E 2,…,E N>,其中每个元素E i表示一个交互事件,可以表示为交互特征组的形式E i=(a i,b i,t i),其中a i和b i是事件E i的两个交互对象,t i是交互时间。由于时间测量的精度等因素,允许在同一时间发生多个交互事件。 Fig. 2 shows a schematic diagram of an implementation scenario according to an embodiment. As shown in Figure 2, the set of interaction events composed of multiple interaction events can be obtained. More particularly, the interaction may be a set of events more interaction events chronologically organized into a sequence of interactive events <E 1, E 2, ... , E N>, where each element represents an interactive event E i, may be expressed is a form of interactive features set E i = (a i, b i, t i), where a i and b i are the two objects interact in the event E i, t i is the time of interaction. Due to factors such as the accuracy of time measurement, multiple interaction events are allowed to occur at the same time.
根据本说明书的实施例,基于该交互事件集构建动态交互图200。在图200中,将各个交互事件中的各个交互对象a i,b i用节点表示,并在包含同一对象的事件之间建立连接边。由于允许同时发生多个交互事件,动态交互图200中包含至少一个多元节点,该多元节点可以连接到3个或更多的关联节点。动态交互图200的结构将在后续进行更具体的描述。 According to an embodiment of the present specification, a dynamic interaction diagram 200 is constructed based on the set of interaction events. In FIG. 200, the individual interactive objects each interaction event a i, b i represented by nodes, and establishes a connection between the edges containing the same event object. Since multiple interaction events are allowed to occur at the same time, the dynamic interaction graph 200 contains at least one multi-element node, and the multi-element node can be connected to 3 or more associated nodes. The structure of the dynamic interaction graph 200 will be described in more detail later.
对于某个待分析的目标交互对象对应的目标节点,可以确定出其在动态交互图中对应的目标子图。一般地,目标子图包括从目标节点出发,经过一定范围的连接边可以达到的节点。该子图反映了,与目标交互对象直接或间接关联的交互事件中的其他对象对目标节点带来的影响。For the target node corresponding to a target interaction object to be analyzed, the corresponding target subgraph in the dynamic interaction graph can be determined. Generally, the target subgraph includes nodes that can be reached through a certain range of connected edges starting from the target node. This subgraph reflects the influence of other objects in the interaction event directly or indirectly associated with the target interaction object on the target node.
然后,基于目标子图中各个节点的节点特征和节点连接关系,得到目标节点对应的特征向量。如此得到的特征向量,可以抽取出相关联的交互事件的时序信息和各交互事件中的交互对象之间的影响,从而更准确地表达目标节点代表的目标交互对象的深层特征。这样的特征向量可以在后续应用于各种机器学习模型和各种业务场景。例如,可以基于如此得到的特征向量进行强化学习,也可以基于该特征向量进行聚类分析,例如,将用户聚类为人群。还可以基于这样的特征向量进行分类预测,例如,预测两个对象之间是否会发生交互(比如某个用户是否会购买某个商品),预测某个对象的业务类型(比如某个用户的风险层级),还可以基于一个交互事件中两个对象的特征向量预测该交互事件的事件类别,等等。Then, based on the node feature and node connection relationship of each node in the target subgraph, the feature vector corresponding to the target node is obtained. The feature vector obtained in this way can extract the timing information of the associated interaction events and the influence between the interaction objects in each interaction event, so as to more accurately express the in-depth characteristics of the target interaction object represented by the target node. Such feature vectors can be subsequently applied to various machine learning models and various business scenarios. For example, reinforcement learning can be performed based on the feature vector thus obtained, or cluster analysis can be performed based on the feature vector, for example, clustering users into groups of people. You can also perform classification prediction based on such feature vectors, for example, predict whether there will be interaction between two objects (such as whether a user will buy a certain product), and predict the business type of a certain object (such as the risk of a certain user). Level), the event category of an interactive event can also be predicted based on the feature vectors of two objects in an interactive event, and so on.
下面描述以上构思的具体实现方式。The specific implementation of the above concept is described below.
图3示出根据一个实施例的处理交互数据的方法流程图。可以理解,可以理解,该方法可以通过任何具有计算、处理能力的装置、设备、平台、设备集群来执行。下面结合具体实施例,对如图3所示的处理交互数据的方法中的各个步骤进行描述。Fig. 3 shows a flowchart of a method for processing interactive data according to an embodiment. It is understandable and understandable that the method can be executed by any device, device, platform, or device cluster with computing and processing capabilities. The following describes each step in the method for processing interactive data as shown in FIG. 3 in conjunction with specific embodiments.
首先,在步骤31,获取根据交互事件集构建的动态交互图。First, in step 31, a dynamic interaction graph constructed according to the set of interaction events is obtained.
如前所述,可以获取多个交互事件构成的交互事件集,其中每个交互事件具有两个交互对象和交互时间。因此,任意交互事件E i可以表示为一个交互特征组E i=(a i,b i,t i), 其中a i和b i是事件E i的两个交互对象,例如称为第一对象和第二对象,t i是交互时间。 As mentioned above, it is possible to obtain an interaction event set composed of multiple interaction events, where each interaction event has two interaction objects and interaction time. Thus, any interaction events E i may be expressed as a set of interactive features E i = (a i, b i, t i), where a i and b i are two events E i interactive object, such as a first target With the second object, t i is the interaction time.
例如,在电商平台中,交互事件可以是用户的购买行为,其中的第一对象可以是某个用户,第二对象可以是某个商品。在另一例子中,交互事件可以是用户对页面区块的点击行为,其中的第一对象可以是某个用户,第二对象可以是某个页面区块。在又一例子中,交互事件可以是交易事件,例如一个用户向另一用户转账,或者一个用户向一个店铺或平台进行支付。在另外一个例子中,交互事件可以是用户通过社交平台发生的社交事件,例如聊天、通话、发红包等等。在其他业务场景中,交互事件还可以是其他在两个对象之间发生的交互行为。For example, in an e-commerce platform, the interaction event may be a user's purchase behavior, where the first object may be a certain user, and the second object may be a certain commodity. In another example, the interaction event may be a user's click behavior on a page block, where the first object may be a certain user, and the second object may be a certain page block. In another example, the interaction event may be a transaction event, for example, a user transfers money to another user, or a user makes a payment to a store or platform. In another example, the interaction event may be a social event that a user occurs through a social platform, such as chatting, calling, sending red envelopes, and so on. In other business scenarios, interaction events can also be other interaction behaviors that occur between two objects.
在一个实施例中,根据交互事件的特点,发生交互的两个对象可以是不同类型的对象,例如称为第一类对象和第二类对象。例如,在交互事件为电商平台中的购买行为时,其中的第一类对象可以是某个用户,第二类对象可以是某个商品。在另一些实施例中,交互事件涉及的两个对象可以是同类对象。例如,在即时通讯场景中,交互事件可以是两个用户之间进行了一次即时通讯。此时,第一对象和第二对象均为用户,属于同类对象。在又一些实施例中,可以根据业务的需要,来设定是否区分两个交互对象的类型。例如,对于转账交互事件,在前述例子中,可以认为两个用户属于同类对象。在其他例子中,也可以根据业务需要,将金额转出方用户认为是第一类对象,将接收方用户认为是第二类对象。In one embodiment, according to the characteristics of the interaction event, the two objects interacting may be objects of different types, such as objects of the first type and objects of the second type. For example, when the interaction event is a purchase behavior in an e-commerce platform, the first type of object may be a certain user, and the second type of object may be a certain commodity. In other embodiments, the two objects involved in the interaction event may be objects of the same type. For example, in an instant messaging scenario, the interaction event may be an instant communication between two users. At this time, both the first object and the second object are users and belong to the same type of objects. In still other embodiments, whether to distinguish the types of two interactive objects can be set according to the needs of the business. For example, for the transfer interaction event, in the foregoing example, it can be considered that the two users belong to the same type of object. In other examples, according to business needs, the user who transfers the amount may be regarded as an object of the first type, and the user who is the recipient is regarded as an object of the second type.
进一步的,在一个实施例中,每个交互事件对应的交互特征组还可以包括事件特征或行为特征f,如此,每个交互特征组可以表示为X i=(a i,b i,t i,f)。具体的,事件特征或行为特征f可以包括交互事件发生的背景和上下文信息,交互行为的一些属性特征,等等。 Further, in an embodiment, the interaction feature group corresponding to each interaction event may also include event feature or behavior feature f. In this way, each interaction feature group can be expressed as X i = (a i , b i , t i ,f). Specifically, the event feature or behavior feature f may include background and context information of the occurrence of the interaction event, some attribute features of the interaction behavior, and so on.
例如,在交互事件为用户点击事件的情况下,事件特征f可以包括,用户进行点击所使用的终端的类型,浏览器类型,app版本,等等;在交互事件为交易事件的情况下,事件特征f可以包括,例如,交易类型(商品购买交易、转账交易等),交易金额,交易渠道等等。For example, in the case where the interaction event is a user click event, the event feature f may include the type of terminal used by the user to click, browser type, app version, etc.; in the case where the interaction event is a transaction event, the event The feature f may include, for example, transaction type (commodity purchase transaction, transfer transaction, etc.), transaction amount, transaction channel, and so on.
以上描述了交互事件以及事件中的交互对象a i,b i的举例。 Interactivity events described above as well as in the event interactive objects a i, b i of example.
对于交互时间t i,需要理解,实际操作中总是会以一个适当的时长为单位对时间进行测量和记录。例如,在一些服务平台,记录交互时间的单位时长可以是小时h,或者分钟m。于是,在该单位时长之内很可能会发生多个交互事件。即使是以较短的时长为单位,例如秒s甚至毫秒ms,对于一些交互非常频繁的服务平台,例如支付宝,仍然 会不可避免地出现,单位时长内多个交互事件的情况。 For the interaction time t i , it needs to be understood that in actual operation, the time is always measured and recorded in an appropriate duration unit. For example, in some service platforms, the unit duration for recording the interaction time can be hours h or minutes m. Therefore, multiple interaction events are likely to occur within the unit duration. Even if it takes a short duration as a unit, such as seconds or even milliseconds, for some service platforms that interact very frequently, such as Alipay, there will inevitably be multiple interaction events within a unit of time.
此外,还存在一些批量交互的情况。例如,用户预先编辑了一条消息,并选中了一个好友群,然后进行批量群发的操作。这相当于同时发起与多个好友的交互事件。又例如,用户在购物车中添加了多件商品,然后选择了批量结算,这相当于同时发起与多个商品的交互事件。In addition, there are some cases of batch interaction. For example, the user edits a message in advance, selects a group of friends, and then performs a batch group sending operation. This is equivalent to initiating an interaction event with multiple friends at the same time. For another example, a user adds multiple items to the shopping cart and then selects batch settlement, which is equivalent to simultaneously initiating interaction events with multiple items.
至少出于以上两个方面的原因,往往会出现多个交互事件所记录的交互时间相同的情况。对于这样的情况,本文中有时简称为同时发生的多个交互事件,而不区分其精确的时刻和先后。For at least the above two reasons, it is often the case that the interaction time recorded by multiple interaction events is the same. For such situations, this article is sometimes referred to as multiple interactive events occurring at the same time, without distinguishing their precise time and sequence.
在一个具体例子中,假定获取到了一个交互事件集S,该交互事件集S中的交互事件按照时间顺序排列,并以交互特征组的形式表示,可以记录为如下:In a specific example, it is assumed that an interaction event set S is obtained. The interaction events in the interaction event set S are arranged in chronological order and expressed in the form of interaction feature groups, which can be recorded as follows:
Figure PCTCN2020137922-appb-000001
Figure PCTCN2020137922-appb-000001
其中,a,b,c,d,e,f,u,v为交互对象,交互事件E 2和E 3均发生于t 2时间,交互事件E 4,E 5和E 6均发生于t 3时间,交互事件E 7和E 8均发生于t 4时间。 Among them, a, b, c, d, e, f, u, v are interaction objects, interaction events E 2 and E 3 all occur at time t 2 and interaction events E 4 , E 5 and E 6 all occur at t 3 At time, the interaction events E 7 and E 8 both occurred at time t 4.
对于以上所述的交互事件集,可以构建动态交互图,来刻画各个交互事件以及交互对象之间的关联关系。具体的,可以将各个时间发生的交互事件中包含的对象作为动态交互图的节点。如此,一个节点可以对应在一个时间下发生交互行为的一个对象,但是同一物理对象可能对应到多个节点。例如,物理对象v在t 6时间与对象u进行交互,可以对应构建节点v(t 6),在t 5时间与对象c进行交互,可以对应构建节点v(t 5)。因此可以认为,动态交互图中的节点对应于在一定交互时间下的交互对象,或者说,对应于该交互对象在一定交互时间下的状态。 For the set of interaction events described above, a dynamic interaction diagram can be constructed to depict the association relationships between interaction events and interaction objects. Specifically, the objects contained in the interaction events occurring at each time can be used as the nodes of the dynamic interaction graph. In this way, a node can correspond to an object that interacts at a time, but the same physical object may correspond to multiple nodes. For example, the physical object v at time t 6 u interact with an object, the node may correspond to construct v (t 6), c interact with objects in the time t 5, the node may correspond to construct v (t 5). Therefore, it can be considered that the nodes in the dynamic interaction graph correspond to the interactive object at a certain interaction time, or in other words, correspond to the state of the interactive object at a certain interaction time.
对于动态交互图中的每个节点,按照以下方式构建连接边:对于任意节点i,简单起见将其称为第一节点;假定其对应于第一交互时间t下的第一对象,那么在交互事件序列中,从第一交互时间t向前回溯,也就是向早于第一交互时间t的方向回溯,确定出第一对象发生交互行为的上一时间为第二时间(t-),将第二时间中发生的、该第一对象参与的N个交互事件作为第一节点的N个关联事件,将N个关联事件对应的M个节点作为关联节点,建立从第一节点i指向M个关联节点的连接边。由于存在同一时间发生多个交互事件的可能,因此,N可能大于1。如此,动态交互图中可以包括多元节点,即,所连接的关联节点数目大于2的节点。For each node in the dynamic interaction graph, construct the connecting edge in the following way: For any node i, it is called the first node for simplicity; assuming that it corresponds to the first object at the first interaction time t, then in the interaction In the event sequence, backtracking from the first interaction time t, that is, backtracking in the direction earlier than the first interaction time t, it is determined that the last time when the first object interacted is the second time (t-), and The N interaction events that occur in the second time and the first object participates in are regarded as the N associated events of the first node, and the M nodes corresponding to the N associated events are regarded as the associated nodes, and it is established to point from the first node i to M The connecting edge of the associated node. Due to the possibility of multiple interaction events occurring at the same time, N may be greater than 1. In this way, the dynamic interaction graph may include multiple nodes, that is, nodes with more than two connected associated nodes.
在一个实施例中,在构建动态交互图时,为每个交互事件的两个对象都分别建立对应节点。如此,前述的N个关联事件对应2N个节点,这2N个节点即作为前述M个关联节点。In one embodiment, when constructing the dynamic interaction graph, corresponding nodes are respectively established for the two objects of each interaction event. In this way, the aforementioned N associated events correspond to 2N nodes, and these 2N nodes are regarded as the aforementioned M associated nodes.
图4示出根据一个实施例构建的动态交互图。具体的,图4左侧示出将前述交互事件集S按照时间顺序组织的交互序列示意图,右侧示出一个动态交互图。在该动态交互图中,将各个交互事件中的两个交互对象分别作为节点。下面以节点u(t 6)和v(t 6)为例,描述连接边的构建。 Fig. 4 shows a dynamic interaction diagram constructed according to an embodiment. Specifically, the left side of FIG. 4 shows a schematic diagram of an interaction sequence that organizes the foregoing interaction event set S in chronological order, and the right side shows a dynamic interaction diagram. In this dynamic interaction graph, two interaction objects in each interaction event are respectively regarded as nodes. The following takes nodes u(t 6 ) and v(t 6 ) as examples to describe the construction of connecting edges.
可以理解,该节点u(t 6)表示时间t 6下的对象u。于是,从时间t 6出发向前回溯,可以确定出对象u上一次发生交互行为的时间为t 4,在该时间t 4中参与了2个关联事件E 7和E 8,即交互事件E 7和E 8均包含对象u作为交互对象之一。因此,关联事件E 7和E 8所对应的4个节点,即为节点u(t 6)的关联节点。在图4中,为了区分事件E 7和E 8中的对象节点u,将其记为u 1(t 4)和u 2(t 4)。于是,建立从节点u(t 6)指向其4个关联节点的连接边。 It can be understood that the node u(t 6 ) represents the object u at time t 6. Therefore, starting from time t 6 and backtracking, it can be determined that the time when the object u had an interactive behavior last time is t 4 , during which time t 4 participated in two related events E 7 and E 8 , namely, the interaction event E 7 Both E and E 8 contain the object u as one of the interactive objects. Therefore, the four nodes corresponding to the associated events E 7 and E 8 are the associated nodes of the node u(t 6 ). In Fig. 4, in order to distinguish the object node u in the events E 7 and E 8 , they are denoted as u 1 (t 4 ) and u 2 (t 4 ). Thus, a connecting edge from the node u(t 6 ) to its 4 associated nodes is established.
节点v(t 6)表示时间t 6下的对象v。于是,从时间t 6出发向前回溯,可以确定出对象v上一次发生交互行为的时间为t 5,在该时间t 5中参与了1个关联事件E 9。因此,关联事件E 9所对应的2个节点v(t 5)和c(t 5),即为节点v(t 6)的关联节点。于是,建立从节点v(t 6)指向该2个关联节点的连接边。对于其他各个节点,均可以采用上述方式,确定出其关联事件和关联节点,从而建立指向关联节点的连接边。在图4所示的动态交互图中,节点u(t 6),c(t 5)都是多元节点。 The node v(t 6 ) represents the object v at time t 6. Therefore, starting from time t 6 and looking back forward, it can be determined that the time when the object v had an interactive behavior last time is t 5 , during which time t 5 participated in an associated event E 9 . Therefore, the two nodes v(t 5 ) and c(t 5 ) corresponding to the associated event E 9 are the associated nodes of node v(t 6 ). Then, a connecting edge from the node v(t 6 ) to the two associated nodes is established. For each other node, the above-mentioned method can be used to determine its associated event and associated node, so as to establish a connection edge to the associated node. In the dynamic interaction graph shown in Figure 4, the nodes u(t 6 ) and c(t 5 ) are all multi-element nodes.
在另一个实施例中,在构建动态交互图时,对于发生于同一时间的多个交互事件,确定出该多个交互事件所涉及的不同交互对象,为各个不同交互对象分别建立对应节点。也就是说,如果同一时间发生的多个交互事件中包含同样的对象,则仅为该同样的对象建立一个节点。如此,在建立连接边时,如果对应于第一对象的第一节点存在N个关联事件,那么这N个关联事件则对应N+1个关联节点,分别对应于第一对象自身,以及N个关联事件中与第一对象交互的N个其他对象。In another embodiment, when constructing a dynamic interaction graph, for multiple interaction events that occur at the same time, different interaction objects involved in the multiple interaction events are determined, and corresponding nodes are established for each different interaction object. In other words, if multiple interaction events that occur at the same time contain the same object, only one node is established for the same object. In this way, when establishing a connection edge, if there are N associated events corresponding to the first node of the first object, then these N associated events correspond to N+1 associated nodes, corresponding to the first object itself, and N N other objects interacting with the first object in the associated event.
图5示出根据另一个实施例构建的动态交互图。具体的,图5左侧示出前述交互事件集S,右侧示出一个动态交互图。在该动态交互图中,为同时发生的交互事件中不同的交互对象分别建立对应节点。图5的动态交互图与图4的相比,区别在于,将图4中发生于同一时间的多个交互事件中相同对象的节点合并为一个节点。例如,对于均发生于时间t 4的两个交互事件E 7,E 8,其中涉及3个不同交互对象a,b,u,则为该时间下的交互事件建立3个节点a(t 4),b(t 4),u(t 4)。这相当于将图4中的u 1(t 4)和u 2(t 4)合并为一 个节点u(t 4)。在这样的情况下,在一个示例中,可以通过节点之间的虚线双向箭头示出发生的交互关系,例如通过图5的虚线双向箭头可以示出,在t 4时间,对象a与u存在交互行为,对象b与u存在交互行为,但是对象a和b之间没有交互行为。 Fig. 5 shows a dynamic interaction diagram constructed according to another embodiment. Specifically, the left side of FIG. 5 shows the aforementioned interaction event set S, and the right side shows a dynamic interaction diagram. In the dynamic interaction graph, corresponding nodes are respectively established for different interaction objects in the interaction events that occur at the same time. The difference between the dynamic interaction diagram of FIG. 5 and that of FIG. 4 is that the nodes of the same object in the multiple interaction events that occur at the same time in FIG. 4 are merged into one node. For example, for two interaction events E 7 , E 8 that both occur at time t 4 , which involve three different interaction objects a, b, u, then three nodes a(t 4 ) are established for the interaction event at that time , B(t 4 ), u(t 4 ). This is equivalent to merging u 1 (t 4 ) and u 2 (t 4 ) in Fig. 4 into one node u(t 4 ). In this case, in one example, can be shown by the dashed double arrows between the nodes of the interactions occur, for example, shown by the dashed double arrow in FIG. 5, at time t 4, there is an interaction with a target u Behavior, there is interaction between objects b and u, but there is no interaction between objects a and b.
下面仍以节点u(t 6)和v(t 6)为例,描述连接边的构建。 The following still takes the nodes u(t 6 ) and v(t 6 ) as examples to describe the construction of connecting edges.
如前所述,节点u(t 6)表示时间t 6下的对象u。从时间t 6出发向前回溯,可以确定出对象u上一次发生交互行为的时间为t 4,在该时间t 4中参与了2个关联事件E 7和E 8,即交互事件E 7和E 8均包含对象u作为交互对象之一。关联事件E 7和E 8对应的3个节点a(t 4),b(t 4),u(t 4),为节点u(t 6)的关联节点。于是,建立从节点u(t 6)指向该3个关联节点的连接边。 As mentioned earlier, the node u(t 6 ) represents the object u at time t 6. Starting from time t 6 and looking back, it can be determined that the time when the object u had an interactive behavior last time is t 4 , during which time t 4 participated in two related events E 7 and E 8 , namely, interactive events E 7 and E 8 all contain the object u as one of the interactive objects. The three nodes a(t 4 ), b(t 4 ), and u(t 4 ) corresponding to the associated events E 7 and E 8 are associated nodes of the node u(t 6 ). Then, a connecting edge from the node u(t 6 ) to the three associated nodes is established.
从节点v(t 6),可以建立指向关联事件E 9所对应的2个节点v(t 5)和c(t 5)的连接边,该过程与结合图4的描述相同,不再赘述。对于图5中的其他各个节点,均可以采用上述方式,确定出其关联事件和关联节点,从而建立指向关联节点的连接边。在图5所示的动态交互图中,节点u(t 6),c(t 5)都是多元节点。 From the node v(t 6 ), a connecting edge pointing to the two nodes v(t 5 ) and c(t 5 ) corresponding to the associated event E 9 can be established. This process is the same as the description in conjunction with FIG. 4 and will not be repeated. For each of the other nodes in Figure 5, the above-mentioned methods can be used to determine the associated events and associated nodes, so as to establish a connection edge to the associated node. In the dynamic interaction graph shown in Figure 5, the nodes u(t 6 ) and c(t 5 ) are all multi-element nodes.
以上描述了基于交互事件集构建动态交互图的方式和过程。对于图3所示的处理交互数据的方法而言,构建动态交互图的过程可以预先进行也可以现场进行。相应地,在一个实施例中,在步骤31,根据交互事件集现场构建动态交互图。构建方式如以上所述。在另一实施例中,可以预先基于交互事件集构建形成动态交互图。在步骤31,读取或接收已形成的动态交互图。The above describes the method and process of constructing a dynamic interaction graph based on the set of interaction events. For the method of processing interactive data shown in FIG. 3, the process of constructing a dynamic interactive graph can be performed in advance or on site. Correspondingly, in one embodiment, in step 31, a dynamic interaction diagram is constructed on-site according to the interaction event set. The construction method is as described above. In another embodiment, a dynamic interaction graph may be constructed based on a set of interaction events in advance. In step 31, read or receive the formed dynamic interaction graph.
可以理解,按照以上方式构建的动态交互图具有很强的可扩展性,可以非常容易地根据新增的交互事件进行动态更新。相应地,步骤31还可以包括更新动态交互图的过程。It can be understood that the dynamic interaction graph constructed in the above manner has strong scalability and can be dynamically updated according to newly added interaction events very easily. Correspondingly, step 31 may also include a process of updating the dynamic interaction graph.
具体地,可以获取基于已有交互事件集构建的已有动态交互图,然后随着时间的更新,不断检测更新时间中发生的新增交互事件,根据新增交互事件,更新已有动态交互图。Specifically, an existing dynamic interaction diagram constructed based on an existing interaction event set can be obtained, and then as time is updated, new interaction events that occur during the update time are continuously detected, and the existing dynamic interaction diagram is updated according to the new interaction events .
在一个实施例中,已有动态交互图采用图4的形式,每个交互事件对应两个节点。在这样的情况下,假定获取到第一更新时间发生的P个新增交互事件,那么,就在已有动态交互图中添加2P个新增节点,所述2P个新增节点分别对应于P个新增交互事件中各个新增交互事件包括的两个对象。然后,对于每个新增节点,按照前述方式,寻找其关联事件和关联节点。如果其存在关联节点,则添加从该新增节点指向其关联节点的连 接边。In one embodiment, the existing dynamic interaction graph adopts the form of FIG. 4, and each interaction event corresponds to two nodes. In this case, assuming that P new interaction events that occurred at the first update time are obtained, then 2P new nodes are added to the existing dynamic interaction graph, and the 2P new nodes respectively correspond to P Two objects included in each of the new interactive events. Then, for each newly added node, find its associated events and associated nodes in the aforementioned manner. If there is an associated node, add a connecting edge from the newly added node to its associated node.
在另一实施例中,已有动态交互图采用图5的形式,同时发生的交互事件中不同对象对应不同节点。在这样的情况下,在获取到第一更新时间发生的P个新增交互事件后,首先确定该P个新增交互事件所涉及的Q个不同对象。如果P个新增交互事件中不存在相同的交互对象,那么Q=2P;如果P个新增交互事件中存在相同的交互对象,那么Q<2P。接着,在已有动态交互图中添加Q个新增节点,所述Q个新增节点分别对应于Q个不同对象。然后,对于每个新增节点,按照前述方式,寻找其关联事件和关联节点。如果其存在关联节点,则添加从该新增节点指向其关联节点的连接边。In another embodiment, the existing dynamic interaction graph adopts the form of FIG. 5, and different objects in simultaneous interaction events correspond to different nodes. In this case, after acquiring the P newly-added interaction events that occurred at the first update time, first determine the Q different objects involved in the P newly-added interaction events. If the same interaction object does not exist in the P newly added interaction events, then Q=2P; if the same interaction object exists in the P newly added interaction events, then Q<2P. Then, Q new nodes are added to the existing dynamic interaction graph, and the Q new nodes respectively correspond to Q different objects. Then, for each newly added node, find its associated events and associated nodes in the aforementioned manner. If there is an associated node, add a connecting edge from the newly added node to its associated node.
综合以上,在步骤31,获取到基于交互事件集构建的动态交互图。In summary, in step 31, a dynamic interaction graph constructed based on the set of interaction events is obtained.
接着,在步骤32,在获取的动态交互图中,确定与第一目标节点对应的第一目标子图,其中第一目标子图包括,从第一目标节点出发,经由连接边到达的预定范围内的节点。Next, in step 32, in the acquired dynamic interaction graph, a first target subgraph corresponding to the first target node is determined, where the first target subgraph includes a predetermined range that starts from the first target node and reaches via the connecting edge Within the node.
需要理解,第一目标节点可以是与待分析的某个目标交互对象对应的节点。然而如前所述,一个实体对象可以对应多个节点,表达该实体对象在不同时间下的状态。为了表达出待分析的目标交互对象的最新状态,在一个实施例中,选择这样的节点作为第一目标节点,即在动态交互图中,不存在指向该节点的连接边。也就是说,选择待分析对象最近发生交互行为的时间下对应的节点作为第一目标节点。例如,在图4和图5所示的动态交互图中,当想要分析交互对象u时,可以选择节点u(t 6)作为目标节点。然而,这并不是必须的。在其他实施例中,例如为了训练的目的,也可以选择其他节点作为第一目标节点,例如,为了分析对象u,也可以选择节点u(t 4)作为第一目标节点。 It should be understood that the first target node may be a node corresponding to a certain target interaction object to be analyzed. However, as mentioned earlier, an entity object can correspond to multiple nodes, expressing the state of the entity object at different times. In order to express the latest state of the target interaction object to be analyzed, in one embodiment, such a node is selected as the first target node, that is, in the dynamic interaction graph, there is no connecting edge pointing to the node. That is to say, select the node corresponding to the time when the object to be analyzed recently interacted as the first target node. For example, in the dynamic interaction diagrams shown in Figures 4 and 5, when you want to analyze the interactive object u, you can select the node u(t 6 ) as the target node. However, this is not required. In other embodiments, for example, for training purposes, other nodes may also be selected as the first target node. For example, in order to analyze the object u, the node u(t 4 ) may also be selected as the first target node.
从第一目标节点出发,经由连接边到达的预定范围内的节点,构成第一目标节点对应的第一目标子图。在一个实施例中,上述预定范围内的节点可以是,至多经过预设阶数K的连接边可达的节点。这里阶数K为预设的超参数,可以根据业务情况选取。可以理解,该预设阶数K体现了,在表达目标节点的信息时,向前回溯的历史交互事件的步数。数目K越大,则考虑越多阶次的历史交互信息。Starting from the first target node, nodes within a predetermined range reached via the connecting edge form a first target subgraph corresponding to the first target node. In an embodiment, the nodes within the foregoing predetermined range may be nodes that are reachable by connecting edges of at most a preset order K. Here, the order K is a preset hyperparameter, which can be selected according to business conditions. It can be understood that the preset order K reflects the number of steps of historical interaction events that are traced forward when the information of the target node is expressed. The larger the number K is, the more historical interactive information of order is considered.
在另一实施例中,上述预定范围内的节点还可以是,交互时间在预定时间范围内的节点。例如,从目标节点的交互时间向前回溯T时长(例如一天),在该时长范围内、且可通过连接边达到的节点。In another embodiment, the nodes within the foregoing predetermined range may also be nodes whose interaction time is within the predetermined time range. For example, backtracking from the interaction time of the target node for a duration of T (for example, one day), within the range of duration and reachable through the connecting edge.
在又一实施例中,上述预定范围既考虑连接边的阶数,又考虑时间范围。换而言之, 该预定范围内的节点是指,至多经过预设阶数K的连接边可达、且交互时间在预定时间范围内的节点。In another embodiment, the above-mentioned predetermined range considers both the order of the connected edges and the time range. In other words, the nodes within the predetermined range refer to nodes whose connection edges passing through the preset order K at most are reachable and whose interaction time is within the predetermined time range.
简单起见,下面的例子中,以预设阶数K的连接边为例进行描述。For simplicity, in the following example, the connection edge of the preset order K is taken as an example for description.
图6示出在一个实施例中目标子图的示例。在图6的例子中,假定图4中的u(t 6)为第一目标节点,预设阶数K=2,那么从u(t 6)出发,沿连接边的指向进行遍历,经由2级连接边可以达到的节点如图中灰色节点所示。这些灰色节点以及其间的连接关系即为第一目标节点u(t 6)对应的第一目标子图。 Figure 6 shows an example of a target subgraph in one embodiment. In the example in Fig. 6, suppose u(t 6 ) in Fig. 4 is the first target node, and the preset order K=2, then starting from u(t 6 ), traverse along the direction of the connecting edge, passing 2 The nodes that can be reached by the connecting edge of the level are shown in the gray nodes in the figure. These gray nodes and the connection relationship between them are the first target subgraph corresponding to the first target node u(t 6 ).
图7示出在另一个实施例中目标子图的示例。在图7的例子中,假定图5中的u(t 6)为第一目标节点,预设阶数K=2,那么从u(t 6)出发,沿连接边的指向进行遍历,经由2级连接边可以达到的节点如图中灰色节点所示。这些灰色节点以及其间的连接关系即为第一目标节点u(t 6)对应的第一目标子图。 Fig. 7 shows an example of a target subgraph in another embodiment. In the example of Fig. 7, suppose u(t 6 ) in Fig. 5 is the first target node, and the preset order K=2, then starting from u(t 6 ), traverse along the direction of the connecting edge, passing 2 The nodes that can be reached by the connecting edge of the level are shown in the gray nodes in the figure. These gray nodes and the connection relationship between them are the first target subgraph corresponding to the first target node u(t 6 ).
接着,在步骤33,基于第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一目标节点对应的第一特征向量。Next, in step 33, a first feature vector corresponding to the first target node is determined based on the node characteristics of each node included in the first target subgraph and the direction relationship of the connecting edges between the nodes.
具体地,节点特征可以包括节点代表的对象的属性特征。例如,在节点表示用户的情况下,节点特征可以包括用户的属性特征,例如年龄、职业、教育程度、所在地区,等等;在节点表示商品的情况下,节点特征可以包括商品的属性特征,例如商品类别、上架时间、销量等等。在节点表示其他交互对象的情况下,可以相应的获取到原始的节点特征。Specifically, the node characteristics may include the attribute characteristics of the object represented by the node. For example, in the case where the node represents the user, the node feature may include the attribute characteristics of the user, such as age, occupation, education level, location, etc.; in the case where the node represents the product, the node feature may include the attribute feature of the product. For example, product category, shelf time, sales volume, etc. In the case where the node represents other interactive objects, the original node characteristics can be obtained accordingly.
在一个实施例中,如前所述,交互事件的特征组还包括事件特征f。在这样的情况下,也可以在节点特征中包含该节点所在事件的事件特征f。如果采用图5形式的动态交互图,一个节点可以对应于同一时间发生的多个交互事件,那么该节点的节点特征中可以包含该节点同时参与的多个事件的事件特征f的综合。In an embodiment, as described above, the feature group of the interaction event further includes an event feature f. In this case, the node feature may also include the event feature f of the event where the node is located. If the dynamic interaction diagram in the form of Figure 5 is used, a node can correspond to multiple interaction events occurring at the same time, then the node characteristics of the node may include the synthesis of the event characteristics f of multiple events that the node participates in at the same time.
为了确定第一目标节点对应的第一特征向量,在一个实施例中,可以获取第一目标子图中各个节点的节点特征,然后,根据各个节点在子图中距离第一目标节点的距离为其分配相应权重,基于权重对各个节点的节点特征进行综合,以此得到第一目标节点对应的第一特征向量。某个节点距离第一目标节点的距离,可以基于从第一目标节点到该节点经历的连接边的数目确定,或者基于第一目标节点所在交互事件的交互时间T1和该某个节点对应的交互时间T2之间的时间差确定。当然,可以为第一目标节点自身预设一个比较高的权重。由此,基于第一目标子图中所包含的各个节点的节点特征,并考 虑这些节点的连接关系,确定第一目标节点对应的第一特征向量。In order to determine the first feature vector corresponding to the first target node, in one embodiment, the node feature of each node in the first target subgraph can be obtained, and then, according to the distance of each node from the first target node in the subgraph, It assigns corresponding weights, and synthesizes the node features of each node based on the weights to obtain the first feature vector corresponding to the first target node. The distance between a certain node and the first target node can be determined based on the number of connection edges experienced from the first target node to the node, or based on the interaction time T1 of the interaction event where the first target node is located and the interaction corresponding to the certain node The time difference between time T2 is determined. Of course, a relatively high weight can be preset for the first target node itself. Therefore, based on the node characteristics of each node included in the first target subgraph and considering the connection relationship of these nodes, the first feature vector corresponding to the first target node is determined.
在另一实施例中,可以采用图嵌入算法或图嵌入模型,对第一目标子图进行图嵌入,由此得到第一目标节点对应的第一特征向量。已经存在多种监督的或者非监督的图嵌入算法或图嵌入模型,可以基于实际业务的特点和需要,选择适当的算法或模型,从而得到第一特征向量。In another embodiment, a graph embedding algorithm or graph embedding model may be used to perform graph embedding on the first target subgraph, thereby obtaining the first feature vector corresponding to the first target node. There are already a variety of supervised or unsupervised graph embedding algorithms or graph embedding models. Based on the characteristics and needs of the actual business, an appropriate algorithm or model can be selected to obtain the first feature vector.
根据一种实施方式,在步骤33,将第一目标子图输入预先训练的神经网络模型,由该神经网络模型基于该第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,输出所述第一特征向量。According to one embodiment, in step 33, the first target sub-graph is input into a pre-trained neural network model, and the neural network model is based on the node characteristics of each node contained in the first target sub-graph and the relationship between the nodes. The direction relationship of the connecting edge is output, and the first feature vector is output.
在一个实施例中,所述神经网络模型是基于RNN的神经网络模型。在这样的情况下,根据第一目标子图中节点之间的指向关系,形成节点序列,利用RNN神经网络模型依次对节点序列中的节点进行处理,得到第一目标节点的第一特征向量。In one embodiment, the neural network model is a neural network model based on RNN. In this case, a node sequence is formed according to the directional relationship between the nodes in the first target subgraph, and the RNN neural network model is used to sequentially process the nodes in the node sequence to obtain the first feature vector of the first target node.
在另一实施例中,所述神经网络模型是基于LSTM的神经网络模型。LSTM神经网络模型是RNN神经网络模型的改进,同样基于节点之间的连接边所代表的节点时序关系对各个节点进行处理。更具体地,对于第一目标子图中的任意一个当前节点,LSTM神经网络模型进行以下处理:至少根据该当前节点的节点特征,当前节点所指向的若干关联节点各自的中间向量和隐含向量,确定当前节点的隐含向量和中间向量。如此,LSTM神经网络模型根据第一目标子图中各个节点之间的连接边的指向关系,依次迭代处理各个节点,从而得到第一目标节点的隐含向量,作为上述第一特征向量。In another embodiment, the neural network model is a neural network model based on LSTM. The LSTM neural network model is an improvement of the RNN neural network model. It also processes each node based on the node timing relationship represented by the connection edge between the nodes. More specifically, for any current node in the first target subgraph, the LSTM neural network model performs the following processing: at least according to the node characteristics of the current node, the respective intermediate vectors and hidden vectors of several associated nodes pointed to by the current node , To determine the implicit vector and intermediate vector of the current node. In this way, the LSTM neural network model sequentially iteratively processes each node according to the direction relationship of the connecting edge between each node in the first target subgraph, so as to obtain the implicit vector of the first target node as the first feature vector.
在又一实施例中,所述神经网络模型是基于Transformer的神经网络模型。在这样的情况下,首先根据第一目标子图中节点之间的指向关系,形成节点序列,并为节点序列中各个节点赋予位置编码,该位置编码反映该节点在第一目标子图中相对于第一目标节点的位置,例如距离几条连接边等等。然后将该节点序列以及位置编码输入Transfomer神经网络模型,使得Transformer神经网络模型基于节点序列中各个节点的节点特征和位置编码,计算得到第一目标节点的第一特征向量。In another embodiment, the neural network model is a neural network model based on Transformer. In this case, first form a node sequence according to the directional relationship between the nodes in the first target subgraph, and assign a position code to each node in the node sequence. The position code reflects the relative relationship of the node in the first target subgraph. The position of the first target node, for example, how many connecting edges are away from it, etc. Then the node sequence and position code are input into the Transfomer neural network model, so that the Transformer neural network model calculates the first feature vector of the first target node based on the node feature and position code of each node in the node sequence.
在其他实施例中,神经网络模型还可以是基于其他网络结构和算法的神经网络模型,在此不一一列举。In other embodiments, the neural network model may also be a neural network model based on other network structures and algorithms, which will not be listed here.
以上,通过各种方式,基于第一目标子图确定出第一目标节点对应的第一特征向量。由于第一目标子图中反映了与第一目标节点对应的交互对象有关的时序性交互历史(例如K次相关交互事件)的信息,因此,如此得到的第一特征向量,不仅表达出交互对象 本身的特征,还可以表达出交互对象在历次交互事件中所受到的影响,从而全面表征交互对象的特点。Above, the first feature vector corresponding to the first target node is determined based on the first target subgraph in various ways. Since the first target subgraph reflects the time-series interaction history (for example, K related interaction events) information related to the interactive object corresponding to the first target node, the first feature vector thus obtained not only expresses the interactive object The characteristics of itself can also express the influence that the interactive object has received in previous interactive events, thereby fully characterizing the characteristics of the interactive object.
于是,在步骤34,至少利用上述第一特征向量,进行与第一目标节点相关的业务处理。Therefore, in step 34, at least the above-mentioned first feature vector is used to perform service processing related to the first target node.
在一个实施例中,上述业务处理可以是,根据以上得到的第一特征向量,预测第一目标节点对应的对象的分类类别。In an embodiment, the foregoing business processing may be to predict the classification category of the object corresponding to the first target node based on the first feature vector obtained above.
例如,在第一目标节点对应的对象为用户为情况下,可以基于该第一特征向量预测该用户的用户类别,例如所属的人群类别,风险等级类别,等等。在第一目标节点对应的对象为物品的情况下,可以基于该第一特征向量预测该物品的类别,例如所属业务类别,适合的人群类别,被购买的场景类别,等等。For example, in the case where the object corresponding to the first target node is a user, the user category of the user may be predicted based on the first feature vector, such as the category of the group to which it belongs, the category of risk level, and so on. In the case where the object corresponding to the first target node is an item, the category of the item may be predicted based on the first feature vector, such as the category of the business to which it belongs, the category of a suitable group of people, the category of the scene being purchased, and so on.
在一种实施方案中,业务处理还可以包括,对与第一目标节点相关的交互事件进行分析和预测。由于交互事件一般涉及两个对象,因此还需要分析另一节点的特征向量。In an embodiment, the service processing may further include analyzing and predicting interaction events related to the first target node. Since interaction events generally involve two objects, it is also necessary to analyze the feature vector of another node.
具体地,可以采用与图3中的步骤32和33类似的方式对另一节点,称为第二目标节点进行分析。也就是说,在动态交互图中,确定与第二目标节点对应的第二目标子图,该第二目标子图包括从第二目标节点出发,经由连接边到达的所述预定范围内的节点;然后,基于第二目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定第二目标节点对应的第二特征向量。具体执行过程与结合第一目标节点对步骤32和33的描述相类似,不再赘述。Specifically, another node, called the second target node, can be analyzed in a manner similar to steps 32 and 33 in FIG. 3. That is to say, in the dynamic interaction graph, a second target subgraph corresponding to the second target node is determined, and the second target subgraph includes nodes within the predetermined range starting from the second target node and arriving via the connecting edge. ; Then, based on the node characteristics of each node included in the second target subgraph and the direction relationship of the connecting edges between the nodes, the second feature vector corresponding to the second target node is determined. The specific execution process is similar to the description of steps 32 and 33 in conjunction with the first target node, and will not be repeated here.
在一个实施例中,上述第二目标节点为动态交互图中与第一目标节点代表的对象不同的任意一个节点,例如图4和图5中的v(t 6)。如此,在分别确定出第一目标节点对应的第一特征向量和第二目标节点对应的第二特征向量之后,可以基于该第一特征向量和第二特征向量,预测第一目标节点和第二目标节点代表的对象是否会发生交互。 In one embodiment, the above-mentioned second target node is any node in the dynamic interaction graph that is different from the object represented by the first target node, such as v(t 6 ) in FIG. 4 and FIG. 5. In this way, after the first feature vector corresponding to the first target node and the second feature vector corresponding to the second target node are respectively determined, the first target node and the second target node can be predicted based on the first feature vector and the second feature vector. Whether the object represented by the target node will interact.
例如,在一个例子中,第一目标节点代表某个用户,第二目标节点代表某个商品,则可以根据第一特征向量和第二特征向量,预测该用户是否会购买该商品。在又一例子中,第一目标节点代表某个用户,第二目标节点代表某个页面区块,则可以根据第一特征向量和第二特征向量,预测该用户是否会点击该页面区块。For example, in an example, the first target node represents a certain user, and the second target node represents a certain commodity. Then, according to the first feature vector and the second feature vector, it is possible to predict whether the user will purchase the commodity. In another example, the first target node represents a certain user, and the second target node represents a certain page block. Based on the first feature vector and the second feature vector, it is possible to predict whether the user will click on the page block.
在另一个实施例中,第一目标节点和第二目标节点是已经发生的第一交互事件对应的两个节点。那么可以根据第一目标节点对应的第一特征向量和第二目标节点对应 的第二特征向量,预测该第一交互事件的事件类别。In another embodiment, the first target node and the second target node are two nodes corresponding to the first interaction event that has occurred. Then, the event category of the first interaction event can be predicted based on the first feature vector corresponding to the first target node and the second feature vector corresponding to the second target node.
例如,在一个例子中,第一目标节点代表的用户已经确认购买第二目标节点代表的商品,由此产生第一交互事件。在用户请求支付时,可以根据第一特征向量和第二特征向量,预测该第一交互事件是否为涉嫌套现的欺诈性交易,从而确定是否允许本次支付。在又一例子中,第一目标节点代表的用户已经针对第二目标节点代表的物品(例如电影)进行评论操作,例如点赞或发布文字评论,由此产生第一交互事件。在这之后,可以根据第一特征向量和第二特征向量,预测该第一交互事件是否为真实操作,从而排除一些水军操作的虚假评论。For example, in an example, the user represented by the first target node has confirmed to purchase the commodity represented by the second target node, thereby generating the first interaction event. When the user requests payment, it can predict whether the first interaction event is a fraudulent transaction suspected of cashing out according to the first feature vector and the second feature vector, so as to determine whether the current payment is allowed. In yet another example, the user represented by the first target node has performed a comment operation, such as liking or posting a text comment, on the item (such as a movie) represented by the second target node, thereby generating the first interaction event. After that, based on the first feature vector and the second feature vector, it can be predicted whether the first interaction event is a real operation, so as to exclude some false comments about naval operations.
因此,在产生动态交互图的基础上,将其中的节点表达为特征向量,可以便于后续对节点代表的对象,或者对多个节点相关的事件,进行分析和预测。Therefore, on the basis of generating a dynamic interaction graph, expressing the nodes therein as feature vectors can facilitate subsequent analysis and prediction of the objects represented by the nodes or events related to multiple nodes.
如前所述,为了得到目标节点的特征向量,根据一个或多个实施例,采用神经网络模型对目标节点对应的目标子图进行分析和处理。可以理解,神经网络模型在确定目标节点特征向量的计算过程中,依赖于大量的参数,这些参数需要通过对该神经网络模型进行训练而确定。在不同实施例中,可以通过不同的任务,特别是可以结合步骤34中的业务处理任务,训练该神经网络模型。下面描述对该神经网络的训练过程。As mentioned above, in order to obtain the feature vector of the target node, according to one or more embodiments, a neural network model is used to analyze and process the target subgraph corresponding to the target node. It can be understood that the neural network model relies on a large number of parameters in the calculation process of determining the feature vector of the target node, and these parameters need to be determined by training the neural network model. In different embodiments, the neural network model can be trained through different tasks, especially the business processing tasks in step 34. The following describes the training process of the neural network.
在一个实施例中,通过预测交互行为来训练神经网络模型。图8示出在该实施例中训练神经网络模型的流程图。如图8所示,在步骤81,获取历史交互事件。在一个具体例子中,可以从前述交互事件集中获取历史交互事件。将该历史交互事件中包括的两个对象称为第一样本对象和第二样本对象。In one embodiment, the neural network model is trained by predicting the interaction behavior. Fig. 8 shows a flowchart of training a neural network model in this embodiment. As shown in Fig. 8, in step 81, historical interaction events are acquired. In a specific example, historical interaction events can be obtained from the aforementioned collection of interaction events. The two objects included in the historical interaction event are called the first sample object and the second sample object.
在步骤82,在动态交互图中,分别确定与第一样本对象对应的第一样本子图,和与第二样本对象对应的第二样本子图。具体的,首先在动态交互图中分别确定出第一样本节点和第二样本节点,其中第一样本节点对应于该历史交互事件的历史时间下的第一样本对象,第二样本节点对应于该历史时间下的第二样本对象。然后分别以第一样本节点和第二样本节点作为目标节点,按照图3的步骤32类似的方式,确定出对应的第一样本子图和第二样本子图。In step 82, in the dynamic interaction graph, a first sample subgraph corresponding to the first sample object and a second sample subgraph corresponding to the second sample object are respectively determined. Specifically, first, the first sample node and the second sample node are respectively determined in the dynamic interaction graph, where the first sample node corresponds to the first sample object under the historical time of the historical interaction event, and the second sample node Corresponds to the second sample object at the historical time. Then, the first sample node and the second sample node are respectively used as target nodes, and the corresponding first sample subgraph and second sample subgraph are determined in a similar manner to step 32 in FIG. 3.
然后,在步骤83,将上述第一样本子图和第二样本子图分别输入神经网络模型,分别得到第一样本对象对应的第一样本向量和第二样本对象对应的第二样本向量。神经网络模型基于子图中节点的指向关系确定出样本对象的样本向量的具体过程如前结合步骤33所述,不再赘述。Then, in step 83, the above-mentioned first sample subgraph and the second sample subgraph are respectively input into the neural network model, and the first sample vector corresponding to the first sample object and the second sample vector corresponding to the second sample object are respectively obtained . The specific process of the neural network model determining the sample vector of the sample object based on the pointing relationship of the nodes in the subgraph is as described above in conjunction with step 33, and will not be repeated.
接着,在步骤84,根据第一样本对象的第一样本向量和第二样本对象的第二样本向量,预测第一样本对象和第二样本对象是否会发生交互,得到预测结果。通常,可以采用一个二分类的分类器,预测两个样本对象是否会发生交互,得到的预测结果通常表现为,这两个样本对象发生交互的概率。Next, in step 84, according to the first sample vector of the first sample object and the second sample vector of the second sample object, predict whether the first sample object and the second sample object will interact, and obtain the prediction result. Generally, a two-class classifier can be used to predict whether two sample objects will interact, and the obtained prediction result is usually expressed as the probability of the two sample objects interacting.
于是,在步骤85,根据上述预测结果,确定预测损失。可以理解,上述第一样本对象和第二样本对象来自历史交互事件,因此实际上已经发生交互,这相当于已知这两个样本对象之间的关系标签。根据例如交叉熵计算方式等损失函数形式,可以基于上述预测结果确定出本次预测的损失。Therefore, in step 85, the prediction loss is determined based on the above prediction result. It can be understood that the above-mentioned first sample object and second sample object come from historical interaction events, so the interaction has actually occurred, which is equivalent to knowing the relationship label between the two sample objects. According to the loss function form such as the cross entropy calculation method, the loss of this prediction can be determined based on the above prediction result.
然后,在步骤86,根据预测损失,更新神经网络模型。具体的,可以采用梯度下降、反向传播等方式,调整神经网络中的参数,以更新神经网络模型,直到神经网络模型的预测准确率达到一定要求。Then, in step 86, the neural network model is updated based on the predicted loss. Specifically, methods such as gradient descent and back propagation can be used to adjust the parameters in the neural network to update the neural network model until the prediction accuracy of the neural network model reaches a certain requirement.
以上采用历史交互事件中的两个样本对象来进行对象关系的预测,相当于利用了正样本进行训练。在一个实施例中,还可以在动态交互图中找到未发生交互关系的两个样本对象作为负样本进行进一步训练,从而达到更好的训练效果。The foregoing uses two sample objects in historical interaction events to predict the relationship between objects, which is equivalent to using positive samples for training. In an embodiment, two sample objects that have not interacted with each other can also be found in the dynamic interaction graph as negative samples for further training, so as to achieve a better training effect.
根据另一实施方式,通过预测交互对象的分类来训练神经网络模型。图9示出该实施例中训练神经网络模型的流程图。如图9所示,在步骤91,从交互事件集中选择样本对象,并获取该样本对象的分类标签。该样本对象可以是任意事件中的任意交互对象,针对该样本对象的分类标签可以是与业务场景相关的标签。例如,在样本对象是用户的情况下,分类标签可以是预先设定的人群分类的标签,或用户风险程度分类的标签;在样本对象是商品的情况下,分类标签可以是商品分类的标签。这样的标签可以由人工标注产生,或通过其他业务相关处理而产生。According to another embodiment, the neural network model is trained by predicting the classification of interactive objects. Fig. 9 shows a flow chart of training the neural network model in this embodiment. As shown in FIG. 9, in step 91, a sample object is selected from the set of interaction events, and the classification label of the sample object is obtained. The sample object can be any interaction object in any event, and the classification label for the sample object can be a label related to a business scenario. For example, in the case where the sample object is a user, the classification label may be a pre-set group classification label or a user risk level classification label; in the case where the sample object is a commodity, the classification label may be a commodity classification label. Such labels can be generated by manual labeling, or generated through other business-related processing.
在步骤92,在动态交互图中,确定与该样本对象对应的样本子图。具体的,可以在动态交互图中确定出与该样本对象对应的某个节点。由于一个实体对象可以对应于动态交互图中的多个节点,优选的,此处可以选择该样本对象在最近交互时间下对应的节点。以该节点作为目标节点,按照图3的步骤32类似的方式,确定出对应的样本子图。In step 92, in the dynamic interaction graph, a sample subgraph corresponding to the sample object is determined. Specifically, a certain node corresponding to the sample object can be determined in the dynamic interaction graph. Since one entity object can correspond to multiple nodes in the dynamic interaction graph, preferably, the node corresponding to the sample object at the most recent interaction time can be selected here. With this node as the target node, the corresponding sample subgraph is determined in a similar manner to step 32 in FIG. 3.
然后,在步骤93,将上述样本子图输入神经网络模型,得到样本对象的样本向量。该过程如前结合步骤33所述,不再赘述。Then, in step 93, the above-mentioned sample subgraph is input into the neural network model to obtain the sample vector of the sample object. This process is the same as that described in step 33, and will not be repeated here.
接着,在步骤94,根据样本对象的样本向量,预测该样本对象的分类,得到预 测结果。可以采用分类器,预测样本对象属于各个分类的各个概率,作为预测结果。Next, in step 94, the classification of the sample object is predicted based on the sample vector of the sample object, and the prediction result is obtained. A classifier can be used to predict each probability that the sample object belongs to each category as the prediction result.
然后,在步骤95,根据预测结果和分类标签,确定预测损失。具体的,可以采用例如交叉熵计算方式,可以预测结果中的各个概率和分类标签,确定出本次预测的损失。Then, in step 95, the prediction loss is determined based on the prediction result and the classification label. Specifically, for example, a cross-entropy calculation method can be used to predict each probability and classification label in the result, and determine the loss of this prediction.
在步骤96,根据预测损失,更新神经网络模型。如此,通过预测样本对象分类的任务,训练神经网络模型。In step 96, the neural network model is updated based on the predicted loss. In this way, the neural network model is trained by predicting the task of classifying sample objects.
综合以上,在本说明书一个实施例的方案中,基于交互事件集构建动态交互图,该动态交互图反映了各个交互事件的时序关系,以及交互对象之间通过各个交互事件传递的相互影响。并且,上述交互事件集中存在多个交互事件同时发生,相应的动态交互图中允许存在连接到多个关联节点的多元节点,以此丰富动态交互图中包含的关系信息。于是,基于该动态交互图中与待分析交互对象对应的节点相关的子图,可以提取得到该交互对象的特征向量。如此得到的特征向量中引入了各个交互事件中其他交互对象对其的影响,从而可以综合全面地表达该交互对象的深层特征,更好地进行业务处理。In summary, in the solution of an embodiment of the present specification, a dynamic interaction diagram is constructed based on a set of interaction events, and the dynamic interaction diagram reflects the timing relationship of each interaction event and the mutual influence between interactive objects transmitted through each interaction event. In addition, there are multiple interaction events occurring simultaneously in the above-mentioned interaction event set, and multiple nodes connected to multiple associated nodes are allowed to exist in the corresponding dynamic interaction graph, thereby enriching the relationship information contained in the dynamic interaction graph. Therefore, based on the subgraph related to the node corresponding to the interactive object to be analyzed in the dynamic interaction graph, the feature vector of the interactive object can be extracted. The feature vector obtained in this way introduces the influence of other interactive objects in each interactive event on it, so that the in-depth characteristics of the interactive object can be comprehensively expressed, and business processing can be better performed.
根据另一方面的实施例,提供了一种处理交互数据的装置,该装置可以部署在任何具有计算、处理能力的设备、平台或设备集群中。图10示出根据一个实施例的处理交互数据的装置的示意性框图。如图10所示,该处理装置100包括:According to another embodiment, an apparatus for processing interactive data is provided. The apparatus can be deployed in any device, platform, or device cluster with computing and processing capabilities. Fig. 10 shows a schematic block diagram of an apparatus for processing interactive data according to an embodiment. As shown in FIG. 10, the processing device 100 includes:
交互图获取单元101,配置为获取根据交互事件集构建的动态交互图,其中,所述交互事件集包括多个交互事件,每个交互事件至少包括,发生交互行为的两个对象和交互时间;所述动态交互图包括任意的第一节点,所述第一节点对应于发生在第一时间的交互事件中的第一对象,所述第一节点通过连接边指向N个关联事件所对应的M个关联节点,所述N个关联事件均发生于第二时间,且均包含所述第一对象作为交互对象之一,所述第二时间为,从所述第一时间向前回溯,所述第一对象发生交互行为的前一时间;所述动态交互图中包括至少一个关联节点数目大于2的多元节点;子图确定单元102,配置为在所述动态交互图中,确定与第一目标节点对应的第一目标子图,所述第一目标子图包括从所述第一目标节点出发,经由连接边到达的预定范围内的节点;子图处理单元103,配置为基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一目标节点对应的第一特征向量;业务处理单元104,配置为至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理。The interaction graph obtaining unit 101 is configured to obtain a dynamic interaction graph constructed according to a set of interaction events, wherein the set of interaction events includes a plurality of interaction events, and each interaction event includes at least two objects on which the interaction behavior occurs and the interaction time; The dynamic interaction graph includes any first node, the first node corresponds to the first object in the interaction event that occurs at the first time, and the first node points to the M corresponding to the N associated events through the connecting edge. Associated nodes, the N associated events all occur at a second time, and all include the first object as one of the interactive objects, and the second time is backtracking from the first time, the The time before the interaction of the first object occurs; the dynamic interaction graph includes at least one multi-node with the number of associated nodes greater than two; the subgraph determining unit 102 is configured to determine a relationship with the first target in the dynamic interaction graph A first target subgraph corresponding to a node, where the first target subgraph includes nodes within a predetermined range that start from the first target node and reach via connecting edges; the subgraph processing unit 103 is configured to be based on the first target node. The node features of each node included in the target subgraph and the direction relationship of the connecting edges between the nodes determine the first feature vector corresponding to the first target node; the service processing unit 104 is configured to use at least the first The feature vector performs service processing related to the first target node.
在一个实施例中,所述对象包括用户,所述交互事件包括以下中的至少一种: 点击事件,社交事件,交易事件。In one embodiment, the object includes a user, and the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
在一个实施例中,上述M个关联节点为2N个节点,分别对应于所述N个关联事件中各个关联事件所包括的两个对象。In an embodiment, the above-mentioned M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
在这样的情况下,所述交互图获取单元101具体配置为:获取基于已有交互事件集构建的已有动态交互图;获取第一更新时间发生的P个新增交互事件;在所述已有动态交互图中添加2P个新增节点,所述2P个新增节点分别对应于所述P个新增交互事件中各个新增交互事件包括的两个对象;对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。In this case, the interaction graph obtaining unit 101 is specifically configured to: obtain an existing dynamic interaction graph constructed based on an existing set of interaction events; obtain P new interaction events that occurred at the first update time; There are 2P new nodes added to the dynamic interaction graph, and the 2P new nodes respectively correspond to the two objects included in each new interaction event in the P new interaction events; for each new node, if If there is an associated node, add a connecting edge from the newly added node to its associated node.
在另一实施例中,所述M个关联节点为N+1个节点,分别对应于所述N个关联事件中与所述第一对象交互的N个其他对象,以及所述第一对象自身。In another embodiment, the M associated nodes are N+1 nodes, which respectively correspond to the N other objects interacting with the first object in the N associated events, and the first object itself .
在这样的情况下,所述交互图获取单元101具体配置为:获取基于已有交互事件集构建的已有动态交互图;获取第一更新时间发生的P个新增交互事件;确定所述P个新增交互事件所涉及的Q个不同对象;在所述已有动态交互图中添加Q个新增节点,所述Q个新增节点分别对应于所述Q个不同对象;对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。In this case, the interaction graph acquiring unit 101 is specifically configured to: acquire an existing dynamic interaction graph constructed based on an existing interaction event set; acquire P new interaction events that occur at the first update time; determine the P Q different objects involved in new interactive events; add Q new nodes to the existing dynamic interaction graph, and the Q new nodes correspond to the Q different objects; for each new Add a node, if it has an associated node, add a connecting edge from the newly added node to its associated node.
在一种可能的实施方式中,所述第一目标节点是这样的节点:在所述动态交互图中,不存在指向该节点的连接边。In a possible implementation manner, the first target node is a node: in the dynamic interaction graph, there is no connecting edge pointing to the node.
根据一种实施方式,所述预定范围内的节点包括:预设阶数K的连接边之内的节点;和/或,交互时间在预设时间范围内的节点。According to an embodiment, the nodes within the predetermined range include: nodes within a connecting edge of a preset order K; and/or nodes whose interaction time is within a preset time range.
在一个实施例中,每个交互事件还可以包括交互事件的事件特征;在这样的情况下,各个节点的节点特征可以包括,各个节点所对应的对象的属性特征,以及各个节点所在的交互事件的事件特征。In one embodiment, each interaction event may also include the event characteristics of the interaction event; in this case, the node characteristics of each node may include the attribute characteristics of the object corresponding to each node, and the interaction event where each node is located. The characteristics of the event.
根据一个实施例,所述业务处理单元104配置为,根据所述第一特征向量,预测所述第一目标节点对应的对象的分类类别。According to an embodiment, the service processing unit 104 is configured to predict the classification category of the object corresponding to the first target node according to the first feature vector.
根据一种实施方式,所述子图确定单元102还配置为,在所述动态交互图中,确定与第二目标节点对应的第二目标子图,所述第二目标子图包括从所述第二目标节点出发,经由连接边到达的所述预定范围内的节点;所述子图处理单元103还配置为,基于所述第二目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第二目标节点对应的第二特征向量。According to an embodiment, the subgraph determining unit 102 is further configured to determine, in the dynamic interaction graph, a second target subgraph corresponding to a second target node, and the second target subgraph includes the subgraph from the The second target node starts and arrives at the nodes within the predetermined range via the connecting edge; the sub-graph processing unit 103 is further configured to be based on the node characteristics of each node included in the second target sub-graph, and the number of nodes The directional relationship of the connecting edges between the two determines the second feature vector corresponding to the second target node.
基于该实施方式,所述业务处理单元104还可以配置为,根据所述第一特征向量和所述第二特征向量,预测所述第一目标节点和所述第二目标节点代表的对象是否会发生交互。Based on this implementation manner, the service processing unit 104 may be further configured to predict whether the objects represented by the first target node and the second target node will meet according to the first feature vector and the second feature vector. Interaction occurs.
在一个实施例中,第一目标节点和第二目标节点为第一交互事件对应的两个节点;此时,所述业务处理单元104可以配置为,根据所述第一特征向量和所述第二特征向量,预测所述第一交互事件的事件类别。In an embodiment, the first target node and the second target node are two nodes corresponding to the first interaction event; at this time, the service processing unit 104 may be configured to, according to the first feature vector and the first feature vector The second feature vector predicts the event category of the first interaction event.
根据一种实施方式,所述子图处理单元103配置为,将所述第一目标子图输入预先训练的神经网络模型,所述神经网络模型基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,输出所述第一特征向量。According to one embodiment, the sub-graph processing unit 103 is configured to input the first target sub-graph into a pre-trained neural network model, and the neural network model is based on each node contained in the first target sub-graph And output the first feature vector.
进一步的,在不同实施例中,所述神经网络模型可以包括以下之一:基于LSTM的神经网络模型,基于RNN的神经网络模型,基于Transformer的神经网络模型。Further, in different embodiments, the neural network model may include one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer.
通过以上装置,基于动态交互图处理交互对象,得到适于后续分析的特征向量。Through the above device, the interactive objects are processed based on the dynamic interaction graph, and feature vectors suitable for subsequent analysis are obtained.
根据另一方面的实施例,还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机中执行时,令计算机执行结合图3所描述的方法。According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method described in conjunction with FIG. 3.
根据再一方面的实施例,还提供一种计算设备,包括存储器和处理器,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码时,实现结合图3所述的方法。According to an embodiment of still another aspect, there is also provided a computing device, including a memory and a processor, the memory is stored with executable code, and when the processor executes the executable code, it implements the method described in conjunction with FIG. 3 method.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。Those skilled in the art should be aware that, in one or more of the foregoing examples, the functions described in this application can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific implementations described above further describe the purpose, technical solutions and beneficial effects of this application in detail. It should be understood that the above are only specific implementations of this application and are not intended to limit the scope of this application. The scope of protection, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of this application shall be included in the scope of protection of this application.

Claims (32)

  1. 一种处理交互数据的方法,所述方法包括:A method for processing interactive data, the method comprising:
    获取根据交互事件集构建的动态交互图,其中,所述交互事件集包括多个交互事件,每个交互事件至少包括,发生交互行为的两个对象和交互时间;所述动态交互图包括任意的第一节点,所述第一节点对应于发生在第一时间的交互事件中的第一对象,所述第一节点通过连接边指向N个关联事件所对应的M个关联节点,所述N个关联事件均发生于第二时间,且均包含所述第一对象作为交互对象之一,所述第二时间为,从所述第一时间向前回溯,所述第一对象发生交互行为的前一时间;所述动态交互图中包括至少一个关联节点数目大于2的多元节点;Acquire a dynamic interaction diagram constructed according to an interaction event set, wherein the interaction event set includes a plurality of interaction events, each interaction event includes at least two objects where the interaction behavior occurs and the interaction time; the dynamic interaction diagram includes any The first node, the first node corresponds to the first object in the interaction event occurring at the first time, the first node points to the M associated nodes corresponding to the N associated events through the connecting edge, and the N The associated events all occur at the second time, and they all include the first object as one of the interactive objects. The second time is, going back from the first time, before the first object interacts. At a time; the dynamic interaction graph includes at least one multi-node with more than 2 associated nodes;
    在所述动态交互图中,确定与第一目标节点对应的第一目标子图,所述第一目标子图包括从所述第一目标节点出发,经由连接边到达的预定范围内的节点;In the dynamic interaction graph, determining a first target subgraph corresponding to a first target node, where the first target subgraph includes nodes within a predetermined range starting from the first target node and arriving via a connecting edge;
    基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一目标节点对应的第一特征向量;Determine the first feature vector corresponding to the first target node based on the node characteristics of each node included in the first target subgraph and the direction relationship of the connecting edges between the nodes;
    至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理。At least the first feature vector is used to perform service processing related to the first target node.
  2. 根据权利要求1所述的方法,其中,所述对象包括用户,所述交互事件包括以下中的至少一种:点击事件,社交事件,交易事件。The method according to claim 1, wherein the object includes a user, and the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
  3. 根据权利要求1所述的方法,其中,所述M个关联节点为2N个节点,分别对应于所述N个关联事件中各个关联事件所包括的两个对象。The method according to claim 1, wherein the M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
  4. 根据权利要求3所述的方法,其中,所述获取根据交互事件集构建的动态交互图包括:The method according to claim 3, wherein said obtaining a dynamic interaction graph constructed according to a set of interaction events comprises:
    获取基于已有交互事件集构建的已有动态交互图;Obtain an existing dynamic interaction diagram constructed based on an existing interaction event set;
    获取第一更新时间发生的P个新增交互事件;Obtain P new interaction events that occurred at the first update time;
    在所述已有动态交互图中添加2P个新增节点,所述2P个新增节点分别对应于所述P个新增交互事件中各个新增交互事件包括的两个对象;Adding 2P newly-added nodes to the existing dynamic interaction graph, the 2P newly-added nodes respectively corresponding to two objects included in each newly-added interaction event in the P newly-added interaction events;
    对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。For each newly added node, if there is an associated node, add a connecting edge from the newly added node to its associated node.
  5. 根据权利要求1所述的方法,其中,所述M个关联节点为N+1个节点,分别对应于所述N个关联事件中与所述第一对象交互的N个其他对象,以及所述第一对象自身。The method according to claim 1, wherein the M associated nodes are N+1 nodes, respectively corresponding to the N other objects interacting with the first object in the N associated events, and the The first object itself.
  6. 根据权利要求5所述的方法,其中,所述获取根据交互事件集构建的动态交互图包括:The method according to claim 5, wherein said obtaining a dynamic interaction graph constructed according to a set of interaction events comprises:
    获取基于已有交互事件集构建的已有动态交互图;Obtain an existing dynamic interaction diagram constructed based on an existing interaction event set;
    获取第一更新时间发生的P个新增交互事件;Obtain P new interaction events that occurred at the first update time;
    确定所述P个新增交互事件所涉及的Q个不同对象;Determine Q different objects involved in the P new interaction events;
    在所述已有动态交互图中添加Q个新增节点,所述Q个新增节点分别对应于所述Q个不同对象;Adding Q new nodes to the existing dynamic interaction graph, the Q new nodes respectively corresponding to the Q different objects;
    对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。For each newly added node, if there is an associated node, add a connecting edge from the newly added node to its associated node.
  7. 根据权利要求1所述的方法,其中,所述第一目标节点是这样的节点:在所述动态交互图中,不存在指向该节点的连接边。The method according to claim 1, wherein the first target node is a node in which there is no connecting edge pointing to the node in the dynamic interaction graph.
  8. 根据权利要求1所述的方法,其中,所述预定范围内的节点包括:The method according to claim 1, wherein the nodes within the predetermined range include:
    预设阶数K的连接边之内的节点;和/或Nodes within the connecting edges of the preset order K; and/or
    交互时间在预设时间范围内的节点。Nodes whose interaction time is within the preset time range.
  9. 根据权利要求3所述的方法,其中,所述每个交互事件还包括,交互事件的事件特征;The method according to claim 3, wherein each interaction event further comprises an event characteristic of the interaction event;
    所述各个节点的节点特征包括,各个节点所对应的对象的属性特征,以及各个节点所在的交互事件的事件特征。The node characteristics of each node include the attribute characteristics of the object corresponding to each node, and the event characteristics of the interaction event where each node is located.
  10. 根据权利要求1所述的方法,其中,至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理包括:The method according to claim 1, wherein at least using the first feature vector to perform service processing related to the first target node comprises:
    根据所述第一特征向量,预测所述第一目标节点对应的对象的分类类别。According to the first feature vector, the classification category of the object corresponding to the first target node is predicted.
  11. 根据权利要求1所述的方法,还包括,The method according to claim 1, further comprising:
    在所述动态交互图中,确定与第二目标节点对应的第二目标子图,所述第二目标子图包括从所述第二目标节点出发,经由连接边到达的所述预定范围内的节点;In the dynamic interaction graph, a second target subgraph corresponding to a second target node is determined, and the second target subgraph includes information within the predetermined range that starts from the second target node and arrives via a connecting edge. node;
    基于所述第二目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第二目标节点对应的第二特征向量。The second feature vector corresponding to the second target node is determined based on the node characteristics of each node included in the second target subgraph and the direction relationship of the connecting edges between the nodes.
  12. 根据权利要求11所述的方法,其中,至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理包括,The method according to claim 11, wherein at least using the first feature vector to perform service processing related to the first target node comprises:
    根据所述第一特征向量和所述第二特征向量,预测所述第一目标节点和所述第二目标节点代表的对象是否会发生交互。According to the first feature vector and the second feature vector, predict whether the objects represented by the first target node and the second target node will interact.
  13. 根据权利要求11所述的方法,其中,所述第一目标节点和所述第二目标节点为第一交互事件对应的两个节点;至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理包括,The method according to claim 11, wherein the first target node and the second target node are two nodes corresponding to a first interaction event; at least the first feature vector is used to communicate with the first The business processing related to the target node includes,
    根据所述第一特征向量和所述第二特征向量,预测所述第一交互事件的事件类别。According to the first feature vector and the second feature vector, the event category of the first interaction event is predicted.
  14. 根据权利要求1所述的方法,其中,确定所述第一目标节点对应的第一特征向量包括,将所述第一目标子图输入预先训练的神经网络模型,所述神经网络模型基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,输出所述第一特征向量。The method according to claim 1, wherein determining the first feature vector corresponding to the first target node comprises inputting the first target subgraph into a pre-trained neural network model, the neural network model being based on the The node feature of each node included in the first target subgraph and the direction relationship of the connecting edge between the nodes are outputted as the first feature vector.
  15. 根据权利要求14所述的方法,其中,所述神经网络模型包括以下之一:基于LSTM的神经网络模型,基于RNN的神经网络模型,基于Transformer的神经网络模型。The method according to claim 14, wherein the neural network model comprises one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer.
  16. 一种处理交互数据的装置,所述装置包括:A device for processing interactive data, the device comprising:
    交互图获取单元,配置为获取根据交互事件集构建的动态交互图,其中,所述交互事件集包括多个交互事件,每个交互事件至少包括,发生交互行为的两个对象和交互时间;所述动态交互图包括任意的第一节点,所述第一节点对应于发生在第一时间的交互事件中的第一对象,所述第一节点通过连接边指向N个关联事件所对应的M个关联节点,所述N个关联事件均发生于第二时间,且均包含所述第一对象作为交互对象之一,所述第二时间为,从所述第一时间向前回溯,所述第一对象发生交互行为的前一时间;所述动态交互图中包括至少一个关联节点数目大于2的多元节点;The interaction diagram obtaining unit is configured to obtain a dynamic interaction diagram constructed according to a set of interaction events, wherein the set of interaction events includes a plurality of interaction events, and each interaction event includes at least two objects on which the interaction behavior occurs and the interaction time; The dynamic interaction graph includes any first node, the first node corresponds to the first object in the interaction event occurring at the first time, and the first node points to M corresponding to the N associated events through the connecting edge. Associated node, the N associated events all occur at the second time, and all include the first object as one of the interactive objects, the second time is, going back from the first time, the first time The time before the interaction of an object; the dynamic interaction graph includes at least one multi-node with more than 2 associated nodes;
    子图确定单元,配置为在所述动态交互图中,确定与第一目标节点对应的第一目标子图,所述第一目标子图包括从所述第一目标节点出发,经由连接边到达的预定范围内的节点;The subgraph determining unit is configured to determine, in the dynamic interaction graph, a first target subgraph corresponding to a first target node, the first target subgraph includes starting from the first target node and arriving via a connecting edge Nodes within the predetermined range;
    子图处理单元,配置为基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第一目标节点对应的第一特征向量;A subgraph processing unit configured to determine a first feature vector corresponding to the first target node based on the node characteristics of each node included in the first target subgraph and the direction relationship of the connecting edges between the nodes;
    业务处理单元,配置为至少利用所述第一特征向量,进行与所述第一目标节点相关的业务处理。The service processing unit is configured to use at least the first feature vector to perform service processing related to the first target node.
  17. 根据权利要求16所述的装置,其中,所述对象包括用户,所述交互事件包括以下中的至少一种:点击事件,社交事件,交易事件。The device according to claim 16, wherein the object includes a user, and the interaction event includes at least one of the following: a click event, a social event, and a transaction event.
  18. 根据权利要求16所述的装置,其中,所述M个关联节点为2N个节点,分别对应于所述N个关联事件中各个关联事件所包括的两个对象。The apparatus according to claim 16, wherein the M associated nodes are 2N nodes, respectively corresponding to two objects included in each associated event in the N associated events.
  19. 根据权利要求18所述的装置,其中,所述交互图获取单元配置为:The apparatus according to claim 18, wherein the interaction graph obtaining unit is configured to:
    获取基于已有交互事件集构建的已有动态交互图;Obtain an existing dynamic interaction diagram constructed based on an existing interaction event set;
    获取第一更新时间发生的P个新增交互事件;Obtain P new interaction events that occurred at the first update time;
    在所述已有动态交互图中添加2P个新增节点,所述2P个新增节点分别对应于所述P个新增交互事件中各个新增交互事件包括的两个对象;Adding 2P newly-added nodes to the existing dynamic interaction graph, the 2P newly-added nodes respectively corresponding to two objects included in each newly-added interaction event in the P newly-added interaction events;
    对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接 边。For each new node, if there is an associated node, add a connecting edge from the new node to its associated node.
  20. 根据权利要求16所述的装置,其中,所述M个关联节点为N+1个节点,分别对应于所述N个关联事件中与所述第一对象交互的N个其他对象,以及所述第一对象自身。The apparatus according to claim 16, wherein the M associated nodes are N+1 nodes, respectively corresponding to N other objects interacting with the first object in the N associated events, and the The first object itself.
  21. 根据权利要求20所述的装置,其中,所述交互图获取单元配置为:The apparatus according to claim 20, wherein the interaction graph obtaining unit is configured to:
    获取基于已有交互事件集构建的已有动态交互图;Obtain an existing dynamic interaction diagram constructed based on an existing interaction event set;
    获取第一更新时间发生的P个新增交互事件;Obtain P new interaction events that occurred at the first update time;
    确定所述P个新增交互事件所涉及的Q个不同对象;Determine Q different objects involved in the P new interaction events;
    在所述已有动态交互图中添加Q个新增节点,所述Q个新增节点分别对应于所述Q个不同对象;Adding Q new nodes to the existing dynamic interaction graph, the Q new nodes respectively corresponding to the Q different objects;
    对于每个新增节点,若其存在关联节点,添加从该新增节点指向其关联节点的连接边。For each newly added node, if there is an associated node, add a connecting edge from the newly added node to its associated node.
  22. 根据权利要求16所述的装置,其中,所述第一目标节点是这样的节点:在所述动态交互图中,不存在指向该节点的连接边。The apparatus according to claim 16, wherein the first target node is a node: in the dynamic interaction graph, there is no connecting edge pointing to the node.
  23. 根据权利要求16所述的装置,其中,所述预定范围内的节点包括:The apparatus according to claim 16, wherein the nodes within the predetermined range comprise:
    预设阶数K的连接边之内的节点;和/或Nodes within the connecting edges of the preset order K; and/or
    交互时间在预设时间范围内的节点。Nodes whose interaction time is within the preset time range.
  24. 根据权利要求18所述的装置,其中,所述每个交互事件还包括,交互事件的事件特征;The apparatus according to claim 18, wherein each interaction event further comprises an event characteristic of the interaction event;
    所述各个节点的节点特征包括,各个节点所对应的对象的属性特征,以及各个节点所在的交互事件的事件特征。The node characteristics of each node include the attribute characteristics of the object corresponding to each node, and the event characteristics of the interaction event where each node is located.
  25. 根据权利要求16所述的装置,其中,所述业务处理单元配置为,根据所述第一特征向量,预测所述第一目标节点对应的对象的分类类别。The apparatus according to claim 16, wherein the service processing unit is configured to predict the classification category of the object corresponding to the first target node according to the first feature vector.
  26. 根据权利要求16所述的装置,其中,The device according to claim 16, wherein:
    所述子图确定单元还配置为,在所述动态交互图中,确定与第二目标节点对应的第二目标子图,所述第二目标子图包括从所述第二目标节点出发,经由连接边到达的所述预定范围内的节点;The subgraph determining unit is further configured to determine, in the dynamic interaction graph, a second target subgraph corresponding to a second target node, where the second target subgraph includes starting from the second target node through Nodes within the predetermined range reached by the connecting edge;
    所述子图处理单元还配置为,基于所述第二目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,确定所述第二目标节点对应的第二特征向量。The sub-graph processing unit is further configured to determine a second characteristic corresponding to the second target node based on the node characteristics of each node included in the second target sub-graph and the direction relationship of the connecting edges between the nodes vector.
  27. 根据权利要求26所述的装置,其中所述业务处理单元配置为,根据所述第一特征向量和所述第二特征向量,预测所述第一目标节点和所述第二目标节点代表的对象是 否会发生交互。The apparatus according to claim 26, wherein the service processing unit is configured to predict the objects represented by the first target node and the second target node based on the first feature vector and the second feature vector Whether interaction will occur.
  28. 根据权利要求26所述的装置,其中,所述第一目标节点和所述第二目标节点为第一交互事件对应的两个节点;所述业务处理单元配置为,根据所述第一特征向量和所述第二特征向量,预测所述第一交互事件的事件类别。The apparatus according to claim 26, wherein the first target node and the second target node are two nodes corresponding to a first interaction event; and the service processing unit is configured to, according to the first feature vector And the second feature vector to predict the event category of the first interaction event.
  29. 根据权利要求16所述的装置,其中,所述子图处理单元配置为,将所述第一目标子图输入预先训练的神经网络模型,所述神经网络模型基于所述第一目标子图中包含的各个节点的节点特征,以及节点之间的连接边的指向关系,输出所述第一特征向量。The apparatus according to claim 16, wherein the sub-graph processing unit is configured to input the first target sub-graph into a pre-trained neural network model, and the neural network model is based on the first target sub-graph The node features of each node included and the direction relationship of the connecting edges between the nodes are output, and the first feature vector is output.
  30. 根据权利要求29所述的装置,其中,所述神经网络模型包括以下之一:基于LSTM的神经网络模型,基于RNN的神经网络模型,基于Transformer的神经网络模型。The device according to claim 29, wherein the neural network model comprises one of the following: a neural network model based on LSTM, a neural network model based on RNN, and a neural network model based on Transformer.
  31. 一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机中执行时,令计算机执行权利要求1-15中任一项的所述的方法。A computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1-15.
  32. 一种计算设备,包括存储器和处理器,其特征在于,所述存储器中存储有可执行代码,所述处理器执行所述可执行代码时,实现权利要求1-15中任一项所述的方法。A computing device, comprising a memory and a processor, characterized in that executable code is stored in the memory, and when the processor executes the executable code, the device described in any one of claims 1-15 is implemented method.
PCT/CN2020/137922 2020-01-09 2020-12-21 Method and apparatus for processing interaction sequence data WO2021139513A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010022182.8A CN111258469B (en) 2020-01-09 2020-01-09 Method and device for processing interactive sequence data
CN202010022182.8 2020-01-09

Publications (1)

Publication Number Publication Date
WO2021139513A1 true WO2021139513A1 (en) 2021-07-15

Family

ID=70946797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137922 WO2021139513A1 (en) 2020-01-09 2020-12-21 Method and apparatus for processing interaction sequence data

Country Status (2)

Country Link
CN (1) CN111258469B (en)
WO (1) WO2021139513A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081589A (en) * 2020-01-09 2022-09-20 支付宝(杭州)信息技术有限公司 Method and device for processing interactive data by using LSTM neural network model
CN111258469B (en) * 2020-01-09 2021-05-14 支付宝(杭州)信息技术有限公司 Method and device for processing interactive sequence data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190325514A1 (en) * 2018-04-24 2019-10-24 Alibaba Group Holding Limited Credit risk prediction method and device based on lstm model
CN110474885A (en) * 2019-07-24 2019-11-19 桂林电子科技大学 Alert correlation analysis method based on time series and IP address
CN110543935A (en) * 2019-08-15 2019-12-06 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN110555469A (en) * 2019-08-15 2019-12-10 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN110598847A (en) * 2019-08-15 2019-12-20 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN111258469A (en) * 2020-01-09 2020-06-09 支付宝(杭州)信息技术有限公司 Method and device for processing interactive sequence data

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744966B (en) * 2014-01-07 2018-06-22 Tcl集团股份有限公司 A kind of item recommendation method, device
CN104331817B (en) * 2014-10-29 2018-09-28 深圳先进技术研究院 The user characteristics extracting method and system of e-commerce recommended models
CN108446374B (en) * 2018-03-16 2019-09-20 北京三快在线科技有限公司 User's Intention Anticipation method, apparatus, electronic equipment, storage medium
CN109284864B (en) * 2018-09-04 2021-08-24 广州视源电子科技股份有限公司 Behavior sequence obtaining method and device and user conversion rate prediction method and device
CN109657890B (en) * 2018-09-14 2023-04-25 蚂蚁金服(杭州)网络技术有限公司 Method and device for determining risk of money transfer fraud
CN109522474B (en) * 2018-10-19 2021-05-18 上海交通大学 Recommendation method for mining deep user similarity based on interactive sequence data
CN109544306B (en) * 2018-11-30 2021-09-21 苏州大学 Cross-domain recommendation method and device based on user behavior sequence characteristics
CN110415022B (en) * 2019-07-05 2023-08-18 创新先进技术有限公司 Method and device for processing user behavior sequence

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190325514A1 (en) * 2018-04-24 2019-10-24 Alibaba Group Holding Limited Credit risk prediction method and device based on lstm model
CN110474885A (en) * 2019-07-24 2019-11-19 桂林电子科技大学 Alert correlation analysis method based on time series and IP address
CN110543935A (en) * 2019-08-15 2019-12-06 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN110555469A (en) * 2019-08-15 2019-12-10 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN110598847A (en) * 2019-08-15 2019-12-20 阿里巴巴集团控股有限公司 Method and device for processing interactive sequence data
CN111258469A (en) * 2020-01-09 2020-06-09 支付宝(杭州)信息技术有限公司 Method and device for processing interactive sequence data

Also Published As

Publication number Publication date
CN111258469B (en) 2021-05-14
CN111258469A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
WO2021027260A1 (en) Method and device for processing interaction sequence data
WO2021139524A1 (en) Method and apparatus for processing interaction data by using lstm neural network model
US10958748B2 (en) Resource push method and apparatus
US10614077B2 (en) Computer system for automated assessment at scale of topic-specific social media impact
US10599449B1 (en) Predictive action modeling to streamline user interface
US11250088B2 (en) Method and apparatus for processing user interaction sequence data
CN110458220B (en) Crowd orientation method, device, server and storage medium
US11574201B2 (en) Enhancing evolutionary optimization in uncertain environments by allocating evaluations via multi-armed bandit algorithms
CN110555469B (en) Method and device for processing interactive sequence data
US20180097759A1 (en) Predictive scoring and messaging in messaging systems
CN110543935B (en) Method and device for processing interactive sequence data
US11227217B1 (en) Entity transaction attribute determination method and apparatus
WO2018175750A1 (en) Intelligent visual object management system
CN109903103B (en) Method and device for recommending articles
WO2021139513A1 (en) Method and apparatus for processing interaction sequence data
CN110689110B (en) Method and device for processing interaction event
US10817845B2 (en) Updating messaging data structures to include predicted attribute values associated with recipient entities
WO2021139525A1 (en) Method and device for training autoencoder for evaluating interaction event
JP2020057386A (en) Directing trajectories through communication decision tree using iterative artificial intelligence
US20180225685A1 (en) Identifying impending user-competitor relationships on an online social networking system
CN113034168A (en) Content item delivery method and device, computer equipment and storage medium
AU2018306317A1 (en) System and method for detecting and responding to transaction patterns
CN114418701A (en) Method and device for generating recommendation list, electronic equipment and storage medium
CN113761388A (en) Recommendation method and device, electronic equipment and storage medium
US11531916B2 (en) System and method for obtaining recommendations using scalable cross-domain collaborative filtering

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20912995

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20912995

Country of ref document: EP

Kind code of ref document: A1