Data processing model generation method, data processing method and device

By constructing propagation characteristics and determining propagation loss information, a propagation data processing model is generated, which solves the problem of low accuracy caused by data imbalance in the prediction of information propagation paths by deep learning models, and improves the prediction accuracy and efficiency of propagation nodes. .

CN114723576BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210337329.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-10-18
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

In the existing technology, when the deep learning model predicts information propagation paths, due to the imbalance of training data, the accuracy of prediction of propagation nodes is low.

Method used

By obtaining object association information and sample propagation chain, propagation features are constructed, and propagation loss information is determined based on positive and negative samples. The to-be-trained model is trained, a propagation data processing model is generated, and the graph structure and propagation process feature information are combined to improve prediction accuracy. sex.

Benefits of technology

It improves the accuracy and efficiency of information propagation path prediction and enhances the prediction ability of propagation nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114723576B_ABST
    Figure CN114723576B_ABST
Patent Text Reader

Abstract

The present application discloses a method for generating a data processing model, a data processing method and a device. The method adopts a contrastive learning algorithm in artificial intelligence. The method inputs object association information and a sample propagation chain into a model to be trained to construct propagation features, and obtains sample propagation chain features corresponding to the sample propagation chain. The object association information can be a graph structure. Based on the positive samples corresponding to the sample transmission chain, the negative samples corresponding to the sample transmission chain, and the sample transmission chain features, the propagation loss information is determined and the model is trained to obtain a propagation data processing model. The method can generate a propagation data processing model through a contrastive learning algorithm and combines the characteristic information of the graph structure and the propagation process, thereby improving the efficiency of propagation data processing and the accuracy of propagation node prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer data processing technology, and in particular to a method for generating a data processing model, a data processing method and a device. Background Art

[0002] Social platforms are one of the important channels for people to obtain and share information. Although they have promoted the development of information industries such as e-commerce, they have also increased the harm caused by the spread of bad information. The prediction of information propagation paths can alleviate this problem. In the prior art, deep learning models are generally used to predict information propagation paths. However, due to the imbalance of training data, the prediction effect of some users will be affected, resulting in low accuracy of propagation node prediction. Summary of the invention

[0003] The present application provides a method for generating a data processing model, a data processing method and a device, which can improve the accuracy of propagation node prediction.

[0004] In one aspect, the present application provides a method for generating a data processing model, the method comprising:

[0005] Obtaining object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges;

[0006] Inputting the object association information and the sample propagation chain into the model to be trained to construct propagation features, and obtaining sample propagation chain features corresponding to the sample propagation chain; the sample propagation chain includes the propagated object;

[0007] Determine propagation loss information based on the positive sample corresponding to the sample transmission chain, the negative sample corresponding to the sample transmission chain, and the sample transmission chain characteristics; the positive sample is the target propagation object corresponding to the sample transmission chain, and the negative sample is an object other than the target propagation object among the multiple objects;

[0008] Based on the propagation loss information, the model to be trained is trained to obtain a propagation data processing model.

[0009] Another aspect provides a data processing method, the method comprising:

[0010] Acquire a target propagation chain, wherein the target propagation chain includes a propagated object;

[0011] The object association information and the target propagation chain are input into the target propagation data processing model to predict the propagation object, and the target propagation object corresponding to the target propagation chain is obtained. The object association information is constructed with multiple objects as nodes and the association relationship between each two objects as edges. The target propagation data processing model is obtained based on the data processing model generation method described above.

[0012] On the other hand, a device for generating a data processing model is provided, the device comprising:

[0013] An object association information acquisition module is used to acquire object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges;

[0014] A propagation feature construction module, used for inputting the object association information and the sample propagation chain into the model to be trained to construct the propagation feature, and obtaining the sample propagation chain feature corresponding to the sample propagation chain; the sample propagation chain includes the propagated object;

[0015] A propagation loss determination module, used to determine propagation loss information based on a positive sample corresponding to the sample transmission chain, a negative sample corresponding to the sample transmission chain, and a feature of the sample transmission chain; the positive sample is a target propagation object corresponding to the sample transmission chain, and the negative sample is an object other than the target propagation object among the multiple objects;

[0016] The model training model is used to train the model to be trained based on the propagation loss information to obtain a propagation data processing model.

[0017] Another aspect provides a data processing device, the device comprising:

[0018] A target propagation chain acquisition module, used to acquire a target propagation chain, wherein the target propagation chain includes propagated objects;

[0019] A propagation object prediction module is used to input object association information and a target propagation chain into a target propagation data processing model to perform propagation object prediction, and obtain a target propagation object corresponding to the target propagation chain. The object association information is constructed with multiple objects as nodes and the association relationships between each pair of objects as edges. The target propagation data processing model is obtained based on the data processing model generation method as described above.

