Method and device for determining item co-occurrence relationship and method and device for obtaining judgment model
Through the item co-occurrence relationship determination model and random walk strategy trained by the deep neural network, the item co-occurrence graph is constructed, which solves the problem of difficulty in discovering the co-occurrence relationship of unknown items in the existing technology, and realizes the historical and unknown item co-occurrence relationship. The accurate judgment improves the effect of item recommendation.
Patent Information
- Application Number
- CN202110009669.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-01-05
AI Technical Summary
It is difficult to discover unknown co-occurrence relationships of items with existing technology, and can only discover co-occurrence relationships of items known in history.
The item co-occurrence relationship determination model trained by deep neural network is used to construct the item co-occurrence graph by obtaining the graph embedding vector of the items and the random walk strategy to determine the co-occurrence relationship between items.
It can not only determine the co-occurrence relationship of items known in history, but also discover the co-occurrence relationship of unknown items, which improves the accuracy and efficiency of item recommendation.
Smart Images

Figure CN113763014B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer applications, and in particular to a method and device for determining a co-occurrence relationship of items and a method and device for obtaining a determination model. Background Art
[0002] In e-commerce, discovering the co-occurrence relationship of items and recommending items with co-occurrence relationship to users can help users select items efficiently.
[0003] In some related technologies, the number of times that item pairs co-occur in historical data is counted, and the co-occurring item pairs are found based on the statistical results. For example, the number of times that item pairs are purchased at the same time in historical order data is counted, and item pairs with a number greater than a preset value are considered to be co-purchased item pairs.
[0004] The above-mentioned related technologies can discover the co-occurrence relationships of items that are known in history, but cannot discover the co-occurrence relationships of unknown items. Summary of the invention
[0005] The item co-occurrence relationship determination model of the disclosed embodiment is obtained by training a deep neural network using historical item co-occurrence data, and can determine both historically known item co-occurrence relationships and unknown item co-occurrence relationships.
[0006] Some embodiments of the present disclosure provide a method for determining a co-occurrence relationship of items, including:
[0007] Obtaining a first item pair whose co-occurrence relationship is to be determined;
[0008] Acquire feature information of each item in the first item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item is located, and each item co-occurrence graph is constructed based on a plurality of items having a co-occurrence relationship;
[0009] Inputting feature information of each item in the first item pair into an item co-occurrence relationship determination model for processing, wherein the item co-occurrence relationship determination model is obtained by training a deep neural network using item co-occurrence history data;
[0010] A determination result of whether the first item pair has a co-occurrence relationship output by the item co-occurrence relationship determination model is obtained.
[0011] In some embodiments, using the item co-occurrence history data to train a deep neural network to obtain an item co-occurrence relationship determination model includes:
[0012] Acquire multiple second item pairs with co-occurrence relationship labels in the item co-occurrence history data;
[0013] Acquire feature information of each item in each second item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item is located, and each item co-occurrence graph is constructed based on a plurality of items having a co-occurrence relationship;
[0014] Inputting feature information of each item in each second item pair into a deep neural network for prediction;
[0015] According to the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label, the parameters of the deep neural network are iteratively updated until the preset training termination condition is met, and the trained deep neural network is used as the item co-occurrence relationship determination model.
[0016] In some embodiments, the plurality of items having a co-occurrence relationship based on which the item co-occurrence graph is constructed include:
[0017] Multiple items appearing in the same order; and
[0018] Multiple items that appear in different orders from the same user within a preset time period.
[0019] In some embodiments, based on a set sliding window, multiple items in each order of the same user within a preset time period within the sliding window are determined as multiple items having a co-occurrence relationship.
[0020] In some embodiments, items belonging to the same standardized product unit in different item co-occurrence maps are connected; or, items in different item co-occurrence maps whose SKU titles have similarities greater than a preset value are connected.
[0021] In some embodiments, the graph embedding vector of the cold-start item that does not appear in the item co-occurrence graph is determined based on at least one of the graph embedding vectors of similar items whose similarity to the cold-start item is greater than a preset value or the graph embedding vectors of items that belong to the same standardized product unit as the cold-start item.
[0022] In some embodiments, determining the graph embedding vector of each item based on the item co-occurrence graph in which each item is located includes:
[0023] For a first item node and a second item node connected by any edge in the item co-occurrence graph where each item is located, determine a weight adjustment factor according to the degree of the second item node, so that the greater the degree, the smaller the weight adjustment factor, and adjust the weight of the edge between the first item node and the second item node using the weight adjustment factor;
[0024] According to the adjusted edge weights, a random walk is started from any third item node in the item co-occurrence graph where each item is located, and a graph embedding vector of the third item node is determined according to an item node sequence obtained by the random walk.
[0025] In some embodiments, determining the weight adjustment factor according to the degree of the second item node includes:
[0026] use Determine the weight adjustment factor, where Represents the degree d of the second item node q q Determine the weight adjustment factor, which ranges from [1,2];
[0027] Using the weight adjustment factor to adjust the weight of the edge between the first item node and the second item node includes:
[0028] use The weight ω of the edge between the first item node p and the second item node q p→q Adjust, W p→q Represents the adjusted weight.
[0029] In some embodiments, determining a graph embedding vector of a third item node according to an item node sequence obtained by random walking includes:
[0030] The item node sequence obtained by random walking starting from the third item node is input into the word vector model for processing, and the vector output by the word vector model is used as the graph embedding vector of the third item node.
[0031] In some embodiments, the item co-occurrence history data includes positive samples of second item pairs having a co-occurrence relationship and negative samples of second item pairs having no co-occurrence relationship;
[0032] The second item pair positive samples are obtained based on item pairs having a neighbor relationship in the item co-occurrence graph;
[0033] The second item pair negative samples are randomly sampled from all items.
[0034] Some embodiments of the present disclosure provide a method for obtaining an item co-occurrence relationship determination model, including:
[0035] Acquire multiple second item pairs with co-occurrence relationship labels in the item co-occurrence history data;
[0036] Acquire feature information of each item in each second item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item is located, and each item co-occurrence graph is constructed based on a plurality of items having a co-occurrence relationship;
[0037] Inputting feature information of each item in each second item pair into a deep neural network for prediction;
[0038] According to the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label, the parameters of the deep neural network are iteratively updated until the preset training termination condition is met, and the trained deep neural network is used as the item co-occurrence relationship determination model.
[0039] Some embodiments of the present disclosure provide a device for determining a co-occurrence relationship of items, including:
[0040] Memory; and
[0041] A processor coupled to the memory, the processor being configured to execute a method for determining a co-occurrence relationship of items based on instructions stored in the memory.
[0042] Some embodiments of the present disclosure provide a device for obtaining a model for determining a co-occurrence relationship of items, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute a method for obtaining a model for determining a co-occurrence relationship of items based on instructions stored in the memory.
[0043] Some embodiments of the present disclosure provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for determining a co-occurrence relationship of items or a method for obtaining a model for determining a co-occurrence relationship of items. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. The present disclosure can be more clearly understood according to the following detailed description with reference to the drawings.
[0045] Obviously, the drawings described below are only some embodiments of the present disclosure, and a person skilled in the art can obtain other drawings based on these drawings without creative work.
[0046] Figure 1 A schematic diagram showing a flow chart of a method for constructing an item co-occurrence graph according to some embodiments of the present disclosure.
[0047] Figure 2 A schematic flowchart of a random walk method based on an item co-occurrence graph according to some embodiments of the present disclosure is shown.
[0048] Figure 3 A schematic diagram of a curve showing the relationship between the weight adjustment factor and the degree of a node in some embodiments of the present disclosure.
[0049] Figure 4A flowchart illustrating a method for obtaining an item co-occurrence relationship determination model according to some embodiments of the present disclosure is shown.
[0050] Figure 5 A schematic diagram showing a flow chart of a method for determining a co-occurrence relationship of items according to some embodiments of the present disclosure.
[0051] Figure 6 A schematic diagram showing an apparatus for determining item co-occurrence relationships according to some embodiments of the present disclosure.
[0052] Figure 7 A schematic diagram showing an apparatus for determining item co-occurrence relationships according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure.
[0054] Unless otherwise specified, descriptions such as “first” and “second” in the present disclosure are used to distinguish different objects and are not used to indicate meanings such as size or time sequence.
[0055] Item co-occurrence relationships refer to the fact that different items often appear together in certain business scenarios. These items are called item pairs with co-occurrence relationships. For example, in e-commerce shopping, different items are often purchased at the same time. These items are called co-purchased items. In this case, the co-occurrence relationship is expressed as a co-purchase relationship. The co-occurrence relationship disclosed in this disclosure is not limited to the examples given.
[0056] Figure 1 A schematic diagram showing a flow chart of a method for constructing an item co-occurrence graph according to some embodiments of the present disclosure.
[0057] like Figure 1 As shown, the method for constructing an item co-occurrence graph in this embodiment includes steps 110-120, and may further include steps 130-140 according to business needs.
[0058] In step 110, a plurality of items having a co-occurrence relationship are obtained based on historical data.
[0059] In some embodiments, multiple items with a co-occurrence relationship include, for example, multiple items that appear in the same order, and may also include multiple items that appear in different orders of the same user within a preset time period. Thus, the item co-occurrence relationship data is expanded to solve the data sparseness problem.
[0060] In some embodiments, based on the set sliding window, multiple items in each order of the same user within a preset time period within the sliding window are determined as multiple items with a co-occurrence relationship. Thus, based on the sliding window, the item co-occurrence relationship data is selected to avoid excessive data combinations, prevent data volume explosion, and reduce the data processing load.
[0061] For example, the preset time period is assumed to be 24 hours, the sliding window is assumed to be 2, and a user places 6 orders within 24 hours. Without setting a sliding window, all items in the 6 orders can be regarded as items with a co-occurrence relationship. With setting a sliding window, all items in the first and second orders can be regarded as items with a co-occurrence relationship, all items in the third and fourth orders can be regarded as items with a co-occurrence relationship, and all items in the fifth and sixth orders can be regarded as items with a co-occurrence relationship.
[0062] In step 120 , an item co-occurrence graph is constructed based on a plurality of items having a co-occurrence relationship.
[0063] In an item co-occurrence graph, items are nodes. There is an edge connecting two items with a co-occurrence relationship. The weight of the edge is, for example, the frequency of co-occurrence of the two items connected by the edge. The degree of a node is the number of other nodes connected to the node.
[0064] In actual application, there are often multiple item co-occurrence maps. If there are too many item co-occurrence maps, the item co-occurrence maps are isolated from each other, so the item co-occurrence maps are not effective in representing item features. To improve this problem, at least one of step 130 or 140 may be performed, or step 140 may be performed when step 130 does not meet the execution conditions.
[0065] In step 130, the items belonging to the same Standard Product Unit (SPU) in different item co-occurrence graphs are connected, thereby connecting different item co-occurrence graphs to form a larger item co-occurrence graph.
[0066] For example, there are m item co-occurrence graphs {g1, g2, g3…, gm}. If the items {sku1, sku2, sku3…, skuk} in different item co-occurrence graphs belong to the same SPU, these k items are connected in pairs, and an edge is added for each combination. The weight of the edge is set to 1, for example.
[0067] In step 140, items in different item co-occurrence graphs whose similarity of stock keeping unit (SKU) titles (i.e., item titles) is greater than a preset value are connected. Thus, different item co-occurrence graphs are connected to form a larger item co-occurrence graph.
[0068] For any SKU title 1 in the item co-occurrence graph {g1}, search for SKU title x whose similarity with SKU title 1 is greater than a preset value from other item co-occurrence graphs (such as {g2, g3..., gm}, etc.). The number of SKU titles x that meet the conditions can be limited. For example, the two SKU titles x with the greatest similarity are selected, and the SKU title 1 and the SKU title x are combined and connected. An edge is added for each combination, and the weight of the edge is set to 1, for example.
[0069] Thus, through steps 110-120, an item co-occurrence graph is constructed; through at least one of steps 130 or 140, the connectivity of different item co-occurrence graphs is improved, and the representation effect of the item co-occurrence graph on item features is improved.
[0070] Figure 2 A schematic flowchart of a random walk method based on an item co-occurrence graph according to some embodiments of the present disclosure is shown.
[0071] like Figure 2 As shown, the random walk method of this embodiment includes: steps 210-230.
[0072] In step 210, for the first item node and the second item node connected by any edge in the item co-occurrence graph, a weight adjustment factor is determined according to the degree of the second item node, so that the larger the degree, the smaller the weight adjustment factor, and the smaller the degree, the larger the weight adjustment factor.
[0073] In some embodiments, determining the weight adjustment factor according to the degree of the second item node includes: using Determine the weight adjustment factor, where Represents the degree d of the second item node q q Determine the weight adjustment factor. Figure 3 Shown in d q is the horizontal axis, is a schematic diagram of the curve with the vertical axis. Figure 3 , The range is [1,2], in d q >2000 hours,
[0074] In step 220, the weight of the edge between the first item node and the second item node is adjusted using the weight adjustment factor.
[0075] In some embodiments, adjusting the weight of the edge between the first item node and the second item node using the weight adjustment factor includes: using The weight ω of the edge between the first item node p and the second item node q p→q Adjust, W p→q Represents the adjusted weight.
[0076] In step 230, according to the adjusted edge weights, random walking is started from any third item node specified in the item co-occurrence graph, and each item node walked to constitutes a walking sequence.
[0077] The random walk method can be, for example, the node2vec method. Node2vec uses the Alias random sampling method, with a time complexity of O(1). It tends to walk towards nodes with larger weights. For example, the probability of walking from node p to neighbor node q is: i represents each neighbor node of node p, and the total number of neighbor nodes is N.
[0078] By controlling the parameters p and q of node2vec, the walking strategy can be controlled to be biased towards depth-first sampling (DFS) or breadth-first sampling (BFS). The parameter p controls the probability of revisiting the node that has just been visited. If p is higher, the probability of visiting the node that has just been visited will become lower. The parameter q controls whether the walking direction is outward or inward. If it is greater than 1, the random walk tends to visit nodes close to the current node (biased towards BFS). If it is less than 1, the random walk tends to visit nodes far away from the current node (biased towards DFS). According to experimental statistical data, breadth-first walking will have better results; when biased towards depth-first walking, when the parameter p is fixed at 0.25, the effect is better when q is 4 (relative to q 1 or 0.25), because walking back will bring better information recall effect near the node.
[0079] Before the edge weight adjustment, the nodes with large weights may be all-match products (or hot products), such as products with relatively high degrees, mobile phone recharge products, tissue products, nuts and roasted products, etc. After the edge weight adjustment, the weight of the item node with relatively high degree is adjusted smaller than that of other nodes with relatively low degree based on the smaller weight adjustment factor, so the probability of being wandered to is reduced.
[0080] Using the improved random walk method, 1,000 walk sequences were sampled with a walk sequence length of 40. The number of wild items per sequence was reduced from an average of 8.73 to 3.42, and the sequence results were more in line with the co-occurrence target.
[0081] Therefore, the random walk strategy is improved based on the node degree, which reduces the probability of wild card items with relatively large node degrees being walked to, improves the effectiveness of co-occurring items discovered through walking, and avoids the situation where the co-occurring items discovered through walking are all wild card items with relatively small reference value.
[0082] The walk sequence obtained based on walking the item co-occurrence graph has two uses. Use one: the adjacent node pairs in the walk sequence are item pairs with neighbor relationships and co-occurrence relationships in the item co-occurrence graph. Therefore, by extracting the adjacent node pairs in the walk sequence, item pairs with co-occurrence relationships are obtained, which can be used as positive samples of training data. Use two: the item node sequence (i.e., the walk sequence) obtained by random walking starting from an arbitrary third item node is input into the word vector model for processing, and the vector output by the word vector model is used as the graph embedding vector of the third item node, thereby obtaining the graph embedding vector representation of the third item node. The word vector model is, for example, word2vec, but is not limited to the examples given.
[0083] The co-occurrence relationship of items can be determined using the graph embedding vectors of each item. For example, based on the similarity between the graph embedding vectors of any two items (such as cosine similarity), if the similarity is greater than a set threshold, it can be determined that the two items have a co-occurrence relationship, otherwise, it can be determined that the two items do not have a co-occurrence relationship. In addition, when the similarity is greater than the set threshold, some screening strategies can be assisted, such as the number of co-occurrences should be greater than a certain value, etc. If the screening strategy is satisfied, the two items are then determined to have a co-occurrence relationship. The setting of the similarity threshold and the setting of the screening strategy will affect the determination result of the co-occurrence relationship of items. In order to make the determination result of the co-occurrence relationship of items more objective, the present disclosure also proposes a solution of using the graph embedding vectors of each item to train a neural network to obtain a supervised item co-occurrence relationship determination model, and using the item co-occurrence relationship determination model to determine the item co-occurrence relationship, which is described in detail below.
[0084] Figure 4 A flow chart of a method for obtaining a model for determining a co-occurrence relationship of items in some embodiments of the present disclosure is shown. The method uses historical data of item co-occurrence to train a deep neural network (DNN) to obtain a model for determining a co-occurrence relationship of items.
[0085] like Figure 4 As shown, the method of this embodiment includes: steps 410-440.
[0086] In step 410, a plurality of second item pairs with co-occurrence relationship tags in the item co-occurrence history data are obtained.
[0087] The item co-occurrence history data is used as item co-occurrence training data, which may include positive samples of second item pairs with a co-occurrence relationship and negative samples of second item pairs without a co-occurrence relationship.
[0088] The second item pair negative samples are obtained by random sampling from all items, that is, some item pairs are randomly selected from all items, and these item pairs have a high probability of having no co-occurrence relationship.
[0089] The second item pair positive samples are obtained based on, for example, item pairs with neighbor relationships in the item co-occurrence graph. That is, item pairs with neighbor relationships in the item co-occurrence graph can be used as the second item pair positive samples. Item pairs with neighbor relationships in the item co-occurrence graph can be obtained, for example, by the aforementioned random walk method.
[0090] In step 420, feature information of each item in each second item pair is obtained.
[0091] The feature information of each item includes a graph embedding vector of each item determined based on the item co-occurrence graph in which each item is located, and may also include item attribute description information such as the title, category, brand, etc. of the item, but is not limited to the examples given.
[0092] As described above, determining the graph embedding vector of each item based on the item co-occurrence graph where each item is located includes: for the first item node and the second item node connected by any edge in the item co-occurrence graph where each item is located, determining the weight adjustment factor according to the degree of the second item node, so that the larger the degree, the smaller the weight adjustment factor, and the smaller the degree, the larger the weight adjustment factor; using the weight adjustment factor to adjust the weight of the edge between the first item node and the second item node; according to the weight of the adjusted edge, starting a random walk from any third item node in the item co-occurrence graph where each item is located, and determining the graph embedding vector of the third item node according to the item node sequence obtained by the random walk, for example, inputting the item node sequence obtained by the random walk starting from the third item node into the word vector model for processing, and using the vector output by the word vector model as the graph embedding vector of the third item node. For relevant implementation details, please refer to the above and will not be repeated here.
[0093] Therefore, the random walk strategy is improved based on the node degree, which reduces the probability of wild items with relatively large node degrees being walked to, improves the effectiveness of co-occurring items discovered through walking, and avoids the situation where the co-occurring items discovered through walking are all wild items with relatively small reference value, thereby improving the representation effect of the graph embedding vector on item features.
[0094] In step 430, feature information of each item in each second item pair is input into a deep neural network for prediction, and a prediction result of whether each second item pair has a co-occurrence relationship is output.
[0095] In step 440, based on the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label, the parameters of the deep neural network are iteratively updated until the preset training termination condition is met, and the trained deep neural network is used as the item co-occurrence relationship determination model.
[0096] The deep neural network includes, for example, an embedding layer, a multi-layer perceptron layer, an activation layer, etc., and specific reference may be made to the related art. The updated parameters of the deep neural network are the parameters that the deep neural network needs to optimize through training, for example, the weights and other parameters in the multi-layer perceptron layer, and specific reference may be made to the related art.
[0097] The training termination condition may be, for example, reaching a preset number of iterations, or the difference information between the prediction result and the co-occurrence relationship label is less than a preset value.
[0098] Therefore, the deep neural network is trained using the historical data of item co-occurrence to obtain an item co-occurrence relationship determination model. The item co-occurrence relationship determination model can be used to determine both historically known item co-occurrence relationships and unknown item co-occurrence relationships, and the determination results are more objective.
[0099] Figure 5 A flow chart of a method for determining item co-occurrence relationships in some embodiments of the present disclosure is shown. The method uses an item co-occurrence relationship determination model to determine item co-occurrence relationships.
[0100] like Figure 5 As shown, the method of this embodiment includes: steps 510-540.
[0101] In step 510 , a first pair of items whose co-occurrence relationship is to be determined is obtained.
[0102] In step 520, feature information of each item in the first item pair is obtained.
[0103] The feature information of each item includes the graph embedding vector of each item determined based on the item co-occurrence graph in which each item is located (refer to the above for the specific method), and may also include item attribute description information such as the title, category, brand, etc. of the item, but is not limited to the examples given.
[0104] In addition, if the first item pair includes a cold-start item that does not appear in any item co-occurrence graph, such as a new item, the graph embedding vector of the cold-start item is determined based on at least one of the graph embedding vectors of similar items whose similarity to the cold-start item is greater than a preset value or the graph embedding vectors of items belonging to the same standardized product unit as the cold-start item. For example, the average or weighted average of the graph embedding vectors of the aforementioned related items is used as the graph embedding vector of the cold-start item, and the weight can be determined based on the degree of correlation, for example, the weight of similar items to the cold-start item is greater than the weight of items in the same SPU. Thus, the vector representation problem of the cold-start item is solved.
[0105] Assume that skux is a cold start item and skuG is a set of products with graph embedding vectors. Recall the graph embedding vectors {Vsku y1 ,Vsku y2 ,…,Vsku y10}, the similarity of these items is greater than is the similarity confidence value; if needed, the graph embedding vectors {Vspu1, Vspu2, …, Vsku1, Vspu2, …, Vsku2, Vspu ...2, …, Vsku2, V n}; then the graph embedding vector of the cold start item is, for example:
[0106]
[0107] In step 530, the feature information of each item in the first item pair is input into the item co-occurrence relationship determination model for processing.
[0108] Among them, the item co-occurrence relationship determination model is obtained by training a deep neural network using historical item co-occurrence data, as mentioned above for details.
[0109] In step 540, a determination result of whether the first item pair has a co-occurrence relationship output by the item co-occurrence relationship determination model is obtained.
[0110] The supervised "item co-occurrence relationship determination model" is used to determine whether an item pair has a co-occurrence relationship. It can determine both historically known item co-occurrence relationships and unknown item co-occurrence relationships, and the determination results are more objective.
[0111] In some application examples, given a seed item pool, the target co-occurrence items (such as target co-purchased items) that have a co-occurrence relationship with each seed item are recalled from a preset item set through an item co-occurrence relationship determination model. If the amount of item pairs to be predicted is extremely large, a nearest neighbor similarity algorithm such as Locality Sensitive Hashing (LSH) can be used to filter most of the item pairs, greatly reducing the order of magnitude to be processed.
[0112] The item co-occurrence relationship determination model is a general model that can determine the co-occurrence relationship of items. According to different application scenarios, different seed item pools to be predicted and item sets to be recalled can be input. These application scenarios include but are not limited to item combination marketing, cross-category marketing, item selection and other scenarios.
[0113] For example, for cross-category marketing, input seed item pools (such as items in category 1) and item sets (such as items in category 2) of different categories to discover co-occurring item pairs of different categories. For another example, for item combination marketing, input the seed item pool to be combined and the item set to be recalled to discover co-occurring items that can be sold in combination with the seed items. For another example, when recommending items to make up a purchase for a user, input the items that the user has selected as seed items, and recall the co-occurring items that have a co-occurrence relationship with the items that the user has selected from the item set to be recalled (which can be set, for example, to a set of items in categories that the user has frequently purchased or browsed) as items to make up a purchase and recommend them to the user.
[0114] Figure 6 A schematic diagram showing an apparatus for determining item co-occurrence relationships according to some embodiments of the present disclosure.
[0115] like Figure 6 As shown, the device 600 for determining item co-occurrence relationships of this embodiment includes: a memory 610; and a processor 620 coupled to the memory, wherein the processor 620 is configured to execute the method for determining item co-occurrence relationships of any of the embodiments based on instructions stored in the memory.
[0116] The method for determining the co-occurrence relationship of items includes, for example: obtaining a first item pair whose co-occurrence relationship is to be determined; obtaining feature information of each item in the first item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item is located, and each item co-occurrence graph is constructed based on multiple items with a co-occurrence relationship; inputting the feature information of each item in the first item pair into an item co-occurrence relationship determination model for processing, wherein the item co-occurrence relationship determination model is obtained by training a deep neural network using item co-occurrence historical data; and obtaining a determination result of whether the first item pair has a co-occurrence relationship output by the item co-occurrence relationship determination model.
[0117] Figure 7 A schematic diagram showing an apparatus for determining item co-occurrence relationships according to some embodiments of the present disclosure.
[0118] like Figure 7As shown, the device 700 for determining the item co-occurrence relationship of this embodiment includes: a memory 710; and a processor 720 coupled to the memory, wherein the processor 720 is configured to execute the method for obtaining the item co-occurrence relationship determination model of any of the embodiments based on instructions stored in the memory.
[0119] The method for obtaining an item co-occurrence relationship determination model includes, for example: obtaining multiple second item pairs with co-occurrence relationship labels in item co-occurrence history data; obtaining feature information of each item in each second item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item is located, and each item co-occurrence graph is constructed based on multiple items with a co-occurrence relationship; inputting the feature information of each item in each second item pair into a deep neural network for prediction; iteratively updating the parameters of the deep neural network based on the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label until a preset training termination condition is met, and using the trained deep neural network as the item co-occurrence relationship determination model.
[0120] The memory 610, 710 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0121] The training and use of the item co-occurrence relationship determination model can be completed by different devices (such as 600, 700) respectively, or by the same device (such as 600). When completed by the same device 600, the processor 620 can also execute the item co-occurrence relationship determination model acquisition method of any of the embodiments.
[0122] The embodiments of the present disclosure provide a non-transitory computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for determining the co-occurrence relationship of items in any of the embodiments or the method for obtaining a model for determining the co-occurrence relationship of items in any of the embodiments are implemented.
[0123] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more non-transient computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer program code.
[0124] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0127] The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A method for determining item co-occurrence relationships, characterized in that: include: Obtaining a first item pair whose co-occurrence relationship is to be determined; Obtaining feature information of each item in the first item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item resides, each item co-occurrence graph being constructed based on multiple items having a co-occurrence relationship, wherein determining the graph embedding vector of each item based on the item co-occurrence graph in which each item resides comprises: determining a weight adjustment factor based on the degree of the second item node for a first item node and a second item node connected by any edge in the item co-occurrence graph in which each item resides, such that a greater degree indicates a smaller weight adjustment factor, and adjusting the weight of the edge between the first item node and the second item node using the weight adjustment factor; and performing a random walk starting from any third item node in the item co-occurrence graph in which each item resides based on the adjusted edge weight, and determining the graph embedding vector of the third item node based on a sequence of item nodes obtained by the random walk; Inputting feature information of each item in the first item pair into an item co-occurrence relationship determination model for processing, wherein the item co-occurrence relationship determination model is obtained by training a deep neural network using historical item co-occurrence data; Obtain a determination result of whether the first item pair has a co-occurrence relationship output by the item co-occurrence relationship determination model.
2. The method according to claim 1, characterized in that The item co-occurrence relationship determination model obtained by training a deep neural network using item co-occurrence history data includes: Acquire multiple second item pairs with co-occurrence relationship labels from the item co-occurrence history data; Obtaining feature information of each item in each second item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item resides, each item co-occurrence graph being constructed based on multiple items having a co-occurrence relationship; Input the feature information of each item in each second item pair into the deep neural network for prediction; Based on the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label, the parameters of the deep neural network are iteratively updated until the preset training termination condition is met, and the trained deep neural network is used as the item co-occurrence relationship determination model.
3. The method according to claim 1 or 2, characterized in that The multiple items with co-occurrence relationships based on which the item co-occurrence graph is constructed include: Multiple items appearing in the same order; and Multiple items appearing in different orders from the same user within a preset time period.
4. The method according to claim 3, characterized in that According to the set sliding window, multiple items in each order of the same user within a preset time period within the sliding window are determined as multiple items having a co-occurrence relationship.
5. The method according to claim 1 or 2, characterized in that Items belonging to the same standardized product unit in different item co-occurrence graphs are connected; or, Items whose SKU titles have similarities greater than a preset value in different item co-occurrence graphs are connected.
6. The method according to claim 1 or 2, characterized in that The graph embedding vector of the cold-start item that does not appear in the item co-occurrence graph is determined based on at least one of the graph embedding vectors of similar items whose similarity to the cold-start item is greater than a preset value or the graph embedding vectors of items that belong to the same standardized product unit as the cold-start item.
7. The method according to claim 1, characterized in that Determining the weight adjustment factor according to the degree of the second item node includes: use Determine the weight adjustment factor, where Indicates the degree d of the second item node q q The determined weight adjustment factor is in the range of [1,2]; Adjusting the weight of the edge between the first item node and the second item node using the weight adjustment factor includes: use The weight ω of the edge between the first item node p and the second item node q p→q Adjust, W p→q Represents the adjusted weight.
8. The method according to claim 1, characterized in that Determining the graph embedding vector of the third item node based on the item node sequence obtained by random walk includes: The item node sequence obtained by random walking starting from the third item node is input into the word vector model for processing, and the vector output by the word vector model is used as the graph embedding vector of the third item node.
9. The method according to claim 2, characterized in that The item co-occurrence history data includes positive samples of second item pairs with co-occurrence relationships and negative samples of second item pairs without co-occurrence relationships; The second item pair positive samples are obtained based on item pairs with neighbor relationships in the item co-occurrence graph; The second item negative samples are randomly sampled from all items.
10. A method for obtaining a model for determining item co-occurrence relationships, characterized in that: include: Acquire multiple second item pairs with co-occurrence relationship labels from the item co-occurrence history data; Obtaining feature information of each item in each second item pair, wherein the feature information of each item includes a graph embedding vector of each item determined based on an item co-occurrence graph in which each item resides, each item co-occurrence graph being constructed based on multiple items having a co-occurrence relationship, wherein determining the graph embedding vector of each item from the item co-occurrence graph in which each item resides includes: determining a weight adjustment factor based on the degree of the second item node for a first item node and a second item node connected by any edge in the item co-occurrence graph in which each item resides, such that a greater degree indicates a smaller weight adjustment factor, and adjusting the weight of the edge between the first item node and the second item node using the weight adjustment factor; and performing a random walk starting from any third item node in the item co-occurrence graph in which each item resides based on the adjusted edge weight, and determining the graph embedding vector of the third item node based on an item node sequence obtained by the random walk; Input the feature information of each item in each second item pair into the deep neural network for prediction; Based on the gap information between the prediction result of whether each second item pair has a co-occurrence relationship output by the deep neural network and the corresponding co-occurrence relationship label, the parameters of the deep neural network are iteratively updated until the preset training termination condition is met, and the trained deep neural network is used as the item co-occurrence relationship determination model.
11. The method according to claim 10, characterized in that The multiple items with co-occurrence relationships based on which the item co-occurrence graph is constructed include: Multiple items appearing in the same order; and Multiple items appearing in different orders from the same user within a preset time period.
12. The method according to claim 10, characterized in that Items belonging to the same standardized product unit in different item co-occurrence graphs are connected; or, Items whose SKU titles have similarities greater than a preset value in different item co-occurrence graphs are connected.
13. The method according to claim 10, characterized in that The item co-occurrence history data includes positive samples of second item pairs with co-occurrence relationships and negative samples of second item pairs without co-occurrence relationships; The second item pair positive samples are obtained based on item pairs with neighbor relationships in the item co-occurrence graph; The second item negative samples are randomly sampled from all items.
14. A device for determining item co-occurrence relationships, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the method for determining the item co-occurrence relationship according to any one of claims 1 to 9 based on instructions stored in the memory.
15. A device for obtaining an item co-occurrence relationship determination model, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method for obtaining an item co-occurrence relationship determination model according to any one of claims 10 to 13 based on instructions stored in the memory.
16. A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining the item co-occurrence relationship according to any one of claims 1 to 9 or the method for obtaining the item co-occurrence relationship determination model according to any one of claims 10 to 13.
Citation Information
Patent Citations
Special network incident detection method based on flow graph model
CN104598629A
Figure cooccurrence relation graph establishing method based on specific behavior cooccurrence network
CN105760439A
Method of deducing structural attributes of online social network users
CN107145977A
Commodity recommendation method and device
CN108898459A
Recommendation method, system and electronic device based on network representation learning
CN109241412A
