A method and device for processing data

By generating and splicing embedding vectors of users and items, combined with deep learning models, the problem of being unable to mine implicit vector expressions in the existing technology is solved, achieving accurate capture of changes in user interests and improvement of personalized sorting.

CN113762992BActive Publication Date: 2024-10-22BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010495399.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-03
Publication Date
2024-10-22
Estimated Expiration
2040-06-03

AI Technical Summary

Technical Problem

Existing technology cannot mine implicit vector expressions between users and items accurately and efficiently, and cannot distinguish between long-term, mid-term and recent changes in users' interests, resulting in inaccurate calculation results.

Method used

By generating user and item embedding vectors, behavior embedding vectors and interest evolution embedding vectors, combining graph embedding technology and deep learning models, using attention neural networks and memory network models, splicing into combined embedding vectors and inputting pre-trained computing models , to output the user's behavior probability for the item.

Benefits of technology

It achieves accurate mining of implicit relationships between users and items, can cover users' history and long-term interest preferences, reduces feature engineering work and manual intervention of time decay factors, and improves the accuracy of personalized sorting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113762992B_ABST
    Figure CN113762992B_ABST
Patent Text Reader

Abstract

This invention discloses a method and apparatus for processing data, relating to the field of computer technology. One specific embodiment of the method includes: generating an embedding vector for the target user, a behavioral embedding vector, an interest evolution embedding vector, and an embedding vector for the target item based on the behavioral and basic characteristics of the target user and the behavioral and basic characteristics of the target item; concatenating the embedding vectors of the target user, behavior, interest evolution, and the target item into a combined embedding vector for the target user; and inputting the combined embedding vector of the target user into a pre-trained computational model to output the behavioral probability of the target user towards the target item. This embodiment can solve the technical problems of being unable to accurately and efficiently mine the implicit vector representations between users and items, and being unable to distinguish between long-term, medium-term, and short-term changes in user interests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Personalized sorting is a technology that uses machine learning and deep learning algorithms to present personalized push results to users in different application scenarios based on user personal characteristics. The most important purpose of this technology is to present users with the highest priority items in a very small number of users from a large number of candidate sets.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] It is impossible to accurately and efficiently mine the implicit vector expressions between users and items, and it is impossible to distinguish between users' long-term, medium-term and short-term interest changes, resulting in inaccurate calculation results. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for processing data to solve the technical problems of being unable to accurately and efficiently mine the implicit vector expression between users and items and being unable to distinguish between users' long-term, medium-term and short-term interest changes.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing data is provided, comprising:

[0007] Generate an embedding vector, a behavior embedding vector, an interest evolution embedding vector of the target user, and an embedding vector of the target item according to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item;

[0008] splicing the target user's embedding vector, behavior embedding vector, interest evolution embedding vector, and the target item's embedding vector into a combined embedding vector of the target user;

[0009] Inputting the combined embedding vector of the target user into a pre-trained computing model, thereby outputting the behavior probability of the target user towards the target item;

[0010] The calculation model is trained using the following method:

[0011] Generate a combined embedding vector for each user according to the behavioral characteristics and basic characteristics of each user and the behavioral characteristics and basic characteristics of each item in the training sample;

[0012] The combined embedding vectors of each of the users are used to train a fully connected neural network, thereby obtaining a computational model.

[0013] Optionally, generating a combined embedding vector of each user according to the behavior characteristics and basic characteristics of each user and the behavior characteristics and basic characteristics of each item in the training sample includes:

[0014] Using the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user;

[0015] Using a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each of the items;

[0016] Using an attention neural network to convert the behavioral features of each user in different periods in the training sample into a behavioral embedding vector of each user;

[0017] A memory network model is used to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user;

[0018] The embedding vectors, behavior embedding vectors, interest evolution embedding vectors of each of the users and the embedding vectors of each of the items are respectively concatenated into a combined embedding vector of each of the users.

[0019] Optionally, the first graph embedding model is a Node2vec model, the second graph embedding model is a Node2vec model, and the memory network model is a hierarchical periodic memory network model.

[0020] Optionally, the behavior characteristics of different periods include recent behavior characteristics, mid-term behavior characteristics and long-term behavior characteristics.

[0021] Optionally, it also includes:

[0022] If the user's embedding vector, behavior embedding vector, interest evolution embedding vector and the item's embedding vector lack features of any dimension, a marker that does not participate in the calculation is used to fill in the features of the dimension.

[0023] Optionally, generating an embedding vector of the target user, a behavior embedding vector, an interest evolution embedding vector, and an embedding vector of the target item according to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item includes:

[0024] Using the first graph embedding model to convert the recent behavior features and basic features of the target user into an embedding vector of the target user;