[0020] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the above-mentioned method for generating a data processing model or the above-mentioned data processing method.

[0021] On the other hand, a computer-readable storage medium is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the above-mentioned method for generating a data processing model or the above-mentioned data processing method.

[0022] On the other hand, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the above-mentioned method for generating a data processing model or the above-mentioned data processing method.

[0023] The data processing model generation method, data processing method and device provided by the present application can input object association information and sample propagation chain into the model to be trained to construct propagation features, and obtain sample propagation chain features corresponding to the sample propagation chain. The object association information can be a graph structure. Based on the positive samples corresponding to the sample transmission chain, the negative samples corresponding to the sample transmission chain and the sample transmission chain features, the propagation loss information is determined and the model is trained to obtain a propagation data processing model. The method can generate a propagation data processing model through a comparative learning algorithm and combines the characteristic information of the graph structure and the propagation process, thereby improving the efficiency of propagation data processing and the accuracy of propagation node prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] 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.

[0025] Figure 1 A schematic diagram of an application scenario of a method for generating a data processing model provided in an embodiment of the present application;

[0026] Figure 2 A flowchart of a method for generating a data processing model provided in an embodiment of the present application;

[0027] Figure 3 A schematic diagram of the structure of object association information in a method for generating a data processing model provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of a sample propagation chain in a method for generating a data processing model provided in an embodiment of the present application;

[0029] Figure 5A flow chart of determining sample propagation chain characteristics in a method for generating a data processing model provided in an embodiment of the present application;

[0030] Figure 6 A flowchart of determining propagation characteristic information in a method for generating a data processing model provided in an embodiment of the present application;

[0031] Figure 7 A flow chart of determining propagation loss information in a method for generating a data processing model provided in an embodiment of the present application;

[0032] Figure 8 A flowchart of a data processing method provided in an embodiment of the present application;

[0033] Fig. 9 A schematic diagram of an algorithm architecture of a method for generating a data processing model provided in an embodiment of the present application;

[0034] Fig.10 A schematic diagram of the structure of a device for generating a data processing model provided in an embodiment of the present application;

[0035] Fig.11 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0036] Fig.12 A schematic diagram of the hardware structure of a device provided in an embodiment of the present application for implementing the method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] To make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0038] In the description of the present application, it should be understood that the terms "first" and "second" are used only for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. Moreover, the terms "first", "second", etc. are applicable to distinguishing similar objects, and need not be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0039] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0040] See also Figure 1 , which shows a schematic diagram of an application scenario of a method for generating a data processing model provided in an embodiment of the present application, wherein the application scenario includes a client 110 and a server 120, and the server obtains object association information, and the object association information is constructed by taking objects corresponding to multiple clients 110 as nodes and the association relationship between two objects as edges. The server 120 inputs the object association information and the sample propagation chain into the model to be trained to construct propagation features, obtains the sample propagation chain features corresponding to the sample propagation chain, and determines the propagation loss information based on the positive samples corresponding to the sample transmission chain, the negative samples corresponding to the sample transmission chain, and the sample transmission chain features. Based on the propagation loss information, the server 120 trains the model to be trained to obtain a propagation data processing model. Based on the propagation data processing model, the server 120 can predict and monitor the information propagation between multiple clients 110.

[0041] In the embodiment of the present application, the client 110 includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. The server 120 is an independently operated server, or a distributed server, or a server cluster composed of multiple servers.

[0042] Artificial intelligence technology is used in the embodiments of this application. Artificial intelligence (AI) is the 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.

[0043] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0044] See also Figure 2 , which shows a method for generating a data processing model, which can be applied to the server side, and the method includes:

[0045] S210. Obtain object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges;

[0046] In some embodiments, see Figure 3 ,like Figure 3 The structure diagram of the object association information is shown. The association relationship between two objects in the object association information can be a social relationship between users, an interest relationship between users, etc. The social relationship can be the attention information and friend information on the social software, etc. The interest relationship between users can be the relationship between the user and the corresponding potential interest user and the relationship between the user and the interest user that has been followed.

[0047] S220. Input the object association information and the sample propagation chain into the model to be trained to construct propagation features, and obtain the sample propagation chain features corresponding to the sample propagation chain; the sample propagation chain includes the propagated object;

