Information processing method, device, electronic device and storage medium

By vectorizing user tags and item codes, and using vectorization models based on historical data for matching, it solves the problem of low accuracy and quality of information recalled by existing information recommendation engines, and achieves recommendation effects that are more in line with user needs.

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

Patent Information

Application Number
CN202110475122.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-29
Publication Date
2024-10-22
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

Existing information recommendation engines have low accuracy and quality when recalling item recommendation information, and cannot effectively match users' actual needs.

Method used

By obtaining the user tag of the target user, vector matching is performed with the item code of the candidate recommendation information after vectorization, and the vectorization model trained based on historical operation data is used to obtain the target code vector related to the user's habitual interests, thereby recalling relevant recommendations. information.

Benefits of technology

It improves the accuracy and quality of recalled information, makes the recalled recommended information more in line with the actual needs of users, reduces accidental factors caused by randomness, and improves the accuracy of recalled materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113139834B_ABST
    Figure CN113139834B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an information processing method, device, electronic device and storage medium, the information processing method includes: obtaining a user tag of a target user, and determining the item recommendation information matching the user tag to obtain candidate recommendation information; inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, the vectorization model is trained based on the historical operation data of the sample user; retrieving a coding vector matching the user vector from the coding vector of the item code corresponding to the candidate recommendation information to obtain a target coding vector, the coding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; obtaining the target recommendation information according to the target item code corresponding to the target coding vector, and using the target recommendation information as the recall information for the target user. The embodiment of the present invention can improve the accuracy and quality of the recall information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the Internet, online item recommendation information (such as advertisements) can be seen everywhere. Whether the pushed item recommendation information is appropriate is related to user experience, the gross merchandise volume (GMV) of item suppliers (such as merchants), and the return on investment (ROI) of information providers (such as advertisers). Therefore, how to push appropriate item recommendation information to users has become a research hotspot.

[0003] The recommended item information posted by the information publisher is usually stored in the information recommendation engine. The information recommendation engine will establish an inverted index for all the recommended item information stored therein. When a user visits, the information recommendation engine will search for recommended item information matching the user tag through the established inverted index, and then sort and truncate the searched recommended item information according to the bid of the information publisher to obtain the recall result. In the process of realizing the present invention, the inventor found that the recommended item information recalled by this method is not accurate enough and of low quality relative to the user. Summary of the invention

[0004] Embodiments of the present invention provide an information processing method, device, electronic device and storage medium, which can improve the accuracy and quality of recall information.

[0005] In a first aspect, an embodiment of the present invention provides an information processing method, including:

[0006] Obtaining a user tag of a target user, and determining item recommendation information matching the user tag to obtain candidate recommendation information;

[0007] Inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, wherein the vectorization model is trained based on historical operation data of a sample user;

[0008] Retrieving a coding vector matching the user vector from the coding vector of the item code corresponding to the candidate recommendation information to obtain a target coding vector, wherein the coding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing;

[0009] Target recommendation information is obtained according to the target item code corresponding to the target code vector, and the target recommendation information is used as recall information for the target user.

[0010] In a second aspect, an embodiment of the present invention provides an information processing device, the device comprising:

[0011] A determination module is used to obtain a user tag of a target user, and determine item recommendation information matching the user tag to obtain candidate recommendation information;

[0012] A vectorization module, used for inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, wherein the vectorization model is trained based on historical operation data of a sample user;

[0013] A retrieval module, configured to retrieve a coding vector matching the user vector from the coding vectors of the item codes corresponding to the candidate recommendation information, and obtain a target coding vector, wherein the coding vectors of the item codes corresponding to the candidate recommendation information are obtained by inputting the item codes corresponding to the candidate recommendation information into the vectorization model for vectorization processing;

[0014] The recall module is used to obtain target recommendation information according to the target item code corresponding to the target code vector, and use the target recommendation information as recall information for the target user.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an information processing method as described in any one of the embodiments of the present invention is implemented.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an information processing method as described in any one of the embodiments of the present invention.

[0017] In an embodiment of the present invention, after obtaining the user tag of the target user and determining the item recommendation information matching the user tag to obtain the candidate recommendation information, the user tag will be input into the vectorization model for vectorization processing to obtain the user vector, and the vectorization model is trained based on the historical operation data of the sample user; the encoding vector matching the user vector is retrieved from the encoding vector of the item code corresponding to the candidate recommendation information to obtain the target encoding vector, and the encoding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; the target recommendation information is obtained according to the target item code corresponding to the target encoding vector, and the target recommendation information is used as the recall information for the target user. Since the vectorization model is trained based on the historical operation data of the sample user, after the target user and the item code corresponding to the candidate recommendation information are vectorized by the vectorization model, the target recommendation information obtained by vector matching is strongly related to the user's habits and interests, so the recalled target recommendation information will be more in line with the actual needs of the user, improving the accuracy and quality of the recall information. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a structural diagram of an inverted index provided by an embodiment of the present invention.

[0020] Figure 2 It is a flowchart of an information processing method provided by an embodiment of the present invention.