[0025] Using the recent behavior features and basic features of the target object of the second graph embedding model to convert them into an embedding vector of the target object;

[0026] Using the attention neural network to convert the behavior characteristics of the target user at different periods into a behavior embedding vector of the target user;

[0027] The memory network model is used to convert the behavioral characteristics of the target user at different periods into an embedded vector of the interest evolution of the target user.

[0028] Optionally, after outputting the target user's behavior probability towards the target item, the method further includes:

[0029] Arrange the target user's behavior probabilities for each target item in descending order;

[0030] Filter out N target items with the highest behavior probability, where N is an integer greater than zero;

[0031] The N target items are added to the set of items to be recommended corresponding to the target user.

[0032] In addition, according to another aspect of an embodiment of the present invention, there is provided a device for processing data, including:

[0033] A feature module, used to generate an embedding vector, a behavior embedding vector, an interest evolution embedding vector of the target user and an embedding vector of the target item according to the behavior features and basic features of the target user and the behavior features and basic features of the target item;

[0034] A combination module, used to splice the embedding vector of the target user, the behavior embedding vector, the interest evolution embedding vector and the embedding vector of the target item into a combined embedding vector of the target user;

[0035] A calculation module, used for inputting the combined embedding vector of the target user into a pre-trained calculation model, thereby outputting the behavior probability of the target user towards the target item;

[0036] The training module is used to generate a combined embedding vector of each user according to the behavioral characteristics and basic characteristics of each user and the behavioral characteristics and basic characteristics of each item in the training sample; and train a fully connected neural network using the combined embedding vector of each user to obtain a calculation model.

[0037] Optionally, the training module is further used to:

[0038] Using the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user;

[0039] Using a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each of the items;

[0040] Using an attention neural network to convert the behavioral features of each user at different times in the training sample into a behavioral embedding vector of each user;

[0041] A memory network model is used to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user;

[0042] The embedding vectors, behavior embedding vectors, interest evolution embedding vectors of each of the users and the embedding vectors of each of the items are respectively concatenated into a combined embedding vector of each of the users.

[0043] Optionally, the first graph embedding model is a Node2vec model, the second graph embedding model is a Node2vec model, and the memory network model is a hierarchical periodic memory network model.

[0044] Optionally, the behavior characteristics of different periods include recent behavior characteristics, mid-term behavior characteristics and long-term behavior characteristics.

[0045] Optionally, the training module is further used to:

[0046] If the user's embedding vector, behavior embedding vector, interest evolution embedding vector and the item's embedding vector lack features of any dimension, a marker that does not participate in the calculation is used to fill in the features of the dimension.

[0047] Optionally, the feature module is further used for:

[0048] Using the first graph embedding model to convert the recent behavior features and basic features of the target user into an embedding vector of the target user;

[0049] Using the recent behavior features and basic features of the target object of the second graph embedding model to convert them into an embedding vector of the target object;

[0050] Using the attention neural network to convert the behavior characteristics of the target user at different periods into a behavior embedding vector of the target user;

[0051] The memory network model is used to convert the behavioral characteristics of the target user at different periods into an embedded vector of the interest evolution of the target user.

[0052] Optionally, the calculation module is further used for:

[0053] After outputting the behavior probability of the target user towards the target item, arranging the behavior probability of the target user towards each target item in descending order;

[0054] Filter out N target items with the highest behavior probability, where N is an integer greater than zero;

[0055] The N target items are added to the set of items to be recommended corresponding to the target user.

[0056] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:

[0057] one or more processors;

[0058] a storage device for storing one or more programs,

[0059] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.

[0060] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0061] One embodiment of the above invention has the following advantages or beneficial effects: because the target user's embedding vector, behavior embedding vector, interest evolution embedding vector and target item embedding vector are input into a pre-trained computing model to output the target user's behavior probability for the target item, the technical problem that the prior art cannot accurately and efficiently mine the implicit vector expression between the user and the item, and cannot distinguish the user's long-term, medium-term and recent interest changes is overcome. The embodiment of the present invention uses graph embedding technology to accurately and efficiently mine the implicit vector expression between the user and the item from the multi-dimensional features of the user and the item, thereby obtaining the user's direct and implicit personalized preferences; mines the user's historical preferences and the user's medium- and long-term interest preferences from the user's behavioral characteristics at different times, thereby being able to cover the user's behavior to a large extent; at the same time, the attention mechanism neural network and the memory network model are combined to make full use of the learning flexibility and powerful learning ability of the deep learning network, thereby effectively reducing a large amount of feature engineering work and manual intervention of the time decay factor.

