A recommendation method and device

By combining the feature extraction of each element with the click rate prediction model, and combining the correlation between elements, recommended content is generated, which solves the problem of ignored semantic correlation in the existing technology and improves the accuracy and accuracy of recommended content. Accuracy.

CN114116816BActive Publication Date: 2024-10-25BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111371783.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-10-25
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

Existing recommendation methods ignore the semantic relevance of each element, resulting in inaccurate recommended content and low recommendation accuracy.

Method used

By extracting features of each element and inputting them into the pre-trained click-through rate estimation model, the click-through rate of each element is determined, combined with the correlation between elements, the candidate recommended content is gradually determined, and finally recommended content is generated.

Benefits of technology

It improves the accuracy and precision of recommended content and ensures the high quality of recommended content in terms of semantic relevance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116816B_ABST
    Figure CN114116816B_ABST
Patent Text Reader

Abstract

This specification discloses a recommendation method and device, which determines the element features of each element through the user data and element data carried in the recommendation request, and then determines the click rate corresponding to each element based on the features of each element through a pre-trained click rate prediction model. For each type of element, the candidate recommended elements corresponding to the element of this type are determined according to the click rate corresponding to each element in this type of element, and for each other type in turn, the candidate recommended content is determined according to the relevance of each element in the other type to the candidate recommended element and the click rate corresponding to each element in the other type, and the recommended content is determined based on each candidate recommended content for recommendation. When determining the recommended content, this solution not only takes into account the click rate of each element, but also takes into account the relevance between the elements. Therefore, when making recommendations to users, the recommended content determined is accurate and the recommendation accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a recommendation method and device. Background Art

[0002] At present, with the development of computer technology, how to select valuable information from massive amounts of information and then recommend appropriate content to users has become one of the problems that service providers need to solve. And recommendation methods are widely used in scenarios where service providers provide services to users because they can recommend appropriate content to users based on their historical behaviors.

[0003] In the prior art, a commonly used recommendation method is implemented based on the element type of each element constituting the recommended content. Specifically, the element type of each element constituting the recommended content can be determined first, such as pictures, titles, etc. Then, for each type, a scoring model corresponding to the type is trained, and then each element contained in the type is scored based on the scoring model. Finally, according to the scoring results, the elements with the highest scores in each type are combined, and the combined results are recommended.

[0004] However, the prior art ignores the semantic relevance of each element, so that the elements contained in the determined recommended content may have the highest scores among the element types, but they may not be related to each other or even mutually exclusive. Therefore, when recommending to users, the determined recommended content is inaccurate and the recommendation accuracy is low. Summary of the invention

[0005] This specification provides a recommended method and device to partially solve the above problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This manual provides a recommended method, including:

[0008] Determining, according to the received recommendation request, user data and element data corresponding to the recommendation request;

[0009] Extract features from each element, determine the features of each element, and use the features of each element as input to a pre-trained click-through rate prediction model to determine the click-through rate corresponding to each element;

[0010] For each type of element, determine the candidate recommended element corresponding to the element in this type according to the click-through rate of each element in this type, and for each other type in turn, determine the candidate recommended content according to the relevance between the candidate recommended element and each element in this other type, and the click-through rate of each element in this other type;

[0011] The recommended content is determined based on the determined candidate recommended content.

[0012] Optionally, determining, according to the received recommendation request, user data and element data corresponding to the recommendation request specifically includes:

[0013] Determining, according to the received recommendation request, a user identifier carried in the recommendation request;

[0014] Determining user data corresponding to the user identifier according to the user identifier;

[0015] An element identifier for recommendation is determined, and based on the element identifier, each element for recommendation is determined from each pre-stored data as element data.

[0016] Optionally, feature extraction is performed on each element to determine the features of each element, specifically including:

[0017] For each element in each type of element, determine the correlation between each element of other types and the element according to the characteristics of each element of other types and the characteristics of the element;