[0048] In some embodiments, the sample propagation chain is composed of a series of propagated objects that propagate information in chronological order. For example, on a social software, if user A posts information x and user B forwards the information x, then user A and user B form a sample propagation chain. Figure 4 ,like Figure 4 The diagram shows the structure of the sample propagation chain. The sample propagation chain of this example includes objects v1, v2, v3 and v4. On the time axis T, these four objects are arranged in the order of v1, v2, v3 and v4, where v1 propagates information to v3 and v2 propagates information to v4. The object association information and the sample propagation chain are input into the model to be trained to construct the propagation features, and the sample propagation chain features corresponding to the sample propagation chain can be obtained. The actual output of the model when applied is the target propagation object, that is, the next propagation object corresponding to the input propagation chain. The target propagation object can be determined based on the propagation chain features of the input propagation chain and the node feature information in the object association information. In the training stage, only the sample propagation chain features, that is, the propagation chain features of the propagation chain input in the training stage, can be obtained, and the model training is performed based on the sample propagation chain features.

[0049] S230. Determine propagation loss information based on the positive sample corresponding to the sample transmission chain, the negative sample corresponding to the sample transmission chain, and the sample transmission chain characteristics; the positive sample is the target propagation object corresponding to the sample transmission chain, and the negative sample is an object other than the target propagation object among the multiple objects;

[0050] In some embodiments, the target propagation object is the next propagation object corresponding to the sample propagation chain. Through comparative learning, the propagation loss information can be determined based on the difference information between the positive sample corresponding to the sample propagation chain and the sample propagation chain characteristics, and the difference information between the negative sample corresponding to the sample propagation chain and the sample propagation chain characteristics. Thus, the propagation loss information can shorten the distance between the sample propagation chain characteristics and the positive sample, and shorten the distance between the sample propagation chain characteristics and the negative sample.

[0051] S240. Based on the propagation loss information, the model to be trained is trained to obtain a propagation data processing model.

[0052] In some embodiments, based on the propagation loss information, parameter update information of the model to be trained can be determined, and based on the parameter update information, the model parameters of the model to be trained are updated. After repeating the steps of determining the propagation loss information and determining the parameter update information and then updating the parameters for a preset number of times, a propagation data processing model can be obtained.

[0053] In some embodiments, see Figure 5 The model to be trained includes a propagation feature extraction layer, a weight determination layer, and a propagation chain feature determination layer. The object association information and the sample propagation chain are input into the model to be trained to construct the propagation feature. The sample propagation chain features corresponding to the sample propagation chain include:

[0054] S510. Input the object association information and the sample propagation chain into the propagation feature extraction layer to extract the propagation features, and obtain the propagation feature information corresponding to the propagated object;

[0055] S520. Input the propagation feature information corresponding to the propagated object into the weight determination layer to determine the weight, and obtain the feature weight corresponding to the propagated object;

[0056] S530. Input the propagation feature information and feature weights into the propagation chain feature determination layer to determine the propagation chain features and obtain the sample propagation chain features.

[0057] In some embodiments, the model to be trained may include a propagation feature extraction layer, a weight determination layer, and a propagation chain feature determination layer. The object association information and the sample propagation chain are input into the propagation feature extraction layer for propagation feature extraction, and the propagation feature information corresponding to the propagated object can be obtained. The object association information can be a graph structure constructed by nodes and edges, and the propagation feature extraction layer can be a graph neural network (Graph Neural Networks, GNN). Through the graph neural network, the propagation feature information corresponding to the propagation object in the sample propagation chain can be determined based on the object association relationship. The propagation feature information can be a hidden vector. During the first model training of the model to be trained, the hidden vector is the feature information corresponding to each node vector randomly initialized in the object association relationship. Therefore, the hidden vector has no specific physical meaning in the initial training. In the propagation data processing model obtained after the model training is completed, each node vector in the object association relationship can be used to characterize the degree of propagation influence between the object and the associated object. Therefore, the corresponding propagation feature information is the feature information of the degree of propagation influence.

[0058] After obtaining the propagation feature information, feature weights can be introduced through the self-attention mechanism, and the propagation feature information can be aggregated based on the feature weights to obtain the sample propagation chain features. The propagation feature information corresponding to the propagated object is input into the weight determination layer, and the feature weight corresponding to each propagated object can be determined based on the target feature similarity between each propagated object and the target propagated object in the sample propagation chain. The target propagated object can be the last propagated object in the sample propagation chain. After obtaining the feature weights, the propagation feature information and feature weights are input into the propagation chain feature determination layer, and the propagation feature information is weighted and summed based on the feature weights to obtain the sample propagation chain features.

[0059] The calculation formula for the sample propagation chain characteristics is as follows:

[0060]

[0061] Among them, h k represents the characteristics of the sample propagation chain, K represents the number of propagated objects in the sample propagation chain, and α kK represents the feature weight, z k Represents propagation characteristic information.

