A training method for a recommendation number model, a mixed content recommendation method and a device

By obtaining user behavior feedback and feature information to adjust the recommendation number model, the problem of uncontrollable number of recommendations in mixed content recommendation is solved, the controllability and efficiency of recommendation results are improved, and user needs are met.

CN112905896BActive Publication Date: 2024-08-23NETEASE MEDIA TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110337819.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-08-23
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

In the existing mixed content recommendation methods, the method of determining the number of recommendations for each type of content is unreasonable, resulting in uncontrollable recommendation results, and relying on manual experience is inefficient and difficult to meet user needs.

Method used

By obtaining user behavior feedback and the actual number of recommendations, extract user attributes, context and historical operation information, and adjust the parameters of the recommendation number model to predict the expected number of recommendations and ensure the reliability and rationality of the recommendation number model.

Benefits of technology

It achieves improved controllability and efficiency of mixed content recommendation results, meets user needs to the greatest extent, and increases the exposure of recommended content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905896B
    Figure CN112905896B
Patent Text Reader

Abstract

The present invention provides a training method for a recommendation number model, a hybrid content recommendation method and device, the training method comprising: obtaining user behavioral feedback on a specified type of content when content recommendation is performed based on a hybrid recommendation list; determining the expected number of recommendations for the specified type of content based on the behavioral feedback and the actual number of recommendations for the specified type of content in the hybrid list; extracting features from at least one of the user's attribute information, the user's context information when content recommendation is performed, and the user's historical operation information on the specified type of content; using the extracted features as input to a recommendation number model, and adjusting the parameters of the recommendation number model with the goal of outputting the expected number of recommendations. Using the method provided by the present invention, a recommendation number model for determining the number of recommendations for a specified type of content in a hybrid recommendation list can be trained to reasonably perform hybrid content recommendations and improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a training method for a recommendation number model, a mixed content recommendation method and a device. Background Art

[0002] Mixed content recommendation means that in information flow recommendation, different types of content, such as pictures, text, graphics, audio, video, etc., are recalled and sorted separately, and then mixed and sorted. A certain number of top-ranked content are combined into a list and recommended to users.

[0003] There are mainly three solutions for hybrid content recommendation in the prior art:

[0004] (1) Based on the scores of different types of content in the same ranking model, the top k sets with the highest scores are selected and recommended to users.

[0005] However, different types of content have different click-through rates. Content with low click-through rates will have lower scores than other content, which will affect the number of recommendations for content with low click-through rates. Moreover, the number of recommendations for each type of content varies with the sorting results and depends on the scoring of the sorting model. The results of mixed sorting recommendations are uncontrollable.

[0006] (2) Based on the scores of different types of content in different ranking models, the top k sets with the highest scores are selected and recommended to users.

[0007] However, different ranking models score different types of content respectively, and there is no meaning in comparing the scores of each type of content; moreover, the above scheme also has the problem that the results of mixed ranking recommendations are uncontrollable.

[0008] (3) Comprehensively consider the factors that affect user preferences, set clear rules and strategies based on manual experience, and calculate the number of recommendations for each type of content.

[0009] However, as more factors are considered, the setting of the above rules becomes complicated and difficult to control, and the feasibility is low; and the above solutions rely on manual experience and are less efficient.

[0010] On the basis of the ranking model scoring, for different types of recommended content, how to reasonably determine the number of recommendations of each type in order to increase the exposure of the recommended content and meet user needs to the greatest extent requires providing corresponding solutions. Summary of the invention

[0011] The embodiments of the present invention provide a training method for a recommendation number model, a hybrid content recommendation method and device, which solve the problems existing in the existing hybrid content recommendation solutions, such as unreasonable methods for determining the recommendation numbers of each type of content and uncontrollable hybrid content recommendation results.

[0012] In a first aspect, an embodiment of the present invention provides a method for training a recommendation number model, which is used to determine the number of recommendations of a specified type of content in a mixed recommendation list, and the method includes:

[0013] Get user behavior feedback on specified types of content when recommending content based on a mixed recommendation list;

[0014] Determining the expected number of recommendations for the specified type of content according to the behavioral feedback and the actual number of recommendations for the specified type of content in the mixed list;

[0015] Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0016] The extracted features are used as input of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected recommendation number.

[0017] In a possible implementation manner, determining the expected number of recommendations for the specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed list includes:

[0018] When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations;

[0019] When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations;

[0020] When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

[0021] The training method for the recommendation number model provided in an embodiment of the present invention compares the number of times a user clicks on a specified type of content with a preset first threshold, and provides a specific method for reasonably determining the expected number of recommendations under different size relationships, thereby improving the reliability and rationality of the above-mentioned training method for the recommendation number model.

[0022] In a possible implementation manner, the extracted features and the corresponding expected number of recommendations are a sample, and before adjusting the parameters of the recommendation number model, the method further includes:

[0023] Obtaining a sample set including a plurality of samples;

[0024] Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold;

[0025] Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

[0026] The training method for the recommendation number model provided in the embodiment of the present invention takes the extracted features and the corresponding expected recommendation numbers as a sample, and filters out samples in the sample set according to a preset ratio, in order to improve the rationality of the sample set, thereby making the recommendation number model trained based on the above-screened sample set more rational, and improving the reliability of the above-mentioned training method for the recommendation number model.

[0027] In a possible implementation, extracting features from the attribute information of the user includes:

[0028] Feature extraction is performed on at least one of the user's gender, age, and geographic location.

[0029] The training method of the recommendation number model provided in the embodiment of the present invention provides possible specific types of the attribute information of the above-mentioned users, and improves the feasibility and rationality of the training method of the recommendation number model by extracting features from at least one of the multiple aspects of the attribute information of the users.

[0030] In a possible implementation, extracting features from context information of the user when recommending the content includes:

[0031] Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

[0032] The training method for the recommendation number model provided in the embodiment of the present invention provides possible specific types of contextual information of the user when recommending the above-mentioned content, and improves the feasibility and rationality of the training method for the recommendation number model by extracting features of at least one of the contextual information of the user when recommending various aspects of content.

[0033] In a possible implementation, extracting features from at least one of the historical operation information of the user on the specified type of content includes:

[0034] Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

[0035] The training method for the recommendation number model provided in the embodiment of the present invention provides possible specific types of historical operation information of the above-mentioned users on the specified type of content, and improves the feasibility and rationality of the training method for the recommendation number model by extracting features of at least one of the historical operation information of multiple users on the specified type of content; and combined with the above-mentioned two implementation methods, the comprehensiveness of the training method for the recommendation number model is improved.

[0036] In a possible implementation, the extracted features are used as inputs of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected number of recommendations, including:

[0037] Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number;