[0021] Figure 3 It is a flowchart of a training method for a vectorized model provided in an embodiment of the present invention.

[0022] Figure 4 The figure is a flow chart of a method for constructing a vector tree provided by an embodiment of the present invention.

[0023] Figure 5 It is a structural schematic diagram of a vector tree provided by an embodiment of the present invention.

[0024] Figure 6 It is a structural schematic diagram of an information processing device provided by an embodiment of the present invention.

[0025] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0027] Before describing the information processing method provided by the embodiment of the present invention, the inverted index in the information recommendation engine is first introduced. A specific inverted index is as follows: Figure 1 When item recommendation information (such as advertisements) is stored in the information recommendation engine, the item recommendation information will be classified according to the targeting conditions, and the targeting conditions can be set according to the attributes of the item recommendation information. Figure 1 As shown, the main attribute can be the attribute pre-specified by the system, and the remaining attributes are called secondary attributes. One main attribute can include multiple secondary attributes. Under a certain targeting condition, all the recommended information of items that meet this targeting condition will be recorded. For example, if a targeting condition is "region: Guangzhou", we call "region" an attribute and "Guangzhou" an attribute value. Under the attribute value "Guangzhou", a list of recommended information of all items with this targeting condition (such as an advertising list) will be recorded. For example, for Figure 1 For example, if the value a under the secondary attribute 1 is "region" and the value a is "Guangzhou", the list under value a includes recommended items that match the attribute value "Guangzhou"; for the value b under secondary attribute 1, if the secondary attribute 1 is "region" and the value b is "Beijing", the list under value b includes recommended items that match the attribute value "Beijing". And so on, each attribute value records the advertisements with the corresponding targeting conditions, and the entire inverted index is composed of attributes and attribute values.

[0028] In the prior art, when a user makes a request, the established inverted index is usually used to search for item recommendation information whose directional conditions match the user tag. User tags include the user's gender, age, region, etc. User tags can be obtained through the user's registration information, big data statistical information, etc. For example, if a user's user tag is "region: Guangzhou", which matches the directional condition "region: Guangzhou" in the inverted index, the item recommendation information under the attribute value "Guangzhou" in the inverted index is obtained, and the obtained item recommendation information is sorted and truncated according to the bid of the information provider to obtain the recall result for the user.

[0029] The recommended information recalled by this recall method is not accurate enough for users and has low quality. For example, a user has been browsing Dell laptops recently. After obtaining laptop ads that match the user's tag through the inverted index, it is found that there is an ad for Lenovo laptops that matches the user's user tag and has the highest bid. At this time, the ad for Lenovo laptops will be recalled to the user. However, in fact, the user's purchase intention is Dell laptops, so the possibility of clicking on the recalled Lenovo laptop ad is very small, and the possibility of purchasing Lenovo laptops is also very small. For this user, this recall is an inaccurate and low-quality recall.

[0030] In addition, each item recommendation information will have a lot of materials, such as pictures, titles, etc. Each material corresponds to an item code, and the material and the corresponding item code can be bound. The item code can be, for example, a stock keeping unit (SKU) code. A SKU code can be used to uniquely identify an item; for example, the latest mobile phone produced by a manufacturer is available in blue, white and black, and the blue, white and black models have different SKU codes.

[0031] Taking mobile phone advertisements as an example, a mobile phone advertisement may include multiple materials (such as pictures, titles) for promoting mobile phones of different styles (such as blue, white and black, which can be distinguished by SKU codes). One material is bound to one SKU code, so one mobile phone advertisement can correspond to multiple SKU codes.

[0032] The relationship between item recommendation information, materials and item codes can be shown in Table 1 below:

[0033]

[0034] Table 1

[0035] As shown in Table 1, Advertisement 1 includes material 11, material 12 and material 13, among which material 11, material 12 and material 13 are bound to SKU11, SKU12 and SKU13 respectively; Advertisement 2 includes material 21, material 22, material 23 and material 24, among which material 21, material 22, material 23 and material 24 are bound to SKU21, SKU22, SKU23 and SKU24 respectively; Advertisement 3 includes material 31 and material 32, among which material 31 and material 32 are bound to SKU31 and SKU32 respectively.

[0036] Generally speaking, after recalling the item recommendation information, recall materials will be selected from the item recommendation information. In the prior art, when selecting recall materials, a certain number of materials are usually randomly selected from the recalled item recommendation information, and the quality of the selected recall materials is relatively low.

[0037] In addition, the set of randomly selected recalled materials can be called a coarse-ranked set. Since the materials in the coarse-ranked set are randomly selected from the recalled item recommendation information, in order to minimize the accidental factors brought about by randomness, generally, as many materials as possible are selected from the recalled item recommendation information if performance permits. This results in a relatively large coarse-ranked set, which is not convenient for use in subsequent fine-ranking models.

[0038] In view of the above problems, an embodiment of the present invention provides an information processing method, such as Figure 2 As shown, Figure 2 The present invention provides an information processing method according to an embodiment of the present invention. The method can be executed by an information processing device according to an embodiment of the present invention. The device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in an electronic device, such as a server. The following embodiments will be described by taking the device integrated in an electronic device as an example. Figure 2 , the method may specifically include the following steps:

[0039] Step 101: Obtain a user tag of a target user, and determine item recommendation information matching the user tag to obtain candidate recommendation information.

[0040] For example, a user tag may be, for example, the user's age, gender, education level, region, etc. There may be multiple user tags, and the user tag of the target user may be obtained based on user registration information, big data statistical information, etc. After obtaining the user tags, the item recommendation information matching each user tag may be obtained through the inverted index. Ultimately, each user tag may obtain corresponding candidate recommendation information. There may be multiple candidate recommendation information corresponding to a user tag, and these candidate recommendation information may be, for example, advertisements.

[0041] Specifically, one candidate recommendation information may include multiple materials, each of which is bound to an item code, that is, one candidate recommendation information may correspond to multiple item codes.

[0042] Step 102: Input the user tag into a vectorization model for vectorization processing to obtain a user vector. The vectorization model is trained based on historical operation data of sample users.

[0043] For example, the vectorization model can be obtained in advance by collecting historical operation data of sample users for offline or online training, and the vectorization model is used to vectorize the input information; the sample users can be users of the entire network, or they can be some users selected from users of the entire network; the historical operation data may include data on the sample users' browsing, clicking, collecting, adding to shopping carts, purchasing, etc. of items online. The historical operation data can be all operation data generated in the past, or it can be operation data generated within a certain period of time in the past, and no specific limitation is made here.

[0044] Specifically, the user tag of the target user can be input into the vectorization model for vectorization processing to obtain a user vector for representing the target user. In a specific implementation, the user tag of the target user used in step 102 and step 101 can be the same or different. The user tag used in step 102 can be a subset of the user tag used in step 101. The user tag used in step 102 can be specifically determined by the user tag used in the training of the vectorization model, that is, the user tag used in step 102 can be the same as the user tag used in the training of the vectorization model.

[0045] Step 103, searching for a coding vector that matches the user vector in the coding vector of the item coding corresponding to the candidate recommendation information to obtain a target coding vector. The coding vector of the item coding corresponding to the candidate recommendation information is obtained by inputting the item coding corresponding to the candidate recommendation information into a vectorization model for vectorization processing.

[0046] Specifically, all item codes corresponding to the candidate recommendation information can be sequentially input into the vectorization model for vectorization processing to obtain a code vector for each item code, and each code vector is matched with the user vector to obtain a target code vector. The matching of two vectors can be achieved by calculating the cosine value of the two vectors. For example, if the cosine value of the two vectors is greater than a preset value, it is determined that the two vectors match.

[0047] In a specific implementation, when the target user has multiple user tags, the user vector can be matched and retrieved with the encoding vector of the item encoding corresponding to the candidate recommendation information matching each user tag, and the corresponding target encoding vector can be retrieved for each user tag.

[0048] Step 104 , obtaining target recommendation information according to the target item code corresponding to the target code vector, and using the target recommendation information as recall information for the target user.

[0049] Specifically, each item code has a corresponding coding vector after vectorization, and the corresponding relationship between the item code and the coding vector can be recorded, and the target item code corresponding to the target coding vector can be obtained according to the corresponding relationship between the item code and the coding vector.

[0050] In a specific implementation, the correspondence between the item code and the item recommendation information may be maintained in advance, and the target recommendation information corresponding to the target item code may be obtained according to the correspondence between the item code and the item recommendation information.

[0051] In a specific embodiment, the correspondence between the item code and the item recommendation information may be shown in the following Table 2:

[0052] Item code (SKU code) Item recommendation information (advertisement) SKU11, SKU12, SKU13 Advertisement 1 SKU21, SKU22, SKU23, SKU24 Advertisement 2 SKU31, SKU32 Advertisement 3

[0053] Table 2

[0054] For each target encoding vector retrieved from the user tag, its corresponding target item encoding can be obtained, and the target recommendation information corresponding to the target item encoding can be obtained according to the correspondence between the item encoding and the item recommendation information. Finally, the target recommendation information corresponding to each user tag can be intersected to obtain the item recommendation information that matches all user tags of the target user at the same time, and the item recommendation information that matches all user tags of the target user at the same time can be recalled.

[0055] Furthermore, the target material bound to the target item code may be obtained from the recalled target recommendation information, and the target material may be used as the recall material for the target user.

[0056] For example, the target item codes obtained include SKU11, SKU12 and SKU24. According to Table 2, the advertisements corresponding to SKU11 and SKU12 are Advertisement 1, and the advertisement corresponding to SKU24 is Advertisement 2. Therefore, Advertisement 1 and Advertisement 2 can be determined to be recalled. According to Table 1, the materials bound to SKU11 and SKU12 are Material 11 and Material 12 respectively, and the material bound to SKU24 is Material 24. Therefore, Material 11 and Material 12 can be selected from Advertisement 1, and Material 24 can be selected from Advertisement 2, and Material 11, Material 12, and Material 24 can be used as recalled materials.

