A method and apparatus for recommending a product

By filtering product features and user preference features, a diverse and well-matched product recommendation combination is constructed, which solves the problem of repeated recommendations of similar products and improves the user experience.

CN114119149BActive Publication Date: 2026-11-27BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111371256.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2026-11-27
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

In existing technologies, product recommendation methods are prone to repeatedly recommending similar products, which reduces user experience.

Method used

By obtaining product information of candidate products and historical order information of users to be recommended, product characteristics and user preference characteristics are determined. A product screening method is used to remove candidate products with a similarity higher than the set similarity and a combination lower than the set combination, and a recommended product combination is constructed.

Benefits of technology

It increases the diversity and versatility of recommended product combinations, enhancing the user experience when browsing recommended product combinations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119149B_ABST
    Figure CN114119149B_ABST
Patent Text Reader

Abstract

The specification discloses a method and device for commodity recommendation. First, commodity information of each candidate commodity and historical order information of a user to be recommended are acquired. Second, each candidate commodity is subjected to commodity screening according to commodity features and preference features corresponding to each candidate commodity, to obtain a recommended commodity combination. For each round of commodity screening, candidate commodities with a commodity combination degree not less than a set combination degree with recommended commodities that have been screened out are selected, and candidate commodities with a commodity similarity degree higher than a set similarity degree with recommended commodities selected in the round of commodity screening are removed, to obtain a candidate commodity set corresponding to the next round of commodity screening, until a preset condition is met. Finally, the user to be recommended is recommended commodities according to the recommended commodity combination. The method can improve the diversity of the recommended commodity combination, and improve the collocation between each recommended commodity in the recommended commodity combination, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer technology, and in particular to a method and apparatus for recommending products. Background Technology

[0002] With the continuous development of electronic and network technologies, more and more users prefer online shopping. Currently, product recommendations are usually made to users based on product characteristics and user characteristics.

[0003] In practical applications, business platforms sort products based on product and user information and display them to users. However, this product recommendation method can lead to the repeated recommendation of similar products to users, causing them to lose interest in the products and thus reducing the user experience.

[0004] Therefore, how to make more reasonable product recommendations to users is an urgent problem to be solved. Summary of the Invention

[0005] This specification provides a method and apparatus for recommending products, in order to partially solve the aforementioned problems existing in the prior art.

[0006] The following technical solution is adopted in this specification:

[0007] This manual provides a method for product recommendation, including:

[0008] Obtain product information for each candidate product and historical order information for the users to be recommended;

[0009] Based on the product information of each candidate product, determine the product characteristics corresponding to each candidate product; based on the historical order information of the user to be recommended, determine the preference characteristics corresponding to the user to be recommended.

[0010] Based on the product characteristics and preference characteristics of each candidate product, the candidate products are screened to obtain a recommended product combination. Specifically, for each round of product screening, candidate products with a product combination degree not less than a set combination degree with the already screened recommended products are selected from the candidate product set corresponding to that round of product screening. Candidate products with a product similarity degree higher than a set similarity degree with the recommended products selected in that round of product screening are removed from the candidate product set corresponding to that round of product screening to obtain the candidate product set corresponding to the next round of product screening, until the preset conditions are met.

[0011] Based on the recommended product combination, product recommendations are made to the user to be recommended.

[0012] Optionally, based on the product characteristics corresponding to each candidate product and the preference characteristics, product screening is performed on each candidate product to obtain a recommended product combination, specifically including:

[0013] Based on the product characteristics and preference characteristics of each candidate product, a recommendation score is determined for each candidate product.

[0014] Based on the recommendation score for each candidate product, the candidate product with the highest recommendation score will be selected as the recommended product in the first round of product screening.

[0015] Optionally, candidate products with a higher degree of similarity to the recommended products selected in this round of product screening are identified, specifically including:

[0016] For each candidate product in the candidate product set corresponding to this round of product screening, the similarity between the candidate product's display content and the display content of the recommended products selected in this round of product screening is determined as the similarity between the candidate product and the recommended products selected in this round of product screening. The display content includes at least one of the following: product video, product image, and product description text.

[0017] Based on the product similarity degree corresponding to each candidate product, candidate products with a product similarity degree higher than the set similarity degree are determined from the candidate product set corresponding to this round of product screening.

[0018] Optionally, before removing candidate products whose similarity to the recommended products selected in this round of product screening is higher than a set similarity, the method further includes:

[0019] Based on the candidate product set corresponding to this round of product screening, a first product relationship graph corresponding to this round of product screening is constructed. Different candidate products contained in the candidate product set corresponding to this round of product screening correspond to different nodes in the first product relationship graph, and candidate products of the same type are connected by edges in the first product relationship graph.

[0020] Candidate products whose similarity to the recommended products selected in this round of product screening is higher than a set similarity level are identified, specifically including:

[0021] Candidate products that have an edge with the recommended products selected in this round of product screening are identified from the first product relationship graph. These candidates are those whose product similarity with the recommended products selected in this round of product screening is higher than a set similarity.

[0022] Optionally, before selecting candidate products from the candidate product set corresponding to this round of product screening that have a product combination degree with the already screened recommended products that is not less than a set combination degree, and using them as recommended products selected in this round of product screening, the method further includes:

[0023] Based on the candidate product set corresponding to this round of product screening, a second product relationship graph corresponding to this round of product screening is constructed. Different candidate products contained in the candidate product set corresponding to this round of product screening correspond to different nodes in the second product relationship graph. Different candidate products of different categories but with a combination relationship are connected by edges in the second product relationship graph.

[0024] From the candidate product set corresponding to this round of product screening, candidate products with a product combination degree of not less than a set combination degree with the already screened recommended products are selected as recommended products for this round of product screening. Specifically, these include:

[0025] Candidate products that have edges with the already selected recommended products in the second product relationship graph are selected from the candidate product set corresponding to this round of product screening, and the product combination degree between them and the already selected recommended products is not less than a set combination degree.

[0026] Optionally, based on the product characteristics corresponding to each candidate product and the preference characteristics, product screening is performed on each candidate product to obtain a recommended product combination, specifically including:

[0027] The product features and preference features corresponding to each candidate product are input into a pre-trained recommendation model, so that the recommendation model can be used to filter the candidate products and obtain a recommended product combination.

[0028] Optionally, training the recommendation model specifically includes:

[0029] Obtain product information for each candidate product and historical order information for the users to be recommended;

[0030] Based on the product information of each candidate product, determine the product characteristics corresponding to each candidate product; based on the historical order information of the user to be recommended, determine the preference characteristics corresponding to the user to be recommended.

[0031] The product features and preference features corresponding to each candidate product are input into the recommendation model to be trained to determine the recommended product combination;

[0032] The recommendation model is trained with the optimization objective of minimizing the deviation between the recommended product combination and the actual recommended product combination involved in the historical order information.

[0033] This instruction manual provides a recommended device, comprising:

[0034] The acquisition module is used to acquire product information for each candidate product and historical order information for the user to be recommended.

[0035] The determination module is used to determine the product features corresponding to each candidate product based on the product information of each candidate product, and to determine the preference features corresponding to the user to be recommended based on the historical order information of the user to be recommended.

[0036] The filtering module is used to filter the candidate products according to the product characteristics and preference characteristics of each candidate product to obtain a recommended product combination. Specifically, for each round of product filtering, candidate products with a product combination degree of not less than a set combination degree with the already filtered recommended products are selected from the candidate product set corresponding to that round of product filtering. Candidate products with a product similarity degree higher than a set similarity degree with the recommended products selected in that round of product filtering are removed from the candidate product set corresponding to that round of product filtering to obtain the candidate product set corresponding to the next round of product filtering, until the preset conditions are met.

[0037] The recommendation module is used to recommend products to the user to be recommended based on the recommended product combination.

[0038] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for recommending goods.

[0039] This specification provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method recommended above.

[0040] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0041] The product recommendation method provided in this manual first obtains product information for each candidate product and historical order information for the user to be recommended. Second, based on the product information of each candidate product, the product characteristics corresponding to each candidate product are determined; based on the historical order information of the user to be recommended, the preference characteristics corresponding to the user to be recommended are determined. Then, based on the product characteristics and preference characteristics of each candidate product, product screening is performed to obtain a recommended product combination. Specifically, for each round of product screening, candidate products with a product combination degree no less than a set value are selected from the candidate product set corresponding to that round of screening. These are then used as the recommended products selected for that round of screening. Candidate products with a product similarity degree higher than a set value are removed from the candidate product set corresponding to that round of screening, resulting in the candidate product set for the next round of screening, until preset conditions are met. Finally, based on the recommended product combination, products are recommended to the user to be recommended.

