Commodity recommendation method and device, electronic equipment and storage medium

By determining the target product tag and candidate product characteristics of the target object in the e-commerce recommendation system, and filtering products based on association relationships, the problem of redundant data interference is solved and the accuracy of product recommendation is improved.

CN118735640APending Publication Date: 2024-10-01BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410866845.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The large number of products in the e-commerce recommendation system leads to inaccurate recommendation results, and serious interference from redundant data affects the accuracy of recommendations.

Method used

By determining the target product tag of the target object, screening the candidate product features of the candidate product, and based on the correlation between the object features and the candidate product features, determine the target product to be recommended from the candidate products, reducing redundant data interference and improving recommendation accuracy. .

Benefits of technology

Effectively narrow the scope of product screening, make targeted selections based on the preferences of the target audience, and significantly improve the accuracy of product recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735640A_ABST
    Figure CN118735640A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of machine learning, and discloses a commodity recommendation method and device, electronic equipment and a storage medium. The commodity recommendation method comprises the steps of determining a target object to be subjected to commodity recommendation; determining a target commodity label corresponding to the target object according to a first corresponding relation between a preset object and a commodity label; determining candidate commodity features of the candidate commodities according to the target commodity labels; and determining a to-be-recommended target commodity from the candidate commodities based on an association relationship between the object features of the target object and the candidate commodity features. According to the technical scheme, the screening range for determining the target commodity can be effectively narrowed, then the target commodity to be recommended is determined based on the association relationship between the object feature of the target object and the candidate commodity feature, targeted selection can be performed in combination with the preference of the target object, and thus the commodity recommendation accuracy can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of machine learning, and in particular to a product recommendation method, device, electronic device, and storage medium. Background Art

[0002] In the e-commerce recommendation system, target products suitable for recommendation to target objects are selected from a large number of products. However, due to the large number of products in the e-commerce recommendation system, when recommending products to target objects, the accuracy of the product recommendation results will be affected due to a large amount of redundant data. Summary of the invention

[0003] In view of this, the present disclosure provides a product recommendation method, device, electronic device and storage medium to solve the problem of inaccurate product recommendations.

[0004] In a first aspect, the present disclosure provides a product recommendation method, the method comprising:

[0005] Determine the target audience for product recommendations;

[0006] Determine a target product label corresponding to the target object according to a preset first correspondence relationship between the object and the product label;

[0007] Determine candidate product features of the candidate products according to the target product labels;

[0008] Based on the association between the object features of the target object and the features of the candidate commodities, a target commodity to be recommended is determined from the candidate commodities.

[0009] In a second aspect, the present disclosure provides a commodity recommendation device, the device comprising:

[0010] A first determination module is used to determine the target object for product recommendation;

[0011] A second determination module, configured to determine a target product label corresponding to the target object according to a preset first correspondence relationship between the object and the product label;

[0012] A third determination module is used to determine the candidate commodity features of the candidate commodity according to the target commodity label;

[0013] The screening module is used to determine the target commodity to be recommended from the candidate commodities based on the association relationship between the object characteristics of the target object and the characteristics of the candidate commodities.

[0014] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the product recommendation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0015] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the product recommendation method of the first aspect or any corresponding embodiment thereof.

[0016] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the product recommendation method of the first aspect or any corresponding embodiment thereof.

[0017] The product recommendation method provided in this embodiment can filter the candidate product features of the candidate products preferred by the target object according to the target product label corresponding to the target object, which can effectively narrow the screening range for determining the target product, and then determine the target product to be recommended based on the correlation between the object characteristics of the target object and the candidate product features, and can make targeted selections based on the preferences of the target object, thereby effectively improving the accuracy of product recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a flowchart of a commodity recommendation method according to an embodiment of the present disclosure;

[0020] Figure 2 is a flowchart of a method for training a target matching model according to an embodiment of the present disclosure;

[0021] Figure 3 is a schematic diagram of the structure of a target matching model according to an embodiment of the present disclosure;

[0022] Figure 4 is a schematic diagram of the structure of another target matching model according to an embodiment of the present disclosure;

[0023] Figure 5 is a structural block diagram of a commodity recommendation device according to an embodiment of the present disclosure;

[0024] Figure 6It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution 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. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0026] In an e-commerce recommendation system, when recommending products to a target object, the target products suitable for recommendation to the target object are selected from a large number of products. However, due to the large number of products in the e-commerce recommendation system, when recommending products to the target object, the accuracy of the product recommendation results will be affected due to a large amount of redundant data.