[0062] The propagation feature information and feature weight are determined respectively, and the sample propagation chain feature is calculated based on the feature weight and the propagation feature information, so that the sample propagation chain feature can represent the propagation relationship between the propagated object and the target propagation object in the sample propagation chain. Therefore, when calculating the target propagation node, the sample propagation chain feature includes the information between each propagated node before the target propagation node, thereby improving the accuracy of the sample propagation chain feature.

[0063] In some embodiments, see Figure 6 The propagation feature extraction layer includes a node feature extraction layer and a node association processing layer. The object association information and the sample propagation chain are input into the propagation feature extraction layer for propagation feature extraction. The propagation feature information corresponding to the propagated object obtained includes:

[0064] S610. Input the object association information and the sample propagation chain into the node feature extraction layer to extract node features, and obtain node feature information corresponding to the propagated object;

[0065] S620. Input the node feature information and the association relationship between each two nodes in the object association information into the node association processing layer for node association processing to obtain the propagation feature information corresponding to the propagated object.

[0066] In some embodiments, the object association information and the sample propagation chain are input into the node feature extraction layer, and the node feature extraction is performed on the node corresponding to the sample propagation chain in the object association information, so as to obtain the node feature information corresponding to the propagated object. When the node feature extraction is performed for the first time during the training process, the parameters of the untrained node feature extraction layer can be randomly initialized to obtain the initial node feature information. The initial node feature information can represent the probability of each object affecting the associated object corresponding to each object. The initial node feature information can be used to s After the training is completed, when node feature extraction is performed based on the trained node feature extraction layer, the target node feature information can be obtained. The target node feature information can represent the probability that each object is affected by the associated object corresponding to each object. The target node feature information can be expressed as U r express.

[0067] In some embodiments, in the node association processing layer, the node feature information and the association relationship between two nodes in the object association information are graph-calculated to obtain the propagation feature information corresponding to the propagated object. The association relationship between two nodes in the object association information can be represented by the object adjacency information corresponding to the object association information. When there is an edge between the nodes corresponding to the two objects, the object adjacency information between the two objects is 1. When there is no edge between the nodes corresponding to the two objects, the object adjacency information between the two objects is 0. The object adjacency information can be an adjacency matrix. The calculation formula for the propagation feature information is as follows:

[0068] z=GNN(A,U s )

[0069] Among them, z represents the propagation feature information, A represents the adjacency matrix of object association information, and U s Indicates the initial node feature information. 1 and node v2 When there is an edge, A 12 is 1, when the node v in the object association relationship 1 and node v 2 When there is no edge, A 12 is 0.

[0070] Based on the association relationship between nodes and node feature information, propagation feature information can be determined so that the propagation feature information can represent the influence of existence between objects that have been propagated when the information is propagated, thereby improving the accuracy of the propagation feature information.

[0071] In some embodiments, the propagation feature information corresponding to the propagated object is input into the weight determination layer to determine the weight, and obtaining the feature weight corresponding to the propagated object includes:

[0072] Based on the propagation feature information corresponding to the propagated object and the target propagation feature information, the feature weight corresponding to the propagation feature information is obtained, and the target propagation feature information is the propagation feature information corresponding to the last propagated object in the sample propagation chain.

[0073] In some embodiments, the similarity between the propagation feature information corresponding to the propagated object and the target propagation feature information is determined to obtain the target feature similarity, and after normalizing the target feature similarity, the feature weight can be obtained. The target propagation feature information is the propagation feature information corresponding to the last propagated object in the sample propagation chain.

[0074] The calculation formula of feature weight is as follows:

[0075]

[0076] Among them, exp represents the exponential function with the natural constant e as the base, and <> represents the dot product calculation, through which the similarity between two vectors can be calculated. kK represents the feature weight, z k represents the propagation characteristic information, z K Represents target propagation characteristic information.

[0077] By determining the feature weights based on the self-attention mechanism, the similarity between the propagated nodes and the target propagation nodes can be obtained, thereby determining the influence of the propagated nodes on the target propagation nodes, which is convenient for calculating the sample propagation chain characteristics.

[0078] In some embodiments, see Figure 7 , based on the positive samples corresponding to the sample transmission chain, the negative samples corresponding to the sample transmission chain, and the sample transmission chain characteristics, the propagation loss information is determined to include:

[0079] S710. Based on the sample feature of the positive sample and the sample propagation chain feature, determine the first feature similarity between the sample propagation chain and the positive sample;

[0080] S720. Based on the sample features of the negative sample and the sample propagation chain features, determine the second feature similarity between the sample propagation chain and the negative sample;

[0081] S730. Obtain propagation loss information based on the first feature similarity and the second feature similarity.