[0018] The element feature corresponding to the element is determined according to the features corresponding to the elements of other types and their relevance to the element, as well as the feature of the element.

[0019] Optionally, determining the element feature corresponding to the element according to the features corresponding to the elements of other types and their relevance to the element, as well as the feature of the element, specifically includes:

[0020] Determine the weights corresponding to the elements of other types according to the relevance of the elements of other types to the element;

[0021] According to the features and weights corresponding to each element of other types, weighted summation is performed to determine the auxiliary features of the element;

[0022] The auxiliary feature and the feature of the element are merged to determine the element feature of the element.

[0023] Optionally, determining the candidate recommended elements corresponding to the elements of this type according to the click rates of the elements in this type respectively includes:

[0024] Sort the elements according to the click-through rates of the elements in this category;

[0025] From the ranking, select elements before a specified ranking as candidate recommendation elements.

[0026] Optionally, for each element of other categories, determining candidate recommended content according to the relevance between the candidate recommended element and each element of other categories and the click rate corresponding to each element of other categories, specifically includes:

[0027] For each other type, the candidate recommendation element is combined with each element in the other type to obtain each combination result;

[0028] Determine the click rate corresponding to each combination result according to the relevance between the candidate recommendation element and each element in the other type, and the click rate corresponding to each element in the other type;

[0029] Sort the combination results according to the click-through rates of the combination results;

[0030] According to the sorting, the combined results before the specified ranking are selected as candidate recommended content.

[0031] Optionally, determining the recommended content according to each determined candidate recommended content specifically includes:

[0032] For each candidate recommendation content, determine the elements constituting the candidate recommendation content, and determine the constraint conditions corresponding to each element, wherein the constraint conditions are carried in the element data of the element;

[0033] According to the constraints corresponding to each candidate recommendation content, the click rate of each candidate recommendation content is updated;

[0034] The recommended content is determined according to the click-through rate of each candidate recommended content after update.

[0035] This manual provides a recommended device, including:

[0036] A first determining module, configured to determine user data and element data corresponding to the recommendation request according to the received recommendation request;

[0037] The click rate determination module is used to extract features from each element, determine the features of each element, and use the features of each element as input to a pre-trained click rate prediction model to determine the click rate corresponding to each element;

[0038] The second determination module is used to determine, for each type of element, the candidate recommended element corresponding to the element in the type according to the click-through rate of each element in the type, and to determine, for each other type in turn, the candidate recommended content according to the relevance between the candidate recommended element and each element in the other type, and the click-through rate of each element in the other type;

[0039] The recommendation module is used to determine the recommended content according to the determined candidate recommended content.

[0040] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned recommended method is implemented.

[0041] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned recommended method when executing the program.

[0042] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0043] In the recommendation method provided in the present specification, the element features of each element are determined through the user data and element data carried in the recommendation request, and then based on the features of each element, the click rate corresponding to each element is determined through a pre-trained click rate prediction model. For each type of element, the candidate recommended elements corresponding to the type of element are determined according to the click rates corresponding to each element in the type of element. For each other type in turn, the candidate recommended content is determined according to the relevance of each element in the other type to the candidate recommended element and the click rates corresponding to each element in the other type. Based on each candidate recommended content, the recommended content is determined for recommendation.

[0044] It can be seen from the above method that when determining the recommended content, this solution not only takes into account the click rate of each element, but also takes into account the correlation between the elements. Therefore, when recommending to users, the recommended content determined is accurate and the recommendation accuracy is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0046] Figure 1 A schematic diagram of the recommended method provided in this manual;

[0047] Figure 2 A schematic diagram for determining candidate recommendation content provided in this specification;

[0048] Figure 3 Recommended devices provided for this manual;

[0049] Figure 4 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0051] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0052] Figure 1 The flowchart of the recommended method provided in this manual specifically includes the following steps:

[0053] S100: Determine, according to the received recommendation request, user data and element data corresponding to the recommendation request.