[0042] As can be seen from the above method, this method can filter candidate products based on their corresponding product characteristics and preference characteristics to obtain recommended product combinations. By removing candidate products with a higher degree of similarity than the recommended products selected in this round of product filtering, it avoids the inclusion of highly similar recommended products in the recommended product combinations. Then, using the already filtered recommended products, it further filters out recommended products with high product combination degrees, resulting in recommended product combinations with high product combination degrees. In other words, this method can minimize the appearance of similar candidate products in the recommended product combinations, improve the diversity of recommended products in the combinations, and enhance the compatibility between recommended products, thereby improving the user experience when browsing recommended product combinations. Attached Figure Description

[0043] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:

[0044] Figure 1 This is a flowchart illustrating a method for recommending a product as described in this specification.

[0045] Figure 2 A schematic diagram of the first product relationship diagram provided for an embodiment of this specification;

[0046] Figure 3 A schematic diagram of the second product relationship diagram provided in the embodiments of this specification;

[0047] Figure 4A schematic diagram of a device recommended for a product as provided in this specification;

[0048] Figure 5 This specification provides a corresponding Figure 1 A schematic diagram of an electronic device. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0050] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0051] Figure 1 This is a flowchart illustrating a method for recommending a product as described in this specification, including the following steps:

[0052] S100: Obtain product information for each candidate product and historical order information for the user to be recommended.

[0053] In the embodiments of this specification, the execution subject of the product recommendation method can be a server or an electronic device such as a desktop computer. For ease of description, the product recommendation method provided in this specification will be described below using only a server as the execution subject.

[0054] In the embodiments described in this specification, the server can obtain product information for each candidate product and historical order information for users to be recommended. The product information mentioned here may include: basic product information, business information, etc. Basic product information may include: product name, flavor, ingredients, category, and description. Business information may include: price, past reviews, sales volume, and click-through rate. Historical order information includes: all products involved in historical orders and products clicked by users while browsing the page. Users to be recommended can refer to any user who has previously purchased products online.

[0055] The server can also obtain basic user characteristics, such as the user's location, age, and gender.

[0056] S102: Based on the product information of each candidate product, determine the product characteristics corresponding to each candidate product; based on the historical order information of the user to be recommended, determine the preference characteristics corresponding to the user to be recommended.

[0057] In the embodiments of this specification, the server can determine the product features corresponding to each candidate product based on the product information of each candidate product. The server can input the product information of each candidate product into a pre-trained probabilistic model's convolutional neural network (CNN) to determine the product features corresponding to each candidate product.

[0058] The server can also, for each candidate product, select any one or more pieces of product information from a variety of corresponding product information as the product feature of that candidate product. For example, it can select the product category from the various product information corresponding to the candidate product as the product feature of that candidate product.

[0059] In the embodiments of this specification, the product information corresponding to each item in the historical order information of the user to be recommended, such as the product category (Chinese food, barbecue, etc.) and flavor (spicy, sweet and sour, etc.), can reflect the user's personal preferences to a certain extent. Therefore, the server can determine the user's preference characteristics based on the user's historical order information.

[0060] Since the server also obtains the basic characteristics of the users to be recommended during the process of obtaining their historical order information, the server can determine the corresponding preference characteristics of the users to be recommended based on their historical order information and basic characteristics.

[0061] There are several ways for the server to determine the preference feature. For example, the server can convert the product information of each product involved in the historical order information of the user to be recommended into corresponding feature vectors, and then concatenate these feature vectors to obtain the preference feature of the user to be recommended.

[0062] Furthermore, the server can convert the product information corresponding to each product involved in the historical order information of the user to be recommended, as well as the basic characteristics of the user to be recommended, into corresponding feature vectors, and then concatenate these feature vectors to obtain the preference characteristics of the user to be recommended.

[0063] For example, the server can convert the product information of each product involved in the historical order information of the user to be recommended into corresponding feature vectors, and then perform weighted summation according to the pre-set weights of each product information to obtain the preference features of the user to be recommended.

[0064] Furthermore, the server can transform the product information corresponding to each item in the historical order information of the user to be recommended, as well as the basic characteristics of the user to be recommended, into corresponding feature vectors. Then, based on the pre-set weights corresponding to each item information and the weights corresponding to the basic characteristics of the user to be recommended, the server performs a weighted summation to obtain the preference characteristics of the user to be recommended.