[0038] A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

[0039] The training method for the recommendation number model provided in the embodiment of the present invention calculates the loss function value through the loss function, adjusts the parameters of the above-mentioned recommendation number model, provides a specific model parameter adjustment method, improves the feasibility of the training method for the recommendation number model, and improves the accuracy of the above-mentioned recommendation number model.

[0040] In a possible implementation, the method further includes:

[0041] In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model;

[0042] In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0043] The training method for the recommendation number model provided in the embodiment of the present invention divides the recommendation number model into a modeling stage and an updating stage, and provides a specific method for determining the actual recommendation number in the above two stages. In the modeling stage when the recommendation number model has a poor effect, the ranking model is used to determine the actual recommendation number. In the updating stage when the recommendation number model effect reaches a preset standard, the recommendation number model is used to determine the actual recommendation number, which reduces the difficulty of model training, reduces the time of model training, and improves the reliability of the training method of the recommendation number model.

[0044] In a possible implementation, determining the actual number of recommendations of the specified type of content in the mixed recommendation list according to the recommendation degree scores of different types of content by the ranking model includes:

[0045] Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or

[0046] According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

[0047] The training method for the recommendation number model provided in an embodiment of the present invention provides two specific implementation methods for scoring and sorting the ranking models. The same ranking model is used to score the recommendation degree of different types of content, or different ranking models are used to score the recommendation degree of corresponding types of content, thereby enhancing the flexibility of the training method for the above-mentioned recommendation number model.

[0048] In a second aspect, an embodiment of the present invention provides a method for hybrid ranking recommendation, which is applied to a recommendation server, and the method includes:

[0049] Receive a recommendation request from a user, and obtain at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on a specified type of content;

[0050] Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0051] Inputting the extracted features into a recommendation number model, wherein the recommendation number model is trained based on the method described in any one of the first aspects above;

[0052] According to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, a mixed recommendation list of different types of content mixed and sorted is obtained and sent to the user.

[0053] The method for hybrid ranking recommendation provided in an embodiment of the present invention uses the recommendation number model obtained by training in the first aspect to specify the number of recommendations of a type of content, and obtains a hybrid recommendation list according to the recommendation degree scores of different types of content, and performs hybrid ranking recommendation on users. By using machine learning technology, a method for hybrid ranking recommendation with controllable recommendation results and simple implementation is provided, which improves the feasibility of the method for hybrid ranking recommendation, reasonably performs hybrid ranking recommendation, improves the exposure of recommended content, satisfies user needs to the greatest extent, and brings a better recommendation experience to users.

[0054] In a third aspect, an embodiment of the present invention provides a training device for a recommendation number model, comprising:

[0055] A data acquisition unit, used to acquire user behavior feedback on a specified type of content when content recommendation is performed based on a mixed recommendation list;

[0056] A number determination unit, configured to determine an expected number of recommendations for a specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed list;

[0057] A feature extraction unit, configured to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0058] The parameter adjustment unit is used to use the extracted features as input of the recommendation number model, and adjust the parameters of the recommendation number model with the goal of outputting the expected recommendation number.

[0059] In a possible implementation manner, the number determination unit determines the expected number of recommendations of the specified type of content according to the behavior feedback and the actual number of recommendations of the specified type of content in the mixed list, including:

[0060] When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations;

[0061] When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations;

[0062] When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

[0063] In a possible implementation manner, the extracted features and the corresponding expected number of recommendations are a sample, and before the parameter adjustment unit adjusts the parameters of the recommendation number model, it is further configured to:

[0064] Obtaining a sample set including a plurality of samples;

[0065] Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold;

[0066] Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

[0067] In a possible implementation, the feature extraction unit extracts features from the attribute information of the user, including:

[0068] Feature extraction is performed on at least one of the user's gender, age, and geographic location.

[0069] In a possible implementation, the feature extraction unit extracts features from context information of the user when the content is recommended, including:

[0070] Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

[0071] In a possible implementation, the feature extraction unit extracts features of at least one of the historical operation information of the user on the specified type of content, including:

[0072] Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

[0073] In a possible implementation manner, the parameter adjustment unit uses the extracted features as input of the recommendation number model, and adjusts the parameters of the recommendation number model with the goal of outputting the expected number of recommendations, including:

[0074] Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number;

[0075] A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

[0076] In a possible implementation manner, the number determination unit is further configured to:

[0077] In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model;

[0078] In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0079] In a possible implementation manner, the number determination unit determines the actual number of recommendations of the specified type of content in the mixed recommendation list by scoring the recommendation degrees of different types of content according to the ranking model, including:

[0080] Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or

[0081] According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

[0082] In a fourth aspect, an embodiment of the present invention provides a device for hybrid ranking recommendation, including:

[0083] a request receiving unit, configured to receive a recommendation request from a user, and obtain at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on content of a specified type;

[0084] A feature extraction unit, configured to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0085] A feature input unit, used to input the extracted features into a recommended number model, wherein the recommended number model is trained based on the method described in any one of the first aspects;

[0086] The list determination unit is used to obtain a mixed recommendation list of different types of content in mixed order according to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, and send it to the user.

[0087] In a fifth aspect, an embodiment of the present invention provides a training device for a recommendation number model, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes:

[0088] Get user behavior feedback on specified types of content when recommending content based on a mixed recommendation list;

[0089] Determining the expected number of recommendations for the specified type of content according to the behavioral feedback and the actual number of recommendations for the specified type of content in the mixed list;

[0090] Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0091] The extracted features are used as input of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected recommendation number.

[0092] In a possible implementation manner, the processor determines the expected number of recommendations of the specified type of content according to the behavior feedback and the actual number of recommendations of the specified type of content in the mixed list, including:

[0093] When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations;

[0094] When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations;

[0095] When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

[0096] In a possible implementation manner, the extracted features and the corresponding expected number of recommendations are a sample, and before the processor adjusts the parameters of the recommendation number model, it is further configured to:

[0097] Obtaining a sample set including a plurality of samples;

[0098] Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold;

[0099] Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

[0100] In a possible implementation, the processor extracts features from the attribute information of the user, including:

[0101] Feature extraction is performed on at least one of the user's gender, age, and geographic location.

[0102] In a possible implementation, the feature extraction unit extracts features from context information of the user when the content is recommended, including:

[0103] Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

[0104] In a possible implementation, the processor extracts features of at least one of the historical operation information of the user on the specified type of content, including:

[0105] Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

[0106] In a possible implementation, the processor uses the extracted features as input of a recommendation number model, and adjusts parameters of the recommendation number model with the goal of outputting the expected number of recommendations, including:

[0107] Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number;

[0108] A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

[0109] In a possible implementation, the processor is further configured to:

[0110] In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model;

[0111] In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0112] In a possible implementation, the processor scores the recommendation levels of different types of content according to the ranking model to determine the actual number of recommendations of the specified type of content in the mixed recommendation list, including:

[0113] Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or

[0114] According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

[0115] In a sixth aspect, an embodiment of the present invention provides a device for hybrid ranking recommendation, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes:

[0116] Receive a recommendation request from a user, and obtain at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on a specified type of content;

[0117] Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0118] Inputting the extracted features into a recommendation number model, wherein the recommendation number model is trained based on any one of the methods described in the first aspect;

[0119] According to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, a mixed recommendation list of different types of content mixed and sorted is obtained and sent to the user.

[0120] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the training method for the recommendation number model provided in the first aspect above.

[0121] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method for hybrid sorting recommendation provided in the second aspect above.

[0122] The training method of the recommendation number model provided in the embodiment of the present invention calculates the expected number of recommendations that meets the user's needs based on the user's behavioral feedback on the specified type of content and the actual number of recommendations of the specified type of content; and extracts features from at least one of the user's attribute information, the user's contextual information when the content is recommended, and the user's historical operation information on the specified type of content, and uses the extracted features to train the model, comprehensively considering various factors that affect the user's preference for the specified type of content when recommending content, thereby improving the reliability and rationality of the recommendation number model. BRIEF DESCRIPTION OF THE DRAWINGS

[0123] Figure 1 A schematic diagram of an application scenario of a hybrid content recommendation method provided by an embodiment of the present invention;

[0124] Figure 2 A flowchart of a training method for a recommendation number model provided by an embodiment of the present invention;

[0125] Figure 3 A schematic diagram of a recommended number model provided by an embodiment of the present invention;

[0126] Figure 4 A flow chart of a hybrid ranking recommendation method provided by an embodiment of the present invention, which is applied to a recommendation server;

[0127] Figure 5 A schematic diagram of a training device for a recommendation number model provided by an embodiment of the present invention;

[0128] Figure 6 A schematic diagram of a hybrid sorting recommendation device provided by an embodiment of the present invention;

[0129] Figure 7 A schematic diagram of a training device for a recommendation number model provided by an embodiment of the present invention;

[0130] Figure 8 A schematic diagram of a device recommended for mixed sorting provided by an embodiment of the present invention;

[0131] Fig. 9 A schematic diagram of a training program product for a recommendation number model provided by an embodiment of the present invention;

[0132] Fig.10 A schematic diagram of a mixed sorting recommendation program product provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0133] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0134] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0135] According to an embodiment of the present invention, a training method for a recommendation number model, a hybrid content recommendation method and a device are proposed.

[0136] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0137] For ease of understanding, the terms involved in the embodiments of the present application are explained below:

[0138] Loss function: a function that maps the value of a random event or its related random variables to a non-negative real number to represent the "risk" or "loss" of the random event. In applications, loss functions are usually associated with optimization problems as learning criteria, that is, the model is solved and evaluated by minimizing the loss function. For example, in machine learning, loss functions are used for parameter estimation (PE) of the model, and the loss value obtained based on the loss function can be used to describe the degree of difference between the model's predicted value and the actual value. Common loss functions include mean square error loss function, support vector machine (SVM) hinge loss function, cross entropy loss function, etc.

[0139] Recall: It is a link in the recommendation system. The recommendation system generally consists of three stages: recall, sorting, and re-ranking. Recall refers to the use of some efficient algorithms to recall a part of the content that is highly relevant to the user's interests or corresponding content from the entire large recommendation set as a candidate set for the sorting stage.

[0140] Supervised training: Also known as supervised learning, is a method in machine learning that can learn or establish a pattern from training data and infer new instances based on this pattern. The training data consists of input objects (usually vectors) and expected outputs. The output of the function can be a continuous value (called regression analysis) or predict a categorical label (called classification).

[0141] Reinforcement Learning (RL): also known as reinforcement learning, evaluation learning or enhanced learning, is one of the paradigms and methodologies of machine learning. It is used to describe and solve the problem of how an agent can maximize rewards or achieve specific goals through learning strategies during its interaction with the environment.

[0142] Light Gradient Boosting Machine (Light GBM): is a lightweight framework that implements the Gradient Boosting Decision Tree (GBDT) algorithm. It supports efficient parallel training, has faster training efficiency, higher accuracy, low memory usage, and can process large-scale data.

[0143] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention. SUMMARY OF THE INVENTION

[0145] The inventors of the present invention have found that, when recommending mixed content, how to select an appropriate number of recommendations for each type of content to increase the exposure of the recommended content and to meet user needs to the greatest extent is a relatively complex problem.

[0146] There are mainly three solutions for hybrid content recommendation in the prior art:

[0147] (1) Based on the scores of different types of content in the same ranking model, the top k sets with the highest scores are selected and recommended to users.

[0148] A commonly used hybrid content recommendation method is to directly let different types of content compete based on their scores in the same ranking model, and select the top k sets to recommend to users. In this method, the number of recommendations for different types of content is determined by the ranking model score.

[0149] However, different types of content have different click-through rates. Content with a low click-through rate has a lower score than other content, which will affect the number of recommendations for content with a low click-through rate.

[0150] Moreover, the number of recommendations for each type of content changes with the sorting results and depends on the scoring of the sorting model. The results of mixed sorting recommendations are uncontrollable.

[0151] (2) Based on the scores of different types of content in different ranking models, the top k sets with the highest scores are selected and recommended to users.

[0152] Another commonly used hybrid content recommendation method is to directly let different types of content compete based on their scores in different ranking models, and select the top k sets to recommend to users. In this method, the number of recommendations for different types of content is determined by the ranking model scores.

[0153] However, different ranking models score different types of content respectively, resulting in different types of content being scored in different scoring spaces, and there is no meaning in comparing the scores obtained for each type of content.

[0154] Moreover, the above solution also has the problem that the results of mixed sorting recommendation are uncontrollable.

[0155] (3) Comprehensively consider the factors that affect user preferences, set clear rules and strategies based on manual experience, and calculate the number of recommendations for each type of content.

[0156] The above method does not rely on the scoring of the ranking model, but directly calculates the number of recommendations for different types of content. It is also a commonly used mixed content recommendation method for different types of content.

[0157] However, as more factors are considered, the setting of the above rules becomes complicated and difficult to control, and the feasibility is low; and the above solutions rely on manual experience and are less efficient.