[0027] In view of this, the embodiment of the present disclosure provides a method for recommending goods, which determines the target object for which goods are to be recommended, and then determines the target goods label corresponding to the target object according to the first corresponding relationship between the preset object and the goods label, so as to narrow the scope of goods recommendation through the target goods label. According to the target goods label, the candidate goods features of the candidate goods are determined, which can clarify the target object's preference for the goods, and then based on the correlation between the object features of the target object and the candidate goods features, the target goods to be recommended are determined from the candidate goods, which can effectively reduce the interference of redundant data, thereby effectively improving the accuracy of goods recommendation.

[0028] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0029] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0030] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0031] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0032] According to an embodiment of the present disclosure, an embodiment of a product recommendation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] In this embodiment, a product recommendation method is provided, which can be used in the above-mentioned electronic devices, such as mobile phones, tablet computers, etc. Figure 1 is a flowchart of a commodity recommendation method according to an embodiment of the present disclosure. Figure 1 As shown, the process includes the following steps:

[0034] Step S101, determining the target object for product recommendation.

[0035] The target object can be understood as an entity that needs to obtain the target product. For example, the target object can be a consumer, enterprise or organization using the product platform. The target object can also be a platform or system for displaying products.

[0036] In some optional examples, the target object may be determined based on a received product search instruction. The product search instruction may be sent through a client. For example, a consumer may enter a keyword on a product platform to search, thereby triggering and generating the product search instruction. The product search instruction may also be generated within the system. For example, a personalized search instruction is generated based on historical product interaction information. The historical product interaction information may include, but is not limited to, historical product transaction records, historical product interaction records, etc.

[0037] In some other optional examples, the target object may also be a specified selected object.

[0038] Step S102: determining a target product label corresponding to the target object according to a preset first correspondence relationship between the object and the product label.

[0039] A first correspondence between the object and the product label is pre-established so that the product that the target object is interested in can be identified based on the first correspondence.

[0040] Product tags can be understood as keywords, labels or logos used to describe the characteristics, attributes or classifications of products. Among them, product tags may include but are not limited to the following types of labels: category labels, brand labels, attribute labels and price labels. Category labels are used to describe the category or classification to which the product belongs, such as: household daily necessities, clothing, shoes and bags, beauty and cosmetics, etc. Brand labels are labels used to identify the brand or manufacturer to which the product belongs. Attribute labels are labels used to describe specific attributes, characteristics or specifications of a product. For example: material, color, style, function, etc. Price tags are labels used to describe the price range or price level of a product. For example: economy, mid-range, high-end, etc.

[0041] Therefore, according to the first correspondence between the preset object and the product label, when the target object is clear, the target product label corresponding to the target object can be quickly determined, and then when making subsequent product recommendations, the product screening range can be effectively narrowed, which is conducive to improving the efficiency of product recommendations.

[0042] Step S103: determining the candidate commodity features of the candidate commodity according to the target commodity label.

[0043] According to the target product label, the corresponding candidate product screening direction can be clarified, and then the product features of the candidate product can be determined, thereby obtaining the candidate product features of the candidate product. Among them, the candidate product features can be understood as information used to concretely describe the candidate product.

[0044] Step S104: determining a target commodity to be recommended from the candidate commodities based on the association relationship between the object features of the target object and the features of the candidate commodities.

[0045] Object features can be understood as information used to concretely describe the interactive information of the target object on product preferences, interests, etc. Based on the correlation between the object features of the target object and the features of the candidate products, it can be determined whether the current candidate products meet the recommendation requirements of the target object, and then when selecting the target product from the candidate products, targeted screening can be performed, thereby effectively improving the accuracy of product recommendations.

[0046] The product recommendation method provided in this embodiment can filter the candidate product features of the candidate products preferred by the target object according to the target product label corresponding to the target object, which can effectively narrow the screening range for determining the target product, and then determine the target product to be recommended based on the correlation between the object characteristics of the target object and the candidate product features, and can make targeted selections based on the preferences of the target object, thereby effectively improving the accuracy of product recommendations.