[0062] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0064] Figure 1 is a schematic diagram of the main flow of a method for processing data according to an embodiment of the present invention;

[0065] Figure 2 is a flow chart of a training calculation model according to an embodiment of the present invention;

[0066] Figure 3 is a schematic diagram of the main flow of a method for processing data according to a reference embodiment of the present invention;

[0067] Figure 4 is a schematic diagram of main modules of a device for processing data according to an embodiment of the present invention;

[0068] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0069] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0070] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0071] At present, the commonly used personalized sorting algorithms mainly include the following:

[0072] 1) Sorting based on personalized labels of users and items: This method essentially relies on massive data and a large amount of feature engineering to give explicit personalized labels to user and item attributes, and then scores and sorts them based on the traditional xgboost model or learning to rank model.

[0073] This method has the following main problems:

[0074] It relies on a large amount of historical data and has high quality requirements for massive data. It requires a lot of manual feature extraction, especially in different business scenarios. Modelers not only need to be familiar with the business of different scenarios, but also need to repeatedly develop features. Traditional models find it difficult to learn important but implicit cross-features. For example, high-level preferences of <users, categories, colors> are difficult to process manually.

[0075] 2) Based on user multi-behavior preferences, use Bayesian personalized sorting: This method assumes that the preference behaviors between users are independent of each other, and the partial order of different items by the same user is independent of each other. Then, based on matrix decomposition, the sorting of each user's preferred items is optimized.

[0076] This method has the following main problems:

[0077] Users' behavioral preferences often influence each other, and the calculation results of this method deviate from the actual needs of users. This method sorts the item pool of each user, so it cannot achieve global optimization, and the input data requires a training set of triplets of users' ranking of item preferences, which is not suitable for sorting large amounts of data.

[0078] 3) DeepFM and DIEN deep learning methods for personalized ranking: This method takes advantage of the powerful learning of deep learning networks to explore higher-order and more implicit relationships between users and items.

[0079] The disadvantage of the DeepFM model is that it cannot capture changes in user interests, and because a length must be specified when inputting into the network, the dimensions of different category features vary greatly, and the length of the vector representation is inconsistent. For example, the third-level category ID and gender (male, female, unknown) are padded with 0 and embedded to the same length, which increases the number of parameters and affects efficiency.

[0080] The user behavior sequence data of the DIEN algorithm is based on the user's shopping behavior over a period of time, and can only express the user's limited interest changes in the recent period. It is very difficult for the online system to process the user's long-term behavior sequence, and it does not distinguish between the user's long-term, medium-term and recent interest changes.

[0081] At present, most online systems that require personalized sorting scenarios rely on a large number of artificial features, analyze user historical behavior data in different business scenarios, the attributes of items purchased by users, and perform personalized sorting based on business needs, which ultimately leads to the deployment of different, complicated, large, and non-reusable personalized sorting methods in online systems, and there are also incomplete considerations. Based on the above technical background, an embodiment of the present invention provides a method for processing data. Figure 1 Schematic diagram of the main flow of the method for processing data according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the method for processing data may include:

[0082] Step 101, based on the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target object, generate an embedding vector of the target user, a behavior embedding vector, an interest evolution embedding vector and an embedding vector of the target object.

[0083] First, the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item are obtained, and then the embedding vector, behavior embedding vector, interest evolution embedding vector and embedding vector of the target user and the target item are generated accordingly. In an embodiment of the present invention, the target item may be an item that the target user browsed, paid attention to, clicked, etc. the day before or a few days before, or other items of the same category as these target items may be used as target items.

[0084] Optionally, the behavior characteristics of the target user include characteristics of the target user's attention, purchase, browsing, and clicking on the item, and the basic characteristics of the target user include characteristics of the target user's age, gender, birthplace, and other dimensions. The behavior characteristics of the target item include characteristics of which users pay attention to, purchase, browse, and click on the target item, and the basic characteristics of the target item include characteristics of the target item's ID, category, brand, model, and other dimensions.

[0085] Optionally, step 101 may include: using a pre-trained first graph embedding model to convert the recent behavioral characteristics and basic characteristics of the target user into an embedding vector of the target user; using a pre-trained second graph embedding model to convert the recent behavioral characteristics and basic characteristics of the target item into an embedding vector of the target item; using a pre-trained attention neural network to convert the behavioral characteristics of the target user at different periods into the behavioral embedding vector of the target user; using a pre-trained memory network model to convert the behavioral characteristics of the target user at different periods into the interest evolution embedding vector of the target user.