[0065] S104: Based on the product characteristics and preference characteristics of each candidate product, the candidate products are screened to obtain a recommended product combination. Specifically, for each round of product screening, candidate products with a product combination degree not less than a set combination degree with the already screened recommended products are selected from the candidate product set corresponding to that round of product screening. Candidate products with a product similarity degree higher than a set similarity degree with the recommended products selected in that round of product screening are removed from the candidate product set corresponding to that round of product screening to obtain the candidate product set corresponding to the next round of product screening, until the preset conditions are met.

[0066] In the embodiments of this specification, the server can filter each candidate product based on the product characteristics and preference characteristics corresponding to each candidate product to obtain a recommended product combination.

[0067] In practical applications, before screening candidate products, the quality of the final recommended product combination cannot be determined. This can lead to situations where, during the process of pre-removing products with low diversity according to certain rules, more suitable recommended products for the final combination are removed. Furthermore, after screening candidate products, the resulting products may be quite similar, resulting in poor effectiveness in removing products with low diversity. Therefore, the server combines the process of removing products with the screening process for candidate products to determine a recommended product combination with high diversity and compatibility.

[0068] In the embodiments of this specification, the server can, for each round of product filtering, select candidate products from the candidate product set corresponding to that round of product filtering whose product combination degree with the already filtered recommended products is not less than a set combination degree, and use them as recommended products selected in that round of product filtering. Then, remove the candidate products whose product similarity degree with the recommended products selected in that round of product filtering is higher than a set similarity degree from the candidate product set corresponding to that round of product filtering, and obtain the candidate product set corresponding to the next round of product filtering, until the preset conditions are met.

[0069] In this embodiment of the specification, since each round of product filtering requires using the already filtered recommended products to determine the recommended products for the current round, the server needs to first determine the recommended products selected in the first round of product filtering.

[0070] Specifically, the server can determine the recommendation score for each candidate product based on its product characteristics and preference characteristics. Then, based on the recommendation scores of each candidate product, the candidate product with the highest recommendation score is selected as the recommended product in the first round of product screening.

[0071] In this embodiment of the specification, the server can, for each candidate product included in the candidate product set corresponding to the current round of product filtering, determine the product similarity between the candidate product and the recommended product selected in the current round of product filtering based on the similarity between the displayed content of the candidate product and the displayed content of the recommended product selected in the current round of product filtering. The displayed content mentioned here includes at least one of: product videos, product images, and product description text. Then, based on the product similarity of each candidate product, candidate products with a product similarity higher than the recommended product selected in the current round of product filtering are determined from the candidate product set corresponding to the current round of product filtering.

[0072] Specifically, the server can determine the feature vector corresponding to the displayed content of each candidate product, and calculate the Euclidean distance between these feature vectors. The smaller the Euclidean distance between the feature vectors of two candidate products, the higher the similarity between their displayed content. Correspondingly, the higher the similarity between the displayed content of two candidate products, the higher their product category affinity.

[0073] In the embodiments of this specification, the server can filter candidate products through a first product relationship diagram and a second product relationship diagram to obtain a recommended product combination.

[0074] Specifically, the server can construct a first product relationship graph corresponding to the candidate product set for this round of product filtering. Different candidate products in the candidate product set correspond to different nodes in the first product relationship graph, and similar candidate products are connected by edges. Then, candidate products that have edges with the recommended products selected in this round of product filtering are identified from the first product relationship graph. These are considered candidate products with a product similarity score higher than a set similarity score. This product similarity score can refer to the similarity between the product features of the candidate products or the similarity between the displayed content of the candidate products. For example... Figure 2 As shown.

[0075] Figure 2 This is a schematic diagram of the first product relationship diagram provided for an embodiment of this specification.

[0076] exist Figure 2 In this context, nodes can be used to represent candidate products. The numbers within a node can be used to represent the candidate product's ID. An edge connecting any two nodes can be used to indicate that the similarity between the two candidate products is higher than a set threshold. Figure 2 As can be seen, the similarity between candidate product 1 and candidate product 2 is higher than the set similarity score, and the similarity between candidate product 3 and candidate product 4 is also higher than the set similarity score. Here, product similarity score can refer to the similarity between candidate products based on the similarity of their displayed content (at least one of video, image, or descriptive text). Alternatively, product similarity score can be determined based on the similarity between candidate products' product characteristics (at least one of the following: product flavor, product ingredients, or product category).