[0082] In some embodiments, the similarity between the sample feature of the positive sample and the sample propagation chain feature is calculated to obtain a first feature similarity between the sample propagation chain and the positive sample, and the first feature similarity can be obtained by calculating the dot product between the feature vector of the positive sample and the feature vector of the sample propagation chain. The similarity between the sample feature of the negative sample and the sample propagation chain feature is calculated to obtain a second feature similarity between the sample propagation chain and the negative sample, and the second feature similarity can be obtained by calculating the dot product between the feature vector of the negative sample and the feature vector of the sample propagation chain.

[0083] The positive sample is the target propagation object corresponding to the sample propagation chain. The target propagation object is also the next propagation object corresponding to the sample propagation chain. The information to be propagated can be obtained from the last propagation object in the sample propagation chain and the propagation operation can be performed. The negative sample is the object other than the target propagation object among multiple objects. Therefore, different sample propagation chains correspond to different positive and negative samples.

[0084] A preset temperature parameter can be introduced when calculating the propagation loss information. The preset temperature parameter is obtained, the first feature similarity is adjusted based on the temperature parameter, and the second feature similarity is adjusted based on the temperature parameter. Based on the adjusted first feature similarity and the adjusted second feature similarity, the propagation loss information can be calculated. The calculation formula of the propagation loss information is as follows:

[0085]

[0086] Among them, L is the propagation loss information, M is the number of sample propagation chains, and h ik represents the sample propagation characteristics of sample propagation chain i, u r Represents the sample characteristics of the positive sample, u' r represents the sample characteristics of negative samples, and τ represents the temperature parameter.

[0087] By using the contrastive learning method and calculating the propagation loss information based on positive and negative samples, the sample propagation chain characteristics can be made closer to the positive samples and away from the negative samples. Both active and inactive users can be trained accordingly, so that the predicted target propagation nodes are more consistent with the actual target propagation nodes, which can improve the accuracy of target propagation node prediction when the model is applied.

[0088] In some embodiments, see Figure 8 ,The data processing methods implemented based on the data processing model include:

[0089] S810. Obtain a target propagation chain, where the target propagation chain includes propagated objects;

[0090] S820. Input the object association information and the target propagation chain into the target propagation data processing model to predict the propagation object, and obtain the target propagation object corresponding to the target propagation chain. The object association information is constructed with multiple objects as nodes and the association relationship between each pair of objects as edges.

[0091] In some embodiments, when the model is applied, a target propagation chain consisting of propagated objects can be obtained, and the object association information and the target propagation chain can be input into the target propagation data processing model for propagation object prediction, so that the target propagation object corresponding to the target propagation chain can be obtained. The target propagation data processing model is obtained based on the generation method of the data processing model described above.

[0092] In the target propagation data processing model, node feature extraction can be performed on the object association information to obtain node feature information of each node in the object association information. Based on the association relationship between two nodes, the node feature information corresponding to the propagated object in the target propagation chain is associated and processed to obtain the propagation feature information corresponding to the propagated object. The association relationship between two nodes can be object adjacency information.

[0093] The feature similarity between each propagation feature information and the propagation feature information corresponding to the last propagated object in the target propagation chain is calculated to obtain the feature weight corresponding to each propagated object. Based on the feature weight, the propagation feature information is weighted and summed to obtain the target propagation chain representation corresponding to the target propagation chain.

[0094] Based on the target propagation chain representation corresponding to the target propagation chain and the node feature information of each node in the object association information, the probability that each node in the object association information is the target propagation object can be calculated, and the object corresponding to the node with the maximum probability is taken as the target propagation object.

[0095] Based on the above model generation method, the target propagation data processing model is obtained, which combines the topological structure of the graph and the characteristic information in the propagation process, thereby improving the efficiency of propagation data processing and the accuracy of target propagation node prediction.

[0096] In some embodiments, the model obtained based on the data processing model generation method can be applied to monitor the information dissemination in social software, such as rumor blocking, public opinion supervision, etc. The data processing method can also be applied to predict the information dissemination in social software, such as advertising placement, etc. Fig. 9 ,like Fig. 9 The diagram shows the algorithm architecture of the method for generating a data processing model. The nodes in the object association information are initialized, and the node feature information corresponding to the propagated object is determined based on the sample propagation chain. The node feature information obtained after the initialization can model the probability of a user influencing other users and is used to learn the representation of the propagation process.

[0097] Based on the node feature information, the latent vector of the propagated object, that is, the propagation feature information, can be determined. Through the graph neural network in the model to be trained, the node feature information and the relationship between nodes can be graph-calculated to obtain the propagation feature information corresponding to each propagated object. The propagation feature information is activated through the self-attention mechanism, that is, the feature weights corresponding to different propagation feature information are calculated, and then the propagation feature information is weighted and summed based on the feature weights, so that the sample propagation chain representation corresponding to the sample propagation chain can be obtained.