[0047] In some optional implementations, the first correspondence is obtained by a pre-trained target matching model, which is trained based on the historical interaction information between multiple objects and commodities and the second correspondence between commodities and corresponding commodity labels. That is, in the field of e-commerce, commodities can be managed based on their corresponding commodity labels. Therefore, in the commodity platform, the corresponding commodity labels will be determined according to the attribute information of the commodities, and the second correspondence between the commodities and the corresponding commodity labels will be obtained. Through the historical interaction information between the object and the commodity, the interaction between the object and the commodity can be clarified, and the commodity of interest to the object can be determined. Since the number of commodities in the commodity platform is relatively large, and there is also a large amount of interference information in the historical interaction information between the object and the commodity, in order to improve the efficiency of commodity recommendation and reduce the interference of redundant data, the target matching model is pre-trained to fully explore the association between the same object and different commodity labels based on the historical interaction information between multiple objects and commodities and the second correspondence between commodities and corresponding commodity labels, so as to obtain the first correspondence between the object and the commodity label, so that the commodity recommendation through the first correspondence can be more targeted.

[0048] In some optional implementation scenarios, in order to facilitate model training, when establishing the second corresponding relationship, each item and each tag is represented by a corresponding unique identifier (Item identification, ID), and then when storing the second corresponding relationship,<item_ID,tag_ID> In the form of. Among them, the product ID can be the title name of the product. For example: the title name can be "A brand bath towel household absorbent coral fleece thickened enlarged couple bath towel", "B brand Japanese retro floral skirt". The product tag ID can be a tag keyword. For example: "Home daily necessities -> towels / bath towels / bathrobes", "A brand", "material-coral fleece", etc. Taking the product ID "A brand bath towel household absorbent coral fleece thickened enlarged couple bath towel" as an example, the corresponding product tag ID includes: the identification number corresponding to "home daily necessities -> towels / bath towels / bathrobes" under the category tag, the identification number corresponding to "A brand" under the brand tag, and the identification number corresponding to "material-coral fleece" under the attribute tag. In some optional examples, there will be multiple sub-category tags under the same tag type. Therefore, in order to facilitate the distinction between the sub-category tags, numbers can be used to distinguish them, which in turn helps to determine the efficiency of the second corresponding relationship. For example, taking the category tag as an example, tag131 represents "Home necessities -> Towels / bath towels / bathrobes" under the category tag, tag243 represents "Apparel, shoes and bags -> Women's clothing -> Dresses" under the category tag, and tag321 represents "Beauty -> Facial essence -> Liquid essence" under the category tag. Taking the attribute tag as an example, tag145 represents "Material - Coral Fleece" under the attribute tag, tag234 represents "Style - Retro" under the attribute tag, and tag891 represents "Function -> Quick Dry" under the attribute tag.

[0049] In other examples, in order to distinguish each object, the unique identifier of the object may be used for distinction, and the first corresponding relationship obtained may be expressed in the following form:<user_ID,tag_ID> . Where user_ID is the unique identifier of the current object.

[0050] In this embodiment, a method for training a target matching model is provided, which can be used in the above-mentioned electronic devices, such as mobile phones, tablet computers, etc. Figure 2 is a flowchart of a method for training a target matching model according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:

[0051] Step S201: Determine interactive commodities corresponding to a plurality of objects according to historical interaction information within a specified time.

[0052] In order to ensure the adequacy of training samples, the historical interaction information of multiple objects within a specified time is obtained, so as to clarify the interaction between each object and the massive commodities in the commodity platform based on the historical interaction information, and then determine the interactive commodities corresponding to each object respectively.

[0053] In some optional examples, in order to ensure the timeliness of the first corresponding relationship, the specified time can be the target period closest to the model training. The target period can be a period in days. For example: 7-30 days. Taking the target period of 14 days as an example, the specified time can be within the 14 days closest to the model training. The selection of the specified time can be set according to the needs, and there is no restriction here.

[0054] Step S202: According to the second corresponding relationship between the products and the corresponding product labels, the interactive product labels corresponding to each interactive product are determined to obtain a first sample set.

[0055] Since the second correspondence between each commodity and its corresponding commodity label is clear in the commodity platform, and the commodity corresponding to each object can also be clear through the obtained historical interaction information, in order to enable the initial matching model to effectively mine the correspondence between each object and the commodity label, the commodity is used as an intermediate medium to determine the interactive commodity label corresponding to each interactive commodity, and then the interactive commodity label corresponding to each object is determined according to the correspondence between the object and the interactive commodity, so as to obtain the first sample set. That is, the first sample set includes multiple objects and corresponding interactive commodity labels.