[0054] Generally, in the field of content recommendation, a recommendation method can be used to select elements that can attract user clicks from various elements constituting the recommended content based on user data in the received recommendation request, and the combination result can be displayed to the user to recommend to the user. Based on this, a recommendation request sent by a user can be first received. Among them, for each type of element, an element can be determined from the element to constitute the recommended content.

[0055] In one or more embodiments provided in this specification, the recommendation method is aimed at a scenario in which a user clicks on an interface containing a recommendation position, and the service provider determines the recommended content to be displayed to the user and displays the recommended content. The recommendation method can be specifically executed by a server.

[0056] Specifically, the server may receive a recommendation request sent by a user, wherein the recommendation request carries user data of the user.

[0057] Secondly, the server may determine the user data of the user according to the recommendation request.

[0058] Then, the server may randomly determine a merchant for recommendation to the user, and determine a merchant identifier of the merchant.

[0059] Finally, the server may determine the creative element pool corresponding to the merchant according to the merchant identifier, and use the elements included in the creative element pool as element data for determining the recommended content.

[0060] Among them, each element in the creative element pool may be provided by the service provider or uploaded by the merchant. Of course, each element may include each element provided by the service provider and each element uploaded by the merchant.

[0061] It should be noted that the above user data may also include a user ID in the recommendation request, and the server determines the user data corresponding to the user according to the user ID, wherein the user data includes the user's portrait information and the user's historical behavior information.

[0062] S102: Extract features from each element to determine features of each element, and use the features of each element as input to a pre-trained click rate prediction model to determine the click rate corresponding to each element.

[0063] Different from the prior art, for each type of element, a scoring model corresponding to the type of element is trained, and based on the scoring model of the type, the element with the highest score is selected from each element in the type of element, and the element with the highest score in other types of elements is combined to determine the combination result as the recommended content for recommendation, which ignores the semantic connection between the elements. This specification provides a new recommendation method, which can determine candidate recommended content for each element in each type based on the assumption that the recommended content composed of semantically similar elements has a higher click-through rate, according to the relevance of the element's characteristics with the elements of other types, and the click-through rate of the elements of other types, and then determine the recommended content based on the candidate recommended content. The relationship between the semantics of different elements and whether the elements are related are taken into account.

[0064] Based on this, the server may first determine the click rate corresponding to each element.

[0065] In one or more embodiments provided in this specification, since the element sizes corresponding to each element type are different, for example, the amount of data corresponding to an image element is usually larger than the amount of data corresponding to a title element. In general, the size of the elements input into the model needs to be consistent, so the server can extract features from each element to determine the features of each element.

[0066] Specifically, for each element, the server may input the user data determined in step S100 and the element into a pre-trained feature extraction model to obtain the element features output by the feature extraction model. The feature extraction model may be a fully connected layer or other model capable of extracting image features, which may receive inputs of different dimensions and output features of the same dimension. The specific feature extraction model used to extract the features of the image may be set as needed, and this specification does not limit this.

[0067] Then, the server can use the features of each element as input to the pre-trained Harper's click-through rate prediction model to obtain the click-through rate corresponding to each element.

[0068] The click rate prediction model can be trained using the following method:

[0069] The historical click logs of each user are obtained, and the recommended content that each user has clicked and the recommended content that each user has not clicked are determined from the determined historical click logs.

[0070] The server may split each recommended content, determine each element as each training sample, and determine each element constituting the recommended content that the user has clicked as a positive sample, that is, mark it as clicked. Each element constituting the recommended content that the user has not clicked is determined as a negative sample, that is, mark it as not clicked. Of course, the clicked and not clicked can be represented by numbers, such as 1 for clicked and 0 for not clicked.

[0071] Afterwards, the server can use each training sample as input into the click rate prediction model to be trained, determine the click rate corresponding to each training sample, and train the click rate prediction model according to the click rate of each training sample and its annotation.