[0158] In view of this, an embodiment of the present invention provides a method for training a recommendation number model, including: calculating an expected recommendation number that better meets user needs based on user behavioral feedback on a specified type of content and the actual number of recommendations of the specified type of content; and performing feature extraction on at least one of the user's attribute information, the user's contextual information when content is recommended, and the user's historical operation information on the specified type of content, training the model with the extracted features, and comprehensively considering multiple factors that affect the user's preference for the specified type of content when recommending content, so as to improve the reliability and rationality of the recommendation number model. The embodiment of the present invention performs mixed content recommendation based on the recommendation number model obtained by the above-mentioned training method, including: receiving a recommendation request from a user, obtaining at least one of the attribute information of the user, the context information of the user when content is recommended, and the historical operation information of the user on a specified type of content; performing feature extraction on at least one of the attribute information of the user, the context information of the user when content is recommended, and the historical operation information of the user on a specified type of content; inputting the extracted features into the recommendation number model; obtaining a mixed recommendation list of different types of content in a mixed order according to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content and sending it to the user, so as to improve the exposure of the recommended content and meet the user's needs to the greatest extent.

[0159] After introducing the basic principles of the present invention, various non-limiting embodiments of the present invention are described in detail below.

[0160] Application Scenario Overview

[0161] First reference Figure 1 , which is a schematic diagram of an application scenario of a hybrid content recommendation method provided by an embodiment of the present invention.

[0162] The user equipment 11 is used to send a recommendation request to the following recommendation server and receive a mixed recommendation list sent by the following recommendation server;

[0163] The recommendation server 12 is used to receive a recommendation request sent by a user through the above-mentioned user device 11, obtain the user's attribute information, the user's context information when content is recommended, and at least one of the user's historical operation information on a specified type of content; perform feature extraction on the user's attribute information, the user's context information when content is recommended, and at least one of the user's historical operation information on a specified type of content; input the extracted features into a recommendation number model, wherein the recommendation number model is trained based on the training method of any recommendation number model of the embodiments of the present invention; and obtain a mixed recommendation list of different types of content in mixed order based on the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content and send it to the user.

[0164] The user equipment 11 and the recommendation server 12 are connected to each other through a network, which may be a local area network, a wide area network, or the like.

[0165] The user device 11 may be a portable device (eg, a mobile phone, a tablet, a laptop, etc.) or a personal computer (PC).

[0166] The recommendation server 12 may be any device capable of providing Internet services.

[0167] The user interacts with the recommendation server 12 via a client installed in the user device 11 , wherein the client may be a web browser or an application client installed in a mobile user device such as a mobile phone, a tablet computer, etc.

[0168] It should be noted that the above application scenario is only an illustration of a possible implementation method in the embodiment of the present invention, and does not limit the embodiment of the present invention. On the contrary, the implementation method of the present application can be applied to any applicable scenario, and the above application scenario can be added, deleted, or modified according to the specific implementation situation.

[0169] Exemplary Methods

[0170] like Figure 2 FIG. 1 is a flowchart of a training method for a recommendation number model provided by an embodiment of the present invention, which is used to determine the number of recommendations of a specified type of content in a mixed recommendation list, and includes the following steps:

[0171] Step S201, obtaining user behavior feedback on a specified type of content when content recommendation is performed based on a mixed recommendation list;

[0172] The embodiment of the present invention uses a user's mixed ranking recommendation as a sampling unit to collect sample data required for training the recommendation number model, that is, collects sample data based on the mixed recommendation list and the user's behavioral feedback on the specified type of content in the mixed recommendation list.

[0173] It should be noted that the above-mentioned behavior feedback is whether the user has performed relevant operations on the above-mentioned specified type of content, which may include that the user has not performed relevant operations on the above-mentioned specified type of content, and may also include that the user has performed relevant operations on the above-mentioned specified type of content.

[0174] Furthermore, when the user performs relevant operations on the above-mentioned specified type of content, the above-mentioned behavioral feedback may include the specific operation type and the number of operations of the above-mentioned relevant operations, which may specifically include but is not limited to the number of times the user clicks on the above-mentioned specified type of content.

[0175] As an optional implementation, the above-mentioned specified type of content is video type content.

[0176] Step S202, determining the expected number of recommendations for the specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed list;

[0177] The expected number of recommendations refers to the number of recommendations that meets the user's preference for the specified type of content.

[0178] The embodiment of the present invention converts the above-mentioned behavioral feedback into the expected number of recommendations of the above-mentioned specified type of content based on the feedback and exploration ideas in reinforcement learning.

[0179] Determine whether the user has performed relevant operations on the above specified type of content.

[0180] When the user does not perform relevant operations on the above-specified type of content, it is considered that the above-mentioned actual number of recommendations is too large, and the above-mentioned expected number of recommendations can be reduced accordingly.

[0181] When the user performs relevant operations on the above-specified type of content, the actual number of recommendations is adjusted according to the specific operation type and the number of operations of the above-mentioned relevant operations to determine the expected number of recommendations.

[0182] For example, when the specific operation type of the above-mentioned related operation is a positive operation, the actual recommended number is incremented to obtain the expected recommended number; when the specific operation type of the above-mentioned related operation is a negative operation, the actual recommended number is decremented to obtain the expected recommended number.

[0183] The positive operation may include: the user clicks on the specified type of content; or the number of times the user clicks on the specified type of content reaches a preset threshold; or the user stays for a preset threshold after clicking on the specified type of content.

[0184] The negative operation may include: the number of times the user clicks on the specified type of content does not reach a preset threshold; or the time the user stays after clicking on the specified type of content does not reach a preset threshold.

[0185] For another example, when the number of the above-mentioned related operations reaches a preset threshold, the actual recommended number is incremented to obtain the expected recommended number; when the number of the above-mentioned related operations does not reach the preset threshold, the actual recommended number is decremented to obtain the expected recommended number.

[0186] In addition, the specific operation types and times of the above-mentioned related operations may be combined to determine the expected number of recommendations.

[0187] Moreover, the adjustment amplitude can be specifically set according to the number of the above-mentioned related operations: when it is determined that the number of the above-mentioned related operations is greater than the first preset value, the actual recommended number is increased by the first amplitude to obtain the expected recommended number; when it is determined that the number of the above-mentioned related operations is less than the first preset value and greater than the second preset value, the actual recommended number is increased by the second amplitude to obtain the expected recommended number; when it is determined that the number of the above-mentioned related operations is less than the second preset value, the actual recommended number is increased by the third amplitude to obtain the expected recommended number, wherein the above-mentioned first preset value is greater than the second preset value.

[0188] As an optional implementation manner, determining the expected number of recommendations of the specified type of content according to the behavior feedback and the actual number of recommendations of the specified type of content in the mixed list includes:

[0189] When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations;

[0190] When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations;

[0191] When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

[0192] The first threshold may be specifically set according to specific implementation conditions, and the embodiment of the present invention does not impose any limitation on this.