[0086] The use of graph embedding feature table methods (such as the Node2vec model) to generate features is mainly to automatically construct implicit cross-features (combined features) between users and items from category features such as user id, item id, third-level category id, and user basic portraits. This can transform the problem of manually constructing cross-features to discover what kind of user's interest preferences for items, categories, and orders into the use of graph embedding feature table methods to automatically discover the implicit but more important relationship between users and items. For example, if a user has three feature dimensions: age, gender, and place of birth, then it is very time-consuming to manually obtain cross-features such as "the user was born in Beijing and is a 25-year-old male", and different business scenarios require familiarity with different businesses to process them, but using the graph embedding feature table method can automatically generate features.

[0087] Optionally, the behavioral characteristics of different periods include recent behavioral characteristics, mid-term behavioral characteristics and long-term behavioral characteristics. For the length of different periods, time windows can be set respectively, such as 1 day, 3 days, 7 days, 14 days, 1 month, 2 months, 3 months, half a year, etc., which can be used as recent, mid-term and long-term respectively.

[0088] If the embedding vector of the target user, the behavior embedding vector, the interest evolution embedding vector, and the embedding vector of the target item lack features of any dimension, a marker that does not participate in the calculation (such as a mask) is used to fill in the features of the dimension. For the graph embedding table vector, a length must be specified when inputting the calculation model. If it exceeds this length, it will be truncated, and if it is less than this length, it will be filled. The filled part of the features actually has no user behavior and can be covered with a mask to indicate that it does not participate in the calculation.

[0089] Step 102: concatenate the target user's embedding vector, behavior embedding vector, interest evolution embedding vector, and the target item's embedding vector into a combined embedding vector of the target user.

[0090] After obtaining the embedding vector of the target user, the behavior embedding vector, the interest evolution embedding vector and the embedding vector of the target item, these four groups of vectors are concatenated and straightened to obtain a combined embedding model of the target user.

[0091] Step 103: input the combined embedding vector of the target user into a pre-trained computing model, thereby outputting the behavior probability of the target user towards the target item.

[0092] In order to accurately calculate the probability of the target user's behavior towards the target item, a calculation model needs to be trained in advance. Optionally, the calculation model is trained using the following method:

[0093] According to the behavioral characteristics and basic characteristics of each user and the behavioral characteristics and basic characteristics of each item in the training sample, a combined embedding vector of each user is generated; and the combined embedding vector of each user is used to train a fully connected neural network to obtain a calculation model.

[0094] Alternatively, if Figure 2As shown, according to the behavioral characteristics and basic characteristics of each user in the training sample and the behavioral characteristics and basic characteristics of each item, a combined embedding vector of each user is generated, including: using a first graph embedding model to convert the recent behavioral characteristics and basic characteristics of each user in the training sample into an embedding vector of each user; using a second graph embedding model to convert the recent behavioral characteristics and basic characteristics of each item in the training sample into an embedding vector of each item; using an attention neural network to convert the behavioral characteristics of each user in different periods in the training sample into a behavioral embedding vector of each user; using a memory network model to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user; and splicing the embedding vector, behavioral embedding vector, interest evolution embedding vector of each user and the embedding vector of each item into a combined embedding vector of each user. Optionally, the first graph embedding model is a Node2vec model, the second graph embedding model is a Node2vec model, and the memory network model is a hierarchical periodic memory network model. Optionally, graph embedding-based algorithms, such as DeepWalk, LINE, SDNE, etc., can replace the word embedding work of Node2Vec in the embodiments of the present invention, and will not be repeated.

[0095] The use of graph embedding feature table methods (such as the Node2vec model) to generate features is mainly to automatically construct implicit cross-features (combined features) between users and items from category features such as user id, item id, third-level category id, and user basic portrait. This can transform the problem of manually constructing cross-features to discover what kind of user's interest preferences for items, categories, and orders into the use of graph embedding feature table methods to automatically discover the implicit but more important relationship between users and items. The first graph embedding model is used to construct the user's embedding vector. During the construction process, users are used as nodes, and the associations between users are mined through behavioral features, basic features, etc., so as to construct the embedding vector of each user. The second graph embedding model is used to construct the embedding vector of items. During the construction process, items are used as nodes, and the associations between items are mined through behavioral features, basic features, etc., so as to construct the embedding vector of each item.

[0096] Using the attention mechanism method to weight user interests and weighting them by the user's historical behavior statistics on items can, on the one hand, utilize a large amount of historical data. On the other hand, adding weights based on user behavior is also a very important step in personalization technology.

[0097] The embodiments of the present invention utilize user time series to construct rich user and item feature vectors. Taking into account the rationality and importance of the initial sequence, a union-find method is used to obtain preliminary user behavior feature sequences and item behavior feature sequences when constructing user behavior sequences, instead of directly taking the top N items that a user has followed, added to cart, browsed, or clicked over a period of time.