[0072] S104: For each type of element, determine the candidate recommended elements corresponding to the type of element according to the click-through rates of each element in the type, and for each other type in turn, determine the candidate recommended content according to the relevance between the candidate recommended elements and each element in the other type, and the click-through rates of each element in the other type.

[0073] In one or more embodiments provided in this specification, in order to avoid combining various types of elements separately, determining too many combinations, which would take too long to determine the recommended content, the server may first determine the candidate recommended elements corresponding to each type of element.

[0074] Specifically, the server may first determine, for each type of element, the click rate corresponding to each element in the type of element.

[0075] The server may then rank the elements according to their hit rates.

[0076] Finally, the server may select the element before the specified ranking from the ranking as the candidate recommendation element according to the ranking. The specified ranking may be set as required, such as selecting the highest element in the ranking, selecting the highest and second highest elements in the ranking, etc., which is not limited in this specification.

[0077] Furthermore, after determining the candidate recommendation element of the element type, the server may determine the candidate recommendation content for each other type in turn according to the correlation between the candidate recommendation element and each element in the other type.

[0078] Specifically, first, the server may combine the candidate recommendation element with each element in each other type in turn to determine each combination result.

[0079] Secondly, the server may determine the correlation between the candidate recommended element and each element in the other types. The correlation may be the inner product, Euclidean distance, cosine distance, etc. between the element features of two elements. The specific correlation determination method may be set as needed, and this specification does not limit this.

[0080] Then, the server may determine the click rate corresponding to each combination result based on the determined correlation between the candidate recommendation element and each element in the other types, the click rate of the candidate recommendation element, and the click rate corresponding to each element in the other types.

[0081] Finally, the server may sort the combination results according to the click rates, and select the combination results before the specified ranking as candidate recommendation contents.

[0082] Of course, when determining the click-through rate, for each candidate recommended element, the click-through rate corresponding to the candidate recommended element in the combination result composed of the element is the same. Therefore, when determining the click-through rate corresponding to the combination result, it can be determined only based on the determined correlation between the candidate recommended element and the elements in the other types, and the click-through rate corresponding to each element in the other types.

[0083] Furthermore, since there may be multiple types of elements that make up the recommended content, the server may determine the candidate recommendation combination corresponding to each other type in turn, and use the candidate recommendation combination as the candidate recommendation element, and continue to determine the candidate recommendation combination of each other type until the element type in the candidate recommendation combination includes all types, then the server may use the determined candidate recommendation combination as the candidate recommendation content. Figure 2 shown.

[0084] Figure 2A schematic diagram for determining candidate recommended content provided in this specification. In the figure, there are three types of elements that make up the recommended content, namely pictures, titles and content, and the number of elements in each type of element is 4, as shown in the figure for pictures 1, 2, 3, 4, titles 1, 2, 3, 4, and contents 1, 2, 3, 4. Among them, the click-through rates corresponding to pictures 1, 2, 3, and 4 are 0.1, 0.9, 0.2, and 0.4, respectively. Taking the number of candidate recommended elements as 1 as an example, picture 2 is a candidate recommended element. The dotted box in the figure represents the element / combination with the highest click-through rate. The arrow indicates that the candidate recommended element / combination is combined with each element of other types of elements. The number corresponding to the arrow indicates the relevance. The number below the element is the click-through rate corresponding to each element. Obviously, based on the above content, the candidate recommended content corresponding to the picture can be determined, that is, the candidate recommended content determined by the picture as the candidate recommended element is the candidate recommended content composed of picture 2, title 1, and content 1.

[0085] Of course, using the title and content as the recommendation candidate elements respectively, the candidate recommendation content can be determined. When determining the candidate recommendation content for each other type in turn, the selection of other types is randomly determined. Of course, it can also be preset. The specific method of determining each other type in turn, the method of determining the candidate recommendation content and the number of determined candidate recommendation contents can be set as needed, and this manual does not impose any restrictions on this.

[0086] S106: Determine the recommended content according to the determined candidate recommended content.