[0193] The specific form of the above-mentioned increasing / decreasing adjustment operation on the actual recommended number can be specifically set according to the specific implementation situation, and the embodiment of the present invention does not impose any limitation on this.

[0194] As an optional implementation, the first threshold is set to 1, and the increasing / decreasing adjustment operation on the actual recommended number is to add 1 / subtract 1 to the actual recommended number.

[0195] (1) If the number of times the user clicks on the specified type of content is a=1, then the actual number of recommendations y' is considered to be a reasonable number of recommendations, and the actual number of recommendations is used as the expected number of recommendations, that is, the expected number of recommendations Y=y';

[0196] (2) If the number of times the user clicks on the specified type of content a>1, it is considered that the actual number of recommendations y' is too small, and the expected number of recommendations can be explored freely, and the actual number of recommendations is incremented to obtain the expected number of recommendations, that is, the expected number of recommendations Y=y'+1;

[0197] (3) If the number of times the user clicks on the specified type of content is a<1, i.e., a=0, it is considered that the actual number of recommendations y' is too large, and the expected number of recommendations can be reduced accordingly. The actual number of recommendations is reduced to obtain the expected number of recommendations, i.e., the expected number of recommendations Y=y'-1.

[0198] It should be noted that the reason why the number of times the user clicks on the specified type of content is less than the first threshold may also be that the actual number of recommendations is too small.

[0199] The samples for which the number of times the user clicks on the specified type of content is less than the first threshold due to the small number of actual recommendations are regarded as samples with low confidence and are downsampled and discarded based on a certain ratio.

[0200] As an optional implementation manner, before adjusting the parameters of the recommendation number model, the method further includes:

[0201] Obtaining a sample set including a plurality of samples;

[0202] Each sample in the above sample set includes extracted features and the corresponding expected number of recommendations.

[0203] Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold;

[0204] Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

[0205] The second threshold may be specifically set according to specific implementation conditions, and the embodiment of the present invention does not impose any limitation on this.

[0206] It should be noted that feature extraction is performed on at least one of the user's attribute information, the user's contextual information when content is recommended, and the user's historical operation information on specified types of content, and the extracted features and the expected number of recommendations are calculated and recorded in the form of real-time logs, respectively. Then, the extracted features and the expected number of recommendations under the same mixed sorting recommendation are spliced ​​to generate sample data required for model training.

[0207] The actual number of recommendations for a specified type of content in the above mixed list is determined in different ways at different stages of the recommendation number model:

[0208] Implementation method 1: In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model;

[0209] It should be noted that the modeling phase of the above-mentioned recommendation number model and the following updating phase can be distinguished according to the loss function value of the above-mentioned recommendation number model.

[0210] If the above loss function value is greater than the preset value, it is determined that the above recommended number model is in the modeling stage;

[0211] Otherwise, it is determined that the above recommendation number model is in the updating stage.

[0212] It should be noted that when generating the above mixed recommendation list, the above actual number of recommendations is determined according to the current recommendation number model.

[0213] As an optional implementation, determining the actual number of recommended contents of a specified type in the mixed recommendation list according to the recommendation degree scores of different types of contents by the ranking model includes:

[0214] Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or

[0215] According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

[0216] The above-mentioned sorting model can be a model obtained by training based on recommendation degree scoring of different types of content. The recommendation degree of different types of content is scored using the above-mentioned sorting model, and then the different types of content are mixed and sorted according to the above-mentioned scores.

[0217] The above-mentioned ranking model may also be a ranking model obtained by training for set types of content, and different ranking models are used to score the recommendation degree of corresponding types of content, and then different types of content are mixed and ranked according to the above-mentioned scores.

[0218] The above mixed sorting is performed based on the scores of the above recommendation level ratings, with contents with higher scores being ranked higher.

[0219] It should be noted that the above-mentioned preset number is the total number of different types of content in the above-mentioned mixed recommendation list, which can be specifically set according to the specific implementation situation, and the embodiment of the present invention does not impose any limitation on this.

[0220] Implementation method 2: In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0221] When the loss function value is not greater than the preset value, it is considered that the recommendation effect of the recommendation number model is acceptable, and the recommendation number model is determined to be in the update stage. The recommendation number model in the update stage is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0222] Step S203, extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on the specified type of content;

[0223] In each mixed ranking recommendation, the attribute information of the user, the context information of the user when the content is recommended, and the historical operation information of the user on the specified type of content are all known.

[0224] It should be noted that any feature extraction method can be applied to the embodiment of the present invention, and the embodiment of the present invention does not impose any limitation on this.

[0225] As an optional implementation, feature extraction is performed on the attribute information of the user, the context information of the user when content is recommended, and the historical operation information of the user on the specified type of content to generate basic features and statistical features to obtain 61-dimensional features.

[0226] It should be noted that the dimension of the above-mentioned extracted features can be specifically set according to the specific implementation situation, and the embodiment of the present invention does not impose any limitation on this.

[0227] Each dimension of the features extracted above has a clear feature meaning. For example, one of the dimensions represents the gender of the user.

[0228] As an optional implementation manner, extracting features from the attribute information of the user includes:

[0229] Feature extraction is performed on at least one of the user's gender, age, and geographic location.

[0230] The geographical location of the above-mentioned user can be a geographical location of different precisions, such as province, city, county, etc.; it can also be an attribute classification of the geographical location, such as whether it is a first-tier / second-tier / third-tier city, south or north, whether it is a coastal city, etc.

[0231] It should be noted that the attribute information of the above-mentioned users includes but is not limited to the gender, age, and geographical location of the above-mentioned users. Any information that affects the number of recommendations expected by the user can be applied to the attribute information of the users in the embodiments of the present invention, such as the user's date of birth, nationality, etc. The embodiments of the present invention do not impose any limitations on this.

[0232] As an optional implementation, feature extraction is performed on the context information of the user when the content is recommended, including:

[0233] Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

[0234] The time of the above content recommendation can be time information of different precisions, such as date, hour, minute and second, etc.; it can also be the attribute division of the time for content recommendation, for example, whether it is a weekday / holiday, daytime / night, rest time on weekdays / working hours on weekdays, etc.

[0235] The client type of the user logging in when the above content is recommended can be a distinction between web / PC / mobile; it can also be a classification of the client system type, such as the mobile operating system IOS developed by Apple or the mobile operating system Android developed by Google in the United States.

[0236] When the above content is recommended, the network type connected by the client can be data traffic or wireless network.