[0057] Since the vectorization model is trained based on the historical operation data of sample users, after the item codes corresponding to the target users and the candidate recommendation information are vectorized through the vectorization model, the target item code is obtained through vector matching. The material selected from the target recommendation information according to the target item code will be strongly related to the user's habits and interests. Compared with randomly selected recalled materials, the target material recalled by the embodiment of the present invention is more in line with the actual needs of the user and the quality of the recalled material is higher.

[0058] In addition, since materials can be selected and recalled from the target recommendation information according to the target item code, the accidental factors caused by randomness can be directly avoided, the accurate selection of materials can be achieved, the coarse sorting set formed by the recalled materials can be reduced, and the problem of the coarse sorting set being relatively large and inconvenient for use in the subsequent fine sorting model can be avoided.

[0059] In an embodiment of the present invention, after obtaining the user tag of the target user and determining the item recommendation information matching the user tag to obtain the candidate recommendation information, the user tag will be input into the vectorization model for vectorization processing to obtain the user vector, and the vectorization model is trained based on the historical operation data of the sample user; the encoding vector matching the user vector is retrieved from the encoding vector of the item code corresponding to the candidate recommendation information to obtain the target encoding vector, and the encoding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; the target recommendation information is obtained according to the target item code corresponding to the target encoding vector, and the target recommendation information is used as the recall information for the target user. Since the vectorization model is trained based on the historical operation data of the sample user, after the target user and the item code corresponding to the candidate recommendation information are vectorized by the vectorization model, the target recommendation information obtained by vector matching is strongly related to the user's habits and interests, so the recalled target recommendation information will be more in line with the actual needs of the user, improving the accuracy and quality of the recall information.

[0060] In a specific embodiment, the vectorization model used in the embodiment of the present invention can be Figure 3 The method shown is trained to obtain Figure 3 As shown, the method may include the following steps:

[0061] Step 201: Establish a correlation graph of sample users and item codes based on historical operation data, and randomly assign a vector to each node in the correlation graph.

[0062] For example, the sample users may be users of the entire network, or some users selected from the entire network; the historical operation data may include data on the sample users' browsing, clicking, collecting, adding to shopping carts, purchasing, etc. of items online. The historical operation data may be all operation data generated in the past, or operation data generated within a certain period of time in the past, and no specific limitation is made here.

[0063] Specifically, the sample user can be used as the user node, and the item code can be used as the code node. The associated user nodes and code nodes are determined based on the historical operation data. The associated user nodes and code nodes are nodes that have an operational relationship between the corresponding sample users and item codes. The associated user nodes and code nodes are connected to form an association graph.

[0064] For example, when a sample user has performed at least one of the following operations on an item identified by an item code: clicking, collecting, adding to shopping cart, and purchasing, it is determined that there is an operational relationship between the sample user and the item code, and the user node corresponding to the sample user and the code node corresponding to the item code can be connected.

[0065] The formed association graph includes a large number of nodes. During the initial training, a vector value can be randomly assigned to each node.

[0066] Step 202 : Select a preset number of target nodes from the association graph, and aggregate the vectors of the neighboring nodes of the target nodes through an aggregation function to generate a vector of the target node.

[0067] For example, the preset number can be customized according to experimental data or actual needs, and the selected target nodes include user nodes and encoding nodes.

[0068] In the specific implementation, in order to reduce the computational complexity and take into account the accuracy, when aggregating the vectors of the neighbor nodes of the target node through the aggregation function, the one-hop neighbor nodes and the two-hop neighbor nodes of the target node can be sampled. The specific aggregation method can be as follows:

[0069] First, the vectors of the two-hop neighbor nodes of the target node are aggregated through the aggregation function to generate the vector of the one-hop neighbor nodes of the target node;

[0070] Secondly, the vectors of the one-hop neighbor nodes of the target node are aggregated through the aggregation function to generate the vector of the target node.

[0071] For example, the aggregation function may adopt an average aggregation algorithm, that is, the vector of the corresponding one-hop neighbor node may be obtained by calculating the average value of the vectors of all two-hop neighbor nodes; and the vector of the corresponding target node may be obtained by calculating the average value of the vectors of all one-hop neighbor nodes.

[0072] Step 203, calculating the sample prediction label according to the vector of the target node.

[0073] Before calculating the sample prediction label, you can first determine the sample preset label. The sample preset label can be obtained in the following way:

[0074] (1) Establish a sample set, where each sample in the sample set includes the sample user and item code.

[0075] That is, each sample can be composed of the sample user and item code.

[0076] (2) For each sample, determine whether there is an operational relationship between the sample user and the item code in the sample based on the historical operation data.

[0077] For example, when a sample user in a certain sample has performed at least one of click, favorite, add to shopping cart, and purchase on an item identified by an item code in the sample, it is determined that an operational relationship exists between the sample user in the sample and the item code.

[0078] (3) If there is an operational relationship between the sample user and the item code in the sample, the sample is assigned a first label value; if there is no operational relationship between the sample user and the item code in the sample, the sample is assigned a second label value.