[0087] In one or more embodiments provided in the present specification, since candidate recommended content can be determined for each class element, after determining each candidate recommended content, the server can sort each candidate recommended content according to the click rate corresponding to each candidate recommended content, and determine the recommended content based on the sorting.

[0088] Furthermore, in one or more embodiments provided in this specification, for each type, each element in the type often has constraints. Taking pictures and main titles as an example, in the picture type, the length of the main title that can be placed in each picture may be different. Therefore, when determining the recommended content, the server can also determine it according to the constraints of each candidate element.

[0089] Specifically, the server may determine, for each candidate recommended content, the elements constituting the candidate recommended content, and determine the constraint conditions corresponding to the elements as the constraint conditions for the candidate recommended content, wherein the constraint conditions are carried in the element data.

[0090] Then, the server may select candidate recommended content satisfying the constraints as the recommended content according to the constraints.

[0091] Of course, the server can also preset negative weights for each constraint condition. When the candidate recommended content does not meet the constraint condition, the click rate corresponding to the candidate recommended content is updated according to the weight corresponding to the constraint condition that the candidate recommended content does not meet. And the recommended content is determined according to the updated click rate of each to-be-recommended content.

[0092] based on Figure 1 The recommendation method determines the element features of each element through the user data and element data carried in the recommendation request, and then determines the click rate corresponding to each element based on the features of each element through a pre-trained click rate prediction model. For each type of element, the candidate recommended elements corresponding to the element are determined according to the click rate corresponding to each element in the element, and for each other type in turn, the candidate recommended content is determined according to the relevance of each element in the other type to the candidate recommended element and the click rate corresponding to each element in the other type, and the recommended content is determined based on each candidate recommended content for recommendation. When determining the recommended content, this solution not only takes into account the click rate of each element, but also the relevance between the elements. Therefore, when making recommendations to users, the recommended content determined is accurate and the recommendation accuracy is high.

[0093] Furthermore, in order to determine the candidate recommended content containing elements with closer semantic relationships, the server may use the features of other types of elements to assist in characterizing each element, so that the similarity of elements with closer semantic relationships is higher, and the similarity of elements with farther semantic relationships is lower. When determining the element features of each element, the server may determine the reconstructed features of each element in each type according to the correlation between the element and each element of other types as the element features.

[0094] Specifically, the server may determine, for each element in each type of element, the relevance between the element and other types of elements.

[0095] Then, the server may determine the element feature corresponding to the element according to the features corresponding to the elements of other types respectively and their relevance to the element, as well as the features of the element.

[0096] When determining the element feature of the element, the server may first determine the weights corresponding to the elements of other types according to the relevance of the elements of other types to the element.

[0097] Then, the server may perform weighted summation according to the features and weights corresponding to the elements of other types, and determine the auxiliary features of the element.

[0098] Finally, the server may fuse the auxiliary features with the features of the element to determine the reconstructed features of the element as the element features. The fusion method may be concatenation, addition, etc. The specific method of fusing the two features to determine the fusion features may be set as required, and this specification does not limit this.

[0099] Furthermore, in order to enable the above-mentioned reconstructed vector to better characterize the influence of elements of other classes on the element, the server may also determine the reconstructed features of the element through a self-attention mechanism.

[0100] Specifically, for each element of each type, the server may first determine the feature of the element, as well as the first feature and the second feature of each element of other types, wherein the first feature is used to determine the correlation between the element and the other elements.

[0101] The server can then take the recommended content and the features of other elements as input into the attention model, determine the weights of other elements relative to the element, and determine the auxiliary features of the element based on the weights of other elements relative to the element and the second features of each element.

[0102] Finally, the server may fuse the feature corresponding to the element with the auxiliary feature to determine the element feature.

[0103] In addition, in one or more embodiments provided in the present specification, in step S102, when training the click-through rate prediction model, for each training sample, the loss corresponding to the training sample can be determined not only based on the loss of the training sample, but also based on other training samples.