[0237] It should be noted that the context information of the user when the above-mentioned content is recommended includes but is not limited to the time of the above-mentioned content recommendation, the client type to which the user is logged in when the content is recommended, and the network type to which the client is connected when the content is recommended. Any information that affects the number of recommendations expected by the user can be applied to the context information of the user when the above-mentioned content is recommended in the embodiment of the present invention, and the embodiment of the present invention does not impose any limitation on this.

[0238] As an optional implementation manner, extracting features from at least one of the historical operation information of the user on the specified type of content includes:

[0239] Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

[0240] The above-mentioned different historical time windows can be specifically set according to specific implementation conditions, and the embodiment of the present invention does not impose any limitation on this.

[0241] For example, if the historical operation time is greater than a first threshold, the historical operation is determined to be a long-term operation behavior;

[0242] If the historical operation time is less than the first threshold and greater than the second threshold, the historical operation is determined to be a recent operation behavior;

[0243] If the historical operation time is less than the second threshold, the historical operation is determined to be a real-time operation behavior;

[0244] Among them, the first threshold is greater than the second threshold.

[0245] The above positive actions can be users giving good reviews, sharing, or the number of clicks is greater than a preset value;

[0246] The above negative operations can be used to mark users negatively, such as giving bad reviews or blocking them.

[0247] Step S204: using the extracted features as input of a recommendation number model, adjusting parameters of the recommendation number model with the goal of outputting the expected recommendation number.

[0248] The recommended number model of the embodiment of the present invention is determined by modeling based on a supervised learning method in machine learning. The mapping model between the extracted features and the expected recommended number is generated based on supervised data training.

[0249] like Figure 3 As shown, a schematic diagram of a recommended number model provided by an embodiment of the present invention.

[0250] Feature extraction is performed on at least one of the attribute information of the user, the context information of the user when the content is recommended, and the historical operation information of the user on the specified type of content, the extracted feature is used as an input X value, the expected number of recommendations is used as a label Y value, and the X value and the Y value are integrated as sample data.

[0251] Y=f(X), where f is a model learned based on the sample data using a supervised learning method.

[0252] As an optional implementation, the extracted features are used as input of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected number of recommendations, including:

[0253] Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number;

[0254] A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

[0255] The above Y value is a regression value.

[0256] As an optional implementation, the mean square error (MSE) is used as the loss function to train the regression model.

[0257] The above MSE loss function: loss = ∑(YY′) 2, where Y is the expected number of recommendations for a specified type of content determined based on the behavioral feedback and the actual number of recommendations, i.e., the Y value in the sample data, and Y' is the number of recommendations predicted by the recommendation number model.

[0258] It should be noted that the above MSE loss function is only an example of the loss function of the embodiment of the present invention. Any loss function can be applied to the embodiment of the present invention, and the embodiment of the present invention does not impose any limitation on this.

[0259] As an optional implementation, the above-mentioned recommendation number model uses the LightGBM model to fit the regression Y value.

[0260] Compared with other machine learning models such as LR, the LightGBM model is more suitable for processing continuous features, and can handle nonlinear features and automatically perform feature crossover.

[0261] In the samples used in the embodiments of the present invention, the X value is basically composed of continuous features. Selecting the LightGBM model to train the above-mentioned recommended number model can avoid complicated feature engineering.

[0262] It should be noted that the above-mentioned LightGBM model is only an example of a machine learning model of an embodiment of the present invention. Any machine learning model that can implement the functions of the present invention can be applied to the embodiment of the present invention, and the embodiment of the present invention does not impose any limitation on this.

[0263] Based on the above sample data training, a recommendation number model that meets the preset end conditions is obtained.

[0264] The above-mentioned preset end condition may be that the loss function value is less than a preset threshold, or reaches a preset number of training times, or reaches a preset training time, etc.

[0265] like Figure 4 As shown, an embodiment of the present invention provides a flow chart of a method for hybrid ranking recommendation, which is applied to a recommendation server and includes:

[0266] Step S401, receiving a recommendation request from a user, and obtaining at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on a specified type of content;

[0267] The above-mentioned user attribute information, the contextual information of the user when content is recommended, and the above-mentioned user's historical operation information on the specified type of content are conceptually the same as the user attribute information, the contextual information of the user when content is recommended, and the above-mentioned user's historical operation information on the specified type of content that appear in the training method of the above-mentioned recommendation number model, and will not be repeated here.

[0268] Step S402, extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0269] The above feature extraction method is the same as the feature extraction method used in the above recommendation number model training method, which will not be repeated here.

[0270] Step S403, inputting the extracted features into a recommendation number model, wherein the recommendation number model is trained based on any of the training methods for the recommendation number model above;

[0271] Step S404: According to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, a mixed recommendation list of different types of content is obtained and sent to the user.

[0272] In the mixed ranking recommendation stage, as long as at least one of the attribute information of the user of the mixed ranking recommendation, the context information of the user when the content is recommended, and the historical operation information of the user on the specified type of content is captured, the extracted features are input into the above-mentioned recommendation number model after feature extraction, and the recommendation number predicted by the above-mentioned recommendation number model can be obtained.

[0273] As an optional implementation, according to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, a mixed recommendation list of different types of content mixedly sorted is obtained, including:

[0274] According to the recommendation degree scores of different types of content by the sorting model, different types of content are mixedly sorted;

[0275] According to the number of recommendations predicted by the above recommendation number model and the mixed sorting result, a mixed recommendation list with mixed sorting of different types of content is generated.

[0276] It should be noted that the total number of different types of content in the above mixed recommendation list is a preset value.

[0277] When the mixed recommendation list includes two types of content, a pre-trained recommendation number model is used to determine the number of recommendations for a specified type of content in the mixed recommendation list, and the number of another type of content is determined by the preset value and the recommendation number.

[0278] As an optional implementation, mixed sorting and recommendation are performed on video type contents and graphic type contents.

[0279] When the mixed recommendation list includes N types of content, at least one pre-trained recommendation number model is used to determine the number of recommendations for at least one corresponding specified type of content in the mixed recommendation list, and based on the mixed sorting result, the number of recommendations for the remaining types of content is determined.

[0280] Exemplary Devices

[0281] After introducing the method of the exemplary embodiment of the present invention, next, the training device of the recommendation number model, the device of mixed ranking recommendation, etc. of the exemplary embodiment of the present application are introduced.

[0282] like Figure 5 As shown, based on the same inventive concept, an embodiment of the present invention further provides a training device for a recommendation number model, comprising:

[0283] The data acquisition unit 501 is used to acquire the user's behavioral feedback on the specified type of content when content recommendation is performed based on the mixed recommendation list;

[0284] A number determination unit 502, configured to determine an expected number of recommendations for a specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed list;

[0285] A feature extraction unit 503 is used to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0286] The parameter adjustment unit 504 is configured to use the extracted features as inputs of a recommendation number model and adjust parameters of the recommendation number model with the goal of outputting the expected recommendation number.