[0077] Furthermore, the server can construct a second product relationship graph corresponding to the candidate product set for this round of product filtering. Different candidate products in the candidate product set correspond to different nodes in the second product relationship graph, and different candidate products of different categories but with a combination relationship are connected by edges in the second product relationship graph. Then, candidate products in the second product relationship graph that have edges with the already filtered recommended products are selected from the candidate product set corresponding to this round of product filtering, provided that their combination degree with the already filtered recommended products is not less than a set combination degree. Specifically, as follows... Figure 3 As shown.

[0078] Figure 3 This is a schematic diagram of the second product relationship diagram provided for an embodiment of this specification.

[0079] exist Figure 3In this context, an edge connecting any two nodes can be used to represent that the combination degree between any two candidate items is not less than a set combination degree. Figure 3 As can be seen, candidate product 1 and candidate product 4 are not of the same category, and their product similarity is higher than the set similarity. Similarly, candidate product 2 and candidate product 3 are not of the same category, and their product similarity is also higher than the set similarity. The product combination degree mentioned here refers to determining the product combination degree between candidate products based on the correlation between their product characteristics (at least one of the following: product flavor, product ingredients, and product category). The server can determine the product characteristics with set relationships based on human experience, and judge the correlation between the product characteristics of each candidate product by establishing the relationships between individual product characteristics. For example, the set relationship could be determined as (hamburger, snack, beverage). Another example is the set relationship as (staple food, stir-fry, stew).

[0080] After the server determines the first and second product relationship graphs, it can combine them to determine the recommended product combination. First, it needs to determine the recommended products selected in the first round of product filtering. Based on this, the server can determine the user's preferred product category by analyzing the product characteristics and preference characteristics of each candidate product. Then, the top-ranked product in that category's leaderboard is selected as the recommended product in the first round of product filtering.

[0081] Secondly, the server can, based on the recommended products selected in the first round of product filtering, remove candidate products that are connected to the recommended products selected in the first round of product filtering from the first product relationship graph. This ensures that the product similarity between the recommended products selected in the second round and the recommended products selected in the first round is lower than a set similarity threshold. Then, the candidate products removed from the first product relationship graph are used to remove identical candidate products from the second product relationship graph.

[0082] Finally, based on the recommended products selected in the first round of product screening, candidate products connected to the recommended products selected in the first round are selected from the second product relationship graph as recommended products for the second round of screening. This ensures that the product combination degree between the recommended products selected in the second round and the recommended products selected in the first round is not less than a set combination degree. This process is repeated to determine the recommended product combinations.

[0083] There are several possible selection methods. For example, the server can select the candidate product with the highest product combinatorial degree among those candidate products connected to the recommended products selected in the first round of product screening. Another example is that the server can select candidate products that match the user's preference characteristics among those candidate products connected to the recommended products selected in the first round of product screening.

[0084] In combination with the above Figure 2 , Figure 3 It can be seen that if the recommended product selected in the first round of product screening is candidate product 1, from Figure 2 Remove candidate product 2, which is connected to candidate product 1. Next, in... Figure 3 Remove candidate product 2 from the list, and select candidate product 4, which is connected to candidate product 1, as the recommended product. Then, from... Figure 2 Remove candidate product 3, which is connected to candidate product 4. Finally, in Figure 3 Remove candidate product 3. If the recommended product combination contains three recommended products, then select the last candidate product 5 as the recommended product, and determine the recommended product combination as candidate product 1, candidate product 4, and candidate product 5. If the recommended product combination contains two recommended products, then determine the recommended product combination as candidate product 1 and candidate product 4.

[0085] In the embodiments of this specification, the server can input the product features and preference features corresponding to each candidate product into a pre-trained recommendation model, so as to filter each candidate product through the recommendation model and obtain a recommended product combination.

[0086] In the embodiments described in this specification, the server can obtain product information for each candidate product and historical order information for the user to be recommended. Next, based on the product information of each candidate product, the corresponding product features are determined; based on the historical order information of the user to be recommended, the corresponding preference features are determined. Then, the product features and preference features corresponding to each candidate product are input into the recommendation model to be trained to determine the recommended product combination. Finally, the recommendation model is trained with the optimization objective of minimizing the deviation between the recommended product combination and the actual recommended product combination involved in the historical order information.