[0104] Among them, for each type of element, the loss corresponding to the type of element can be determined by the ratio of the click rate corresponding to the training sample and the sum of the click rates corresponding to the type of element for each training sample corresponding to the type of element. In other words, the goal of the click rate prediction model is to make the click rate of a certain element in each type of element be 1 and the click rates of the others be 0.

[0105] In addition, when training a click rate prediction model, a GRU unit is usually used for training. Specifically, the server can take each training sample as input and input it into the GRU unit of the click rate prediction model to be trained, determine the third feature and the fourth feature corresponding to each training sample, and determine the weights of the third feature and the fourth feature. And for each type of element, the training sample corresponding to the element is connected, and according to the connection result, the click rate corresponding to each training sample is determined.

[0106] The above are recommendation methods and keyword extraction methods provided in one or more embodiments of this specification. Based on the same idea, this specification also provides corresponding recommendation devices and keyword extraction devices, as shown in the figure.

[0107] Figure 3 Recommended equipment for this manual includes:

[0108] The first determination module 200 is used to determine the user data and element data corresponding to the recommendation request according to the received recommendation request.

[0109] The click rate determination module 202 is used to extract features from each element, determine the features of each element, and use the features of each element as input to a pre-trained click rate prediction model to determine the click rate corresponding to each element.

[0110] The second determination module 204 is used to determine, for each type of element, the candidate recommended elements corresponding to the type of element according to the click-through rates corresponding to the elements in the type, and to determine, for each other type in turn, the candidate recommended content according to the relevance of the candidate recommended elements to the elements in the other type, and the click-through rates corresponding to the elements in the other type.

[0111] The recommendation module 206 is used to determine the recommended content according to the determined candidate recommended content.

[0112] Optionally, the first determination module 200 is used to determine, based on the received recommendation request, a user identifier carried in the recommendation request, determine, based on the user identifier, user data corresponding to the user identifier, determine an element identifier for recommendation, and, based on the element identifier, determine each element for recommendation from each pre-stored data as element data.

[0113] Optionally, the click-through rate determination module 202 is used to determine, for each element in each category of elements, the correlation between each element of other types and the element according to the characteristics of each element of other types and the characteristics of the element, and to determine the element characteristics corresponding to the element according to the characteristics corresponding to each element of other types and their correlation with the element, as well as the characteristics of the element.

[0114] Optionally, the click-through rate determination module 202 is used to determine the weights corresponding to each element of the other types according to the relevance of each element of the other types to the element, perform weighted summation according to the features corresponding to each element of the other types and their weights, determine the auxiliary features of the element, and fuse the auxiliary features with the features of the element to determine the element features of the element.

[0115] Optionally, the second determining module 204 is used to sort the elements according to the click-through rates of the elements in the category, and select the elements before the specified ranking from the sorting as candidate recommendation elements.

[0116] Optionally, the second determination module 204 is used to combine the candidate recommendation element with each element in each other type in turn to obtain each combination result, determine the click-through rate corresponding to each combination result according to the relevance of the candidate recommendation element with each element in the other type, and the click-through rate corresponding to each element in the other type, sort the combination results according to the click-through rate corresponding to each combination result, and select the combination result before the specified ranking as the candidate recommendation content according to the sorting.

[0117] Optionally, the recommendation module 206 is used to determine, for each candidate recommended content, the elements that constitute the candidate recommended content, and determine the constraints corresponding to each element, wherein the constraints are carried in the element data of the element, and the click-through rate of each candidate recommended content is updated according to the constraints corresponding to each candidate recommended content, and the recommended content is determined according to the updated click-through rate of each candidate recommended content.

[0118] This manual also provides Figure 4 The schematic structure diagram of the electronic device shown in FIG. Figure 4 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0119] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0120] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

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

[0122] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0123] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

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

[0128] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

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

[0130] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

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

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