[0056] In some optional examples, in order to improve the accuracy of the first corresponding relationship, when determining the interactive commodity corresponding to the current object, the interactive commodity corresponding to the current object can be screened based on a preset interaction threshold. The interaction threshold can be understood as the minimum number of interactions to determine the current object's interest in the current commodity. The higher the number of interactions, the more interested the current object is in the historical interactive commodity. Conversely, the lower the number of interactions, the less interested the current object is in the historical interactive commodity. Since the number of interactions of the current object for the same historical interactive commodity can be clarified based on the historical interaction information. Therefore, the historical interactive commodities with an interaction number greater than or equal to the interaction threshold can be used as interactive commodities for model training, which helps to improve the confidence of the first sample set.

[0057] Step S203: Acquire a second sample set.

[0058] The second sample set includes multiple commodities and corresponding commodity labels. In order to enable the target matching model to quickly identify the target commodity label corresponding to the target object when the target object is clear, the second sample set is obtained so that the target matching model can clarify the commodity information involved under each commodity label during the training process, so that when the first corresponding relationship between the object and the commodity label is established later, it can be more in line with the actual interaction between the object and the commodity.

[0059] Step S204: Based on the multiple objects and the corresponding interactive product tags, the multiple products and the corresponding product tags, a preset initial matching model is trained to obtain a target matching model.

[0060] Multiple objects and corresponding interactive product labels, multiple products and corresponding product labels are used as training samples and input into a preset initial matching model for model training, so that the initial matching model can fully learn the first correspondence between objects and product labels during the training process, thereby obtaining a target matching model.

[0061] Among them, the initial matching model can be a multi-layer neural network model based on a deep learning model framework, which can autonomously mine the dependency relationship between the object and multiple product labels without human interference, thereby effectively improving the speed of model training and reasoning.

[0062] The target matching model training method provided in this embodiment trains the model based on historical interaction information and the second corresponding relationship, which can make the obtained target matching model more universal and scalable.

[0063] In some optional embodiments, such as Figure 3 As shown, the target matching model includes a first feature extraction model, a second feature extraction model and an output layer. The first feature extraction model is used to extract object features of multiple objects from multiple objects and corresponding interactive product tags, and input the multiple object features into the output layer. The second feature extraction model is used to extract product features of multiple products from multiple products and corresponding product tags, and input the multiple product features into the output layer. The output layer is used to determine the first corresponding relationship between each object and the product label according to the comparison results between the multiple object features and the multiple product features.

[0064] That is, in order to better capture different types of features, the first feature extraction model is used to extract object features, and the second feature extraction model is used to extract product features, which can make the feature extraction process more targeted. Then, in the output layer, by comparing the similarity between object features and product features and determining the correspondence between the two, it helps to improve the accuracy of matching, thereby helping to ensure the reliability of the target matching model.

[0065] In some optional implementations, the above step S204 includes:

[0066] Step a1: In the current training cycle of training the initial matching model, feature extraction is performed on a plurality of objects and corresponding interactive product labels respectively by using a first feature extraction model to obtain object features corresponding to the plurality of objects.

[0067] Step a2: extracting features of the plurality of commodities and the corresponding commodity labels respectively through the second feature extraction model and the preset label attribute information, and obtaining commodity features corresponding to the plurality of commodities.

[0068] Step a3: Compare the object features corresponding to the multiple objects with the product features corresponding to the multiple products through the output layer to obtain a comparison result.

[0069] Step a4, determining the loss value of the comparison result.

[0070] Step a5: If the loss value is less than or equal to the preset loss threshold, the intermediate matching model obtained in the current training cycle is used as the target matching model.

[0071] Specifically, a training cycle for training the initial matching model is preset to perform model training in a cyclic iterative manner, thereby ensuring the generalization ability of the target matching model.

[0072] For the current training cycle, the first feature extraction model is used to perform feature extraction on the first sample set, thereby obtaining object features that can be used to characterize the corresponding relationship between each object and the corresponding product label.

[0073] In order to enhance the reasoning ability of the target matching model, the label attribute information is preset so that each product label can be fully understood and distinguished during the model training process. Then, when the second feature extraction model is used to extract features from the second sample set, the preset label attribute information is combined to extract features, which can ensure that the obtained product features can fully characterize the corresponding relationship between each product label and the product. The label attribute information can be a synonym or explanation of the label.

