Product recommendation method and device, storage medium and electronic equipment
By parsing user requests and using neural network models to calculate recommendation probabilities, the products that are most likely to be of interest are pushed in real time, solving the problems of low recommendation efficiency and lag caused by traditional questionnaire surveys, and achieving more efficient and accurate product recommendations.
Patent Information
- Application Number
- CN202410665912.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
The traditional questionnaire survey method to collect user needs and product usage preferences leads to low efficiency of product recommendation and the problem of recommendation lag.
By obtaining the recommendation request of the target object, parsing the request information to determine the attribute information of the candidate product, and using the neural network model to calculate the recommendation probability, push the products that are most likely to be of interest in real time.
It improves the accuracy and efficiency of product recommendations, avoids recommendation lag and inaccuracy, and achieves a more accurate user experience.
Smart Images

Figure CN118608232A
Abstract
Description
Technical Field
[0001] The present application relates to the fields of data processing technology, artificial intelligence and other related technical fields, and specifically, to a product recommendation method and device, a storage medium and an electronic device. Background Art
[0002] In order to provide users with a better experience and service, developers will provide users with personalized product recommendations based on their different needs. Traditional recommendation methods usually use questionnaires to collect user feedback on preferences and interests in order to recommend products that may be of interest to users. However, this method usually relies on a limited number of samples, which leads to biased results. At the same time, questionnaires cannot obtain user behavior data in real time, and it takes a certain amount of time to collect and process data, which also leads to a certain lag in product recommendations.
[0003] Currently, no effective solution has been proposed to the problem that in related technologies, users' needs and product usage preferences are collected through questionnaires and products that may be of interest are recommended to users, resulting in low efficiency in product recommendation. Summary of the invention
[0004] The main purpose of the present application is to provide a product recommendation method and device, a storage medium and an electronic device to solve the problem in the related art of collecting user needs and product usage preferences through questionnaires and recommending products that may be of interest to users, resulting in low product recommendation efficiency.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a product recommendation method is provided. The method comprises: obtaining a recommendation request triggered by a target object, parsing the recommendation request, and obtaining request information, wherein the request information at least comprises: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request; determining attribute information of multiple candidate products based on the request information; determining the recommendation probability corresponding to each candidate product based on the request information and the attribute information of the multiple candidate products; determining the target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object.
[0006] Furthermore, based on the request information, determining the attribute information of multiple candidate products includes: obtaining product label information of each product in a product database; calculating the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; based on the multiple matching degrees, determining the multiple candidate products from multiple products, and obtaining the attribute information of the multiple candidate products.
[0007] Furthermore, determining the recommendation probability corresponding to each candidate product based on the request information and the attribute information of the multiple candidate products includes: concatenating the request information and the attribute information of the multiple candidate products to obtain target information; extracting features of the target information based on a feature extraction module of a target neural network model to obtain target feature data; processing the target feature data based on a prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0008] Furthermore, before extracting features of the target information according to the feature extraction module of the target neural network model to obtain target feature data, the method also includes: obtaining a training data set, wherein the training data set at least includes: multiple product data and the true recommendation probability corresponding to each product data; processing the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; calculating according to the predicted recommendation probability and the true recommendation probability to obtain a target loss value; training the initial neural network model according to the target loss value to obtain the target neural network model.
[0009] Furthermore, obtaining the training data set includes: obtaining product exposure logs and product recommendation logs for multiple products in a product database within a historical time period; parsing and calculating the product exposure logs and the product recommendation logs to obtain the multiple product data and the true recommendation probability corresponding to each product data; and obtaining the training data set based on the multiple product data and the true recommendation probability corresponding to each product data.
[0010] Furthermore, parsing and calculating the product exposure log and the product recommendation log to obtain the multiple product data and the true recommendation probability corresponding to each product data includes: parsing the product exposure log to obtain the multiple product data, wherein the multiple product data at least include: the release time and release location of each product; parsing the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; calculating based on the recommendation information to obtain the true recommendation probability corresponding to each product data.
[0011] Furthermore, determining a target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object includes: sorting the recommendation probability in descending order to obtain a sorted recommendation probability list; obtaining the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; determining the candidate product corresponding to the target recommendation probability as the target product, and pushing the attribute information corresponding to the target product to the target object.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a product recommendation device is provided. The device includes: a parsing unit, which is used to obtain a recommendation request triggered by a target object, and parse the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request; a first determination unit, which is used to determine attribute information of multiple candidate products based on the request information; a second determination unit, which is used to determine the recommendation probability corresponding to each candidate product based on the request information and the attribute information of the multiple candidate products; a third determination unit, which is used to determine the target product based on the recommendation probability, and push the attribute information corresponding to the target product to the target object.
[0013] Furthermore, the first determination unit includes: a first acquisition module, used to obtain product label information of each product in a product database; a calculation module, used to calculate the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; a first determination module, used to determine the multiple candidate products from multiple products based on the multiple matching degrees, and obtain the attribute information of the multiple candidate products.
[0014] Furthermore, the second determination unit includes: a splicing module, used to splice the request information and the attribute information of the multiple candidate products to obtain target information; a feature extraction module, used to extract features of the target information based on the feature extraction module of the target neural network model to obtain target feature data; a first processing module, used to process the target feature data based on the prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0015] Furthermore, the device also includes: an acquisition unit, which is used to extract features from the target information according to the feature extraction module of the target neural network model to obtain a training data set before obtaining the target feature data, wherein the training data set at least includes: multiple product data and the actual recommendation probability corresponding to each product data; a processing unit, which is used to process the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; a calculation unit, which is used to calculate based on the predicted recommendation probability and the actual recommendation probability to obtain a target loss value; a training unit, which is used to train the initial neural network model based on the target loss value to obtain the target neural network model.
[0016] Furthermore, the acquisition unit includes: a second acquisition module, used to obtain product exposure logs and product recommendation logs of multiple products in the product database within a historical time period; a second processing module, used to parse and calculate the product exposure logs and the product recommendation logs to obtain the multiple product data and the true recommendation probability corresponding to each product data; a third acquisition module, used to obtain the training data set based on the multiple product data and the true recommendation probability corresponding to each product data.
[0017] Furthermore, the second processing module includes: a first parsing submodule, used to parse the product exposure log to obtain the multiple product data, wherein the multiple product data at least include: the release time and release location of each product; a second parsing submodule, used to parse the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; a calculation submodule, used to perform calculations based on the recommendation information to obtain the real recommendation probability corresponding to each product data.
[0018] Furthermore, the third determination unit includes: a sorting module, used to sort the recommendation probability in descending order to obtain a sorted recommendation probability list; a fourth acquisition module, used to obtain the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; a second determination module, used to determine the candidate product corresponding to the target recommendation probability as the target product, and push the attribute information corresponding to the target product to the target object.
[0019] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the product recommendation methods described above.
[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is also provided, the electronic device includes one or more processors and a memory, and the memory is used to store the product recommendation method described in any one of the above-mentioned methods implemented by one or more processors.
[0021] Through this application, the following steps are adopted: obtaining the recommendation request triggered by the target object, and parsing the recommendation request to obtain request information, wherein the request information at least includes: the identity information of the target object, the context information of the recommendation request and the request time information of the recommendation request; determining the attribute information of multiple candidate products according to the request information; determining the recommendation probability corresponding to each candidate product according to the request information and the attribute information of multiple candidate products; determining the target product according to the recommendation probability, and pushing the attribute information corresponding to the target product to the target object. Through this application, the problem of collecting user needs and product usage preferences through questionnaire surveys in the related technology and recommending products that may be of interest to users, resulting in low product recommendation efficiency, is solved. In this scheme, first, after receiving the recommendation request triggered by the target object, the recommendation request is parsed to obtain the request information. Then, according to the request information, the historical behavior data and preference information of the target object are analyzed to determine multiple candidate products that the target object may be interested in and the attribute information corresponding to each candidate product, and the recommendation probability of each candidate product is calculated. Finally, the candidate product with the highest recommendation probability is determined as the target product recommended to the target object, and the attribute information of the target product is pushed to the target object. By parsing the recommendation requests generated by the target object in real time, the candidate products can be accurately determined based on the contextual information in the recommendation request, avoiding the recommendation lag caused by the traditional method of collecting user behavior data through questionnaires. At the same time, the recommendation probability of each candidate product is calculated, and the target product is accurately recommended to the target object based on the recommendation probability, which also avoids the inaccurate recommendation caused by the traditional method of recommending products to the target object due to relying on questionnaire results, thereby achieving the effect of improving product recommendation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flowchart of a product recommendation method provided according to an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of a product recommendation method provided according to an embodiment of the present application. Figure 1 ;
[0025] Figure 3 This is a schematic diagram of a product recommendation method provided according to an embodiment of the present application. Figure 2 ;
[0026] Figure 4 is a schematic diagram of a product recommendation device provided according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0032] The present invention is described below in conjunction with preferred implementation steps. Figure 1is a flowchart of a product recommendation method provided according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0033] Step S101, obtaining a recommendation request triggered by a target object, and parsing the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request.
[0034] Optionally, the operational behavior of the target object is detected in the system. When a recommendation request triggered by the target object is detected, the recommendation request is parsed using an event tracking tool or an analysis tool to obtain request information, including: the identity information of the target object (for example, the target object's ID, gender, age, height, and occupation information, etc.), the context information of the recommendation request (for example, browsing history, current browsing location, and search keywords, etc.), and the request time information of the recommendation request.
[0035] Step S102: determining attribute information of a plurality of candidate products according to the request information.
[0036] Optionally, the identity information of the target object, the context information of the recommendation request and the request time information of the recommendation request are analyzed to understand the current needs and preferences of the target object, and then determine the candidate products and attribute information of the candidate products from multiple products in the product database, such as: product name, product description, product type, product user rating, etc.
[0037] Step S103: determining the recommendation probability corresponding to each candidate product according to the request information and the attribute information of the plurality of candidate products.
[0038] Optionally, the request information and attribute information of multiple candidate products are processed, trained and predicted through a neural network model to obtain a recommendation probability corresponding to each candidate product.
[0039] Step S104: determine the target product based on the recommendation probability, and push the attribute information corresponding to the target product to the target object.
[0040] Optionally, the candidate product with the highest recommendation probability is determined as the target product, and the attribute information corresponding to the target product is pushed to the target object according to different recommendation strategies (eg, real-time push, scheduled push, triggered push based on user behavior, etc.).
[0041] In summary, after receiving the recommendation request triggered by the target object, the recommendation request is first parsed to obtain the request information. Then, the historical behavior data and preference information of the target object are analyzed according to the request information to determine multiple candidate products that the target object may be interested in and the attribute information corresponding to each candidate product, and the recommendation probability of each candidate product is calculated. Finally, the candidate product with the highest recommendation probability is determined as the target product recommended to the target object, and the attribute information of the target product is pushed to the target object. By parsing the recommendation request generated by the target object in real time, the candidate product can be accurately determined according to the context information in the recommendation request, avoiding the problem of recommendation lag caused by the traditional method of collecting user behavior data by questionnaire survey. At the same time, the recommendation probability of each candidate product is calculated, and the target product is accurately recommended to the target object based on the recommendation probability, which also avoids the problem of inaccurate recommendation caused by relying on the questionnaire survey results to recommend products to the target object in the traditional method, thereby achieving the effect of improving the efficiency of product recommendation.
[0042] Optionally, in the product recommendation method provided in the embodiment of the present application, determining the attribute information of multiple candidate products based on the request information includes: obtaining product label information of each product in the product database; calculating the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; determining multiple candidate products from the multiple products based on the multiple matching degrees, and obtaining the attribute information of the multiple candidate products.
[0043] In an optional embodiment, product label information of all products is obtained through a product database, including but not limited to: product description information, product rating information, product applicable population, etc. For each product, the matching degree between the request information and the product label information is calculated to obtain multiple matching degrees, which can be achieved through a variety of methods, such as: label-based similarity calculation, such as cosine similarity, Jaccard similarity, etc. All products are sorted according to the calculated matching degree, and a threshold is set according to business needs to filter out products with a matching degree higher than the threshold as candidate products. After determining multiple candidate products, the attribute information corresponding to each candidate product is obtained through the product database, such as: product name, product description, product type, product user rating, etc.
[0044] By calculating the matching degree between the attribute information and the request information of each product, it is possible to quickly identify candidate products that meet the requirements from multiple products, providing a basis for the next step of calculating the recommendation probability and determining the target product.
[0045] Optionally, in the product recommendation method provided in the embodiment of the present application, determining the recommendation probability corresponding to each candidate product based on the request information and the attribute information of multiple candidate products includes: concatenating the request information and the attribute information of multiple candidate products to obtain target information; extracting features of the target information based on a feature extraction module of the target neural network model to obtain target feature data; processing the target feature data based on the prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0046] In an optional embodiment, the request information of the recommendation request and the attribute information of each candidate product are spliced according to the associated fields, similar to the join operation in SQL, to obtain the target information. The target information contains discrete data (for example, the gender information of the target object, etc.) and continuous data (for example, the height value, weight value, etc. of the target object). The target information is first converted into two-dimensional structured data, and then input into the feature extraction module of the target neural network model for feature extraction to obtain target feature data, and the prediction module is used to perform prediction processing based on the target feature data to output the recommendation probability corresponding to each candidate product.
[0047] It should be noted that the target neural network can be a convolutional neural network (CNN), a recurrent neural network (RNN), a logistic regression (LR), etc.
[0048] By splicing the request information and the attribute information of the candidate products, the target information can be quickly obtained, and the target neural network model is used to process the target information to accurately obtain the recommendation probability corresponding to each candidate product.
[0049] Optionally, in the product recommendation method provided in the embodiment of the present application, before performing feature extraction on the target information according to the feature extraction module of the target neural network model to obtain the target feature data, the method also includes: obtaining a training data set, wherein the training data set includes at least: multiple product data and the true recommendation probability corresponding to each product data; processing the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; calculating according to the predicted recommendation probability and the true recommendation probability to obtain the target loss value; training the initial neural network model according to the target loss value to obtain the target neural network model.
[0050] In an optional embodiment, first, ensure that the training data set contains multiple product data and the true recommendation probability corresponding to each product, clean the data in the training data set to remove incomplete or erroneous data, and normalize the data to facilitate the training of the neural network model. Then, select a suitable neural network architecture, such as: convolutional neural network (CNN), recurrent neural network (RNN), logistic regression (LR), etc., and use random initialization or other strategies to initialize the parameters in the neural network model to obtain an initial neural network model. And input the training data set into the initial neural network model, perform forward propagation, and obtain the predicted recommendation probability corresponding to each product data. According to the predicted recommendation probability and the true recommendation probability, calculate the target loss value. Commonly used loss functions include: mean square error loss function (MSE), cross entropy loss function, etc. According to the target loss value, use the back propagation algorithm to calculate the gradient of each parameter. Use gradient descent or other optimization algorithms to update the parameters in the neural network model. Finally, repeat the above steps of forward propagation, loss value calculation, back propagation and parameter update until the performance of the model meets the predetermined stopping conditions, such as: the loss value converges or reaches the preset number of iterations, etc., determine the current model as the target neural network model, and deploy the trained target neural network model to the real-time prediction environment to provide users with real-time recommendation services.
[0051] By using the loss function to calculate the target loss value between the predicted recommendation probability and the actual recommendation probability of each product data in the training data set, the neural network model can be quickly optimized and adjusted according to the target loss value, thereby accurately obtaining the target neural network model with the best performance.
[0052] Optionally, in the product recommendation method provided in the embodiment of the present application, obtaining a training data set includes: obtaining product exposure logs and product recommendation logs for multiple products in a product database within a historical time period; parsing and calculating the product exposure logs and product recommendation logs to obtain multiple product data and the true recommendation probability corresponding to each product data; and obtaining a training data set based on the multiple product data and the true recommendation probability corresponding to each product data.
[0053] In an optional embodiment, first, all product exposure logs and product recommendation logs in the past six months are obtained from the product database, and the integrity and consistency of the data are checked, and incomplete or erroneous log records are removed to ensure that all log records follow the same format and standard. Then, the product exposure logs and product recommendation logs are parsed to extract relevant information about product exposure and product recommendation. The product exposure information and product recommendation information are calculated and spliced to obtain multiple product data and the true recommendation probability corresponding to each product data. Finally, a training data set is obtained based on the multiple product data and the true recommendation probability corresponding to each product data.
[0054] It should be noted that if there are 10 billion product exposures in the system in the past six months, then there are 10 billion training data. The training label of each data is determined according to whether the product is recommended (if the product is recommended, the training label is 1; if the product is not recommended, the training label is 0). Product exposure logs and product recommendation logs generally do not store all information, but store some backbone information, such as user ID, product ID, etc. The user ID is used to splice the user's detailed information, such as age, education, historical behavior data, etc., and the product ID is used to splice the product's detailed information, such as the product's historical performance data, product recommendation times, etc. In the splicing process, time series data is also used, such as the product recommendation times. This data will change over time. For example, at 10 o'clock, the product recommendation times may be 101, and at 11 o'clock, the product recommendation times may be 105. From the perspective of samples, the recommendation times at 10 o'clock and 11 o'clock correspond to two sample data respectively.
[0055] Through multiple product data and the actual recommendation probability corresponding to each product data, the model's training data set can be quickly obtained to help the model accurately predict the product's recommendation probability, and then accurately recommend the target product to the target object.
[0056] Optionally, in the product recommendation method provided in the embodiment of the present application, the product exposure log and the product recommendation log are parsed and calculated to obtain multiple product data and the true recommendation probability corresponding to each product data, including: parsing the product exposure log to obtain multiple product data, wherein the multiple product data at least include: the release time and release location of each product; parsing the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; calculating based on the recommendation information to obtain the true recommendation probability corresponding to each product data.
[0057] In an optional embodiment, first, extract detailed information of each exposure from the product exposure log, including at least: the release time and release location of the product, and extract detailed information of each recommendation from the product recommendation log, including at least: the user list corresponding to the product, user usage time, user rating and user promotion degree. Check whether the extracted data is complete and accurate, and remove invalid or erroneous records. Then, analyze the recommendation behavior of the target object, such as: click, recommend, browse, etc., to determine the target object's preference for the product. And calculate the time weight according to the user's usage time, for example: newer user behavior may have a greater impact on the recommendation probability; calculate the user's influence according to the user's promotion degree, for example: users with high influence may contribute more to the recommendation probability; standardize the user rating so that the ratings of different products are comparable. Finally, according to the recommendation information and time weight, user influence and other factors, calculate the true recommendation probability corresponding to each product data by weighted summation, Bayesian update, machine learning model and other methods.
[0058] By parsing and extracting information from product exposure logs and product recommendation logs, we can quickly obtain product data and product recommendation information, and accurately calculate the true recommendation probability corresponding to each product data based on the above information, thereby improving the relevance and accuracy of product recommendations.
[0059] Optionally, in the product recommendation method provided in the embodiment of the present application, the target product is determined based on the recommendation probability, and the attribute information corresponding to the target product is pushed to the target object, including: sorting the recommendation probability in descending order to obtain a sorted recommendation probability list; obtaining the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; determining the candidate product corresponding to the target recommendation probability as the target product, and pushing the attribute information corresponding to the target product to the target object.
[0060] In an optional embodiment, the candidate products are sorted in descending order according to the recommendation probability output by the target neural network model. The candidate products with high recommendation probability are placed at the front of the list. The product with the highest recommendation probability is selected from the sorted recommendation probability list and determined as the target product. At the same time, the relevant attribute information of the target product is obtained from the product database, such as: product name, product description, product type, product user rating, etc., and pushed to the target object.
[0061] It should be noted that after the attribute information of the target product is pushed to the target object, the feedback information of the target object on the target product is collected, such as whether it is clicked, browsing time, whether it is collected, etc. And according to the user's feedback, the recommendation probability and push strategy are adjusted in real time to improve the accuracy of the recommendation system and user experience.
[0062] By sorting the recommendation probabilities of candidate products in descending order, we can quickly determine the candidate products with the highest recommendation probability, and then accurately determine the target products to achieve precise push.
[0063] It should be noted that Figure 2 This is a schematic diagram of a product recommendation method provided according to an embodiment of the present application. Figure 1 .like Figure 2 As shown, first, obtain the recommendation request triggered by the target object, and parse the recommendation request to obtain the request information. At the same time, obtain the product label information of each product in the product database, and calculate the matching degree between the request information and the product label information of each product, and determine multiple candidate products and the attribute information of each candidate product from multiple products based on multiple matching degrees. Then, splice the request information and the attribute information of multiple candidate products to obtain the target information, and use the target neural network model to perform feature extraction and probability prediction on the target information to obtain the recommendation probability corresponding to each candidate product. Finally, sort the recommendation probability corresponding to each candidate product in descending order, determine the candidate product with the highest recommendation probability as the target product, and push the attribute information corresponding to the target product to the target object.
[0064] It should be noted that Figure 3 This is a schematic diagram of a product recommendation method provided according to an embodiment of the present application. Figure 2 .like Figure 3 As shown in FIG. 1 , before making product recommendations based on the recommendation requests generated by the target object in real time, it is necessary to determine the target neural network model in an offline environment. The steps are as follows: First, obtain the product exposure logs and product recommendation logs of multiple products in the product database in the historical time period, and parse the product exposure logs and product recommendation logs to obtain multiple product data and the recommendation information corresponding to each product data. Then, calculate based on the recommendation information to obtain the true recommendation probability corresponding to each product data, and obtain the training data set based on the multiple product data and the true recommendation probability corresponding to each product data. Finally, select a suitable neural network model architecture, use random initialization or other strategies to initialize the parameters in the neural network model to obtain the initial neural network model. Input the training data set into the initial neural network model, perform forward propagation, and obtain the predicted recommendation probability corresponding to each product data. According to the predicted recommendation probability and the true recommendation probability, calculate the target loss value, optimize and adjust the initial neural network model, until the performance of the model meets the predetermined stop condition, determine the current neural network model as the target neural network model, and deploy the trained target neural network model in the real-time prediction environment to provide real-time recommendation services for the target object.
[0065] The product recommendation method provided in the embodiment of the present application obtains the recommendation request triggered by the target object, and parses the recommendation request to obtain the request information, wherein the request information at least includes: the identity information of the target object, the context information of the recommendation request and the request time information of the recommendation request; according to the request information, the attribute information of multiple candidate products is determined; according to the request information and the attribute information of multiple candidate products, the recommendation probability corresponding to each candidate product is determined; according to the recommendation probability, the target product is determined, and the attribute information corresponding to the target product is pushed to the target object, which solves the problem that the user's needs and product usage preferences are collected by questionnaire surveys in the related technology, and the products that may be of interest to the user are recommended, resulting in a relatively low product recommendation efficiency. In summary, in this scheme, first, after receiving the recommendation request triggered by the target object, the recommendation request is parsed to obtain the request information. Then, according to the request information, the historical behavior data and preference information of the target object are analyzed to determine the multiple candidate products that the target object may be interested in and the attribute information corresponding to each candidate product, and the recommendation probability of each candidate product is calculated. Finally, the candidate product with the highest recommendation probability is determined as the target product recommended to the target object, and the attribute information of the target product is pushed to the target object. By parsing the recommendation requests generated by the target object in real time, the candidate products can be accurately determined based on the contextual information in the recommendation request, avoiding the recommendation lag caused by the traditional method of collecting user behavior data through questionnaires. At the same time, the recommendation probability of each candidate product is calculated, and the target product is accurately recommended to the target object based on the recommendation probability, which also avoids the inaccurate recommendation caused by the traditional method of recommending products to the target object due to relying on questionnaire results, thereby achieving the effect of improving product recommendation efficiency.
[0066] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] The embodiment of the present application also provides a product recommendation device. It should be noted that the product recommendation device of the embodiment of the present application can be used to execute the product recommendation method provided by the embodiment of the present application. The product recommendation device provided by the embodiment of the present application is introduced below.
[0068] Figure 4 is a schematic diagram of a product recommendation device according to an embodiment of the present application. Figure 4 As shown, the device includes: a parsing unit 401, a first determining unit 402, a second determining unit 403, and a third determining unit 404.
[0069] The parsing unit 401 is used to obtain the recommendation request triggered by the target object, and parse the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request and request time information of the recommendation request;
[0070] A first determining unit 402 is used to determine attribute information of a plurality of candidate products according to the request information;
[0071] The second determining unit 403 is used to determine the recommendation probability corresponding to each candidate product according to the request information and the attribute information of the plurality of candidate products;
[0072] The third determining unit 404 is used to determine the target product according to the recommendation probability, and push the attribute information corresponding to the target product to the target object.
[0073] The product recommendation device provided by the embodiment of the present application, the parsing unit 401 obtains the recommendation request triggered by the target object, and parses the recommendation request to obtain request information, wherein the request information at least includes: the identity information of the target object, the context information of the recommendation request and the request time information of the recommendation request; the first determination unit 402 determines the attribute information of multiple candidate products according to the request information; the second determination unit 403 determines the recommendation probability corresponding to each candidate product according to the request information and the attribute information of multiple candidate products; the third determination unit 404 determines the target product according to the recommendation probability, and pushes the attribute information corresponding to the target product to the target object, which solves the problem that the user's needs and product usage preferences are collected by questionnaire surveys in the related technology, and the products that may be of interest to the user are recommended, resulting in a relatively low product recommendation efficiency. In this scheme, first, after receiving the recommendation request triggered by the target object, the recommendation request is parsed to obtain the request information. Then, according to the request information, the historical behavior data and preference information of the target object are analyzed to determine the multiple candidate products that the target object may be interested in and the attribute information corresponding to each candidate product, and the recommendation probability of each candidate product is calculated. Finally, the candidate product with the highest recommendation probability is determined as the target product recommended to the target object, and the attribute information of the target product is pushed to the target object. By parsing the recommendation requests generated by the target object in real time, the candidate products can be accurately determined based on the contextual information in the recommendation request, avoiding the recommendation lag caused by the traditional method of collecting user behavior data through questionnaires. At the same time, the recommendation probability of each candidate product is calculated, and the target product is accurately recommended to the target object based on the recommendation probability, which also avoids the inaccurate recommendation caused by the traditional method of recommending products to the target object due to relying on questionnaire results, thereby achieving the effect of improving product recommendation efficiency.
[0074] Optionally, in the product recommendation device provided in the embodiment of the present application, the first determination unit 402 includes: a first acquisition module, used to obtain product label information of each product in the product database; a calculation module, used to calculate the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; the first determination module is used to determine multiple candidate products from multiple products based on multiple matching degrees, and obtain attribute information of multiple candidate products.
[0075] Optionally, in the product recommendation device provided in the embodiment of the present application, the second determination unit 403 includes: a splicing module, used to splice the request information and the attribute information of multiple candidate products to obtain target information; a feature extraction module, used to extract features of the target information according to the feature extraction module of the target neural network model to obtain target feature data; a first processing module, used to process the target feature data according to the prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0076] Optionally, in the product recommendation device provided in the embodiment of the present application, the device also includes: an acquisition unit, used to obtain a training data set before performing feature extraction on the target information according to the feature extraction module of the target neural network model to obtain the target feature data, wherein the training data set at least includes: multiple product data and the actual recommendation probability corresponding to each product data; a processing unit, used to process the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; a calculation unit, used to calculate based on the predicted recommendation probability and the actual recommendation probability to obtain a target loss value; a training unit, used to train the initial neural network model based on the target loss value to obtain a target neural network model.
[0077] Optionally, in the product recommendation device provided in the embodiment of the present application, the acquisition unit includes: a second acquisition module, used to obtain product exposure logs and product recommendation logs for multiple products in the product database within a historical time period; a second processing module, used to parse and calculate the product exposure logs and product recommendation logs to obtain multiple product data and the true recommendation probability corresponding to each product data; a third acquisition module, used to obtain a training data set based on multiple product data and the true recommendation probability corresponding to each product data.
[0078] Optionally, in the product recommendation device provided in the embodiment of the present application, the second processing module includes: a first parsing sub-module, used to parse the product exposure log to obtain multiple product data, wherein the multiple product data at least include: the release time and release location of each product; a second parsing sub-module, used to parse the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; a calculation sub-module, used to perform calculations based on the recommendation information to obtain the actual recommendation probability corresponding to each product data.
[0079] Optionally, in the product recommendation device provided in the embodiment of the present application, the third determination unit 404 includes: a sorting module, used to sort the recommendation probability in descending order to obtain a sorted recommendation probability list; a fourth acquisition module, used to obtain the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; a second determination module, used to determine the candidate product corresponding to the target recommendation probability as the target product, and push the attribute information corresponding to the target product to the target object.
[0080] The product recommendation device includes a processor and a memory. The above-mentioned parsing unit 401, the first determination unit 402, the second determination unit 403, the third determination unit 404, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to achieve efficient recommendation of products.
[0081] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and efficient product recommendations can be achieved by adjusting kernel parameters.
[0082] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0083] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, and the program implements a product recommendation method when executed by a processor.
[0084] An embodiment of the present invention provides a processor, which is used to run a program, wherein the product recommendation method is executed when the program is running.
[0085] like Figure 5As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining a recommendation request triggered by a target object, and parsing the recommendation request to obtain request information, wherein the request information includes at least: identity information of the target object, context information of the recommendation request and request time information of the recommendation request; determining attribute information of multiple candidate products based on the request information; determining a recommendation probability corresponding to each candidate product based on the request information and the attribute information of the multiple candidate products; determining a target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object.
[0086] Optionally, determining the attribute information of multiple candidate products based on the request information includes: obtaining product label information of each product in a product database; calculating the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; determining multiple candidate products from multiple products based on the multiple matching degrees, and obtaining the attribute information of the multiple candidate products.
[0087] Optionally, determining the recommendation probability corresponding to each candidate product based on the request information and the attribute information of multiple candidate products includes: concatenating the request information and the attribute information of multiple candidate products to obtain target information; extracting features of the target information based on a feature extraction module of a target neural network model to obtain target feature data; processing the target feature data based on a prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0088] Optionally, before extracting features of the target information according to the feature extraction module of the target neural network model to obtain target feature data, the method also includes: obtaining a training data set, wherein the training data set includes at least: multiple product data and the true recommendation probability corresponding to each product data; processing the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; calculating according to the predicted recommendation probability and the true recommendation probability to obtain a target loss value; training the initial neural network model according to the target loss value to obtain a target neural network model.
[0089] Optionally, obtaining the training data set includes: obtaining product exposure logs and product recommendation logs for multiple products in a product database within a historical time period; parsing and calculating the product exposure logs and product recommendation logs to obtain multiple product data and the true recommendation probability corresponding to each product data; obtaining the training data set based on the multiple product data and the true recommendation probability corresponding to each product data.
[0090] Optionally, parsing and calculating the product exposure log and the product recommendation log to obtain multiple product data and the true recommendation probability corresponding to each product data includes: parsing the product exposure log to obtain multiple product data, wherein the multiple product data at least include: the release time and release location of each product; parsing the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; calculating based on the recommendation information to obtain the true recommendation probability corresponding to each product data.
[0091] Optionally, determining the target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object includes: sorting the recommendation probability in descending order to obtain a sorted recommendation probability list; obtaining the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; determining the candidate product corresponding to the target recommendation probability as the target product, and pushing the attribute information corresponding to the target product to the target object.
[0092] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0093] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining a recommendation request triggered by a target object, and parsing the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request; determining attribute information of multiple candidate products based on the request information; determining a recommendation probability corresponding to each candidate product based on the request information and the attribute information of the multiple candidate products; determining a target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object.
[0094] Optionally, determining the attribute information of multiple candidate products based on the request information includes: obtaining product label information of each product in a product database; calculating the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; determining multiple candidate products from multiple products based on the multiple matching degrees, and obtaining the attribute information of the multiple candidate products.
[0095] Optionally, determining the recommendation probability corresponding to each candidate product based on the request information and the attribute information of multiple candidate products includes: concatenating the request information and the attribute information of multiple candidate products to obtain target information; extracting features of the target information based on a feature extraction module of a target neural network model to obtain target feature data; processing the target feature data based on a prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
[0096] Optionally, before extracting features of the target information according to the feature extraction module of the target neural network model to obtain target feature data, the method also includes: obtaining a training data set, wherein the training data set includes at least: multiple product data and the true recommendation probability corresponding to each product data; processing the multiple product data through the initial neural network model to obtain the predicted recommendation probability corresponding to each product data; calculating according to the predicted recommendation probability and the true recommendation probability to obtain a target loss value; training the initial neural network model according to the target loss value to obtain a target neural network model.
[0097] Optionally, obtaining the training data set includes: obtaining product exposure logs and product recommendation logs for multiple products in a product database within a historical time period; parsing and calculating the product exposure logs and product recommendation logs to obtain multiple product data and the true recommendation probability corresponding to each product data; obtaining the training data set based on the multiple product data and the true recommendation probability corresponding to each product data.
[0098] Optionally, parsing and calculating the product exposure log and the product recommendation log to obtain multiple product data and the true recommendation probability corresponding to each product data includes: parsing the product exposure log to obtain multiple product data, wherein the multiple product data at least include: the release time and release location of each product; parsing the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: the user list, user usage time, user rating and user promotion degree corresponding to each product; calculating based on the recommendation information to obtain the true recommendation probability corresponding to each product data.
[0099] Optionally, determining the target product based on the recommendation probability, and pushing the attribute information corresponding to the target product to the target object includes: sorting the recommendation probability in descending order to obtain a sorted recommendation probability list; obtaining the target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is less than the order of the remaining recommendation probabilities in the sorted recommendation probability list; determining the candidate product corresponding to the target recommendation probability as the target product, and pushing the attribute information corresponding to the target product to the target object.
[0100] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0101] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0105] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0106] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0109] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A product recommendation method, characterized in that: include: Acquire a recommendation request triggered by a target object, and parse the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request; Determining attribute information of a plurality of candidate products according to the request information; Determine a recommendation probability corresponding to each candidate product according to the request information and the attribute information of the plurality of candidate products; According to the recommendation probability, a target product is determined, and attribute information corresponding to the target product is pushed to the target object.
2. The method according to claim 1, characterized in that Determining attribute information of a plurality of candidate products according to the request information includes: Get product label information for each product in the product database; Calculating the matching degree between the request information and the product label information of each product to obtain multiple matching degrees; According to the multiple matching degrees, the multiple candidate products are determined from the multiple products, and attribute information of the multiple candidate products is obtained.
3. The method according to claim 1, characterized in that Determining the recommendation probability corresponding to each candidate product according to the request information and the attribute information of the plurality of candidate products includes: The request information and the attribute information of the plurality of candidate products are concatenated to obtain target information; Extracting features of the target information according to a feature extraction module of a target neural network model to obtain target feature data; The target feature data is processed according to the prediction module of the target neural network model to obtain the recommendation probability corresponding to each candidate product.
4. The method according to claim 3, characterized in that Before extracting features from the target information according to the feature extraction module of the target neural network model to obtain target feature data, the method further includes: Acquire a training data set, wherein the training data set at least includes: a plurality of product data and a true recommendation probability corresponding to each product data; Processing the multiple product data through an initial neural network model to obtain a predicted recommendation probability corresponding to each product data; Calculating according to the predicted recommendation probability and the actual recommendation probability to obtain a target loss value; The initial neural network model is trained according to the target loss value to obtain the target neural network model.
5. The method according to claim 4, characterized in that Obtaining the training data set includes: Obtain product exposure logs and product recommendation logs for multiple products in a product database within a historical period; Parsing and calculating the product exposure log and the product recommendation log to obtain the multiple product data and the true recommendation probability corresponding to each product data; The training data set is obtained according to the multiple product data and the true recommendation probability corresponding to each product data.
6. The method according to claim 5, characterized in that Parsing and calculating the product exposure log and the product recommendation log to obtain the multiple product data and the true recommendation probability corresponding to each product data includes: Parsing the product exposure log to obtain the plurality of product data, wherein the plurality of product data at least includes: the release time and release location of each product; Parse the product recommendation log to obtain recommendation information corresponding to each product data, wherein the recommendation information at least includes: a user list, user usage time, user rating, and user promotion degree corresponding to each product; Calculation is performed based on the recommendation information to obtain the true recommendation probability corresponding to each product data.
7. The method according to claim 1, characterized in that Determining a target product according to the recommendation probability, and pushing attribute information corresponding to the target product to the target object includes: Sorting the recommendation probabilities in descending order to obtain a sorted recommendation probability list; Obtaining a target recommendation probability in the sorted recommendation probability list, wherein the order of the target recommendation probability in the sorted recommendation probability list is smaller than the order of the remaining recommendation probabilities in the sorted recommendation probability list; The candidate product corresponding to the target recommendation probability is determined as the target product, and the attribute information corresponding to the target product is pushed to the target object.
8. A product recommendation device, characterized in that: include: A parsing unit, configured to obtain a recommendation request triggered by a target object, and parse the recommendation request to obtain request information, wherein the request information at least includes: identity information of the target object, context information of the recommendation request, and request time information of the recommendation request; A first determining unit, configured to determine attribute information of a plurality of candidate products according to the request information; A second determining unit, configured to determine a recommendation probability corresponding to each candidate product according to the request information and the attribute information of the plurality of candidate products; The third determining unit is used to determine a target product according to the recommendation probability, and push attribute information corresponding to the target product to the target object.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the storage medium is controlled to execute the product recommendation method according to any one of claims 1 to 7 on a device.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the product recommendation method described in any one of claims 1 to 7.