[0098] The similarity between the sample propagation chain representation and the node feature information can determine the target propagation node corresponding to the sample propagation chain. In the process of model training, it is not necessary to calculate the target propagation node corresponding to the sample propagation chain. The propagation loss information can be directly calculated based on the sample propagation representation, the positive sample corresponding to the sample propagation chain, and the negative sample corresponding to the sample propagation chain. Based on the propagation loss information, the gradient information corresponding to the model to be trained is calculated, and the network parameters in the model to be trained are updated based on the gradient information. After a preset number of iterations or when the difference in the propagation loss information corresponding to two iterations is less than a preset difference threshold, the propagation data processing model can be obtained. In the process of model application, the target propagation node corresponding to the target propagation chain can be calculated based on the similarity between the target propagation chain representation and the node feature information corresponding to the target propagation chain, and the target propagation node is output as the result of model prediction.

[0099] The embodiment of the present application provides a method for generating a data processing model, which can input object association information and sample propagation chains into a model to be trained to construct propagation features, and obtain sample propagation chain features corresponding to the sample propagation chains. The object association information can be a graph structure, and based on the positive samples corresponding to the sample transmission chain, the negative samples corresponding to the sample transmission chain, and the sample transmission chain features, the propagation loss information is determined and the model is trained to obtain a propagation data processing model. The method can generate a propagation data processing model through a contrast learning algorithm and combines the characteristic information of the graph structure and the propagation process, thereby improving the efficiency of propagation data processing and the accuracy of propagation node prediction.

[0100] The present application also provides a device for generating a data processing model, see Fig.10 , the device comprises:

[0101] The object association information acquisition module 1010 is used to acquire object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges;

[0102] The propagation feature construction module 1020 is used to input the object association information and the sample propagation chain into the model to be trained to construct the propagation feature, and obtain the sample propagation chain feature corresponding to the sample propagation chain; the sample propagation chain includes the propagated object;

[0103] The propagation loss determination module 1030 is used to determine the propagation loss information based on the positive sample corresponding to the sample transmission chain, the negative sample corresponding to the sample transmission chain, and the sample transmission chain characteristics; the positive sample is the target propagation object corresponding to the sample transmission chain, and the negative sample is the object other than the target propagation object among the multiple objects;

[0104] The model training model 1040 is used to train the model to be trained based on the propagation loss information to obtain a propagation data processing model.

[0105] In some embodiments, the model to be trained includes a propagation feature extraction layer, a weight determination layer, and a propagation chain feature determination layer, and the propagation feature construction module includes:

[0106] A propagation feature extraction unit, used for inputting object association information and sample propagation chain into the propagation feature extraction layer to extract propagation features, and obtain propagation feature information corresponding to the propagated object;

[0107] A weight determination unit, used for inputting the propagation feature information corresponding to the propagated object into the weight determination layer for weight determination, and obtaining the feature weight corresponding to the propagated object;

[0108] The propagation chain feature determination unit is used to input the propagation feature information and feature weights into the propagation chain feature determination layer to determine the propagation chain features and obtain the sample propagation chain features.

[0109] In some embodiments, the propagation feature extraction layer includes a node feature extraction layer and a node association processing layer, and the propagation feature extraction unit includes:

[0110] A node feature extraction unit is used to input object association information and sample propagation chain into the node feature extraction layer to extract node features and obtain node feature information corresponding to the propagated object;

[0111] The node association processing unit is used to input the node feature information and the association relationship between two nodes in the object association information into the node association processing layer for node association processing to obtain the propagation feature information corresponding to the propagated object.

[0112] In some embodiments, the weight determination unit includes:

[0113] The feature weight calculation unit is used to obtain the feature weight corresponding to the propagation feature information based on the propagation feature information corresponding to the propagated object and the target propagation feature information, where the target propagation feature information is the propagation feature information corresponding to the last propagated object in the sample propagation chain.

[0114] In some embodiments, the propagation loss determination module includes:

[0115] A first feature similarity determination unit, configured to determine a first feature similarity between the sample propagation chain and the positive sample based on the sample feature and the sample propagation chain feature of the positive sample;

[0116] A second feature similarity determination unit, configured to determine a second feature similarity between the sample propagation chain and the negative sample based on the sample feature and the sample propagation chain feature of the negative sample;

[0117] The propagation loss information calculation unit is used to obtain the propagation loss information based on the first feature similarity and the second feature similarity.

[0118] The present application also provides a device for generating a data processing model, see Fig.11 , the device comprises:

[0119] A target propagation chain acquisition module 1110 is used to acquire a target propagation chain, where the target propagation chain includes propagated objects;

[0120] The propagation object prediction module 1120 is used to input the object association information and the target propagation chain into the target propagation data processing model to perform propagation object prediction, and obtain the target propagation object corresponding to the target propagation chain. The object association information is constructed with multiple objects as nodes and the association relationship between each two objects as edges. The target propagation data processing model is obtained based on the above-mentioned data processing model generation method.

[0121] The device provided in the above embodiment can execute the method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiment, please refer to a method for generating a data processing model provided in any embodiment of the present application.

[0122] This embodiment further provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are loaded by a processor and execute the method for generating a data processing model described above in this embodiment.

[0123] This embodiment also 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 provided in various optional implementations of generating the above-mentioned data processing model.

[0124] This embodiment further provides an electronic device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method for generating a data processing model mentioned above in this embodiment.

[0125] The device may be a computer terminal, a mobile terminal or a server, and the device may also participate in constituting the apparatus or system provided in the embodiments of the present application. Fig.12 As shown, the server 12 may include one or more (1202a, 1202b, ..., 1202n are used to illustrate) processors 1202 (the processor 1202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1204 for storing data, and a transmission device 1206 for communication functions. In addition, it may also include: an input / output interface (I / O interface), a network interface. It can be understood by those skilled in the art that Fig.12 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.12 More or fewer components as shown, or with Fig.12Different configurations are shown.

[0126] It should be noted that the one or more processors 1202 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any combination thereof. In addition, the data processing circuits may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the server 12.

[0127] The memory 1204 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the methods in the embodiments of the present application. The processor 1202 executes various functional applications and data processing by running the software programs and modules stored in the memory 1204, that is, to implement the above-mentioned method for generating a temporal behavior capture frame based on a self-attention network. The memory 1204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1204 may further include a memory remotely arranged relative to the processor 1202, and these remote memories may be connected to the server 12 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0128] The transmission device 1206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server 12. In one example, the transmission device 1206 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 1206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0129] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The steps and sequence listed in the embodiments are only one way of executing the sequence of many steps and do not represent the only execution sequence. When the actual system or interrupt product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).

[0130] The structure shown in this embodiment is only a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown, or combine certain components, or have different arrangements of components. It should be understood that the method, device, etc. disclosed in this embodiment can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules is only a division of a logical function. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or unit modules.

[0131] Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.

[0132] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating a data processing model, characterized in that: The method comprises: Obtaining object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges; Inputting the object association information and the sample propagation chain into the propagation feature extraction layer in the model to be trained, and determining the propagation feature information corresponding to the propagated object in the sample propagation chain based on the object association relationship; the sample propagation chain includes the propagated object; Inputting the propagation feature information and feature weights into the propagation chain feature determination layer of the model to be trained, and performing weighted summation on the propagation feature information based on the feature weights to obtain sample propagation chain features; Determine propagation loss information based on a positive sample corresponding to the sample propagation chain, a negative sample corresponding to the sample propagation chain, and a feature of the sample propagation chain; the positive sample is a target propagation object corresponding to the sample propagation chain, and the negative sample is an object other than the target propagation object among the multiple objects; Based on the propagation loss information, the model to be trained is trained to obtain a propagation data processing model.

2. The method for generating a data processing model according to claim 1, characterized in that: The model to be trained includes a weight determination layer, and the method further includes: The propagation feature information corresponding to the propagated object is input into the weight determination layer to perform weight determination, so as to obtain the feature weight corresponding to the propagated object.

3. The method for generating a data processing model according to claim 1, characterized in that: The propagation feature extraction layer includes a node feature extraction layer and a node association processing layer. The object association information and the sample propagation chain are input into the propagation feature extraction layer in the to-be-trained model, and based on the object association relationship, the propagation feature information corresponding to the propagated object in the sample propagation chain is determined, including: Inputting the object association information and the sample propagation chain into the node feature extraction layer to extract node features, and obtaining node feature information corresponding to the propagated object; The node feature information and the association relationship between two nodes in the object association information are input into the node association processing layer for node association processing to obtain the propagation feature information corresponding to the propagated object.

4. The method for generating a data processing model according to claim 2, characterized in that: The step of inputting the propagation feature information corresponding to the propagated object into the weight determination layer to perform weight determination, and obtaining the feature weight corresponding to the propagated object comprises: Based on the propagation feature information corresponding to the propagated object and the target propagation feature information, the feature weight corresponding to the propagation feature information is obtained, and the target propagation feature information is the propagation feature information corresponding to the last propagated object in the sample propagation chain.