[0087] Specifically, the recommendation model includes a feature vector layer and an optimization pointer layer. The feature vector layer contains a fully connected layer and a feature extraction layer. The server can input the preference features of the user to be recommended, as well as the product features of each candidate product, into the fully connected layer of the feature vector layer. This performs feature space transformation, removing spatial location information and extracting useful information to obtain the encoding results for each candidate product. The encoding results of each candidate product are then input into the feature extraction layer of the feature vector layer, allowing the recommendation model to consider information from different directions in the encoding results of each candidate product and concatenate them to obtain the feature vectors for each candidate product. The feature extraction layer can apply various feature extraction methods, such as multi-head attention and self-attention mechanisms. This specification does not limit the feature extraction methods.

[0088] In practical applications, the pointer layer in a recommendation model can be used to filter candidate products whose combination degree with the already filtered recommended products is not less than a set combination degree, thereby improving the compatibility of the recommended products in the recommended product combination. The diversity module is a functional module used to remove candidate products with low diversity. In a recommendation model, the pointer layer and the diversity module are usually independent. If the diversity module removes candidate products with low diversity before filtering each candidate product, it may result in the removal of more suitable recommended products for the determined recommended product combination. Conversely, after filtering each candidate product, the filtered candidate products may be quite similar, making the removal of candidate products with low diversity by the diversity module less effective. Therefore, the server can combine the diversity module for removing candidate products with low diversity with the pointer layer for filtering each candidate product to obtain the optimized pointer layer of the recommendation model in this specification.

[0089] Specifically, the server can input the feature vectors and initial labels corresponding to each candidate product into the optimization pointer layer to determine the recommended products selected in the first round of product filtering. The initial labels mentioned here are feature vectors with comprehensive filtering capabilities obtained through model training. Then, candidate products whose similarity to the recommended products selected in the first round is higher than a set similarity are removed from the candidate product set corresponding to this round of product filtering, resulting in the candidate product set for the second round of product filtering. The optimization pointer layer, while removing candidate products with low diversity, can also filter out candidate products whose product combination degree with the already filtered recommended products is not less than a set combination degree.

[0090] Secondly, the feature vectors corresponding to the recommended products selected in the first round of product screening are input into the optimization pointer layer. From the candidate product set corresponding to the second round of product screening, candidate products with a product combination degree no less than a set combination degree with the recommended products selected in the first round are selected as the recommended products for the second round of product screening. This process is repeated to determine the recommended product combinations.

[0091] Finally, the recommendation model is trained with the optimization objective of minimizing the deviation between the recommended product combinations and the actual recommended product combinations involved in historical order information. Through multiple rounds of iterative training, the deviation can be continuously reduced and converged within a certain numerical range, thus completing the training process of the recommendation model.

[0092] In the embodiments described in this specification, before the recommendation model begins training, the initial label is a standard feature vector pre-defined by the server, used to determine the recommended products selected in the first round of product filtering. Since the first recommended product in the actual recommended product combination involved in historical order information is usually determined based on the product features corresponding to each candidate product and the user's preference features, the feature vector corresponding to the trained initial label also has the ability to determine whether the product features of the candidate products match the user's preferences based on the product features corresponding to each candidate product and the user's preference features.

[0093] S106: Based on the recommended product combination, recommend products to the user to be recommended.

[0094] In the embodiments described in this specification, the server can recommend products to users based on recommended product combinations. As can be seen from the above, the recommended products within the determined product combinations have a certain degree of compatibility, conforming to the user's personal preferences. Furthermore, by removing recommended products with high similarity, the diversity of recommended product combinations is increased, thereby improving the user experience.

[0095] As can be seen from the above process, this method can filter candidate products based on their corresponding product characteristics and preference characteristics to obtain recommended product combinations. By removing candidate products with a higher degree of similarity than the recommended products selected in this round of product filtering, it avoids the inclusion of highly similar recommended products in the recommended product combinations. Then, using the already filtered recommended products, it further filters out recommended products with high product combination degrees, resulting in recommended product combinations with high product combination degrees. In other words, this method can minimize the appearance of similar candidate products in the recommended product combinations, improve the diversity of recommended products in the combinations, and enhance the compatibility between recommended products, thereby improving the user experience when browsing recommended product combinations.

[0096] The above describes a product recommendation method provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding product recommendation device, such as... Figure 4 As shown.

[0097] Figure 4 A schematic diagram of a recommended device provided in this specification includes:

[0098] The acquisition module 400 is used to acquire product information for each candidate product and historical order information for the user to be recommended.