[0074] In the output layer, by comparing the similarity between each object feature and multiple product features, the comparison result between the two is determined, and then the loss value of the comparison result is determined by the preset comparison loss function, so as to determine the convergence of the current model according to the loss value. If the loss value is less than or equal to the preset loss threshold, it means that the model training has been completed, and the intermediate matching model obtained in the current training cycle can be used as the target matching model.

[0075] Among them, the expression of the contrast loss function is as follows:

[0076]

[0077] Among them, α + is the weight of the positive sample, which is related to the confidence of the positive sample. The more interactions the interactive products have, the more α + The larger the number of interactions corresponding to the interactive product, the smaller the number of interactions corresponding to the interactive product. + The smaller it is. q represents the current first sample. k + represents the current second sample. K represents the total number of samples in the current training cycle. i Represents negative samples.

[0078] In some optional implementations, the above step S204 further includes:

[0079] Step a6: If the loss value is greater than the preset loss threshold, the intermediate matching model is trained as the initial matching model for the next training cycle to obtain the target matching model.

[0080] If the loss value is greater than the preset loss threshold, the representation training needs to continue. Therefore, the intermediate matching model is trained as the initial matching model for the next training cycle to gradually converge the model through an iterative cycle, thereby obtaining a target matching model with a loss value less than or equal to the preset loss threshold.

[0081] In some optional implementations, the object features of the target object are obtained from a preset object feature set, and the object features in the object feature set are extracted from the first feature extraction model in the target matching model; the candidate product features are obtained from a preset product feature set, and the product features in the product feature set are extracted from the second feature extraction model in the target matching model. This ensures that the model uses a consistent feature set during training and inference, thereby avoiding inconsistency and changes in features, making the final target product more reliable and stable. In addition, in the first feature extraction model and the second feature extraction model of the target matching model, the object features and product features are pre-extracted and saved, avoiding the overhead of recalculating features each time inference is performed, thereby helping to improve computing efficiency.

[0082] like Figure 4 As shown, the model structure of the first feature extraction model includes a multi-layer self-attention mechanism layer and a fully connected layer. The fully connected layer includes a first feedforward neural network and a second feedforward neural network. The object feature set is the output result of the first feedforward neural network. The model structure of the second feature extraction model includes a multi-layer self-attention mechanism layer and a fully connected layer. The fully connected layer includes a third feedforward neural network and a fourth feedforward neural network. The object feature set is the output result of the third feedforward neural network.

[0083] In some optional implementations, if there are multiple target product tags, the candidate product feature is the result of the aggregation of multiple target product tags. Preferably, the reduce_max algorithm (a method of aggregating multiple vectors) can be used for aggregation processing to retain the maximum value of the vertical dimension in each target product tag, thereby obtaining the candidate product feature for characterizing the candidate product.

[0084] In some optional embodiments, the process of determining the target product to be recommended from the candidate products includes: respectively calculating the spatial distance between the object characteristics of the target object and the product characteristics of each candidate product, the spatial distance is used to characterize the correlation between the object characteristics and the product characteristics; the candidate products whose spatial distance is greater than or equal to a specified threshold are used as the target products to be recommended, thereby simplifying the recommendation process, improving the flexibility and explainability of the recommendation, and thus helping to achieve more accurate product recommendations that meet the needs of the target object.

[0085] As one or more specific application embodiments of the embodiments of the present disclosure, the historical interaction information may be the products that the target object has recently collected, liked, or commented on. The top 200 products are sampled according to the number of behaviors, and these product labels are concatenated into a long text as the input on the target object side, thereby obtaining the first sample set.

[0086] According to the second corresponding relationship, we can filter out the top 200 frequently purchased products under any label by superimposing the product's recent sales and exposure data, and concatenate these product labels into a long text as the input on the label side to obtain the second sample set.

[0087] For large e-commerce platforms, there are hundreds of millions of active target objects every day, about 200-800 million. After deduplication of e-commerce tags, there are about 220,000 atomic tags. In order to facilitate the subsequent use by downstream, the representations of all target objects and tags can be inferred in advance and stored in SQL tables or abase and other media. The extraction method is to load the previously trained model, and for the target object, construct a product label sequence of the recent interactive sampling of the global target object, follow the model's reasoning link, and obtain<user_id,user_emb> The metadata of the tag can be obtained in the same way.<tag_id,tag_emb> metadata.