[0098] If the embedding vector of the user, the embedding vector of the behavior, the embedding vector of the interest evolution, and the embedding vector of the item lack features of any dimension, a marker that does not participate in the calculation (such as a mask) is used to fill in the features of the dimension. For the graph embedding table vector, a length must be specified when inputting the calculation model. If it exceeds this length, it will be truncated, and if it is less than this length, it will be filled. The filled part of the features actually does not have user behavior, and can be covered with a mask to indicate that it does not participate in the calculation.

[0099] The memory network model can adopt the HPMN (Hierarchical Periodic Memory Network) network concept, which draws on the hierarchical recurrent neural network, adopts the design of periodic upward induction, hierarchically describes the user's long-term, medium-term, and short-term interest preferences, and establishes a list of interest vectors of user change trends. Because the user's interest preferences are changing, the purpose of learning the memory network model is to replace the previous artificial time decay factor to describe the operation of this gradual attribute. Optionally, the behavioral characteristics of different periods include recent behavioral characteristics, medium-term behavioral characteristics, and long-term behavioral characteristics. According to the length of different periods, time windows can be set separately, such as 1 day, 3 days, 7 days, 14 days, 1 month, 2 months, 3 months, half a year, etc., which can be used as short-term, medium-term and long-term respectively.

[0100] Then, if Figure 2 As shown, the embedding vectors obtained above are concatenated and straightened (Embedding concat & Flatten) and then the connected network is a fully connected neural network, and then the softmax classification output is adopted.

[0101] Optionally, after step 103, the method further includes: arranging the target user's behavior probability for each target item in descending order; screening out N target items with the highest behavior probability, where N is an integer greater than zero; and adding the N target items to the set of items to be recommended corresponding to the target user.

[0102] Using click-through rate as the behavior probability, the model evaluation index AUC (Area Under Curve) can reach 0.6837 by using the method provided by the embodiment of the present invention. Compared with the traditional method of 0.6529, the improvement effect of this application is more obvious. The list sorting effect of user personalized items was also tested. The results of search evaluation indicators NDCG@20 and NDCG@50 were 0.042 and 0.038 respectively. Since this application adds the preference weight of user historical behavior and the change weight of user interest preference, the items recommended to users are in line with the user's medium- and long-term interest preferences.

[0103] According to the various embodiments described above, it can be seen that the embodiment of the present invention solves the technical problem that the prior art cannot accurately and efficiently mine the implicit vector expression between users and items and cannot distinguish the long-term, medium-term and recent changes in users' interests by inputting the target user's embedding vector, behavior embedding vector, interest evolution embedding vector and target item embedding vector into a pre-trained computing model to output the target user's behavior probability for the target item. The embodiment of the present invention uses graph embedding technology to accurately and efficiently mine the implicit vector expression between users and items from the multi-dimensional features of users and items, thereby obtaining the user's direct and implicit personalized preferences; mines the user's historical preferences and the user's medium- and long-term interest preferences from the user's behavioral characteristics at different times, thereby being able to cover the user's behavior to a large extent; at the same time, it combines the attention mechanism neural network and the memory network model to make full use of the learning flexibility and powerful learning ability of the deep learning network, thereby effectively reducing a large amount of feature engineering work and manual intervention in the time decay factor.

[0104] Figure 3 Schematic diagram of the main flow of a method for processing data according to a reference embodiment of the present invention. As another embodiment of the present invention, Figure 3 As shown, the method for processing data may include:

[0105] Step 301: Use the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user.

[0106] Optionally, the first graph embedding model is a Node2vec model, which uses the Node2vec model to convert recent behavioral characteristics and basic characteristics of each user in the training sample into an embedding vector of each user. In the process of constructing the embedding vector, the user is used as a node, and the association relationship between each user is mined through behavioral characteristics, basic characteristics, etc., thereby mining implicit cross-features between users and items.

[0107] Step 302: Use a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each item.

[0108] Optionally, the second graph embedding model is a Node2vec model, which uses the Node2vec model to convert recent behavioral features and basic features of each item in the training sample into an embedding vector of each item. In the process of constructing the embedding vector, the items are used as nodes, and the association relationship between the items is mined through behavioral features, basic features, etc., thereby mining implicit cross-features between users and items.

[0109] Step 303: Use an attention neural network to convert the behavioral features of each user in the training sample at different times into a behavioral embedding vector of each user.