[0079] For example, if there is an operational relationship between the sample user and the item code in the sample, the sample can be considered a positive sample, and if there is no operational relationship between the sample user and the item code in the sample, the sample can be considered a negative sample. Specifically, the first label value can be 1, and the second label value can be 0, and of course, vice versa.

[0080] After obtaining the sample preset label, the sample prediction label can be calculated according to the vector of the target node and the sample preset label, as follows:

[0081] (1) Determine a mapping interval according to the first label value and the second label value.

[0082] For example, when the first label value is 1 and the second label value is 0, the mapping interval can be determined to be [0, 1].

[0083] (2) Calculate the vector similarity between the user node and the encoding node in the target node, map the calculated similarity value to the mapping interval, and obtain the sample prediction label.

[0084] For example, the vector similarity between the user node and the encoding node in the target node can be obtained by calculating the cosine value of the vector of the user node and the vector of the encoding node.

[0085] For example, mapping the similarity value to the mapping interval can be achieved through the sigmod function, that is, the similarity value can be mapped to the interval [0,1] through the sigmod function.

[0086] Step 204, calculate the loss of the sample prediction label and the sample preset label through the loss function to obtain the loss value.

[0087] For example, the loss function may be a cross entropy function, and the loss value may be calculated according to the following formula:

[0088]

[0089] Among them, loss represents the loss value, n represents the number of samples, and y i Indicates the sample preset label, Represents the sample prediction label.

[0090] Step 205, reversely optimize the parameters of the aggregation function and the vectors of each node according to the loss value to obtain a vectorized model.

[0091] For example, the gradient descent method may be used to reversely optimize the parameters of the aggregation function and the vectors of each node, thereby obtaining a vectorized model.

[0092] It should be noted that the training method for the vectorized model provided in the embodiment of the present invention is only an optional or preferred method and is not the only limitation on the training method for the vectorized model.

[0093] In the embodiment of the present invention, the acquisition of historical operation data and the training of the vectorized model can be run in the offline system without affecting the online business. The offline system serializes the trained vectorized model into a file, and the online machine directly loads the file into the memory to calculate the vector information through the vectorized model. The update of the vectorized model version is consistent with the update of the full material of the information recommendation engine system. The update of the full material promotes the update of the vectorized model. At the same time, the update of the vectorized model version also supports real-time update. There is a file called list in the directory where the vectorized model is stored. The file will record the version of the vectorized model in real time. When the vectorized model is updated, the model system will append the latest model version information at the end of the list file. The intelligent index will detect the content of the list file in real time. When it is found that the model version recorded at the end of the list is inconsistent with the version used by the current system, it will trigger the update of the model.

[0094] In a specific embodiment, in order to speed up the retrieval of the target coding vector and improve the information processing efficiency, a vector tree can also be constructed based on the coding vector of the item coding corresponding to the candidate recommendation information, and the coding vector matching the user vector can be retrieved through the vector tree to obtain the target coding vector.

[0095] The specific vector tree construction method can be as follows Figure 4 As shown, the following steps are included:

[0096] Step 301: Input the item code corresponding to the candidate recommendation information into a vectorization model for vectorization processing to obtain a coding vector of the item code corresponding to the candidate recommendation information.

[0097] Among them, one item code can correspond to a coding vector.

[0098] Step 302: The encoding vectors of the item codes corresponding to the candidate recommendation information are regarded as a cluster as a whole, and the K-means clustering algorithm is used to divide the cluster as a whole into two clusters.

[0099] This embodiment takes K in the K-means clustering algorithm as 2 as an example for explanation, and the specific division method can be as follows:

[0100] (1) Divide the entire cluster into two clusters, and randomly select a coding vector from each cluster as the initial centroid of the corresponding cluster.

[0101] (2) Calculate the distances from all encoding vectors to the centroids of the two clusters, and divide each encoding vector into the cluster corresponding to the centroid closest to it, thereby achieving cluster re-division.

[0102] (3) Calculate the average of all encoding vectors in the re-divided clusters to obtain the new centroid of the corresponding cluster.

[0103] (4) Calculate the distance between the corresponding centroids obtained twice. If the distance is less than the set distance value, the two clusters are divided. If the distance is not less than the set distance value, repeat steps (2) and (3).

[0104] Step 303: The cluster with the lower density among the two currently obtained clusters is further divided into two clusters.

[0105] Specifically, the sum of distances from all encoding vectors in each cluster to the centroid of the cluster can be calculated, and clusters with larger sums of distances can be further divided as clusters with lower density.

[0106] Step 304, whether the preset termination condition is met, if so, execute step 305, otherwise, return to step 303.

[0107] The preset termination condition can be customized according to actual needs, such as dividing a specified number of clusters.

[0108] Step 305: Use all the obtained clusters as tree nodes to build a binary tree to obtain a vector tree.

[0109] In a specific embodiment, the vector tree established can be as follows Figure 5 As shown, each node in the vector tree is a cluster.

[0110] After obtaining the vector tree, you can search the vector tree as follows:

[0111] (1) Retrieve the cluster matching the user vector from each layer of the vector tree to obtain the target cluster.

[0112] Specifically, the vector similarity between the user vector and the centroid of the cluster in each layer of the vector tree can be calculated, and the cluster whose calculated similarity value meets the preset similarity threshold is selected to obtain the target cluster. The centroid of the cluster can be the mean of all vectors in the cluster.

[0113] For example, the similarities calculated at each layer of the vector tree can be sorted in descending order, and the clusters corresponding to the top M similarity values ​​can be selected to obtain the target cluster, where M is a positive integer. If the total number of clusters in a certain layer is less than M, all the clusters in this layer are selected.

[0114] (2) Retrieve the encoding vector that matches the user vector from the target cluster and obtain the target encoding vector.

[0115] For example, the similarity between the coding vector in each target cluster and the user vector can be calculated, and then the calculated similarities are sorted in descending order, and the coding vectors corresponding to the top M similarity values ​​are selected to obtain the target coding vector.

[0116] By constructing a vector tree to retrieve the target coding vector, by setting the similarity condition, only the target cluster can be retrieved, which reduces the search scope and improves the search speed. Of course, in practical applications, it is also possible not to construct a vector tree, but to use a brute force search method to search all, which is not specifically limited in the embodiment of the present invention.

[0117] Figure 6 FIG. 1 is a structural diagram of an information processing device provided by an embodiment of the present invention, and the device is suitable for executing the information processing method provided by an embodiment of the present invention. Figure 6 As shown, the device may specifically include:

[0118] The determination module 401 is used to obtain a user tag of a target user, and determine the item recommendation information matching the user tag to obtain candidate recommendation information;

[0119] A vectorization module 402 is used to input the user tag into a vectorization model for vectorization processing to obtain a user vector, wherein the vectorization model is trained based on historical operation data of a sample user;

[0120] A retrieval module 403 is used to retrieve a code vector matching the user vector from the code vectors of the item codes corresponding to the candidate recommendation information to obtain a target code vector, wherein the code vectors of the item codes corresponding to the candidate recommendation information are obtained by inputting the item codes corresponding to the candidate recommendation information into the vectorization model for vectorization processing;

[0121] The recall module 404 is used to obtain target recommendation information according to the target item code corresponding to the target code vector, and use the target recommendation information as recall information for the target user.

[0122] In one embodiment, the device further comprises a model building module, wherein the model building module is used to:

[0123] Establishing a correlation graph of sample users and item codes according to the historical operation data, and randomly assigning a vector to each node in the correlation graph;

[0124] Selecting a preset number of target nodes from the association graph, and aggregating vectors of neighboring nodes of the target nodes through an aggregation function to generate a vector of the target node;

[0125] Calculate a sample prediction label according to the vector of the target node;

[0126] The loss function is used to calculate the loss of the sample prediction label and the sample preset label to obtain a loss value;

[0127] The parameters of the aggregation function and the vectors of each node are reversely optimized according to the loss value to obtain the vectorized model.

[0128] In one embodiment, the model building module builds a relationship graph of sample users and item codes based on the historical operation data, including:

[0129] Taking the sample user as a user node and the item code as a code node, determining the associated user node and code node according to the historical operation data, wherein the associated user node and code node are nodes having an operation relationship between the corresponding sample user and the item code;

[0130] The associated user nodes and encoding nodes are connected to form the association graph.

[0131] In one embodiment, the model building module aggregates the vectors of the neighboring nodes of the target node through an aggregation function to generate the vector of the target node, including:

[0132] Aggregating the vectors of the two-hop neighbor nodes of the target node by using the aggregation function to generate a vector of the one-hop neighbor nodes of the target node;

[0133] The vectors of the one-hop neighbor nodes of the target node are aggregated by using the aggregation function to generate the vector of the target node.

[0134] In one embodiment, the sample preset label is obtained by:

[0135] Establishing a sample set, wherein each sample in the sample set includes a sample user and an item code;

[0136] For each of the samples, determining whether there is an operation relationship between the sample user and the item code in the sample according to the historical operation data;

[0137] If there is an operational relationship between the sample user and the item code in the sample, the sample is assigned a first label value; if there is no operational relationship between the sample user and the item code in the sample, the sample is assigned a second label value.

[0138] In one embodiment, the target node includes a user node and a coding node, and the model building module calculates the sample prediction label according to the vector of the target node, including:

[0139] Determine a mapping interval according to the first label value and the second label value;

[0140] The vector similarity between the user node and the encoding node in the target node is calculated, and the calculated similarity value is mapped to the mapping interval to obtain the sample prediction label.

[0141] In one embodiment, the retrieval module 403 retrieves a code vector matching the user vector from the code vectors of the item codes corresponding to the candidate recommendation information to obtain a target code vector, including:

[0142] Constructing a vector tree according to the encoding vectors of the item codes corresponding to the candidate recommendation information;

[0143] The encoding vector matching the user vector is retrieved on the vector tree to obtain the target encoding vector.