[0287] In a possible implementation manner, the number determining unit 502 determines the expected number of recommendations of the specified type of content according to the behavior feedback and the actual number of recommendations of the specified type of content in the mixed list, including:

[0288] When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations;

[0289] When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations;

[0290] When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

[0291] In a possible implementation manner, the extracted features and the corresponding expected number of recommendations are a sample, and before the parameter adjustment unit 504 adjusts the parameters of the recommendation number model, it is further configured to:

[0292] Obtaining a sample set including a plurality of samples;

[0293] Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold;

[0294] Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

[0295] In a possible implementation, the feature extraction unit 503 extracts features from the attribute information of the user, including:

[0296] Feature extraction is performed on at least one of the user's gender, age, and geographic location.

[0297] In a possible implementation, the feature extraction unit 503 extracts features from the context information of the user when the content is recommended, including:

[0298] Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

[0299] In a possible implementation, the feature extraction unit 503 extracts features from at least one of the historical operation information of the user on the specified type of content, including:

[0300] Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

[0301] In a possible implementation manner, the parameter adjustment unit 504 uses the extracted features as input of the recommendation number model, and adjusts the parameters of the recommendation number model with the goal of outputting the expected number of recommendations, including:

[0302] Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number;

[0303] A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

[0304] In a possible implementation manner, the number determining unit 502 is further configured to:

[0305] In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model;

[0306] In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

[0307] In a possible implementation manner, the number determination unit 502 determines the actual number of recommendations of the specified type of content in the mixed recommendation list by scoring the recommendation degrees of different types of content according to the ranking model, including:

[0308] Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or

[0309] According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

[0310] like Figure 6 As shown, based on the same inventive concept, an embodiment of the present invention further provides a device for mixed sorting recommendation, including:

[0311] The request receiving unit 601 is used to receive a recommendation request from a user, and obtain at least one of the attribute information of the user, the context information of the user when the content is recommended, and the historical operation information of the user on the specified type of content;

[0312] A feature extraction unit 602 is used to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content;

[0313] The feature input unit 603 is used to input the extracted features into the recommended number model, wherein the recommended number model is based on Figure 5 The recommended number model is trained by the training device;

[0314] The list determination unit 604 is used to obtain a mixed recommendation list of different types of content in mixed order according to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, and send the list to the user.

[0315] Refer to the following Figure 7 The training device 70 of the recommendation number model according to this embodiment of the present invention is described. Figure 7The training device 70 of the recommended number model shown is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present invention.

[0316] like Figure 7 As shown, the training device 70 of the recommended number model can be in the form of a general computing device, for example, it can be a terminal device. The components of the training device 70 of the recommended number model can include but are not limited to: at least one processing unit 71, at least one storage unit 72, and a bus 73 connecting different system components (including the storage unit 72 and the processing unit 71).

[0317] The bus 73 may include a data bus, an address bus, and a control bus.

[0318] The storage unit 72 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 721 and / or a cache memory 722 , and may further include a read-only memory (ROM) 723 .

[0319] The storage unit 72 may also include a program / utility 725 having a set (at least one) of program modules 724, such program modules 724 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0320] The training device 70 for the recommended number model can also communicate with one or more external devices 74 (e.g., keyboards, pointing devices, etc.), and such communication can be performed through an input / output (I / O) interface 75. In addition, the training device 70 for the recommended number model can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter 76. As shown in the figure, the network adapter 76 communicates with other modules of the training device 70 for the recommended number model through a bus 73. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the training device 70 for the recommended number model, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0321] Refer to the following Figure 8 The hybrid ranking recommendation device 80 according to this embodiment of the present invention is described below. Figure 8 The mixed sorting recommendation device 80 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0322] like Figure 8As shown, the hybrid ranking recommendation device 80 can be in the form of a general computing device, for example, it can be a terminal device. The components of the hybrid ranking recommendation device 80 can include but are not limited to: at least one processing unit 81, at least one storage unit 82, and a bus 83 connecting different system components (including the storage unit 82 and the processing unit 81).

[0323] The bus 83 includes a data bus, an address bus, and a control bus.

[0324] The storage unit 82 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 821 and / or a cache memory 822 , and may further include a read-only memory (ROM) 823 .

[0325] The storage unit 82 may also include a program / utility 825 having a set (at least one) of program modules 824, such program modules 824 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0326] The hybrid sorting recommended device 80 may also communicate with one or more external devices 84 (e.g., keyboards, pointing devices, etc.), and such communication may be performed via an input / output (I / O) interface 85. Furthermore, the hybrid sorting recommended device 80 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 86. As shown, the network adapter 86 communicates with other modules of the hybrid sorting recommended device 80 via a bus 83. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the hybrid sorting recommended device 80, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0327] Exemplary Program Products

[0328] In some possible embodiments, various aspects of the present invention may also be implemented in the form of a program product, which includes program code. When the program product runs on a server device, the program code is used to enable the server device to execute the steps of each module in the training device of the recommendation number model according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification. For example, the server device can execute the training method of the recommendation number model, including: obtaining user behavioral feedback on a specified type of content when content recommendation is performed based on a mixed recommendation list; determining the expected number of recommendations for the specified type of content based on the behavioral feedback and the actual number of recommendations for the specified type of content in the mixed list; performing feature extraction on at least one of the user's attribute information, the user's context information when content recommendation is performed, and the user's historical operation information on the specified type of content; using the extracted features as input to the recommendation number model, and adjusting the parameters of the recommendation number model with the goal of outputting the expected number of recommendations.

[0329] In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code. When the program product runs on a server device, the program code is used to enable the server device to execute the steps of each module in the hybrid ranking recommendation device according to various exemplary implementations of the present invention described in the above "Exemplary Method" section of this specification. For example, the server device may execute the hybrid ranking recommendation method, including: receiving a recommendation request from a user, obtaining at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; performing feature extraction on at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; inputting the extracted features into a recommendation number model, wherein the recommendation number model is trained based on the training method of the recommendation number model described in any one of the "Exemplary Methods"; obtaining a hybrid recommendation list of mixed rankings of different types of content based on the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content and sending it to the user.

[0330] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0331] like Fig. 9 As shown, a program product 90 for training a recommendation number model according to an embodiment of the present invention is described, which can be in a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a server device. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus, or a device.

[0332] like Fig.10 As shown, a program product 100 for hybrid ranking recommendation according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a server device. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0333] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0334] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0335] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0336] It should be noted that although several modules or submodules of the system are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.

[0337] In addition, although the operations of the modules of the system of the present invention are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some operations may be omitted, multiple operations may be combined into one operation, and / or one operation may be decomposed into multiple operations.