[0110] The behavioral characteristics of different periods include recent behavioral characteristics, mid-term behavioral characteristics and long-term behavioral characteristics. According to the length of different periods, time windows can be set respectively, such as 1 day, 3 days, 7 days, 14 days, 1 month, 2 months, 3 months, half a year, etc., which can be used as recent, mid-term and long-term respectively.

[0111] Step 304: Using a hierarchical periodic memory network model, the behavioral features of each user in the training sample at different periods are converted into an interest evolution embedding vector of each user.

[0112] The behavioral features of different periods include recent behavioral features, mid-term behavioral features and long-term behavioral features. The behavioral features of different periods are distributed and input into networks of different layers, and the interest evolution embedding vectors of each user are obtained through learning.

[0113] It should be noted that step 301, step 302, step 303 and step 304 may be executed synchronously or sequentially, and the execution order of step 301-step 304 may be random, which is not limited in the embodiment of the present invention.

[0114] Step 305: Concatenate the embedding vectors of each user, the behavior embedding vector, the interest evolution embedding vector, and the embedding vectors of each item into a combined embedding vector of each user.

[0115] If the embedding vector of the user, the embedding vector of the behavior, the embedding vector of the interest evolution, and the embedding vector of the item lack features of any dimension, a marker that does not participate in the calculation (such as a mask) is used to fill in the features of the dimension. For the graph embedding table vector, a length must be specified when inputting the calculation model. If it exceeds this length, it will be truncated, and if it is less than this length, it will be filled. The filled part of the features actually does not have user behavior, and can be covered with a mask to indicate that it does not participate in the calculation.

[0116] Step 306, generating an embedding vector of the target user, a behavior embedding vector, an interest evolution embedding vector, and an embedding vector of the target item based on the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item.

[0117] This step is similar to step 301, step 302, step 303 and step 304, and will not be repeated here.

[0118] Step 307, concatenate the target user's embedding vector, behavior embedding vector, interest evolution embedding vector, and the target item's embedding vector into a combined embedding vector of the target user, and use the combined embedding vectors of each of the users to train a fully connected neural network, thereby obtaining a computational model.

[0119] Step 308: input the combined embedding vector of the target user into a pre-trained computing model, thereby outputting the behavior probability of the target user towards the target item.

[0120] Step 309, sorting the target user's behavior probabilities for the target items in descending order, screening out N target items with the highest behavior probabilities, where N is an integer greater than zero, and adding the N target items to the set of items to be recommended corresponding to the target user.

[0121] After obtaining the target user's behavior probability for each target item, the target items are sorted based on the behavior probability, and the top N target items are screened out as items to be recommended to the target user. Since the application adds the preference weight of the user's historical behavior and the weight of the change of the user's interest preference, the items recommended to the user are in line with the user's medium- and long-term interest preferences.

[0122] In addition, the specific implementation content of the method for processing data in a reference embodiment of the present invention has been described in detail in the method for processing data described above, so the repeated content will not be described here.

[0123] Figure 4 is a schematic diagram of main modules of a device for processing data according to an embodiment of the present invention, such as Figure 4As shown, the device 400 for processing data includes a feature module 401, a combination module 402, a calculation module 403 and a training module 404; wherein the feature module 401 is used to generate the embedding vector, behavior embedding vector, interest evolution embedding vector and embedding vector of the target user according to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item; the combination module 402 is used to splice the embedding vector, behavior embedding vector, interest evolution embedding vector and embedding vector of the target user into the combined embedding vector of the target user; the calculation module 403 is used to input the combined embedding vector of the target user into a pre-trained computing model, thereby outputting the behavior probability of the target user towards the target item; the training module 404 is used to generate the combined embedding vector of each user according to the behavior characteristics and basic characteristics of each user in the training sample and the behavior characteristics and basic characteristics of each item; the combined embedding vector of each user is used to train a fully connected neural network, thereby obtaining a computing model.

[0124] Optionally, the training module 404 is further used for:

[0125] Using the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user;

[0126] Using a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each of the items;

[0127] Using an attention neural network to convert the behavioral features of each user in different periods in the training sample into a behavioral embedding vector of each user;

[0128] A memory network model is used to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user;

[0129] The embedding vectors, behavior embedding vectors, interest evolution embedding vectors of each of the users and the embedding vectors of each of the items are respectively concatenated into a combined embedding vector of each of the users.

[0130] Optionally, the first graph embedding model is a Node2vec model, the second graph embedding model is a Node2vec model, and the memory network model is a hierarchical periodic memory network model.

[0131] Optionally, the behavior characteristics of different periods include recent behavior characteristics, mid-term behavior characteristics and long-term behavior characteristics.

[0132] Optionally, the training module 404 is further used for:

[0133] If the user's embedding vector, behavior embedding vector, interest evolution embedding vector and the item's embedding vector lack features of any dimension, a marker that does not participate in the calculation is used to fill in the features of the dimension.

[0134] Optionally, the feature module 401 is further used for:

[0135] Using the first graph embedding model to convert the recent behavior features and basic features of the target user into an embedding vector of the target user;

[0136] Using the recent behavior features and basic features of the target object of the second graph embedding model to convert them into an embedding vector of the target object;

[0137] Using the attention neural network to convert the behavior characteristics of the target user at different periods into a behavior embedding vector of the target user;

[0138] The memory network model is used to convert the behavioral characteristics of the target user at different periods into an embedded vector of the interest evolution of the target user.

[0139] Optionally, the calculation module 403 is further used for:

[0140] After outputting the behavior probability of the target user towards the target item, arranging the behavior probability of the target user towards each target item in descending order;

[0141] Filter out N target items with the highest behavior probability, where N is an integer greater than zero;

[0142] The N target items are added to the set of items to be recommended corresponding to the target user.

[0143] According to the various embodiments described above, it can be seen that the embodiment of the present invention solves the technical problem that the prior art cannot accurately and efficiently mine the implicit vector expression between users and items and cannot distinguish the long-term, medium-term and recent changes in users' interests by inputting the target user's embedding vector, behavior embedding vector, interest evolution embedding vector and target item embedding vector into a pre-trained computing model to output the target user's behavior probability for the target item. The embodiment of the present invention uses graph embedding technology to accurately and efficiently mine the implicit vector expression between users and items from the multi-dimensional features of users and items, thereby obtaining the user's direct and implicit personalized preferences; mines the user's historical preferences and the user's medium- and long-term interest preferences from the user's behavioral characteristics at different times, thereby being able to cover the user's behavior to a large extent; at the same time, it combines the attention mechanism neural network and the memory network model to make full use of the learning flexibility and powerful learning ability of the deep learning network, thereby effectively reducing a large amount of feature engineering work and manual intervention in the time decay factor.

[0144] It should be noted that the specific implementation content of the device for processing data in the present invention has been described in detail in the method for processing data described above, so the repeated content will not be described again here.

[0145] Figure 5 An exemplary system architecture 500 is shown to which the method for processing data or the apparatus for processing data according to the embodiment of the present invention can be applied.

[0146] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0147] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0148] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0149] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as the item information query request, and feed back the processing results (such as target push information, item information - only an example) to the terminal device.

[0150] It should be noted that the method for processing data provided in the embodiment of the present invention is generally executed by the server 505, and accordingly, the device for processing data is generally set in the server 505. The method for processing data provided in the embodiment of the present invention can also be executed by the terminal devices 501, 502, 503, and accordingly, the device for processing data can be set in the terminal devices 501, 502, 503.

[0151] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0152] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0153] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0154] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0155] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0156] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a feature module, a combination module, a calculation module and a training module, wherein the names of these modules do not constitute a limitation on the modules themselves in some cases.

[0159] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method: according to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item, the embedding vector, behavior embedding vector, interest evolution embedding vector and embedding vector of the target user are generated; the embedding vector, behavior embedding vector, interest evolution embedding vector and embedding vector of the target user are spliced ​​into the combined embedding vector of the target user; the combined embedding vector of the target user is input into a pre-trained computing model, thereby outputting the behavior probability of the target user to the target item; wherein the computing model is trained by the following method: according to the behavior characteristics and basic characteristics of each user in the training sample and the behavior characteristics and basic characteristics of each item, the combined embedding vector of each user is generated; the combined embedding vector of each user is used to train a fully connected neural network, thereby obtaining a computing model.

[0160] According to the technical solution of the embodiment of the present invention, because the target user's embedding vector, behavior embedding vector, interest evolution embedding vector and target item embedding vector are input into a pre-trained computing model to output the target user's behavior probability for the target item, the technical problem that the prior art cannot accurately and efficiently mine the implicit vector expression between the user and the item, and cannot distinguish the user's long-term, medium-term and recent interest changes is overcome. The embodiment of the present invention uses graph embedding technology to accurately and efficiently mine the implicit vector expression between the user and the item from the multi-dimensional features of the user and the item, thereby obtaining the user's direct and implicit personalized preferences; mines the user's historical preferences and the user's medium- and long-term interest preferences from the user's behavioral characteristics at different times, thereby being able to cover the user's behavior to a large extent; at the same time, it combines the attention mechanism neural network and the memory network model to make full use of the learning flexibility and powerful learning ability of the deep learning network, thereby effectively reducing a large amount of feature engineering work and manual intervention in the time decay factor.