[0144] In one embodiment, the retrieval module 403 constructs a vector tree according to the encoding vector of the item encoding corresponding to the candidate recommendation information, including:

[0145] Taking the encoding vectors of the item codes corresponding to the candidate recommendation information as a cluster as a whole, and using the K-means clustering algorithm to divide the cluster as a whole into two clusters;

[0146] Continue to divide the cluster with the lower density among the two clusters currently obtained and repeat the current step until the division stops when the preset termination condition is met;

[0147] A binary tree is established by using all the obtained clusters as tree nodes to obtain the vector tree.

[0148] In one embodiment, the retrieval module 403 retrieves the encoding vector matching the user vector on the vector tree to obtain the target encoding vector, including:

[0149] Retrieving a cluster matching the user vector from each layer of the vector tree to obtain a target cluster;

[0150] A coding vector matching the user vector is retrieved from the target cluster to obtain the target coding vector.

[0151] In one embodiment, the retrieval module 403 retrieves a cluster matching the user vector from each layer of the vector tree to obtain a target cluster, including:

[0152] The vector similarity between the user vector and the centroid of the cluster in each layer of the vector tree is calculated, and a cluster whose calculated similarity value meets a preset similarity threshold is selected to obtain the target cluster.

[0153] In one embodiment, the recall module 404 is further used to:

[0154] A target material bound to the target item code is acquired from the target recommendation information, and the target material is used as a recall material for the target user.

[0155] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0156] The device of the embodiment of the present invention, after obtaining the user tag of the target user and determining the item recommendation information matching the user tag to obtain the candidate recommendation information, will input the user tag into the vectorization model for vectorization processing to obtain the user vector, and the vectorization model is trained based on the historical operation data of the sample user; retrieve the encoding vector matching the user vector in the encoding vector of the item code corresponding to the candidate recommendation information to obtain the target encoding vector, and the encoding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; obtain the target recommendation information according to the target item code corresponding to the target encoding vector, and use the target recommendation information as the recall information for the target user. Since the vectorization model is trained based on the historical operation data of the sample user, after the target user and the item code corresponding to the candidate recommendation information are vectorized by the vectorization model, the target recommendation information obtained by vector matching is strongly related to the user's habits and interests, so the recalled target recommendation information will be more in line with the user's actual needs, improving the accuracy and quality of the recall information.

[0157] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the information processing method provided in any of the above embodiments when executing the program.

[0158] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the information processing method provided by any of the above embodiments is implemented.

[0159] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 500 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic 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.

[0160] like Figure 7 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

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

[0162] 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 product, 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 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0163] 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. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, 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.

[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product 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.

[0165] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be set in a processor, for example, it may be described as: a processor includes a determination module, a vectorization module, a retrieval module, and a recall module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0166] 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 includes: obtaining a user tag of a target user, and determining the item recommendation information matching the user tag to obtain candidate recommendation information; inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, and the vectorization model is trained based on the historical operation data of the sample user; retrieving the encoding vector matching the user vector from the encoding vector of the item code corresponding to the candidate recommendation information to obtain a target encoding vector, and the encoding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; obtaining the target recommendation information according to the target item code corresponding to the target encoding vector, and using the target recommendation information as the recall information for the target user.

[0167] According to the technical solution of the embodiment of the present invention, after obtaining the user tag of the target user and determining the item recommendation information matching the user tag to obtain the candidate recommendation information, the user tag will be input into the vectorization model for vectorization processing to obtain the user vector, and the vectorization model is trained based on the historical operation data of the sample user; the encoding vector matching the user vector is retrieved from the encoding vector of the item code corresponding to the candidate recommendation information to obtain the target encoding vector, and the encoding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; the target recommendation information is obtained according to the target item code corresponding to the target encoding vector, and the target recommendation information is used as the recall information for the target user. Since the vectorization model is trained based on the historical operation data of the sample user, after the target user and the item code corresponding to the candidate recommendation information are vectorized by the vectorization model, the target recommendation information obtained by vector matching is strongly related to the user's habits and interests, so the recalled target recommendation information will be more in line with the actual needs of the user, improving the accuracy and quality of the recall information.

[0168] 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. An information processing method, characterized in that: include: Obtaining a user tag of a target user, and determining item recommendation information matching the user tag to obtain candidate recommendation information; Inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, wherein the vectorization model is trained based on historical operation data of a sample user; Retrieving a coding vector matching the user vector from the coding vector of the item code corresponding to the candidate recommendation information to obtain a target coding vector, wherein the coding vector of the item code corresponding to the candidate recommendation information is obtained by inputting the item code corresponding to the candidate recommendation information into the vectorization model for vectorization processing; acquiring target recommendation information according to the target item code corresponding to the target code vector, and using the target recommendation information as recall information for the target user; The vectorized model is trained in the following way: Establishing a correlation graph of sample users and item codes according to the historical operation data, and randomly assigning a vector to each node in the correlation graph; Selecting a preset number of target nodes from the association graph, and aggregating vectors of neighboring nodes of the target nodes through an aggregation function to generate a vector of the target node; Calculate a sample prediction label according to the vector of the target node; The loss function is used to calculate the loss of the sample prediction label and the sample preset label to obtain a loss value; The parameters of the aggregation function and the vectors of each node are reversely optimized according to the loss value to obtain the vectorized model.