[0099] The determining module 402 is used to determine the product features corresponding to each candidate product based on the product information of each candidate product, and to determine the preference features corresponding to the user to be recommended based on the historical order information of the user to be recommended.

[0100] The filtering module 404 is used to filter the candidate products according to the product characteristics and preference characteristics of each candidate product to obtain a recommended product combination. Specifically, for each round of product filtering, candidate products with a product combination degree not less than a set combination degree with the already filtered recommended products are selected from the candidate product set corresponding to that round of product filtering. Candidate products with a product similarity degree higher than a set similarity degree with the recommended products selected in that round of product filtering are removed from the candidate product set corresponding to that round of product filtering to obtain the candidate product set corresponding to the next round of product filtering, until the preset conditions are met.

[0101] The recommendation module 406 is used to recommend products to the user to be recommended based on the recommended product combination.

[0102] Optionally, the filtering module 404 is specifically used to determine the recommendation score corresponding to each candidate product based on the product characteristics and preference characteristics of each candidate product, and to select the candidate product with the highest recommendation score as the recommended product selected in the first round of product filtering based on the recommendation score corresponding to each candidate product.

[0103] Optionally, the filtering module 404 is specifically used to, for each candidate product included in the candidate product set corresponding to this round of product filtering, determine the product similarity between the candidate product and the recommended product selected in this round of product filtering based on the similarity between the display content corresponding to the candidate product and the display content corresponding to the recommended product selected in this round of product filtering, and use this as the product similarity between the candidate product and the recommended product selected in this round of product filtering. The display content includes at least one of: product video, product image, and product description text. Based on the product similarity between each candidate product and the recommended product selected in this round of product filtering, candidate products with a product similarity higher than a set similarity between them are determined from the candidate product set corresponding to this round of product filtering.

[0104] Optionally, the filtering module 404 is specifically used to construct a first product relationship graph corresponding to the round of product filtering based on the candidate product set corresponding to the round of product filtering. The different candidate products included in the candidate product set corresponding to the round of product filtering correspond to different nodes in the first product relationship graph. Candidate products of the same type are connected by edges in the first product relationship graph. Candidate products that have an edge with the recommended products selected in the round of product filtering are determined from the first product relationship graph and are regarded as candidate products whose product similarity with the recommended products selected in the round of product filtering is higher than a set similarity.

[0105] Optionally, the filtering module 404 is specifically used to construct a second product relationship graph corresponding to the round of product filtering based on the candidate product set corresponding to the round of product filtering. The different candidate products contained in the candidate product set corresponding to the round of product filtering correspond to different nodes in the second product relationship graph. Different candidate products of different categories but with combination relationships are connected by edges in the second product relationship graph. The candidate products in the second product relationship graph that have edges with the already filtered recommended products are selected as candidate products from the candidate product set corresponding to the round of product filtering, whose product combination degree with the already filtered recommended products is not less than a set combination degree.

[0106] Optionally, the filtering module 404 is specifically used to input the product features and preference features corresponding to each candidate product into a pre-trained recommendation model, so as to filter each candidate product through the recommendation model and obtain a recommended product combination.

[0107] Optionally, the filtering module 404 is specifically used to: obtain product information of each candidate product and historical order information of the user to be recommended; determine the product features corresponding to each candidate product based on the product information of each candidate product; determine the preference features corresponding to the user to be recommended based on the historical order information of the user to be recommended; input the product features corresponding to each candidate product and the preference features into the recommendation model to be trained; determine the recommended product combination; and train the recommendation model with the optimization objective of minimizing the deviation between the recommended product combination and the recommended product combination actually involved in the historical order information.

[0108] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 This provides a method for recommending products.

[0109] This instruction manual also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of the structure of an electronic device. (e.g.) Figure 5 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1 The method for recommending products described above. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.