5. The method for generating a data processing model according to claim 1, characterized in that: The determining of the propagation loss information based on the positive sample corresponding to the sample propagation chain, the negative sample corresponding to the sample propagation chain, and the sample propagation chain feature includes: Determine a first feature similarity between the sample propagation chain and the positive sample based on the sample feature of the positive sample and the sample propagation chain feature; Determine a second feature similarity between the sample propagation chain and the negative sample based on the sample feature of the negative sample and the sample propagation chain feature; The propagation loss information is obtained based on the first feature similarity and the second feature similarity.

6. A data processing method, characterized in that: The method comprises: Acquire a target propagation chain, wherein the target propagation chain includes a propagated object; The object association information and the target propagation chain are input into the target propagation data processing model to predict the propagation object, and the target propagation object corresponding to the target propagation chain is obtained. The object association information is constructed with multiple objects as nodes and the association relationship between each two objects as edges. The target propagation data processing model is obtained based on the data processing model generation method described in any one of claims 1 to 5.

7. A device for generating a data processing model, characterized in that: The device comprises: An object association information acquisition module is used to acquire object association information, where the object association information is constructed using multiple objects as nodes and association relationships between two objects as edges; A propagation feature extraction unit, configured to input the object association information and the sample propagation chain into a propagation feature extraction layer in a model to be trained, and determine the propagation feature information corresponding to the propagated object in the sample propagation chain based on the object association relationship; the sample propagation chain includes the propagated object; A propagation chain feature determination unit, used for inputting the propagation feature information and feature weights into the propagation chain feature determination layer of the model to be trained, and performing weighted summation on the propagation feature information based on the feature weights to obtain sample propagation chain features; A propagation loss determination module, used to determine propagation loss information based on a positive sample corresponding to the sample propagation chain, a negative sample corresponding to the sample propagation chain, and a feature of the sample propagation chain; the positive sample is a target propagation object corresponding to the sample propagation chain, and the negative sample is an object other than the target propagation object among the multiple objects; The model training model is used to train the model to be trained based on the propagation loss information to obtain a propagation data processing model.

8. The device according to claim 7, characterized in that The model to be trained includes a weight determination layer, and the device also includes: The weight determination unit is used to input the propagation feature information corresponding to the propagated object into the weight determination layer to perform weight determination, so as to obtain the feature weight corresponding to the propagated object.

9. The device according to claim 7, characterized in that The propagation feature extraction layer includes a node feature extraction layer and a node association processing layer, and the propagation feature extraction unit includes: A node feature extraction unit, used for inputting the object association information and the sample propagation chain into the node feature extraction layer to extract node features, and obtaining node feature information corresponding to the propagated object; The node association processing unit is used to input the node feature information and the association relationship between each two nodes in the object association information into the node association processing layer for node association processing to obtain the propagation feature information corresponding to the propagated object.

10. The device according to claim 8, characterized in that The weight determination unit comprises: A feature weight calculation unit is used to obtain the feature weight corresponding to the propagation feature information based on the propagation feature information corresponding to the propagated object and the target propagation feature information, wherein the target propagation feature information is the propagation feature information corresponding to the last propagated object in the sample propagation chain.

11. The device according to claim 7, characterized in that The propagation loss determination module comprises: A first feature similarity determination unit, configured to determine a first feature similarity between the sample propagation chain and the positive sample based on a sample feature of the positive sample and a feature of the sample propagation chain; A second feature similarity determination unit, configured to determine a second feature similarity between the sample propagation chain and the negative sample based on the sample feature of the negative sample and the sample propagation chain feature; A propagation loss information calculation unit is used to obtain the propagation loss information based on the first feature similarity and the second feature similarity.

12. A data processing device, characterized in that: The device comprises: A target propagation chain acquisition module, used to acquire a target propagation chain, wherein the target propagation chain includes propagated objects; A propagation object prediction module is used to input object association information and a target propagation chain into a target propagation data processing model to perform propagation object prediction, and obtain a target propagation object corresponding to the target propagation chain. The object association information is constructed with multiple objects as nodes and the association relationships between each two objects as edges. The target propagation data processing model is obtained based on the data processing model generation method described in any one of claims 1 to 5.

13. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for generating a data processing model as described in any one of claims 1 to 5 or a data processing method as described in claim 6.

14. A computer-readable storage medium, characterized in that: The storage medium includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for generating a data processing model as described in any one of claims 1 to 5 or a data processing method as described in claim 6.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, it implements a method for generating a data processing model as described in any one of claims 1 to 5 or a data processing method as described in claim 6.

Citation Information

Patent Citations

  • A method and device for generating model

    CN110009059A

  • Data processing method and device and equipment

    CN113705589A

  • Model training method, merchant classification method and device

    CN113761250A