[0088] In this embodiment, a commodity recommendation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0089] This embodiment provides a product recommendation device, such as Figure 5 As shown, including:

[0090] The first determination module 501 is used to determine the target object for product recommendation;

[0091] A second determination module 502 is used to determine a target product label corresponding to the target object according to a preset first correspondence relationship between the object and the product label;

[0092] The third determination module 503 is used to determine the candidate commodity features of the candidate commodity according to the target commodity label;

[0093] The screening module 504 is used to determine the target commodity to be recommended from the candidate commodities based on the association relationship between the object characteristics of the target object and the characteristics of the candidate commodities.

[0094] In some optional implementations, the first correspondence relationship is obtained through a pre-trained target matching model, where the target matching model is trained based on historical interaction information between multiple objects and commodities and a second correspondence relationship between commodities and corresponding commodity tags.

[0095] In some optional implementations, the training device of the target matching model includes:

[0096] A first processing module, configured to determine interactive commodities corresponding to the plurality of objects according to historical interaction information within a specified time;

[0097] A second processing module is used to determine the interactive product label corresponding to each interactive product according to the second corresponding relationship between the product and the corresponding product label, and obtain a first sample set, wherein the first sample set includes multiple objects and corresponding interactive product labels;

[0098] An acquisition module, used to acquire a second sample set, where the second sample set includes a plurality of commodities and corresponding commodity labels;

[0099] The training module is used to train a preset initial matching model based on multiple objects and corresponding interactive product tags, multiple products and corresponding product tags to obtain a target matching model.

[0100] In some optional embodiments, the target matching model includes a first feature extraction model, a second feature extraction model, and an output layer. The first feature extraction model is used to extract object features of multiple objects from multiple objects and corresponding interactive product tags, and input the multiple object features into the output layer. The second feature extraction model is used to extract product features of multiple products from multiple products and corresponding product tags, and input the multiple product features into the output layer. The output layer is used to determine a first corresponding relationship between each object and the product label based on a comparison result between the multiple object features and the multiple product features.

[0101] In some optional embodiments, the training module includes:

[0102] A first execution unit is used to extract features of the multiple objects and the corresponding interactive product labels respectively by using a first feature extraction model in a current training cycle of training the initial matching model, so as to obtain object features corresponding to the multiple objects;

[0103] A second execution unit is used to extract features from the plurality of commodities and the corresponding commodity labels respectively by using a second feature extraction model and preset label attribute information, so as to obtain commodity features corresponding to the plurality of commodities;

[0104] A third execution unit is used to compare the object features corresponding to the multiple objects with the commodity features corresponding to the multiple commodities through the output layer to obtain a comparison result;

[0105] A determination unit, used to determine a loss value of the comparison result;

[0106] The fourth execution unit is used to use the intermediate matching model obtained in the current training cycle as the target matching model if the loss value is less than or equal to a preset loss threshold.

[0107] In some optional implementations, the training module further includes:

[0108] The fifth execution unit is used to train the intermediate matching model as the initial matching model of the next training cycle to obtain a target matching model if the loss value is greater than a preset loss threshold.

[0109] In some optional implementations, the object features of the target object are obtained from a preset object feature set, and the object features in the object feature set are extracted from a first feature extraction model in the target matching model;

[0110] The candidate product features are obtained from a preset product feature set, and the product features in the product feature set are extracted from the second feature extraction model in the target matching model.

[0111] In some optional implementations, if there are multiple target product tags, the candidate product feature is an aggregated processing result of the multiple target product tags.

[0112] In some optional implementations, the screening module 504 includes:

[0113] A sixth execution unit, configured to respectively calculate a spatial distance between an object feature of the target object and a commodity feature of each candidate commodity, wherein the spatial distance is used to characterize an association relationship between the object feature and the commodity feature;

[0114] The seventh execution unit is used to select the candidate commodities whose spatial distance is greater than or equal to the specified threshold as the target commodities to be recommended.

[0115] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0116] The product recommendation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0117] The present disclosure also provides an electronic device having the above Figure 5 The product recommendation device shown.