[0110] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0111] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0112] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0113] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0114] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0115] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0116] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0117] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0118] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0119] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0120] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0121] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0122] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0123] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0124] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0125] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A method for recommending products, characterized in that, include: Obtain product information for each candidate product and historical order information for the users to be recommended; Based on the product information of each candidate product, determine the product characteristics corresponding to each candidate product; based on the historical order information of the user to be recommended, determine the preference characteristics corresponding to the user to be recommended. Based on the product characteristics and preference characteristics of each candidate product, the candidate products are screened to obtain a recommended product combination. Specifically, for each round of product screening: Based on the candidate product set corresponding to this round of product screening, a first product relationship graph corresponding to this round of product screening is constructed. Different candidate products contained in the candidate product set corresponding to this round of product screening correspond to different nodes in the first product relationship graph, and candidate products of the same type are connected by edges in the first product relationship graph. Based on the candidate product set corresponding to this round of product screening, a second product relationship graph corresponding to this round of product screening is constructed. Different candidate products contained in the candidate product set corresponding to this round of product screening correspond to different nodes in the second product relationship graph. Different candidate products of different categories but with a combination relationship are connected by edges in the second product relationship graph. Candidate products that have edges with the already selected recommended products in the second product relationship graph are selected from the candidate product set corresponding to this round of product screening. Candidate products whose product combination degree with the already selected recommended products is not less than a set combination degree are selected as recommended products in this round of product screening. Candidate products that have an edge with the recommended products selected in this round of product screening are identified from the first product relationship graph. These are considered as candidate products with a product similarity higher than a set similarity with the recommended products selected in this round of product screening. The candidate products with a product similarity higher than the set similarity are removed from the candidate product set corresponding to this round of product screening to obtain the candidate product set corresponding to the next round of product screening, until the preset conditions are met. Based on the recommended product combination, product recommendations are made to the user to be recommended.

2. The method as described in claim 1, characterized in that, Based on the product characteristics and preference characteristics of each candidate product, the candidate products are screened to obtain a recommended product combination, specifically including: Based on the product characteristics and preference characteristics of each candidate product, a recommendation score is determined for each candidate product. Based on the recommendation score for each candidate product, the candidate product with the highest recommendation score will be selected as the recommended product in the first round of product screening.

3. The method as described in claim 1, characterized in that, Candidate products whose similarity to the recommended products selected in this round of product screening is higher than a set similarity level are identified, specifically including: For each candidate product in the candidate product set corresponding to this round of product screening, the similarity between the candidate product's displayed content and the displayed content of the recommended products selected in this round of product screening is determined, and this similarity is used as the product similarity score for the candidate product. The displayed content includes: At least one of the following: product video, product image, and product description text; Based on the product similarity degree corresponding to each candidate product, candidate products with a product similarity degree higher than the set similarity degree are determined from the candidate product set corresponding to this round of product screening.

4. The method as described in claim 1, characterized in that, Based on the product characteristics and preference characteristics of each candidate product, the candidate products are screened to obtain a recommended product combination, specifically including: The product features and preference features corresponding to each candidate product are input into a pre-trained recommendation model, so that the recommendation model can be used to filter the candidate products and obtain a recommended product combination.

5. The method as described in claim 4, characterized in that, Training the recommendation model specifically includes: Obtain product information for each candidate product and historical order information for the users to be recommended; Based on the product information of each candidate product, determine the product characteristics corresponding to each candidate product; based on the historical order information of the user to be recommended, determine the preference characteristics corresponding to the user to be recommended. The product features and preference features corresponding to each candidate product are input into the recommendation model to be trained to determine the recommended product combination; The recommendation model is trained with the optimization objective of minimizing the deviation between the recommended product combination and the actual recommended product combination involved in the historical order information.

6. A product recommendation device, characterized in that, include: The acquisition module is used to acquire product information for each candidate product and historical order information for the user to be recommended. The determination module is used to determine the product features corresponding to each candidate product based on the product information of each candidate product, and to determine the preference features corresponding to the user to be recommended based on the historical order information of the user to be recommended. The filtering module is used to filter the candidate products according to the product characteristics and preference characteristics of each candidate product to obtain a recommended product combination. Specifically, for each round of product filtering, a first product relationship graph and a second product relationship graph are constructed based on the candidate product set corresponding to that round of product filtering. In the first product relationship graph, candidate products of the same category are connected by edges, and in the second product relationship graph, different candidate products of different categories but with a combination relationship are connected by edges. Candidate products in the second product relationship graph that have edges with the already filtered recommended products are selected as recommended products for that round of product filtering. Candidate products in the first product relationship graph that have edges with the recommended products selected for that round of product filtering are removed from the candidate product set corresponding to that round of product filtering to obtain the candidate product set corresponding to the next round of product filtering, until a preset condition is met. The recommendation module is used to recommend products to the user to be recommended based on the recommended product combination.

7. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Commodity recommendation model training method, commodity recommendation method and device

    CN112598467A

  • Information recommendation method and system

    CN113190763A