[0161] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing data, characterized in that: include: Generate an embedding vector, a behavior embedding vector, an interest evolution embedding vector of the target user, and an embedding vector of the target item according to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item; splicing the target user's embedding vector, behavior embedding vector, interest evolution embedding vector, and the target item's embedding vector into a combined embedding vector of the target user; Inputting the combined embedding vector of the target user into a pre-trained computing model, thereby outputting the behavior probability of the target user towards the target item; The calculation model is trained using the following method: Generate a combined embedding vector for each user according to the behavioral characteristics and basic characteristics of each user and the behavioral characteristics and basic characteristics of each item in the training sample; Using the combined embedding vectors of each of the users to train a fully connected neural network, thereby obtaining a computational model; According to the behavior characteristics and basic characteristics of each user in the training sample and the behavior characteristics and basic characteristics of each item, a combined embedding vector of each user is generated, including: Using the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user; Using a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each of the items; Using an attention neural network to convert the behavioral features of each user in different periods in the training sample into a behavioral embedding vector of each user; A memory network model is used to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user; The embedding vectors, behavior embedding vectors, interest evolution embedding vectors of each of the users and the embedding vectors of each of the items are respectively concatenated into a combined embedding vector of each of the users; According to the behavior characteristics and basic characteristics of the target user and the behavior characteristics and basic characteristics of the target item, an embedding vector of the target user, a behavior embedding vector, an interest evolution embedding vector and an embedding vector of the target item are generated, including: Using the first graph embedding model to convert the recent behavior features and basic features of the target user into an embedding vector of the target user; Using the second graph embedding model to convert the recent behavior features and basic features of the target object into an embedding vector of the target object; Using the attention neural network to convert the behavior characteristics of the target user at different periods into a behavior embedding vector of the target user; The memory network model is used to convert the behavioral characteristics of the target user at different periods into an embedded vector of the interest evolution of the target user.

2. The method according to claim 1, characterized in that The first graph embedding model is a Node2vec model, the second graph embedding model is a Node2vec model, and the memory network model is a layered periodic memory network model.

3. The method according to claim 1, characterized in that The behavioral characteristics of different periods include recent behavioral characteristics, mid-term behavioral characteristics and long-term behavioral characteristics.

4. The method according to claim 1, characterized in that: Also includes: If the user's embedding vector, behavior embedding vector, interest evolution embedding vector and the item's embedding vector lack features of any dimension, a marker that does not participate in the calculation is used to fill in the features of the dimension.

5. The method according to claim 1, characterized in that After outputting the behavior probability of the target user towards the target item, the method further includes: Arrange the target user's behavior probabilities for each target item in descending order; Filter out N target items with the highest behavior probability, where N is an integer greater than zero; The N target items are added to the set of items to be recommended corresponding to the target user.

6. A device for processing data, characterized in that: include: A feature module, used to generate an embedding vector, a behavior embedding vector, an interest evolution embedding vector of the target user and an embedding vector of the target item according to the behavior features and basic features of the target user and the behavior features and basic features of the target item; A combination module, used to splice the embedding vector of the target user, the behavior embedding vector, the interest evolution embedding vector and the embedding vector of the target item into a combined embedding vector of the target user; A calculation module, used for inputting the combined embedding vector of the target user into a pre-trained calculation model, thereby outputting the behavior probability of the target user towards the target item; A training module, for generating a combined embedding vector of each user according to the behavioral characteristics and basic characteristics of each user and the behavioral characteristics and basic characteristics of each item in the training sample; and training a fully connected neural network using the combined embedding vectors of each user to obtain a computational model; The training module is also used to: Using the first graph embedding model to convert the recent behavior features and basic features of each user in the training sample into an embedding vector of each user; Using a second graph embedding model to convert the recent behavior features and basic features of each item in the training sample into an embedding vector of each of the items; Using an attention neural network to convert the behavioral features of each user in different periods in the training sample into a behavioral embedding vector of each user; A memory network model is used to convert the behavioral characteristics of each user in different periods in the training sample into an interest evolution embedding vector of each user; The embedding vectors, behavior embedding vectors, interest evolution embedding vectors of each of the users and the embedding vectors of each of the items are respectively concatenated into a combined embedding vector of each of the users; The training module is also used to: Using the first graph embedding model to convert the recent behavior features and basic features of the target user into an embedding vector of the target user; Using the second graph embedding model to convert the recent behavior features and basic features of the target object into an embedding vector of the target object; Using the attention neural network to convert the behavior characteristics of the target user at different periods into a behavior embedding vector of the target user; The memory network model is used to convert the behavioral characteristics of the target user at different periods into an embedded vector of the interest evolution of the target user.

7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.