2. The information processing method according to claim 1, characterized in that: The step of establishing a correlation graph of sample users and item codes according to the historical operation data includes: Taking the sample user as a user node and the item code as a code node, determining the associated user node and code node according to the historical operation data, wherein the associated user node and code node are nodes having an operation relationship between the corresponding sample user and the item code; The associated user nodes and encoding nodes are connected to form the association graph.

3. The information processing method according to claim 1, characterized in that: The step of aggregating the vectors of the neighboring nodes of the target node by using an aggregation function to generate the vector of the target node includes: Aggregating the vectors of the two-hop neighbor nodes of the target node by using the aggregation function to generate a vector of the one-hop neighbor nodes of the target node; The vectors of the one-hop neighbor nodes of the target node are aggregated by using the aggregation function to generate the vector of the target node.

4. The information processing method according to claim 2, characterized in that: The sample preset label is obtained in the following way: Establishing a sample set, wherein each sample in the sample set includes a sample user and an item code; For each of the samples, determining whether there is an operation relationship between the sample user and the item code in the sample according to the historical operation data; If there is an operational relationship between the sample user and the item code in the sample, the sample is assigned a first label value; if there is no operational relationship between the sample user and the item code in the sample, the sample is assigned a second label value.

5. The information processing method according to claim 4, characterized in that: The target node includes a user node and a coding node, and the calculating of the sample prediction label according to the vector of the target node includes: Determine a mapping interval according to the first label value and the second label value; The vector similarity between the user node and the encoding node in the target node is calculated, and the calculated similarity value is mapped to the mapping interval to obtain the sample prediction label.

6. The information processing method according to any one of claims 1 to 5, characterized in that: The step of retrieving a coding vector matching the user vector from the coding vectors of the item codes corresponding to the candidate recommendation information to obtain a target coding vector includes: Constructing a vector tree according to the encoding vectors of the item codes corresponding to the candidate recommendation information; The encoding vector matching the user vector is retrieved on the vector tree to obtain the target encoding vector.

7. The information processing method according to claim 6, characterized in that: The constructing a vector tree according to the encoding vectors of the item encodings corresponding to the candidate recommendation information includes: Taking the encoding vectors of the item codes corresponding to the candidate recommendation information as a cluster as a whole, and using the K-means clustering algorithm to divide the cluster as a whole into two clusters; Continue to divide the cluster with the lower density among the two clusters currently obtained and repeat the current step until the division stops when the preset termination condition is met; A binary tree is established by using all the obtained clusters as tree nodes to obtain the vector tree.

8. The information processing method according to claim 6, characterized in that: The step of retrieving a coding vector matching the user vector on the vector tree to obtain the target coding vector includes: Retrieving a cluster matching the user vector from each layer of the vector tree to obtain a target cluster; A coding vector matching the user vector is retrieved from the target cluster to obtain the target coding vector.

9. The information processing method according to claim 8, characterized in that: The step of retrieving a cluster matching the user vector from each layer of the vector tree to obtain a target cluster includes: The vector similarity between the user vector and the centroid of the cluster in each layer of the vector tree is calculated, and a cluster whose calculated similarity value meets a preset similarity threshold is selected to obtain the target cluster.

10. The information processing method according to claim 1, characterized in that: The method further comprises: A target material bound to the target item code is acquired from the target recommendation information, and the target material is used as a recall material for the target user.

11. An information processing device, characterized in that: include: A determination module is used to obtain a user tag of a target user, and determine item recommendation information matching the user tag to obtain candidate recommendation information; A vectorization module, used for inputting the user tag into a vectorization model for vectorization processing to obtain a user vector, wherein the vectorization model is trained based on historical operation data of a sample user; A retrieval module, configured to retrieve a coding vector matching the user vector from the coding vectors of the item codes corresponding to the candidate recommendation information, and obtain a target coding vector, wherein the coding vectors of the item codes corresponding to the candidate recommendation information are obtained by inputting the item codes corresponding to the candidate recommendation information into the vectorization model for vectorization processing; A recall module, configured to obtain target recommendation information according to the target item code corresponding to the target code vector, and use the target recommendation information as recall information for the target user; The vectorized model is trained in the following way: Establishing a correlation graph of sample users and item codes according to the historical operation data, and randomly assigning a vector to each node in the correlation graph; Selecting a preset number of target nodes from the association graph, and aggregating vectors of neighboring nodes of the target nodes through an aggregation function to generate a vector of the target node; Calculate a sample prediction label according to the vector of the target node; The loss function is used to calculate the loss of the sample prediction label and the sample preset label to obtain a loss value; The parameters of the aggregation function and the vectors of each node are reversely optimized according to the loss value to obtain the vectorized model.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the information processing method according to any one of claims 1 to 10 is implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the information processing method according to any one of claims 1 to 10 is implemented.