[0338] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A training method for a recommendation number model, used to determine the number of recommendations for a specified type of content in a mixed recommendation list, characterized in that: include: Get user behavior feedback on specified types of content when recommending content based on a mixed recommendation list; Determining the expected number of recommendations for the specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed recommendation list; Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; The extracted features are used as input of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected recommendation number.

2. The method according to claim 1, characterized in that Determining the expected number of recommendations for the specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed list includes: When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations; When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations; When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

3. The method according to claim 2, characterized in that The extracted features and the corresponding expected number of recommendations are a sample. Before adjusting the parameters of the recommendation number model, the method further includes: Obtaining a sample set including a plurality of samples; Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold; Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

4. The method according to claim 1, characterized in that Extracting features from the user's attribute information includes: Feature extraction is performed on at least one of the user's gender, age, and geographic location.

5. The method according to claim 1, characterized in that Extracting features of the context information of the user when recommending the content includes: Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

6. The method according to claim 1, characterized in that Extracting features of at least one of the historical operation information of the user on the specified type of content includes: Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

7. The method according to claim 1, characterized in that The extracted features are used as inputs of a recommendation number model, and the parameters of the recommendation number model are adjusted with the goal of outputting the expected number of recommendations, including: Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number; A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

8. The method according to claim 1, characterized in that Also includes: In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model; In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

9. The method according to claim 8, characterized in that Determining the actual number of recommendations of the specified type of content in the mixed recommendation list according to the recommendation degree scores of the different types of content by the ranking model includes: Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

10. A hybrid ranking recommendation method, applied to a recommendation server, characterized in that: include: Receive a recommendation request from a user, and obtain at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on a specified type of content; Extracting features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; Inputting the extracted features into a recommended number model, wherein the recommended number model is trained based on the method according to any one of claims 1 to 9; According to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, a mixed recommendation list of different types of content mixed and sorted is obtained and sent to the user.

11. A training device for a recommendation number model, characterized in that: include: A data acquisition unit, used to acquire user behavior feedback on a specified type of content when content recommendation is performed based on a mixed recommendation list; A number determination unit, configured to determine an expected number of recommendations for a specified type of content according to the behavior feedback and the actual number of recommendations for the specified type of content in the mixed recommendation list; A feature extraction unit, configured to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; The parameter adjustment unit is used to use the extracted features as input of the recommendation number model, and adjust the parameters of the recommendation number model with the goal of outputting the expected recommendation number.

12. The device according to claim 11, characterized in that The number determination unit determines the expected number of recommendations of the specified type of content according to the behavior feedback and the actual number of recommendations of the specified type of content in the mixed list, including: When it is determined that the number of times the user clicks on the specified type of content is equal to a first threshold, taking the actual number of recommendations as the expected number of recommendations; When it is determined that the number of times the user clicks on the specified type of content is greater than a first threshold, the actual number of recommendations is incremented to obtain an expected number of recommendations; When it is determined that the number of times the user clicks on the specified type of content is less than a first threshold, the actual number of recommendations is reduced to obtain the expected number of recommendations.

13. The device according to claim 12, characterized in that The extracted features and the corresponding expected number of recommendations are a sample. Before the parameter adjustment unit adjusts the parameters of the recommendation number model, it is also used to: Obtaining a sample set including a plurality of samples; Determine the samples to be screened in the sample set in which the number of times the user clicks on the specified type of content is less than the first threshold, and the actual number of recommendations is less than the second threshold; Part of the samples to be screened are filtered out according to a set ratio to obtain an updated sample set.

14. The device according to claim 11, characterized in that The feature extraction unit extracts features from the attribute information of the user, including: Feature extraction is performed on at least one of the user's gender, age, and geographic location.

15. The device according to claim 11, characterized in that The feature extraction unit extracts features from context information of the user when the content is recommended, including: Feature extraction is performed on at least one of the time when the content is recommended, the type of client logged in by the user when the content is recommended, and the type of network connected by the client when the content is recommended.

16. The device according to claim 11, characterized in that The feature extraction unit extracts features of at least one of the historical operation information of the user on the specified type of content, including: Feature extraction is performed on the number of positive operations and / or negative operations performed by the user on the specified type of content in different historical time windows.

17. The device according to claim 11, characterized in that The parameter adjustment unit uses the extracted features as input of the recommendation number model, and adjusts the parameters of the recommendation number model with the goal of outputting the expected recommendation number, including: Inputting the extracted features into the recommendation number model to obtain the predicted recommendation number; A loss function value is obtained according to a difference between the predicted number of recommendations and the expected number of recommendations, and the parameters of the recommendation number model are adjusted using the loss function value.

18. The device according to claim 11, characterized in that The number determination unit is also used for: In the modeling stage of the recommendation number model, the actual number of recommendations of the specified type of content in the mixed recommendation list is determined according to the recommendation degree scores of different types of content by the ranking model; In the update phase of the recommendation number model, the recommendation number model is used to determine the actual recommendation number of the specified type of content in the mixed recommendation list.

19. The device according to claim 18, characterized in that The number determination unit determines the actual number of recommendations of the specified type of content in the mixed recommendation list according to the recommendation degree scores of the different types of content by the ranking model, including: Scoring the recommendation levels of different types of content according to the same ranking model, performing mixed ranking on the different types of content, and counting the number of the specified type of content among a preset number of different types of content ranked top, to obtain the actual number of recommendations; or According to the recommendation degree scores of the corresponding types of content by different sorting models, different types of content are mixed and sorted, and the number of the specified type of content among the preset number of different types of content ranked top is counted to obtain the actual number of recommendations.

20. A device for mixed ranking recommendation, characterized in that: include: a request receiving unit, configured to receive a recommendation request from a user, and obtain at least one of attribute information of the user, context information of the user when content is recommended, and historical operation information of the user on content of a specified type; A feature extraction unit, configured to extract features from at least one of the user's attribute information, the user's context information when content is recommended, and the user's historical operation information on a specified type of content; A feature input unit, used to input the extracted features into a recommended number model, wherein the recommended number model is trained based on the method according to any one of claims 1 to 9; The list determination unit is used to obtain a mixed recommendation list of different types of content in mixed order according to the number of recommendations predicted by the recommendation number model and the recommendation degree scores of different types of content, and send it to the user.

21. A training device for a recommendation number model, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the training method of the recommendation number model described in any one of claims 1 to 9 are implemented.

22. A hybrid ranking recommendation device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the hybrid ranking recommendation method according to claim 10 are implemented.

23. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the training method of the recommendation number model described in any one of claims 1 to 9 are implemented.

24. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the mixed ranking recommendation method according to claim 10 are implemented.