[0133] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0134] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A recommendation method, characterized in that: include: Determining, according to the received recommendation request, user data and element data corresponding to the recommendation request; Extract features from each element, determine the features of each element, and use the features of each element as input to a pre-trained click-through rate prediction model to determine the click-through rate corresponding to each element; For each type of element, determine the candidate recommended element corresponding to the element in this type according to the click-through rate of each element in this type, and for each other type in turn, determine the candidate recommended content according to the relevance between the candidate recommended element and each element in this other type, and the click-through rate of each element in this other type; Determine the recommended content according to the determined candidate recommended content; For each other type, determining the candidate recommended content according to the relevance between the candidate recommended element and each element in the other type, and the click rate corresponding to each element in the other type, specifically includes: For each other type, the candidate recommendation element is combined with each element in the other type to obtain each combination result; Determine the click rate corresponding to each combination result according to the relevance between the candidate recommendation element and each element in the other type, and the click rate corresponding to each element in the other type; Sort the combination results according to the click-through rates of the combination results; According to the sorting, the combined results before the specified ranking are selected as candidate recommended content.

2. The method according to claim 1, characterized in that Determining user data and element data corresponding to the recommendation request according to the received recommendation request, specifically including: Determining, according to the received recommendation request, a user identifier carried in the recommendation request; Determining user data corresponding to the user identifier according to the user identifier; An element identifier for recommendation is determined, and based on the element identifier, each element for recommendation is determined from each pre-stored data as element data.

3. The method according to claim 1, characterized in that Extract features of each element and determine the features of each element, including: For each element in each type of element, determine the correlation between each element of other types and the element according to the characteristics of each element of other types and the characteristics of the element; The element feature corresponding to the element is determined according to the features corresponding to the elements of other types and their relevance to the element, as well as the feature of the element.

4. The method according to claim 3, characterized in that According to the features corresponding to the elements of other types and their relevance to the element, as well as the features of the element, the element features corresponding to the element are determined, specifically including: Determine the weights corresponding to the elements of other types according to the relevance of the elements of other types to the element; According to the features and weights corresponding to each element of other types, weighted summation is performed to determine the auxiliary features of the element; The auxiliary feature and the feature of the element are merged to determine the element feature of the element.

5. The method according to claim 1, characterized in that According to the click-through rates of the elements in this category, the candidate recommended elements corresponding to the elements in this category are determined, including: Sort the elements according to the click-through rates of the elements in this category; From the ranking, select elements before a specified ranking as candidate recommendation elements.

6. The method according to claim 1, characterized in that Determine the recommended content based on the determined candidate recommended content, including: For each candidate recommendation content, determine the elements constituting the candidate recommendation content, and determine the constraint conditions corresponding to each element, wherein the constraint conditions are carried in the element data of the element; According to the constraints corresponding to each candidate recommendation content, the click rate of each candidate recommendation content is updated; The recommended content is determined according to the click-through rate of each candidate recommended content after update.

7. A recommendation device, characterized in that: The device comprises: A first determining module, configured to determine user data and element data corresponding to the recommendation request according to the received recommendation request; The click rate determination module is used to extract features from each element, determine the features of each element, and use the features of each element as input to a pre-trained click rate prediction model to determine the click rate corresponding to each element; The second determination module is used to determine, for each type of element, the candidate recommended element corresponding to the element in the type according to the click-through rate of each element in the type, and to determine, for each other type in turn, the candidate recommended content according to the relevance between the candidate recommended element and each element in the other type, and the click-through rate of each element in the other type; A recommendation module, used to determine the recommended content according to the determined candidate recommended content; For each other type, determining the candidate recommended content according to the relevance between the candidate recommended element and each element in the other type, and the click rate corresponding to each element in the other type, specifically includes: For each other type, the candidate recommendation element is combined with each element in the other type to obtain each combination result; Determine the click rate corresponding to each combination result according to the relevance between the candidate recommendation element and each element in the other type, and the click rate corresponding to each element in the other type; Sort the combination results according to the click-through rates of the combination results; According to the sorting, the combined results before the specified ranking are selected as candidate recommended content.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.