[0118] See also Figure 6 , Figure 6 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present disclosure, such as Figure 6 As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0119] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0120] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0121] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0122] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0123] The electronic device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0124] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0125] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0126] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0127] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A product recommendation method, characterized in that: The method comprises: Determine the target audience for product recommendations; Determining a target product label corresponding to the target object according to a preset first correspondence relationship between the object and the product label; Determining candidate product features of the candidate product according to the target product label; Based on the association relationship between the object feature of the target object and the features of the candidate commodities, a target commodity to be recommended is determined from the candidate commodities.

2. The method according to claim 1, characterized in that The first correspondence relationship is obtained through a pre-trained target matching model, and the target matching model is trained based on historical interaction information between multiple objects and commodities and a second correspondence relationship between commodities and corresponding commodity tags.

3. The method according to claim 2, characterized in that The training method of the target matching model includes: Determining interactive products corresponding to the plurality of objects according to the historical interaction information within a specified time; Determine the interactive product label corresponding to each interactive product according to the second corresponding relationship between the products and the corresponding interactive product labels, and obtain a first sample set, wherein the first sample set includes the multiple objects and the corresponding interactive product labels; Acquire a second sample set, where the second sample set includes a plurality of commodities and corresponding commodity labels; Based on the multiple objects and the corresponding interactive product tags, the multiple products and the corresponding product tags, a preset initial matching model is trained to obtain the target matching model.

4. The method according to claim 3, characterized in that The target matching model includes a first feature extraction model, a second feature extraction model and an output layer, the first feature extraction model is used to extract object features of the multiple objects from the multiple objects and the corresponding interactive product tags, and input the multiple object features into the output layer, the second feature extraction model is used to extract product features of the multiple products from the multiple products and the corresponding product tags, and input the multiple product features into the output layer, and the output layer is used to determine the first corresponding relationship between each object and the product label according to the comparison results between the multiple object features and the multiple product features.

5. The method according to claim 4, characterized in that The step of training a preset initial matching model based on the multiple objects and the corresponding interactive product labels, the multiple products and the corresponding product labels to obtain the target matching model includes: In a current training cycle of training the initial matching model, feature extraction is performed on the multiple objects and the corresponding interactive product labels by using the first feature extraction model to obtain object features corresponding to the multiple objects; By using the second feature extraction model and preset label attribute information, feature extraction is performed on the multiple commodities and the corresponding commodity labels respectively to obtain commodity features corresponding to the multiple commodities; By means of the output layer, the object features corresponding to the multiple objects are compared with the commodity features corresponding to the multiple commodities to obtain a comparison result; Determining a loss value of the comparison result; If the loss value is less than or equal to a preset loss threshold, the intermediate matching model obtained in the current training cycle is used as the target matching model.

6. The method according to claim 5, characterized in that The step of training a preset initial matching model based on the multiple objects and the corresponding interactive product labels, the multiple products and the corresponding product labels to obtain the target matching model further includes: If the loss value is greater than the preset loss threshold, the intermediate matching model is trained as the initial matching model of the next training cycle to obtain the target matching model.

7. The method according to claim 4, characterized in that The object features of the target object are obtained from a preset object feature set, and the object features in the object feature set are extracted from the first feature extraction model in the target matching model; The candidate product features are obtained from a preset product feature set, and the product features in the product feature set are extracted from the second feature extraction model in the target matching model.

8. The method according to claim 1, characterized in that If there are multiple target product tags, the candidate product feature is an aggregated processing result of the multiple target product tags.

9. The method according to claim 1, characterized in that: The determining of the target commodity to be recommended from the candidate commodities based on the association relationship between the object feature of the target object and the features of the candidate commodities includes: Calculating the spatial distance between the object feature of the target object and the product feature of each candidate product respectively, wherein the spatial distance is used to characterize the correlation between the object feature and the product feature; The candidate products whose spatial distance is greater than or equal to the specified threshold are taken as target products to be recommended.

10. A commodity recommendation device, characterized in that: The device comprises: A first determination module is used to determine the target object for product recommendation; A second determination module, configured to determine a target commodity label corresponding to the target object according to a preset first correspondence relationship between the object and the commodity label; A third determination module, configured to determine candidate commodity features of the candidate commodity according to the target commodity label; The screening module is used to determine the target commodity to be recommended from the candidate commodities based on the association relationship between the object characteristics of the target object and the characteristics of the candidate commodities.

11. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the product recommendation method according to any one of claims 1 to 9 by executing the computer instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the commodity recommendation method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the commodity recommendation method according to any one of claims 1 to 9.