A method for determining a recognition model and a related device
By combining unsupervised and supervised training in the graph neural network, a recognition model is generated, which solves the overfitting problem caused by fewer positive and negative sample labels, and improves the recognition accuracy of cheating behavior and the generalization ability of the model.
Patent Information
- Application Number
- CN202210264304.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-03-17
AI Technical Summary
In scenarios with fewer positive and negative sample labels, the graph neural network model is prone to overfitting, resulting in low accuracy in identifying cheating behaviors.
The sample bipartite graph is determined based on the historical interaction behavior of objects and products, and the initial encoding sub-model is used for unsupervised training to generate initial node vectors of graph nodes, and the loss function is determined based on the association relationship and node vectors to reduce the vectors of highly associated nodes. The difference between nodes is improved to improve the distinction of low-correlation nodes; subsequently, supervised training is performed based on the encoding sub-model and the prediction sub-model to form a semi-supervised training process to improve the generalization ability of the recognition model.
It effectively improves the recognition accuracy of cheating behavior, reduces the possibility of overfitting of the recognition model when the number of sample labels is small, and improves the accuracy of interaction risk identification.
Smart Images

Figure CN114528994B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for determining a recognition model and a related device. Background Art
[0002] In various industries such as advertising, retail, e-commerce, and travel, there are corresponding anti-cheating needs. For example, exposure clicks in the advertising industry, download activation in the gaming industry, and short video playback, browsing, and likes are all considered cheating behaviors. If they are not identified in time, they may cause huge losses to the platform.
[0003] In the related technology, graph neural network models for node classification are used to identify cheating behaviors. Graph neural network models include graph sampling and aggregation (Graph SAmple and aggrGatE, GraphSAGE) model, graph attention network (GraphAttention Network, GAT) model, etc. The graph neural network model can make full use of the node features in the graph and the explicit or implicit relationships between nodes to identify cheating behaviors through the graph structure. In scenarios with rich positive and negative sample labels, the recognition accuracy is relatively high.
[0004] However, in scenarios with fewer positive and negative sample labels, the trained graph neural network algorithm is prone to overfitting, resulting in low accuracy in identifying cheating behavior. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a method for determining a recognition model and a related device, which are used to improve the accuracy of identifying cheating behavior.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] On the one hand, an embodiment of the present application provides a method for determining a recognition model, the method comprising:
[0008] Determine a sample bipartite graph according to the historical interaction behavior generated by the object on the product, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior;
[0009] According to the sample bipartite graph, obtaining the initial node vector of the graph node through the initial encoding sub-model;
[0010] A first loss function is determined according to the association relationship and the initial node vector; wherein, for a target graph node in the sample bipartite graph, the first loss function is used to identify a similarity difference between the initial node vector of the target graph node and the initial node vector of an associated node, and a distinctiveness difference between the initial node vector of the graph node and the initial node vector of a non-associated node, wherein the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node satisfies an association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not satisfy the association threshold and has a different node type from the target graph node;
[0011] By using the first loss function, the initial encoding sub-model is subjected to unsupervised training based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference, so as to obtain the encoding sub-model;
[0012] Determine, according to the encoding sub-model, a pair vector of an object-product pair having a sample label in the sample bipartite graph, wherein the sample label is used to identify whether an association relationship between an object and a product in the object-product pair has an interaction risk;
[0013] According to the pair vector, determining the risk prediction result of the target product pair through an initial prediction sub-model, and performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain a prediction sub-model;
[0014] An identification model for identifying interaction risks for the interaction behavior to be processed is determined according to the encoding sub-model and the prediction sub-model.
[0015] On the other hand, an embodiment of the present application provides a device for determining a recognition model, the device comprising: a first determination unit, a second determination unit, a third determination unit, an unsupervised training unit, a fourth determination unit, a supervised training unit, and a fifth determination unit;
[0016] The first determination unit is used to determine a sample bipartite graph according to the historical interaction behavior generated by the object on the product, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior;
[0017] The second determining unit is used to obtain the initial node vector of the graph node through the initial coding sub-model according to the sample bipartite graph;
[0018] The third determination unit is used to determine a first loss function according to the association relationship and the initial node vector; wherein, for the target graph node in the sample bipartite graph, the first loss function is used to identify the similarity difference between the initial node vector of the target graph node and the initial node vector of the associated node, and the distinction difference between the initial node vector of the graph node and the initial node vector of the non-associated node, the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node meets the association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not meet the association threshold and has a different node type from the target graph node;
[0019] The unsupervised training unit is used to perform unsupervised training on the initial encoding sub-model based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference through the first loss function to obtain the encoding sub-model;
[0020] The fourth determination unit is used to determine, according to the encoding sub-model, a pair vector of an object-product pair having a sample label in the sample bipartite graph, wherein the sample label is used to identify whether the association relationship between the object and the product in the object-product pair has an interaction risk;
[0021] The supervised training unit is used to determine the risk prediction result of the object product pair through the initial prediction sub-model according to the pair vector, and perform supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model;
[0022] The fifth determination unit is used to determine, based on the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks for the interaction behavior to be processed.
[0023] On the other hand, an embodiment of the present application provides a computer device, the device comprising a processor and a memory:
[0024] The memory is used to store program code and transmit the program code to the processor;
[0025] The processor is used to execute the method described in the above aspects according to the instructions in the program code.
[0026] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in the above aspects.
[0027] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method described in the above aspects.
[0028] It can be seen from the above technical solution that the sample bipartite graph determined based on the historical interaction behavior of the object on the product includes object nodes, product nodes, and the association relationship between the object and the product. The initial node vector representing the graph node is obtained through the initial coding sub-model, and the first loss function for unsupervised training of the initial coding sub-model is determined according to the association relationship of the graph node in the sample bipartite graph and the initial node vector; the coding sub-model obtained by the unsupervised training of the first loss function can minimize the difference between the vectors of highly associated graph nodes when determining the node vector, and maximize the difference between the vectors of low-associated graph nodes. The sample bipartite graph includes object-product pairs with sample labels. The sample label identifies whether the association relationship between the object and the product in the corresponding object-product pair has an interaction risk. Based on the coding sub-model and the initial prediction sub-model, the object-product pairs with sample labels in the sample bipartite graph are supervised and trained. The obtained prediction sub-model and the aforementioned coding sub-model can determine the recognition model for interaction risk identification.
[0029] Based on a multi-stage training method of first unsupervised training of the encoding sub-model and then supervised training of the prediction sub-model, a training process similar to semi-supervised is formed, which makes full use of a large amount of interactive behavior data without sample labels in the sample bipartite graph, and effectively improves the generalization ability of the recognition model; and by focusing risk identification on interactive behaviors, it makes full use of the objects and product combinations brought about by the diversity of interactive behaviors to expand sample labels, thereby increasing the number of available labeled samples in supervised training. Combined with the aforementioned unsupervised training, the possibility of overfitting of the recognition model is reduced when the number of sample labels is small, thereby improving the risk identification accuracy of the recognition model for interactive behaviors. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A schematic diagram of an application scenario of the method for determining a recognition model provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of a flow chart of a method for determining a recognition model provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of a recognition model provided in an embodiment of the present application;
[0034] Figure 4 A flowchart of a method for determining a recognition model provided in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of a device for determining a recognition model provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0039] In view of the fact that in the related art, in order to identify cheating behavior, a high number of positive and negative sample labels are required. If the model trained in the scenario with fewer positive and negative sample labels is prone to overfitting, resulting in a low recognition accuracy of cheating behavior, making it impossible to expand it to application scenarios with a smaller number of positive and negative sample labels. Based on this, the embodiments of the present application provide a method for determining a recognition model and a related device for improving the recognition accuracy of cheating behavior.
[0040] The method for determining the recognition model provided in the embodiment of the present application is based on artificial intelligence. Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.
[0041] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, mechatronics and other technologies. Artificial intelligence software technologies mainly include computer vision technology, speech processing technology, natural language processing technology, as well as machine learning / deep learning, autonomous driving, smart transportation and other major directions.
[0042] In the embodiments of the present application, the artificial intelligence technologies mainly involved include the above-mentioned machine learning / deep learning and other directions.
[0043] The method for determining the recognition model provided in the present application can be applied to a determination device that has the function of determining the recognition model for identifying cheating behavior, such as a terminal device and a server. Specifically, the terminal device can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device, a smart home appliance, etc., but is not limited thereto; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and the present application does not limit this.
[0044] The determining device may also have machine learning capabilities. Machine Learning (ML) is a multi-disciplinary interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0045] In the method for determining the recognition model provided in the embodiment of the present application, the artificial intelligence model used mainly involves the application of machine learning. Through the combination of unsupervised training and supervised training, the generalization of the recognition model is improved without increasing the number of samples, thereby improving the accuracy of identifying cheating behavior.
[0046] In order to facilitate understanding of the technical solution of the present application, the method for determining the recognition model provided in the embodiment of the present application is introduced below in combination with actual application scenarios.
[0047] See also Figure 1 , which is a schematic diagram of an application scenario of the method for determining the recognition model provided in the embodiment of the present application. Figure 1 In the application scenario shown, the aforementioned determination device is the server 100, and a recognition model is obtained through historical interaction behavior training, so as to identify whether there is a risk in the interaction behavior to be processed through the recognition model.
[0048] It should be noted that the object is the subject that performs the interactive behavior, such as the user, device, account, etc. that performs the behavior of downloading and activating the application (APP), liking the short video, etc. The product is the receptor for the object to perform the interactive behavior, such as APP, short video, etc. Some of the interactive behaviors in the history have sample labels, and the sample labels are used to identify whether the association between the object and the product has an interactive risk, such as the interactive behavior of the user downloading and activating the APP has a risk, and the behavior of the user liking the short video does not have an interactive risk, etc.
[0049] The server 100 determines a sample bipartite graph based on the historical interaction behavior of the object on the product. The sample bipartite graph includes graph nodes and association relationships, such as Figure 1 As shown, the node types of the graph nodes include object nodes such as vertex U and product nodes such as vertex V. The line between vertex U and vertex V is the association relationship between the object and the product based on historical interaction behaviors.
[0050] The server 100 first obtains the encoding sub-model through unsupervised training according to the sample bipartite graph, and then obtains the prediction sub-model through supervised training, and then obtains the recognition model including the encoding sub-model and the prediction sub-model, which are explained separately below.
[0051] Unsupervised training: Based on the sample bipartite graph, the initial node vector of the graph node is obtained through the initial encoding sub-model, and the first loss function is determined based on the association relationship and the initial node vector. Then, the initial encoding sub-model is unsupervisedly trained in the training direction of minimizing the similarity difference and maximizing the distinction difference to obtain the encoding sub-model. Compared with the sample labels, the number of historical interaction behaviors is larger, so the encoding sub-model obtained based on historical interaction behavior training has stronger generalization, and the node vector encoded by the encoding sub-model has higher accuracy in representing the node.
[0052] Supervised training: According to the encoding sub-model, the pair vectors of the object product pairs with sample labels in the sample bipartite graph are determined. According to the pair vectors, the risk prediction results of the object product pairs are determined through the initial prediction sub-model. The initial prediction sub-model is supervised and trained based on the difference between the risk prediction results and the sample labels (used to identify whether there is an interaction risk in the association relationship between the object product pairs) to obtain the prediction sub-model. The prediction sub-model is trained by the pair vector with higher accuracy, and the risk prediction results obtained by the prediction sub-model are more accurate.
[0053] The server 100 obtains a recognition model based on the encoding sub-model and the prediction sub-model. The recognition model can be used to identify the interaction risk of the interaction behavior to be processed and obtain an interaction risk identification result, such as whether the interaction behavior to be processed has interaction risk or does not have interaction risk.
[0054] Therefore, based on the multi-stage training method of first unsupervised training of the encoding sub-model and then supervised training of the prediction sub-model, a training process similar to semi-supervised training is formed, which makes full use of the large amount of interactive behavior data without sample labels in the sample bipartite graph, and effectively improves the generalization ability of the recognition model. In addition, by focusing risk identification on interactive behaviors, the objects and product combinations brought by the diversity of interactive behaviors are fully utilized to expand sample labels, which increases the number of labeled samples available during supervised training. Combined with the aforementioned unsupervised training, the possibility of overfitting of the recognition model is reduced when the number of sample labels is small, and the risk identification accuracy of the recognition model for interactive behaviors is improved.
[0055] In conjunction with the accompanying drawings, a method for determining a recognition model provided in an embodiment of the present application is introduced by taking the aforementioned determination device as a server as an example.
[0056] See also Figure 2 , which is a flow chart of a method for determining a recognition model provided in an embodiment of the present application. Figure 2 As shown, the method for determining the recognition model includes S201-S207.
[0057] S201: Determine a sample bipartite graph according to the historical interaction behavior of the object on the product.
[0058] The sample bipartite graph includes graph nodes and association relationships. Among them, graph nodes are a general term for object nodes and product nodes. Object nodes are used to identify objects, and product nodes are used to identify products. In the sample bipartite graph, the connection between object nodes and product nodes is called the association relationship between objects and products based on historical interaction behaviors, and some of the association relationships have sample labels. Sample labels are used to identify whether the corresponding association relationship has interaction risks. Objects and products connected by association relationships with sample labels are called object-product pairs.
[0059] The method for determining the recognition model provided by the present application obtains a coding sub-model through unsupervised training, obtains a prediction sub-model through supervised training, and thereby obtains a recognition model based on the coding sub-model and the prediction sub-model. The following describes the coding sub-model obtained through unsupervised training through S202-S204, and describes the prediction sub-model obtained through supervised training through S205-S206.
[0060] S202: According to the sample bipartite graph, an initial node vector of the graph node is obtained through an initial encoding sub-model.
[0061] In related technologies, tree models such as random forests, gradient boosting decision trees (GBDT), and anomaly detection models such as long short-term memory (LSTM) and isolation forests (iForest) only view the risk of an object from an individual dimension. For example, if a certain account is a black market account, the interaction between the object and the product is ignored, making it impossible for tree models and anomaly detection models to directly determine the risk of a certain behavior of the object. In the anti-cheating scenario of brushing volume, normal objects may inadvertently click on brushing videos or download brushing apps, and abnormal objects may also click on normal videos or download normal apps, resulting in a low recognition accuracy rate for cheating behavior.
[0062] Based on this, the present application obtains the initial node vectors of the graph nodes through the initial coding sub-model according to the sample bipartite graph, and the types of the initial node vectors include object node vectors for characterizing object nodes and product node vectors for characterizing products. Since the sample bipartite graph includes not only object nodes and product nodes, but also the association relationship between object nodes and product nodes, the initial coding sub-model can consider the interaction between objects and products, make full use of the large amount of interaction behavior data without sample labels in the sample bipartite graph, effectively improve the generalization ability of the coding sub-model, and make the node vector more accurate in representing the node, so as to improve the risk identification accuracy of the recognition model for the interaction behavior.
[0063] S203: Determine a first loss function according to the association relationship and the initial node vector.
[0064] The first loss function is used to identify the similarity difference between the initial node vector of the target graph node and the initial node vector of the associated node, and the distinction difference between the initial node vector of the graph node and the initial node vector of the non-associated node.
[0065] Among them, the target graph node is a graph node in the sample bipartite graph, which can be an object node or a product node. The associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node meets the association threshold and has a different node type from the target graph node. The non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not meet the association threshold and has a different node type from the target graph node. For example, if the type of the target graph node is an object node, the associated node is a product node that meets the association threshold with the target graph node, and the non-associated node is a product node that does not meet the association threshold with the target graph node. The embodiment of the present application does not specifically limit the size of the association threshold, and those skilled in the art can set it according to actual needs.
[0066] As a possible implementation method, an object node in the sample bipartite graph is used as a target graph node (hereinafter referred to as the target object node for convenience of explanation) for example. The first loss function is used to identify the similarity difference between the initial node vector of the target object node and the initial node vector of the associated product node, the distinction difference between the initial node vector of the associated product node and the initial node vector of the non-associated object node, and the distinction difference between the initial node vector of the target object node and the initial node vector of the non-associated product node.
[0067] Among them, the associated product node is one or more of the product nodes in the sample bipartite graph whose step length with the target object node is less than the preset step length; the non-associated object node is the negative object node of the associated product node in the sample bipartite graph, and the negative object node is the object node in the sample bipartite graph that has no association relationship with the associated product node; the non-associated product node is the negative product node of the target object node in the sample bipartite graph, and the negative product node is the product node in the sample bipartite graph that has no association relationship with the target object node. Among them, the step length of a step refers to from one type of graph node to another type of graph node through an association relationship. The embodiment of the present application does not specifically limit the size of the preset step length, and those skilled in the art can set it according to actual needs.
[0068] For example, the first loss function can be seen in formula (1):
[0069]
[0070] Among them, L unsup is the value of the first loss function, M is the number of sample bipartite graphs, σ is the Sigmoid function, tanh is the tanh activation function, is the target object node u obtained from the kth sample bipartite graph k The initial node vector of is the associated product node i k The initial node vector, P n is a negative sampling distribution, Q represents the number of negative samples, E is the expectation, For non-associated object node u kn The initial node vector of For non-associated product node i kn The initial node vector, v and W s are the model parameters that need to be adjusted for unsupervised training.
[0071] It should be noted that the associated product node i k It can be done by starting from the target object node u in the k-th sample bipartite graph k Start with a random walk with a fixed step size.
[0072] S204: Using the first loss function, unsupervised training is performed on the initial encoding sub-model based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference to obtain the encoding sub-model.
[0073] In the process of unsupervised training of the initial encoding sub-model, the encoding sub-model is obtained by minimizing the similarity difference between the target graph node and the initial node vector of the associated node in the first loss function and maximizing the difference between the initial node vector of the graph node and the non-associated node in the first loss function. s Equal model parameters, so that L unsup Minimum, L unsup The model parameters corresponding to the minimum are determined as the model parameters of the initial encoding sub-model, thereby obtaining the encoding sub-model.
[0074] Therefore, the encoding sub-model obtained through unsupervised training of the first loss function can minimize the difference between vectors of highly correlated graph nodes when determining node vectors, and maximize the difference between vectors of low-correlated graph nodes, so that the node vector represents the node more accurately. In addition, through unsupervised training, the number of sample labels is not high, which can expand the application scenarios of the recognition model while ensuring recognition accuracy.
[0075] S205: Determine the pair vectors of the object product pairs with the sample labels in the sample bipartite graph according to the encoding sub-model.
[0076] From the above, it can be seen that part of the association relationship between the object node and the product node in the sample bipartite graph has a sample label, which is used to identify whether the association relationship has an interaction risk. The object and product connected by the association relationship with the sample label become an object-product pair.
[0077] According to the encoding sub-model, the pair vector of the object product pair with the sample label can be determined. For example, the object product pair is input into the encoding sub-model, the object node vector and the product node vector are obtained respectively, and the pair vector corresponding to the object product pair is obtained by concatenation.
[0078] S206: According to the pair vector of the object product pair, the risk prediction result of the object product pair is determined through the initial prediction sub-model, and the initial prediction sub-model is supervised and trained based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model.
[0079] The vector is input into the initial prediction sub-model, and the risk prediction result is obtained through the initial prediction sub-model. The model parameters of the initial prediction sub-model are adjusted based on the difference between the risk prediction result and the sample label, that is, the initial prediction sub-model is supervised and trained to obtain the prediction sub-model. Therefore, by focusing risk identification on interactive behaviors, the objects and product combinations brought about by the diversity of interactive behaviors are fully utilized to expand sample labels, the number of labeled samples available during supervised training is increased, and the possibility of overfitting of the recognition model is reduced when the number of sample labels is small, thereby improving the recognition accuracy of the recognition model.
[0080] S207: Determine, according to the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks for the interaction behavior to be processed.
[0081] The encoding sub-model obtained through unsupervised training and the prediction sub-model obtained through supervised training are used to obtain a recognition model, which can be used to identify whether there is an interaction risk in the interaction behavior to be processed.
[0082] It can be seen from the above technical solution that the sample bipartite graph determined based on the historical interaction behavior of the object on the product includes object nodes, product nodes, and the association relationship between the object and the product. The initial node vector representing the graph node is obtained through the initial coding sub-model, and the first loss function for unsupervised training of the initial coding sub-model is determined according to the association relationship of the graph node in the sample bipartite graph and the initial node vector; the coding sub-model obtained by the unsupervised training of the first loss function can minimize the difference between the vectors of highly associated graph nodes when determining the node vector, and maximize the difference between the vectors of low-associated graph nodes. The sample bipartite graph includes object-product pairs with sample labels. The sample label identifies whether the association relationship between the object and the product in the corresponding object-product pair has an interaction risk. Based on the coding sub-model and the initial prediction sub-model, the object-product pairs with sample labels in the sample bipartite graph are supervised and trained. The obtained prediction sub-model and the aforementioned coding sub-model can determine the recognition model for interaction risk identification.
[0083] Based on a multi-stage training method of first unsupervised training of the encoding sub-model and then supervised training of the prediction sub-model, a training process similar to semi-supervised is formed, which makes full use of a large amount of interactive behavior data without sample labels in the sample bipartite graph, and effectively improves the generalization ability of the recognition model; and by focusing risk identification on interactive behaviors, it makes full use of the objects and product combinations brought about by the diversity of interactive behaviors to expand sample labels, thereby increasing the number of available labeled samples in supervised training. Combined with the aforementioned unsupervised training, the possibility of overfitting of the recognition model is reduced when the number of sample labels is small, thereby improving the risk identification accuracy of the recognition model for interactive behaviors.
[0084] In one possible implementation, the cheating behavior performed by the object on the product is separated in time. For example, user A cheats by liking short video A today, and cheats by liking short video B tomorrow. Moreover, as the number of historical interactive behaviors increases, the associations connected to a graph node in the sample bipartite graph also gradually increase. In order to improve the accuracy of the node vector representing the graph node, multiple sample bipartite graphs can be constructed according to time. The following is a specific introduction through S301-S308.
[0085] S301: Divide the historical interaction behavior into M sub-historical interaction behaviors according to a fixed duration.
[0086] Since cheating behavior is fragmented in time, the historical interaction behavior can be divided into multiple sub-historical interaction behaviors according to a fixed duration, such as M sub-historical interaction behaviors. The embodiment of the present application does not specifically limit the fixed duration, and those skilled in the art can set it according to actual needs, such as a fixed duration of 24 hours.
[0087] S302: Determine M sample bipartite graphs corresponding one-to-one to the M sub-history interaction behaviors.
[0088] After obtaining M sub-history interaction behaviors, the corresponding sample bipartite graphs are determined one by one according to each sub-history interaction behavior, and M sample bipartite graphs are obtained. The sample bipartite graph can be expressed as G train =[G1,G2,…,G M ], G M =(U,I,E). Where U is the object node, which is represented by U = {u1,u2,…,u D}, I is the product node, expressed as I = {i1,i2,…,i C}, E is the association relationship, expressed as E = {e1, e2, ..., e F},e f =(u d ,i c ).
[0089] As a possible implementation method, historical interaction behaviors can be deduplicated according to a fixed duration, and the deduplicated historical interaction behaviors can be divided into M sub-historical interaction behaviors. For example, historical interaction behaviors can be deduplicated by day, and the deduplicated historical interaction behaviors can be divided into M sub-historical interaction behaviors by day, so that M sample bipartite graphs corresponding to each historical interaction behavior can be determined one by one, and each sample bipartite graph is used to represent the historical interaction behavior between the object and the product within one day.
[0090] S303: The M sample bipartite graphs are respectively input into one-to-one corresponding M initial coding sub-models to obtain initial node vectors of graph nodes of the M sample bipartite graphs.
[0091] Each sample has two Figure 1 One corresponds to an initial coding sub-model, and each sample bipartite graph is input into the corresponding initial coding sub-model to obtain the initial node vector of the graph node of the sample bipartite graph.
[0092] Therefore, based on the temporal fragmentation of historical interaction behaviors, multiple sample bipartite graphs are constructed according to fixed durations. Each sample bipartite graph does not affect each other in time. Through its corresponding initial coding sub-model, the initial node vector obtained can better represent the corresponding node. For example, object A mainly plays video A continuously to cheat, and object A mainly plays video B continuously to cheat tomorrow. Object A today has different characteristics from object A tomorrow. The node vectors corresponding to object A today and object A tomorrow should be different. If they are represented separately, the node vector obtained will be more accurate.
[0093] In addition, splitting historical interaction behaviors into multiple sub-historical interaction behaviors can obtain more effective historical interaction behaviors from limited historical interaction behaviors. For example, object A interacts with product B every day. If there is only one sample bipartite graph, although there are multiple historical interactions, there is only one association relationship in the sample bipartite graph. If it is split by day to construct multiple sample bipartite graphs, there can be an association relationship in each sample bipartite graph, making the historical interaction behavior more effective and increasing the generalization of the encoding sub-model.
[0094] S304: Obtain M encoding sub-models through unsupervised training.
[0095] The unsupervised training process is: determine the first loss function according to the association relationship and the initial node vector, and perform unsupervised training on the initial encoding sub-model based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference through the first loss function to obtain the encoding sub-model. For the relevant parts, refer to the aforementioned S203 and S204, which will not be repeated here.
[0096] S305: Fix the model parameters of the coding sub-model.
[0097] S306: Determine the pair vectors of the object product pairs with the sample labels in the sample bipartite graph according to the encoding sub-model.
[0098] After the encoding sub-model is obtained, the model parameters of the encoding sub-model are fixed, that is, a pair of vectors is obtained through the trained encoding sub-model, and the accuracy of the pair of vectors is relatively high.
[0099] S307: According to the pair vector, the risk prediction result of the object product pair is determined through the initial prediction sub-model, and the initial prediction sub-model is supervised and trained based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model.
[0100] S308: Determine a recognition model based on the M encoding sub-models and the prediction sub-models.
[0101] Therefore, by dividing the historical interaction behaviors to construct multiple sample bipartite graphs, multiple encoding sub-models can be trained to obtain a recognition model including multiple encoding sub-models and one prediction sub-model.
[0102] The embodiment of the present application does not specifically limit the method of obtaining the recognition model based on the M coding sub-models and the prediction sub-model, and those skilled in the art can set it according to actual needs. For example, by sharing model parameters through the M coding sub-models, the model parameters of the M coding sub-models are made the same, and the recognition model includes one of the M coding sub-models and the prediction sub-model. In actual application, the object generates a to-be-processed interactive behavior on the product, and the to-be-processed interactive behavior is input into the recognition model to determine whether the to-be-processed interactive behavior has an interactive risk.
[0103] As a possible implementation method, supervised training can be performed using a second loss function, which is used to identify the difference between the risk prediction result and the sample label. The second loss function can be found in formula (2):
[0104]
[0105] Among them, L sup is the value of the second loss function, N k is the number of object-product pairs with sample labels in the k-th sample bipartite graph, is the object node u k With product node i k The sample labels of the object product pairs, is the object node u k With product node i k Inter-correlation relationship k The risk label, For the association relationship k The risk probability can be expressed as formula (3):
[0106]
[0107] Among them, MLP is the abbreviation of Multilayer Perceptron, which is a prediction sub-model. For the association relationship kWhether there is a label can be expressed as formula (4):
[0108]
[0109] It should be noted that, during the supervised training of the initial prediction sub-model, the model parameters of the encoding sub-model can be fixed, and only the initial prediction sub-model can be adjusted. As a possible implementation method, the model parameters of the encoding sub-model can also be adjusted during the supervised training of the initial prediction sub-model. Specifically, the encoding sub-model and the prediction sub-model are adjusted based on the joint loss function to obtain the adjusted encoding sub-model and prediction sub-model, and the recognition model is determined based on the adjusted encoding sub-model and prediction sub-model.
[0110] The joint loss function is determined based on the first loss function and the second loss function. For example, the joint loss function can be shown as formula (5):
[0111] L=L unsup +λL sup Formula (5)
[0112] Among them, L is the value of the joint loss function, L unsup is the first loss function, L sup is the second loss function, and λ is the learning rate. As a possible implementation method, the learning rate can be ensured to be small enough so that the encoding sub-model can be fine-tuned while the prediction sub-model is adjusted. Through joint training, the recognition model can take into account the whole and improve the recognition accuracy.
[0113] Because in related technologies, identification methods such as tree models and anomaly detection models only view the risk of objects from an individual dimension, ignoring the interactive behavior between objects and products, and unable to directly determine the risk of an object's behavior. In the anti-cheating scenario, normal objects may inadvertently click on videos or download apps that increase the volume, and abnormal objects may also click on normal videos or download normal apps, resulting in a low accuracy rate in identifying cheating behaviors. Based on this, in order to reduce the possibility of misjudgment, an embodiment of the present application provides a method for determining sample labels for interactive behaviors between objects and products, as follows:
[0114] A1: Obtain object labels and product labels in historical interaction behaviors.
[0115] Among them, the object label is used to identify whether the object is abnormal, and the product label is used to identify whether the product is abnormal. As a possible implementation method, 0 and 1 can be used to indicate whether it is abnormal, thereby obtaining the object label y u ∈{0,1} and product label y i∈{0,1}, 0 represents the negative sample label (normal), and 1 represents the positive sample label (abnormal).
[0116] A2: Determine sample labels of object-product pairs based on object labels and product labels.
[0117] The sample label corresponding to the association between the object and the product can be expressed as y e ,ye∈{0,1}, 0 represents the negative sample label (normal), and 1 represents the positive sample label (abnormal).
[0118] Among them, for the target object-product pair consisting of the object corresponding to the object label and the product corresponding to the product label, when both the object label and the product label are normal, the sample label of the target object-product pair has no interaction risk; when both the object label and the product label are abnormal, the sample label of the target object-product pair has interaction risk.
[0119] Therefore, by determining the sample label through the interaction between the object and the product, the risk of a certain interaction behavior of the object can be determined later. Moreover, by marking the association between an object with a normal object label and a product with a normal product label as normal, and marking the association between an object with an abnormal object label and a product with an abnormal product label as abnormal, the possibility of misjudging that a normal user may inadvertently click on a fake video, or that an abnormal user may click on a normal video, can be reduced, thereby improving the accuracy of interaction risk identification.
[0120] Furthermore, an embodiment of the present application provides a method for determining an object label and a product label, which is described below through B1-B4.
[0121] B1: Obtain object labels in historical interaction behaviors.
[0122] This application does not specifically limit the method for determining the object label, and those skilled in the art can set it according to actual needs.
[0123] For example, in historical interaction behaviors, if an object is hit by more than 4 weak expert rules or more than 2 strong expert rules, the object label corresponding to the object is abnormal. If the object is not hit by any expert rule and is in the object whitelist library, the object label corresponding to the object is normal. In addition, other objects that are not identified as abnormal or normal have no labels.
[0124] It should be noted that expert rules are anti-cheating strategies formulated based on business scenarios, using accounts, devices or Internet Protocol (IP) addresses, as well as the frequency and path of user operations. They can be divided into strong expert rules and weak expert rules according to the degree of impact on cheating behavior.
[0125] B2: Determine, according to the object labels, a first object identified as normal and a second object identified as abnormal in the historical interaction behavior.
[0126] As can be seen from the foregoing, objects can be divided into three types: first objects with normal object labels, second objects with abnormal object labels, and objects without labels.
[0127] B3: Determine the set of objects associated with the product in historical interaction behaviors.
[0128] A product can interact with one or more objects, so the object set associated with the product may include at least one object, and each product can determine the object set associated with it.
[0129] B4: Determine a product label corresponding to the product according to the first object and the second object in the object set.
[0130] The embodiments of the present application do not specifically limit the specific method of determining the product label according to the object label, and those skilled in the art can set it according to actual needs.
[0131] For example, if the number of first objects in the object set meets the first preset condition, the product label corresponding to the product is normal; if the number of second objects in the object set meets the second preset condition, the product label corresponding to the product is abnormal. For example, if the number of second objects in the object set associated with the product exceeds 1000 and the proportion of second objects in the object set exceeds 10%, the product label of the product is abnormal. If the object set associated with the product only includes the first object but not the second object, the product label of the product is normal. As a possible implementation method, if the object that interacts with the product is not hit by any expert rule, the product can also be identified as normal.
[0132] In the related art, community discovery algorithms such as Label Propagation Algorithm (LPA) ignore the attributes of graph nodes during the model construction process, such as failing to fully utilize the characteristic attributes of accounts and devices and existing risk profiles and labels, resulting in low accuracy in identifying cheating behaviors. Based on this, the present application embodiment provides a specific implementation method of S202, that is, obtaining the initial node vector of the graph node through the initial coding submodel according to the sample bipartite graph, as follows:
[0133] S2021: Determine the object characteristics of the object node according to the object interaction parameters corresponding to the object node in the sample bipartite graph in the historical interaction behavior; determine the product characteristics of the product node according to the product response parameters corresponding to the product node in the historical interaction behavior in the sample bipartite graph.
[0134] As a possible implementation, the object interaction parameter includes at least one of the total number of objects in a fixed network segment belonging to the same Internet Protocol (IP), the total number of interactions between the object and the product, and the maximum number of downloads in the historical interaction of the object divided into buckets according to different products. The product response parameter includes at least one of the maximum number of downloads in the historical interaction of the product divided into buckets according to different objects, the maximum number of downloads in the historical interaction of the product divided into buckets according to different fixed network segments of the Internet Protocol, the exposure download ratio of the product, and the download and installation ratio of the product.
[0135] Taking the scenario of users downloading APP as an example, if the sample bipartite graph is obtained by dividing by day, the object interaction parameter can be one or more combinations of the number of users with the same Class C IP address on the same day, the total number of downloads of APP by users on the same day, and the maximum number of downloads by APP buckets in the APP downloads of users on the same day. It can also include the total number of IPs on the same day, the maximum number of IPs bucketed by APP, the maximum number of search terms for downloading the same APP, the number of application market versions corresponding to users on the same day, the total exposure download ratio of APP on the same day, the total download and installation ratio of the same day, and the maximum download period of the download behavior by hour buckets on the same day. The product response parameter can be one or more combinations of the maximum number of downloads by user buckets in the APP download behavior on the same day, the maximum number of downloads by Class C IP address buckets in the APP download behavior on the same day, and the exposure download ratio of the APP on the same day. It can also include the maximum number of downloads by device screen size buckets in the APP download behavior on the same day, the maximum number of downloads by device brand buckets in the APP download behavior on the same day, the maximum number of downloads by hour buckets in the APP download behavior on the same day, and the download and installation ratio of the APP on the same day.
[0136] S2022: According to the object features of the object node and the product features of the product node, an initial node vector of the graph node is obtained through an initial coding sub-model.
[0137] Therefore, in this embodiment, object features and product features are generated by making full use of the attributes of graph nodes, and then the object features and product features are optimized through the initial encoding sub-model, that is, the difference between vectors of highly correlated graph nodes is minimized, and the difference between vectors of low-correlated graph nodes is maximized, so as to obtain the initial node vector, thereby improving the accuracy of the initial node vector in representing the graph nodes, and further improving the accuracy of the recognition model.
[0138] As a possible implementation, the embodiment of the present application provides a specific implementation of S207, that is, determining a recognition model for identifying interaction risks of the interaction behavior to be processed according to the encoding sub-model and the prediction sub-model, as follows:
[0139] S2071: Obtain a test set corresponding to the historical interaction behavior.
[0140] The above-mentioned historical interaction behaviors for determining the sample bipartite graph can constitute a training set, and the first time interval involving the interaction behaviors to be tested included in the test set is adjacent to the second time interval involved in the historical interaction behaviors included in the training set, and the first time interval is later than the second time interval.
[0141] As a possible implementation method, the interaction behaviors generated by the subject to the product during January-April can be obtained as historical interaction behaviors to form a training set, and the interaction behaviors generated by the subject to the product during May can be used as test interaction behaviors to form a test set.
[0142] S2072: Determine the recognition model to be tested according to the encoding sub-model and the prediction sub-model.
[0143] S2073: After performing a risk identification assessment test on the identification model to be tested based on the test set, determine the identification model according to the test results.
[0144] The object labels, product labels and sample labels corresponding to the test interaction behaviors included in the test set can be determined, duplicates can be removed according to a fixed time length, and a bipartite graph of test samples can be constructed according to a fixed time length, which can be expressed as G test =[G1,G2,…,G T ], T represents the number of bipartite graphs of test samples.
[0145] It should be noted that the relevant processing of the test set can refer to the training set and will not be repeated here.
[0146] The embodiments of the present application do not specifically limit the specific method of determining the recognition model according to the test results, and those skilled in the art can set it according to actual needs. For example, if the test results indicate that the accuracy of the recognition model to be tested reaches the accuracy threshold, the recognition model to be tested is used as the recognition model.
[0147] Therefore, in this embodiment, the recognition model to be tested can be tested by using a test set that occurs later, is adjacent in time, and belongs to the same application scenario as the training set, which can better test the accuracy of the recognition model to be tested, thereby ensuring the accuracy of the recognition model.
[0148] As a possible implementation, in S207, i.e., after determining the recognition model for identifying the interaction risk of the interaction behavior to be processed according to the encoding sub-model and the prediction sub-model, the embodiment of the present application further provides a method for using the recognition model, which is as follows:
[0149] S208: Obtain the interaction behavior to be processed generated by the object on the product.
[0150] S209: Input the interaction behavior to be processed into the recognition model to determine whether the interaction behavior to be processed has an interaction risk.
[0151] Therefore, in this embodiment, after the recognition model is obtained, the interaction behavior that needs to be identified for interaction risk is input into the recognition model as the interaction behavior to be processed, and whether the interaction behavior to be processed has interaction risk is determined by the recognition model.
[0152] As a possible implementation method, in S207, that is, after determining the recognition model for identifying the interaction risk of the interaction behavior to be processed according to the encoding sub-model and the prediction sub-model, the embodiment of the present application further provides a method for updating the recognition model, which is as follows:
[0153] S210: Obtain the interactive behavior to be updated generated by the object on the product.
[0154] The third time interval involved in the interaction behavior to be updated is later than the second time interval involved in the historical interaction behavior included in the training set.
[0155] S211: Determine the updated sample bipartite graph according to the interaction behavior to be updated.
[0156] S212: Update model parameters of the recognition model according to the updated sample bipartite graph.
[0157] Therefore, in this embodiment, by continuously updating the interactive behaviors required for training the recognition model, the model parameters of the recognition model are continuously updated, and the recognition model is regularly and automatically updated, thereby improving the accuracy of interactive behavior recognition and raising the cheating threshold for black industries in the anti-cheating scenario.
[0158] It should be noted that the recognition model provided in the embodiment of the present application can be applied to various anti-cheating scenarios for product volume brushing, such as search ranking brushing in the mobile application market, video playback brushing, etc. Figure 3 and Figure 4 , taking the cheating scenario of users downloading APP to increase the number of users as an example to illustrate.
[0159] See also Figure 3 , which is a schematic diagram of a recognition model provided in an embodiment of the present application.
[0160] like Figure 3 As shown, the recognition model includes a coding layer, a concatenation layer, a fully connected layer and an adjustment layer. M sample bipartite graphs can be obtained by the method described in S301 and S302, such as Figure 3 The sample bipartite graph region shown.
[0161] The sample bipartite graph region is connected to the coding layer, which includes M initial coding sub-models. The M sample bipartite graphs included in the sample bipartite graph region are respectively input into the one-to-one corresponding M initial coding sub-models, and the M coding sub-models are obtained through unsupervised training in the manner of S202-S204.
[0162] According to the encoding sub-model, the object node vector and product node vector corresponding to the object-product pair with the sample label in the sample bipartite graph are determined, the object node vector and the product node vector are input into the splicing layer, and the pair vector is obtained through the splicing layer.
[0163] The vector pair is input to a fully connected layer, which includes the initial prediction sub-model described above, and supervised training is performed in the manner of S205-S206 to obtain a prediction sub-model. The risk prediction result can be obtained through the prediction sub-model.
[0164] The risk prediction results are input to the adjustment layer, such as adjusting the risk prediction results to risk probability values through the Sigmoid function. For example, using the trained recognition model, the risk label and risk probability value p∈[0,1] of the test set are predicted. Since the proportion of negative samples is much larger than that of positive samples, the risk probability p needs to be adjusted, and the risk probability value is converted into a risk score∈[0,100].
[0165] See also Figure 4 , which is a flow chart of a method for determining an identification model provided in an embodiment of the present application.
[0166] S401: Determine sample labels according to the interaction behavior.
[0167] Obtain the interactive behaviors of users downloading APPs from January to May, and determine the sample labels according to the aforementioned B1-B4 and A1-2.
[0168] S402: Divide the interaction behaviors in chronological order to obtain a training set and a test set.
[0169] The interactive behaviors of users who downloaded the APP from January to April were determined as the training set, and the interactive behaviors of users who downloaded the APP in May were determined as the test set.
[0170] S403: Construct a sample bipartite graph by day based on the training set.
[0171] The sample bipartite graph required for training can be obtained in the manner described in S301-S302.
[0172] S404: Obtain an encoding sub-model through unsupervised training.
[0173] The encoding sub-model can be obtained through the method of S202-S204.
[0174] S405: Obtain a prediction sub-model through supervised training.
[0175] The prediction sub-model can be obtained through the method of S205-S206.
[0176] S406: Jointly fine-tune the encoding sub-model and the prediction sub-model.
[0177] The encoding sub-model and the prediction sub-model can be jointly fine-tuned using the aforementioned joint loss function as the training objective.
[0178] S407: Construct a bipartite graph of test samples by day based on the test set.
[0179] The test sample bipartite graph required for the test can be obtained in the manner described in S301 - S302 .
[0180] S408: Obtain a recognition model.
[0181] The recognition model can be obtained through S2072-S2073.
[0182] The comparison between the test results obtained in this embodiment and the test results of other methods is shown in Table 1.
[0183] Table 1
[0184]
[0185]
[0186] Therefore, in the cheating scenario where users download APPs to increase the number of downloads, compared with the GBDT model, the D-Cube algorithm (Dense-Block Detection in Terabyte-Scale Tensors, D-Cube) model for mining mega-density subgraphs, the Bipartite GraphSAGE model, and the Inductive Matrix Completion Based on Graph Neural Networks (IGMC) model, the recognition model of the embodiment of the present application performs better when there are only a small number of sample labels, which proves the effectiveness of the recognition model.
[0187] In view of the method for determining a recognition model provided in the above-mentioned embodiment, an embodiment of the present application also provides a device for determining a recognition model.
[0188] See also Figure 5 , which is a schematic diagram of a device for determining a recognition model provided in an embodiment of the present application. Figure 5As shown, the recognition model determination device 500 includes: a first determination unit 501, a second determination unit 502, a third determination unit 503, an unsupervised training unit 504, a fourth determination unit 505, a supervised training unit 506 and a fifth determination unit 507;
[0189] The first determining unit 501 is used to determine a sample bipartite graph according to the historical interaction behavior generated by the object on the product, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior;
[0190] The second determining unit 502 is used to obtain the initial node vector of the graph node through the initial coding sub-model according to the sample bipartite graph;
[0191] The third determination unit 503 is used to determine a first loss function according to the association relationship and the initial node vector; wherein, for the target graph node in the sample bipartite graph, the first loss function is used to identify the similarity difference between the initial node vector of the target graph node and the initial node vector of the associated node, and the distinction difference between the initial node vector of the graph node and the initial node vector of the non-associated node, the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node meets the association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not meet the association threshold and has a different node type from the target graph node;
[0192] The unsupervised training unit 504 is used to perform unsupervised training on the initial encoding sub-model based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference through the first loss function to obtain the encoding sub-model;
[0193] The fourth determining unit 505 is used to determine the pair vector of the object-product pair with the sample label in the sample bipartite graph according to the encoding sub-model, wherein the sample label is used to identify whether the association relationship between the object and the product in the object-product pair has an interaction risk;
[0194] The supervised training unit 506 is used to determine the risk prediction result of the object product pair through the initial prediction sub-model according to the pair vector, and perform supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model;
[0195] The fifth determining unit 507 is used to determine, according to the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks for the interaction behavior to be processed.
[0196] As a possible implementation manner, the first determining unit 501 is configured to:
[0197] Dividing the historical interaction behavior into M sub-historical interaction behaviors according to a fixed duration;
[0198] Determine M sample bipartite graphs corresponding one-to-one to the M sub-history interaction behaviors;
[0199] The second determining unit 502 is configured to:
[0200] Inputting the M sample bipartite graphs into M initial coding sub-models in one-to-one correspondence respectively, to obtain initial node vectors of graph nodes of the M sample bipartite graphs;
[0201] The fifth determining unit 507 is configured to:
[0202] The recognition model is determined according to M encoding sub-models and the prediction sub-model, wherein the M encoding sub-models are obtained by the M initial encoding sub-models respectively through the unsupervised training.
[0203] As a possible implementation, the recognition model determination device 500 further includes a label determination unit, which is used to:
[0204] Obtaining an object tag and a product tag in the historical interaction behavior, wherein the object tag is used to identify whether the object is abnormal, and the product tag is used to identify whether the product is abnormal;
[0205] The sample label of the object-product pair is determined according to the object label and the product label; wherein, for a target object-product pair consisting of the object corresponding to the object label and the product corresponding to the product label; when the object label and the product label are both normal, the sample label of the target object-product pair has no interaction risk, and when the object label and the product label are both abnormal, the sample label of the target object-product pair has interaction risk.
[0206] As a possible implementation, the recognition model determination device 500 further includes a label determination unit, which is used to:
[0207] Obtaining object labels in the historical interaction behavior;
[0208] Determine, according to the object tags, a first object identified as normal and a second object identified as abnormal in the historical interaction behavior;
[0209] Determine a set of objects associated with the product in the historical interaction behavior;
[0210] The product label corresponding to the product is determined according to the first object and the second object in the object set.
[0211] As a possible implementation manner, the second determining unit 502 is configured to:
[0212] Determine the object characteristics of the object node according to the object interaction parameters corresponding to the object node in the sample bipartite graph in the historical interaction behavior; determine the product characteristics of the product node according to the product response parameters corresponding to the product node in the sample bipartite graph in the historical interaction behavior;
[0213] According to the object features and the product features, the initial node vectors of the graph nodes are obtained through the initial coding sub-model.
[0214] As a possible implementation, the object interaction parameter includes at least one of the total number of objects in a fixed network segment belonging to the same Internet protocol, the total number of interaction behaviors between the object and the product, and the maximum number of downloads in buckets according to different products in the historical interaction behaviors of the object;
[0215] The product response parameters include at least one of the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to different objects, the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to fixed network segments of different Internet protocols, the product's exposure-to-download ratio, and the product's download-to-install ratio.
[0216] As a possible implementation manner, in the process of performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model, the recognition model determination device 500 further includes a fixing unit for:
[0217] The model parameters of the encoding sub-model are fixed.
[0218] As a possible implementation, the supervised training unit 506 is used to:
[0219] The encoding sub-model and the prediction sub-model are adjusted based on a joint loss function to obtain the adjusted encoding sub-model and the prediction sub-model; the joint loss function is determined based on the first loss function and a second loss function, and the second loss function is used to identify the difference between the risk prediction result and the sample label;
[0220] The fifth determining unit 507 is configured to:
[0221] The recognition model is determined according to the adjusted encoding sub-model and the prediction sub-model.
[0222] As a possible implementation, the recognition model determination device 500 further includes an acquisition unit, which is used to:
[0223] Acquire a test set corresponding to the historical interaction behavior, wherein a first time interval involved in the interaction behavior to be tested included in the test set is adjacent to a second time interval involved in the historical interaction behavior, and the first time interval is later than the second time interval;
[0224] The fifth determining unit 507 is configured to:
[0225] Determining a recognition model to be tested according to the encoding sub-model and the prediction sub-model;
[0226] After performing a risk identification assessment test on the identification model to be tested based on the test set, the identification model is determined according to the test result.
[0227] As a possible implementation, the recognition model determination device 500 further includes an application unit, which is used to:
[0228] Obtaining a pending interactive behavior generated by the object on the product;
[0229] The interaction behavior to be processed is input into the recognition model to determine whether the interaction behavior to be processed has an interaction risk.
[0230] As a possible implementation, the recognition model determination device 500 further includes an updating unit, which is used to:
[0231] Acquire an interactive behavior to be updated generated by the object on the product, wherein a third time interval involved in the interactive behavior to be updated is later than a second time interval involved in the historical interactive behavior;
[0232] Determine an updated sample bipartite graph according to the interaction behavior to be updated;
[0233] The model parameters of the recognition model are updated according to the updated sample bipartite graph.
[0234] It can be seen from the above technical solution that the sample bipartite graph determined based on the historical interaction behavior of the object on the product includes object nodes, product nodes, and the association relationship between the object and the product. The initial node vector representing the graph node is obtained through the initial coding sub-model, and the first loss function for unsupervised training of the initial coding sub-model is determined according to the association relationship of the graph node in the sample bipartite graph and the initial node vector. The coding sub-model obtained by the unsupervised training of the first loss function can minimize the difference between the vectors of highly associated graph nodes when determining the node vector, and maximize the difference between the vectors of low-associated graph nodes. The sample bipartite graph includes object-product pairs with sample labels. The sample label identifies whether the association relationship between the object and the product in the corresponding object-product pair has an interaction risk. Based on the coding sub-model and the initial prediction sub-model, the object-product pairs with sample labels in the sample bipartite graph are supervised and trained. The obtained prediction sub-model and the aforementioned coding sub-model can determine the recognition model for interaction risk identification.
[0235] Based on a multi-stage training method of first unsupervised training of the encoding sub-model and then supervised training of the prediction sub-model, a training process similar to semi-supervised is formed, which makes full use of a large amount of interactive behavior data without sample labels in the sample bipartite graph, effectively improving the generalization ability of the recognition model. Moreover, by focusing risk identification on interactive behaviors, the objects and product combinations brought about by the diversity of interactive behaviors are fully utilized to expand sample labels, thereby increasing the number of available labeled samples in supervised training. Combined with the aforementioned unsupervised training, the possibility of overfitting of the recognition model is reduced when the number of sample labels is small, thereby improving the risk identification accuracy of the recognition model for interactive behaviors.
[0236] The present application also provides a computer device, which is the computer device described above. The computer device can be a server or a terminal device. The aforementioned recognition model determination device can be built into the server or the terminal device. The computer device provided by the present application will be introduced from the perspective of hardware entity. Figure 6 The following is a schematic diagram of the server structure. Figure 7 Shown is a schematic diagram of the structure of the terminal equipment.
[0237] See also Figure 6, which is a schematic diagram of a server structure provided in an embodiment of the present application. The server 1400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1422 and memory 1432, one or more application programs 1442 or storage media 1430 (such as one or more massive storage devices) for data 1444. Among them, the memory 1432 and the storage medium 1430 may be short-term storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the CPU 1422 may be configured to communicate with the storage medium 1430 to execute a series of instruction operations in the storage medium 1430 on the server 1400.
[0238] The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and / or one or more operating systems 1441, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0239] The steps performed by the server in the above embodiment can be based on the Figure 6 The server structure shown.
[0240] The CPU 1422 is used to perform the following steps:
[0241] The historical interaction behavior generated by the root object on the product determines a sample bipartite graph, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior;
[0242] According to the sample bipartite graph, obtaining the initial node vector of the graph node through the initial encoding sub-model;
[0243] A first loss function is determined according to the association relationship and the initial node vector; wherein, for a target graph node in the sample bipartite graph, the first loss function is used to identify a similarity difference between the initial node vector of the target graph node and the initial node vector of an associated node, and a distinctiveness difference between the initial node vector of the graph node and the initial node vector of a non-associated node, wherein the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node satisfies an association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not satisfy the association threshold and has a different node type from the target graph node;
[0244] By using the first loss function, the initial encoding sub-model is subjected to unsupervised training based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference, so as to obtain the encoding sub-model;
[0245] Determine, according to the encoding sub-model, a pair vector of an object-product pair having a sample label in the sample bipartite graph, wherein the sample label is used to identify whether an association relationship between an object and a product in the object-product pair has an interaction risk;
[0246] According to the pair vector, determining the risk prediction result of the target product pair through an initial prediction sub-model, and performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain a prediction sub-model;
[0247] An identification model for identifying interaction risks for the interaction behavior to be processed is determined according to the encoding sub-model and the prediction sub-model.
[0248] Optionally, the CPU 1422 may also execute the method steps of any specific implementation of the method for determining the recognition model in the embodiments of the present application.
[0249] See also Figure 7 , which is a structural diagram of a terminal device provided for an embodiment of the present application. Figure 7 The block diagram shows a partial structure of a smart phone related to the terminal device provided in the embodiment of the present application, and the smart phone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590. Those skilled in the art can understand that Figure 7The structure of the smartphone shown in the figure does not constitute a limitation of the smartphone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0250] Combine the following Figure 7 A detailed introduction to the various components of a smartphone:
[0251] The RF circuit 1510 may be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information from the base station, it is sent to the processor 1580 for processing; in addition, the designed uplink data is sent to the base station.
[0252] The memory 1520 may be used to store software programs and modules. The processor 1580 implements various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1520 .
[0253] The input unit 1530 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the smartphone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also known as a touch screen, can collect user touch operations on or near it and drive the corresponding connection device according to a pre-set program. In addition to the touch panel 1531, the input unit 1530 may also include other input devices 1532. Specifically, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0254] The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the smartphone. The display unit 1540 may include a display panel 1541, and the display panel 1541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0255] The smartphone may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. As for other sensors that may be configured in the smartphone, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.
[0256] The audio circuit 1560, the speaker 1561, and the microphone 1562 can provide an audio interface between the user and the smartphone. The audio circuit 1560 can transmit the received audio data to the speaker 1561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1560 and converted into audio data, and then the audio data is output to the processor 1580 for processing, and then sent to another smartphone through the RF circuit 1510, or the audio data is output to the memory 1520 for further processing.
[0257] The processor 1580 is the control center of the smartphone, and uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and / or modules stored in the memory 1520, and calling data stored in the memory 1520. Optionally, the processor 1580 may include one or more processing units.
[0258] The smart phone also includes a power supply 1590 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1580 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption management.
[0259] Although not shown, the smartphone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0260] In the embodiment of the present application, the memory 1520 included in the smart phone can store program codes and transmit the program codes to the processor.
[0261] The processor 1580 included in the smart phone can execute the method for determining the recognition model provided in the above embodiment according to the instructions in the program code.
[0262] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute the method for determining the recognition model provided in the above embodiment.
[0263] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for determining the recognition model provided in various optional implementations of the above aspects.
[0264] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-Only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0265] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0266] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining a recognition model, characterized in that: The method comprises: Determine a sample bipartite graph according to the historical interaction behavior generated by the object on the product, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior; According to the sample bipartite graph, obtaining the initial node vector of the graph node through the initial encoding sub-model; A first loss function is determined according to the association relationship and the initial node vector; wherein, for the target graph node in the sample bipartite graph, the first loss function is used to identify the similarity difference between the initial node vector of the target graph node and the initial node vector of the associated node, and the distinction difference between the initial node vector of the graph node and the initial node vector of the non-associated node; the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node satisfies an association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not satisfy the association threshold and has a different node type from the target graph node; By using the first loss function, the initial encoding sub-model is subjected to unsupervised training based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference, so as to obtain the encoding sub-model; Determine, according to the encoding sub-model, a pair vector of an object-product pair having a sample label in the sample bipartite graph, wherein the sample label is used to identify whether an association relationship between an object and a product in the object-product pair has an interaction risk; According to the pair vector, determining the risk prediction result of the target product pair through an initial prediction sub-model, and performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain a prediction sub-model; An identification model for identifying interaction risks for the interaction behavior to be processed is determined according to the encoding sub-model and the prediction sub-model.
2. The method according to claim 1, characterized in that Determining the sample bipartite graph according to the historical interaction behavior of the object on the product includes: Dividing the historical interaction behavior into M sub-historical interaction behaviors according to a fixed duration; Determine M sample bipartite graphs corresponding one-to-one to the M sub-history interaction behaviors; The step of obtaining the initial node vector of the graph node through the initial coding sub-model according to the sample bipartite graph includes: Inputting the M sample bipartite graphs into M initial encoding sub-models corresponding to each other respectively, and obtaining initial node vectors of graph nodes of the M sample bipartite graphs; determining the identification model for interactive risk identification of the interactive behavior to be processed according to the encoding sub-model and the prediction sub-model, comprises: The recognition model is determined according to M encoding sub-models and the prediction sub-model, wherein the M encoding sub-models are obtained by the M initial encoding sub-models respectively through the unsupervised training.
3. The method according to claim 1, characterized in that: The method further comprises: Obtaining an object tag and a product tag in the historical interaction behavior, wherein the object tag is used to identify whether the object is abnormal, and the product tag is used to identify whether the product is abnormal; The sample label of the object-product pair is determined according to the object label and the product label; wherein, for a target object-product pair consisting of the object corresponding to the object label and the product corresponding to the product label; when the object label and the product label are both normal, the sample label of the target object-product pair has no interaction risk, and when the object label and the product label are both abnormal, the sample label of the target object-product pair has interaction risk.
4. The method according to claim 3, characterized in that The obtaining of the object label and the product label in the historical interaction behavior includes: Obtaining object labels in the historical interaction behavior; Determine, according to the object tags, a first object identified as normal and a second object identified as abnormal in the historical interaction behavior; Determine a set of objects associated with the product in the historical interaction behavior; The product label corresponding to the product is determined according to the quantity of the first objects and the second objects in the object set.
5. The method according to claim 1, characterized in that The step of obtaining the initial node vector of the graph node through the initial coding sub-model according to the sample bipartite graph includes: Determine the object characteristics of the object node according to the object interaction parameters corresponding to the object node in the sample bipartite graph in the historical interaction behavior; determine the product characteristics of the product node according to the product response parameters corresponding to the product node in the sample bipartite graph in the historical interaction behavior; According to the object features and the product features, the initial node vectors of the graph nodes are obtained through the initial coding sub-model.
6. The method according to claim 5, characterized in that The object interaction parameter includes at least one of the total number of objects in a fixed network segment belonging to the same Internet protocol, the total number of interaction behaviors between the object and the product, and the maximum number of downloads in the historical interaction behaviors of the object divided into buckets according to different products; The product response parameters include at least one of the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to different objects, the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to fixed network segments of different Internet protocols, the product's exposure-to-download ratio, and the product's download-to-install ratio.
7. The method according to claim 1, characterized in that In the process of performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model, the method further includes: The model parameters of the encoding sub-model are fixed.
8. The method according to claim 1, characterized in that The supervised training of the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model includes: The encoding sub-model and the prediction sub-model are adjusted based on a joint loss function to obtain the adjusted encoding sub-model and the prediction sub-model; the joint loss function is determined based on the first loss function and a second loss function, and the second loss function is used to identify the difference between the risk prediction result and the sample label; The step of determining, based on the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks of the interaction behavior to be processed comprises: The recognition model is determined according to the adjusted encoding sub-model and the prediction sub-model.
9. The method according to claim 1, characterized in that: The method further comprises: Acquire a test set corresponding to the historical interaction behavior, wherein a first time interval involved in the interaction behavior to be tested included in the test set is adjacent to a second time interval involved in the historical interaction behavior, and the first time interval is later than the second time interval; The step of determining, based on the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks of the interaction behavior to be processed comprises: Determining a recognition model to be tested according to the encoding sub-model and the prediction sub-model; After performing a risk identification assessment test on the identification model to be tested based on the test set, the identification model is determined according to the test result.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Obtaining a pending interactive behavior generated by the object on the product; The interaction behavior to be processed is input into the recognition model to determine whether the interaction behavior to be processed has an interaction risk.
11. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Acquire an interactive behavior to be updated generated by the object on the product, wherein a third time interval involved in the interactive behavior to be updated is later than a second time interval involved in the historical interactive behavior; Determine an updated sample bipartite graph according to the interaction behavior to be updated; The model parameters of the recognition model are updated according to the updated sample bipartite graph.
12. A device for determining a recognition model, characterized in that: The device comprises: a first determination unit, a second determination unit, a third determination unit, an unsupervised training unit, a fourth determination unit, a supervised training unit and a fifth determination unit; The first determination unit is used to determine a sample bipartite graph according to the historical interaction behavior generated by the object on the product, the sample bipartite graph includes graph nodes and association relationships, the node types of the graph nodes include object nodes identifying the object and product nodes identifying the product, and the association relationship is used to reflect the association between the object and the product based on the historical interaction behavior; The second determining unit is used to obtain the initial node vector of the graph node through the initial coding sub-model according to the sample bipartite graph; The third determination unit is used to determine a first loss function according to the association relationship and the initial node vector; wherein, for the target graph node in the sample bipartite graph, the first loss function is used to identify the similarity difference between the initial node vector of the target graph node and the initial node vector of the associated node, and the distinction difference between the initial node vector of the graph node and the initial node vector of the non-associated node, the associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node meets the association threshold and has a different node type from the target graph node, and the non-associated node is a graph node in the sample bipartite graph whose association relationship with the target graph node does not meet the association threshold and has a different node type from the target graph node; The unsupervised training unit is used to perform unsupervised training on the initial encoding sub-model based on the training direction of minimizing the similarity difference and maximizing the distinctiveness difference through the first loss function to obtain the encoding sub-model; The fourth determination unit is used to determine, according to the encoding sub-model, a pair vector of an object-product pair having a sample label in the sample bipartite graph, wherein the sample label is used to identify whether the association relationship between the object and the product in the object-product pair has an interaction risk; The supervised training unit is used to determine the risk prediction result of the object product pair through the initial prediction sub-model according to the pair vector, and perform supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model; The fifth determination unit is used to determine, based on the encoding sub-model and the prediction sub-model, an identification model for identifying interaction risks for the interaction behavior to be processed.
13. The device according to claim 12, characterized in that The first determining unit is configured to: Dividing the historical interaction behavior into M sub-historical interaction behaviors according to a fixed duration; Determine M sample bipartite graphs corresponding one-to-one to the M sub-history interaction behaviors; The second determining unit is configured to: Inputting the M sample bipartite graphs into M initial coding sub-models in one-to-one correspondence respectively, to obtain initial node vectors of graph nodes of the M sample bipartite graphs; The fifth determining unit is configured to: The recognition model is determined according to M encoding sub-models and the prediction sub-model, wherein the M encoding sub-models are obtained by the M initial encoding sub-models respectively through the unsupervised training.
14. The device according to claim 12, characterized in that The identification model determination device further includes a label determination unit, which is used to: Obtaining an object tag and a product tag in the historical interaction behavior, wherein the object tag is used to identify whether the object is abnormal, and the product tag is used to identify whether the product is abnormal; The sample label of the object-product pair is determined according to the object label and the product label; wherein, for a target object-product pair consisting of the object corresponding to the object label and the product corresponding to the product label; when the object label and the product label are both normal, the sample label of the target object-product pair has no interaction risk, and when the object label and the product label are both abnormal, the sample label of the target object-product pair has interaction risk.
15. The device according to claim 14, characterized in that The identification model determination device further includes a label determination unit, which is used to: Obtaining object labels in the historical interaction behavior; Determine, according to the object tags, a first object identified as normal and a second object identified as abnormal in the historical interaction behavior; Determine a set of objects associated with the product in the historical interaction behavior; The product label corresponding to the product is determined according to the quantity of the first objects and the second objects in the object set.
16. The device according to claim 12, characterized in that The second determining unit is configured to: Determine the object characteristics of the object node according to the object interaction parameters corresponding to the object node in the sample bipartite graph in the historical interaction behavior; determine the product characteristics of the product node according to the product response parameters corresponding to the product node in the sample bipartite graph in the historical interaction behavior; According to the object features and the product features, the initial node vectors of the graph nodes are obtained through the initial coding sub-model.
17. The device according to claim 16, characterized in that The object interaction parameter includes at least one of the total number of objects in a fixed network segment belonging to the same Internet protocol, the total number of interaction behaviors between the object and the product, and the maximum number of downloads in the historical interaction behaviors of the object divided into buckets according to different products; The product response parameters include at least one of the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to different objects, the maximum number of downloads in the product's historical interactive behaviors divided into buckets according to fixed network segments of different Internet protocols, the product's exposure-to-download ratio, and the product's download-to-install ratio.
18. The device according to claim 12, characterized in that In the process of performing supervised training on the initial prediction sub-model based on the difference between the risk prediction result and the sample label to obtain the prediction sub-model, the determination device of the recognition model further includes a fixing unit for: The model parameters of the encoding sub-model are fixed.
19. The device according to claim 12, characterized in that The supervised training unit is used to: The encoding sub-model and the prediction sub-model are adjusted based on a joint loss function to obtain the adjusted encoding sub-model and the prediction sub-model; the joint loss function is determined based on the first loss function and a second loss function, and the second loss function is used to identify the difference between the risk prediction result and the sample label; The fifth determining unit is configured to: The recognition model is determined according to the adjusted encoding sub-model and the prediction sub-model.
20. The device according to claim 12, characterized in that The device for determining the recognition model further includes an acquisition unit, which is used to: Acquire a test set corresponding to the historical interaction behavior, wherein a first time interval involved in the interaction behavior to be tested included in the test set is adjacent to a second time interval involved in the historical interaction behavior, and the first time interval is later than the second time interval; The fifth determining unit is configured to: Determining a recognition model to be tested according to the encoding sub-model and the prediction sub-model; After performing a risk identification assessment test on the identification model to be tested based on the test set, the identification model is determined according to the test result.
21. The device according to any one of claims 12 to 20, characterized in that: The identification model determination device further includes an application unit, which is used to: Obtaining a pending interactive behavior generated by the object on the product; The interaction behavior to be processed is input into the recognition model to determine whether the interaction behavior to be processed has an interaction risk.
22. The device according to any one of claims 12 to 20, characterized in that The identification model determination device further includes an updating unit, which is used to: Acquire an interactive behavior to be updated generated by the object on the product, wherein a third time interval involved in the interactive behavior to be updated is later than a second time interval involved in the historical interactive behavior; Determine an updated sample bipartite graph according to the interaction behavior to be updated; The model parameters of the recognition model are updated according to the updated sample bipartite graph.
23. A computer device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the method according to any one of claims 1 to 11 according to the instructions in the program code.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 11.
25. A computer program product comprising instructions, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Labor turnover behavior prediction method and device based on graph embedding
CN110704692A
Method for detecting cash out behavior of bank credit card based on bipartite graph model
CN113222730A
