Content recommendation method and device, computer equipment and storage medium
By obtaining and correcting the matching score between the content feature vector and the object feature vector, the problem of difficulty in recommending new content is solved, and the accuracy of content recommendation and user experience are improved.
Patent Information
- Application Number
- CN202310281288.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
Existing content recommendation methods are difficult to effectively recommend new content because there is less feedback data for new content, making it difficult for new content to be recommended.
By obtaining the feature vector of the object to be recommended, the matching content of the content feature vector and the object feature vector and its matching score are determined, and the matching score is corrected according to the number of times the matching content needs to be recommended, thereby increasing the probability of new content being recommended.
It increases the probability of new content being recommended and improves the accuracy of content recommendation and user experience.
Smart Images

Figure CN118690074A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a content recommendation method, apparatus, computer device, and computer-readable storage medium. Background Art
[0002] With the rapid development of computer technology, more and more content needs to be processed by computers and then transmitted through the network after processing; and more and more scenarios require content recommendations to users, such as news, video or advertisement recommendations.
[0003] The current content recommendation method is mainly based on modeling based on user feedback data on content, and based on the modeling results, a small number of candidate content that the current user needs is quickly screened out from a large candidate set for recommendation. However, due to the small amount of feedback data for new content, it is difficult to recommend new content. Summary of the invention
[0004] The embodiments of the present application provide a content recommendation method, apparatus, computer device, and storage medium, which can increase the probability of new content being recommended.
[0005] The present application provides a content recommendation method, including:
[0006] Obtain a first object feature vector of the object to be recommended;
[0007] Determine matching content where the first content feature vector matches the first object feature vector, and the matching score thereof;
[0008] determining a correction value of the matching content according to the number of times the matching content is to be recommended;
[0009] Correcting the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content;
[0010] Determine first target recommended content from the matching content according to the revised score of the matching content.
[0011] Accordingly, the embodiment of the present application further provides a content recommendation device, including:
[0012] A vector acquisition module, used to acquire a first object feature vector of an object to be recommended;
[0013] A score determination module, used to determine matching content where the first content feature vector matches the first object feature vector, and a matching score thereof;
[0014] A correction value determination module, used to determine the correction value of the matching content according to the number of times the matching content is to be recommended;
[0015] A score correction module, used to correct the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content;
[0016] The content determination module is used to determine first target recommended content from the matching content according to the revised score of the matching content.
[0017] Optionally, the correction value determination module is specifically used to execute:
[0018] Determining the number of times to be recommended as the current proportion control value of the matching content;
[0019] Obtaining a historical integral control value and a historical ratio control value of the matching content;
[0020] Determining a current score control value of the matching content according to the number of times to be recommended and the historical score control value;
[0021] Determining a current differential control value of the matching content according to the number of times to be recommended and the historical proportion control value;
[0022] The correction value of the matching content is determined according to the current proportional control value, the current integral control value and the current differential control value of the matching content.
[0023] Optionally, the correction value determination module is specifically used to execute:
[0024] Get the preset mapping relationship between time and number of recommendations;
[0025] According to the preset mapping relationship, determine the target number of recommendations corresponding to the current time;
[0026] Obtaining the number of times the matching content has been recommended;
[0027] The number of times the matching content needs to be recommended is determined according to the target number of times of recommendation and the number of times of recommendation.
[0028] Optionally, the correction value determination module is specifically used to execute:
[0029] According to the preset mapping relationship, determine the number of historical target recommendations corresponding to the historical time;
[0030] Obtain the historical number of times the matching content has been recommended;
[0031] Determine the historical number of times the matching content is to be recommended based on the historical number of times the target is recommended and the historical number of times the content has been recommended;
[0032] According to the historical number of times to be recommended, a historical integral control value and a historical proportion control value of the matching content are determined.
[0033] Optionally, the content recommendation device further includes a content recommendation module, which is specifically configured to execute:
[0034] Obtaining a second object feature vector of the object to be recommended;
[0035] Determining a target object cluster vector corresponding to the second object feature vector according to a preset mapping relationship between the object feature vector and the object cluster vector, wherein the object cluster vector is obtained by clustering the object feature vectors corresponding thereto;
[0036] Determining a target content vector corresponding to the target object cluster vector according to a preset mapping relationship between the object cluster vector and the content vector;
[0037] Determining the content corresponding to the target content vector as second target recommended content;
[0038] Determining third target recommended content from the first target recommended content and the second target recommended content;
[0039] Recommend the third target recommended content to the object to be recommended.
[0040] Optionally, the content recommendation module is specifically used to perform:
[0041] Acquire second object feature vectors of multiple objects to be matched, to obtain multiple object feature vectors to be matched;
[0042] Clustering a plurality of feature vectors of the objects to be matched to obtain a plurality of object cluster vectors;
[0043] The to-be-matched object feature vector obtained by clustering each of the object cluster vectors is determined as the to-be-matched object feature vector corresponding to each of the object cluster vectors, and a preset mapping relationship between the object feature vector and the object cluster vector is obtained.
[0044] Optionally, the content recommendation module is specifically used to perform:
[0045] Obtain multiple content feature vectors to be matched;
[0046] Pairing a plurality of to-be-matched content feature vectors with a plurality of object cluster vectors one by one to obtain a plurality of vector pairs, wherein a vector pair includes a to-be-matched content feature vector and an object cluster vector;
[0047] Determine the similarity between the to-be-matched content feature vector and the object cluster vector in each of the vector pairs, and obtain the similarity corresponding to each of the vector pairs;
[0048] The object cluster vectors in each vector pair corresponding to the similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector.
[0049] Optionally, the content recommendation module is specifically used to perform:
[0050] The object cluster vectors in the content vector pair corresponding to each similarity are traversed in descending order of similarity, and it is determined whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches a preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches a preset number of object cluster vectors;
[0051] If so, the target object cluster vector is determined as the object cluster vector corresponding to the target advertisement feature vector to be matched, the object cluster vectors in the next vector pair are traversed continuously, and the step of returning to determine whether the number of advertisement feature vectors to be matched corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target content feature vector to be matched in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0052] If not, continue to traverse the object cluster vectors in the next vector pair, and return to the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0053] When the preset traversal end condition is met, the traversal is stopped to obtain the preset mapping relationship between the object cluster vector and the content feature vector.
[0054] Optionally, the content recommendation module is specifically used to perform:
[0055] Obtain content revenues corresponding to multiple candidate objects respectively;
[0056] A preset proportion of candidate objects are selected from the plurality of candidate objects in the order of the content revenue from large to small as objects to be matched, thereby obtaining a plurality of objects to be matched.
[0057] Correspondingly, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any content recommendation method provided in the embodiment of the present application.
[0058] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which is used to store a computer program, and the computer program is loaded by a processor to execute any content recommendation method provided in the embodiment of the present application.
[0059] Accordingly, an embodiment of the present application further provides a computer program product, including a computer program / instructions, wherein when the computer program / instructions are executed by a processor, the steps of the content recommendation method shown in the embodiment of the present application are implemented.
[0060] In an embodiment of the present application, a first object feature vector of an object to be recommended is obtained; matching content that matches the first content feature vector with the first object feature vector and its corresponding matching score are determined; a correction value of the matching content is determined according to the number of times the matching content is to be recommended; the matching score of the matching content is corrected according to the correction value of the matching content to obtain a corrected score; and a first target recommended content is determined from the matching content according to the corrected score of the matching content. The matching score of the matching content can be corrected according to the number of times the matching content is to be recommended. For example, for new content, that is, content with a number of times to be recommended greater than 0, it can be corrected so that its correction score is higher, thereby increasing the probability of the new content being recommended. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0062] Figure 1a It is a schematic diagram of a content recommendation system provided in an embodiment of the present application.
[0063] Figure 1b This is a first flow chart of the content recommendation method provided in the embodiment of the present application.
[0064] Figure 2a This is a second flow chart of the content recommendation method provided in an embodiment of the present application.
[0065] Figure 2b It is a schematic diagram of the correspondence between the object feature vector and the object cluster vector provided in the embodiment of the present application.
[0066] Figure 2c It is a schematic diagram of the correspondence between the object cluster vector and the advertisement vector provided in the embodiment of the present application.
[0067] Figure 3 It is a structural diagram of a content recommendation device provided in an embodiment of the present application.
[0068] Figure 4 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0070] The present application provides a content recommendation method and related devices, which may include a content recommendation device, a computer device, a computer-readable storage medium, and a computer program product. The content recommendation device may be integrated in a computer device, which may be a terminal or a server.
[0071] It is understandable that the content recommendation method of this embodiment can be executed on a terminal, can be executed on a server, or can be executed by both a terminal and a server. The above examples should not be construed as limiting the present application.
[0072] like Figure 1a As shown, a terminal and a server jointly perform a content recommendation method as an example. The content recommendation system provided in the embodiment of the present application includes a terminal 10 and a server 11, etc. The terminal 10 and the server 11 are connected via a network, such as a wired or wireless network connection, etc., wherein the content recommendation device can be integrated in the server.
[0073] Among them, the terminal 10 can be used to: send a user request to the server when the preset conditions are met, so as to request the server 11 to determine the first target recommended content according to the first object feature vector of the object to be recommended corresponding to the user request, and send it to the terminal 10. The terminal 10 can then display the first target recommended content on the corresponding page. Among them, the preset conditions can be set by those skilled in the art according to actual needs. For example, the preset conditions may include opening an application, such as a video application, a shopping application, etc., or refreshing an application, such as a page of an information application, an application page of a short video application, etc.
[0074] Optionally, taking the content as an advertisement as an example, the server 11 is usually required to perform multiple steps of processing such as recall, rough sorting and fine sorting on the matching advertisement according to the first object feature vector of the object to be recommended corresponding to the user request, and then send the finalized advertisement to the terminal 10. The terminal 10 can then display the finalized advertisement on the corresponding page. The first target recommended content in this embodiment can be used as the result of the recall processing.
[0075] The server 11 can be used to: receive the user request sent by the terminal 10, and obtain the first object feature vector of the object to be recommended corresponding to the user request; determine the matching content that matches the first content feature vector and the first object feature vector, and its corresponding matching score; determine the correction value of the matching content according to the number of times the matching content is to be recommended; correct the matching score of the matching content according to the correction value of the matching content to obtain a correction score; determine the first target recommended content from the matching content according to the correction score of the matching content. Among them, the server 11 can be a single server, or a server cluster or cloud server composed of multiple servers. In the content search method or device disclosed in the present application, multiple servers can be composed of a blockchain, and the server is a node on the blockchain.
[0076] The steps of content recommendation in the server 11 may also be executed by the terminal 10 .
[0077] The content recommendation method provided in the embodiment of the present application relates to the field of artificial intelligence. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology.
[0078] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0079] This embodiment will be described from the perspective of a content recommendation device. The content recommendation device may be integrated into a computer device, which may be a server or a terminal.
[0080] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0081] See also Figure 1b , Figure 1b This is a schematic diagram of a first process of the content recommendation method provided in an embodiment of the present application. The process may include:
[0082] In 101, a first object feature vector of an object to be recommended is obtained.
[0083] The object to be recommended is the user to whom content needs to be recommended.
[0084] For example, when a user is watching a video, the user can be identified as an object to be recommended. When the user pauses playing the video, the first target recommended content and the second target recommended content are determined by the content recommendation method provided in this embodiment, and the target content determined from the first target recommended content and the second target recommended content is displayed.
[0085] For another example, when a user launches an application, the user can be identified as an object to be recommended, and the first target recommended content and the second target recommended content can be determined by the content recommendation method provided in this embodiment, and the target content determined from the first target recommended content and the second target recommended content can be displayed before displaying the application interface of the application.
[0086] The first object feature vector is used to represent the object features of the object to be recommended in the form of a vector, which is obtained based on the object features of the object to be recommended. Among them, the object features may include basic features of the object and interest features of the object. The basic features of the object may include the gender, location (such as XX province), education level and terminal model of the object. The interest features of the object may include the commercial interests, marketing interests, application interests, media interests, business district category interests, etc. of the object. The dimensions of the object features can be tens of thousands, so that the acquired content features are more comprehensive.
[0087] For example, feedback data and sample object features of multiple sample objects and content features of multiple sample contents can be obtained in advance. Positive sample data and negative sample data are generated based on the feedback data of each sample object. Positive sample data is a record of clicks and conversions, and negative sample data is a record of clicks but no conversions.
[0088] Sample object features of multiple sample objects and sample content features of multiple sample contents can also be obtained. The sample object features of each sample object and the sample content features of each sample content are mapped to the same semantic space, such as inputting the sample object features of each sample object and the sample content features of each sample content into a multilayer perceptron (MLP) network model respectively, to obtain the first sample object feature vector of each sample object and the first sample content feature vector of each sample content of equal dimension. Then calculate the similarity between the first sample object feature vector of each sample object and the first sample content feature vector of each sample content, and map the similarity through an activation function to obtain the matching probability of each sample content for each sample object. The activation function can map the similarity to between 0 and 1, so as to obtain the matching probability corresponding to the feature distance, as the matching probability of each sample content for each sample object. The matching probability can include the probability of click and conversion or the probability of click without conversion. The above network model is trained based on the matching probability to obtain a trained first network model.
[0089] Among them, content features may include content ID, content master ID, content length, content type, content audience type, average browsing time, number of clicks, number of exposures, etc. The dimensions of content features can be tens of thousands, so that the content features obtained are more comprehensive. Etc. Feedback data may include: whether the object clicks, whether it is converted (product order, application download, etc.).
[0090] Optionally, the similarity can be Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, standardized Euclidean distance, Mahalanobis distance, angle cosine, Hamming distance, Jaccard distance, correlation distance or information entropy. The activation function can be a Sigmoid function, a hyperbolic tangent (Tanh) function or a rectified linear unit (ReLU).
[0091] After obtaining the trained first network model, the content features of all the to-be-matched content in the content system may be input into the first network model to obtain a first content feature vector for each to-be-matched content, and the first content feature vector for each to-be-matched content may be stored.
[0092] In this embodiment, the object features of the object to be recommended may be input into the first network model to obtain a first object feature vector of the object to be recommended.
[0093] In 102, matching content where the first content feature vector matches the first object feature vector and the matching score thereof are determined.
[0094] After obtaining the first object feature vector of the object to be recommended, the similarity between the first object feature vector of the object to be recommended and the first content feature vector of the stored content to be matched can be calculated, and the matching content that matches the object to be recommended can be determined from the content to be matched according to the similarity. For example, the first preset number of content to be matched can be determined as the matching content that matches the object to be recommended in descending order of similarity. The first preset number can be set according to actual needs and is not specifically limited here.
[0095] It is understandable that after obtaining the first object feature vector of the object to be recommended, the similarity between the first object feature vector of the object to be recommended and the first content feature vector of the content to be matched can be calculated, so as to determine the matching content that matches the object to be recommended from the candidate content according to the similarity, and determine the matching score of the matching content according to the similarity corresponding to the matching content. Among them, the similarity corresponding to the matching content is the similarity between the first content feature vector of the matching content and the first object feature vector of the object to be recommended. The similarity between vectors can be obtained by calculating the inner product between the vectors.
[0096] Optionally, “determining matching content that matches the object to be recommended from candidate content according to similarity” may include:
[0097] A first preset number of candidate contents are determined from the candidate contents in descending order of similarity as matching contents matching the object to be recommended. The first preset number can be set according to actual conditions and is not specifically limited here.
[0098] Optionally, “determining a matching score of the matching content according to the similarity corresponding to the matching content” may include:
[0099] The similarity corresponding to the matching content is determined as the matching score of the matching content; or the similarity corresponding to the matching content is multiplied by a preset coefficient to obtain the matching score of the matching content. The preset coefficient is set according to actual conditions and is not specifically limited here.
[0100] In 103, a correction value of the matching content is determined according to the number of times the matching content is to be recommended.
[0101] It should be noted that for each content, a corresponding target recommendation number will be determined. When the number of recommended times of a content is less than the target recommendation number, the content is new, and when the number of recommended times of a content is greater than or equal to the target recommendation number, the content is not new.
[0102] The target recommendation times is the benchmark for determining whether the content is new. The target recommendation times for different content can be the same or different. The recommended times is the number of times the content has been recommended. Each time the content is recommended, its recommended times increases by 1. For example, when the content is an advertisement, each time the advertisement is exposed, its recommended times increases by 1.
[0103] The difference between the target recommendation times and the recommended times (target recommendation times - recommended times) is the number of times to be recommended, that is, the number of times to be recommended. For example, assuming the target recommendation times is 1000 and the recommended times is 500, the number of times to be recommended is 500. Then, if the number of times to be recommended of the content is greater than 0, the content is new; if the number of times to be recommended of the content is less than or equal to 0, the content is not new.
[0104] Since the matching score of the matching content is obtained based on the similarity between the first object feature vector and the first content feature vector output by the model, and the model is determined based on the feedback data of the sample object for the sample content. For new content, since the number of recommendations is very small or even has not yet been recommended, that is, the number of pending recommendations is greater than 0, resulting in very little feedback data or even no feedback data, the model makes inaccurate estimates for these contents, and thus these new contents cannot be effectively recommended. Based on this, in this embodiment, the correction value of the matching content is also determined based on the number of pending recommendations of the matching content to increase the probability of these new contents being recommended.
[0105] Optionally, in this embodiment, the step of “determining the correction value of the matching content according to the number of times the matching content is to be recommended” may include:
[0106] Determine the number of pending recommendations as the current proportion control value of the matching content;
[0107] Obtain the historical integral control value and historical ratio control value of the matching content;
[0108] Determine the current score control value of the matching content according to the number of pending recommendations and the historical score control value;
[0109] Determine the current differential control value of the matching content according to the number of pending recommendations and the historical ratio control value;
[0110] The correction value of the matching content is determined according to the current proportional control value, the current integral control value and the current differential control value of the matching content.
[0111] For example, the correction value of the matching content can be determined according to the number of times the matching content is to be recommended through the PID algorithm in the automatic control system. Among them, the PID algorithm is one of the most widely used algorithms in industrial applications. In the control of a closed-loop system, the control system can be automatically and accurately and quickly corrected.
[0112] In this embodiment, the calculation formula of the PID algorithm is:
[0113] Cur_D=E-last_P
[0114] Cur_I=last_I+E
[0115] Cur_P=E
[0116] Pacing_score=initial value+K_P×cur_P+K_I×cur_I+K_D×cur_D
[0117] Wherein, Cur_D represents the current differential control value of the matching content, Cur_I represents the current integral control value of the matching content, Cur_P represents the current proportion control value of the matching content, E represents the number of times the matching content is to be recommended, last_P represents the historical proportion control value of the matching content, last_I represents the historical integral control value of the matching content, and Pacing_score represents the correction value of the matching content. K_P, K_I, and K_D are hyperparameters. K_P, K_I, K_D, and the initial value can be adjusted by those skilled in the art according to actual conditions.
[0118] Optionally, in this embodiment, before the step of “determining the number of times to be recommended as the current proportion control value of the matching content”, the following may also be included:
[0119] Get the preset mapping relationship between time and number of recommendations;
[0120] According to the preset mapping relationship, determine the target number of recommendations corresponding to the current time;
[0121] Get the recommended count of the matching content;
[0122] The number of times the matching content needs to be recommended is determined based on the target number of recommendations and the number of times it has been recommended.
[0123] For example, a day can be divided into multiple time slices according to the fierce competition in different stages of traffic, and the number of recommendations that need to be achieved in the ideal state for the content corresponding to each time slice can be preset as the target number of recommendations corresponding to the time slice, so as to obtain a preset mapping relationship between time and number of recommendations. After the matching content is determined, the target number of recommendations corresponding to the current time can be determined according to the preset mapping relationship, and the number of recommendations to be made for the matching content can be determined according to the target number of recommendations and the number of recommendations of the matching content.
[0124] Optionally, in this embodiment, the step of “obtaining historical integral control values and historical proportion control values of matching content” may include:
[0125] According to the preset mapping relationship, determine the historical target recommendation number corresponding to the historical time;
[0126] Get the historical recommended count of matching content;
[0127] Determine the historical number of times the matching content will be recommended based on the historical number of target recommendations and the historical number of times it has been recommended;
[0128] According to the historical number of pending recommendations, the historical score control value and the historical proportion control value of the matching content are determined.
[0129] The preset mapping relationship can be a mapping relationship between time slices and target recommendation times, and the time slice before the time slice to which the current time belongs is the historical time. For example, assuming that the time slices include 0 to 10 o'clock, 10 to 12 o'clock, 12 to 15 o'clock, 15 to 20 o'clock, and 20 to 24 o'clock, and the time slice to which the current time belongs is 15 to 20 o'clock, and the historical time is 12 to 15 o'clock, then the historical target recommendation times corresponding to the historical time are the target recommendation times corresponding to 12 to 15 o'clock, and the historical recommended times of the matching content are the maximum recommended times from 12 to 15 o'clock. After obtaining the historical target recommendation times and the historical recommended times, the historical number of times to be recommended for the matching content can be determined based on the historical target recommendation times and the historical recommended times, and the historical integral control value and the historical proportion control value of the matching content can be determined based on the historical number of times to be recommended.
[0130] The historical integral control value and the historical proportion control value of the matching content can be obtained by the following formula.
[0131] Last_P=E'
[0132] Last_I=last_I'
[0133] Among them, Last_P represents the historical proportion control value, Last_I represents the historical integral control value, E' represents the historical number of pending recommendations, and Last_I' represents the target number of recommendations corresponding to the previous time slice (such as 10:00 to 12:00) before the historical time.
[0134] In an optional embodiment, it can be determined whether the recommended times of the matching content are greater than or equal to the target recommended times. If the recommended times of the matching content are greater than or equal to the target recommended times, the correction value of the matching content is determined to be 0; if the recommended times of the matching content are less than the target recommended times, the step of determining the correction value of the matching content according to the number of times the matching content is to be recommended is performed.
[0135] In an optional embodiment, it may also be determined whether the number of times the matching content is to be recommended is less than or equal to 0. If the number of times the matching content is to be recommended is less than or equal to 0, the correction value of the matching content is determined to be 0; if the number of times the matching content is to be recommended is greater than 0, the step of determining the correction value of the matching content according to the number of times the matching content is to be recommended is performed.
[0136] In 104, the matching score of the matching content is corrected according to the correction value of the matching content to obtain a corrected score.
[0137] After the correction value and the matching score are obtained, the matching score of the matching content can be corrected according to the correction value to obtain a corrected score.
[0138] Among them, the correction score = matching score + correction value.
[0139] Optionally, when the matching score and the correction value differ greatly, such as by several times, the larger value may be reduced by several times, or the smaller value may be increased by several times, and then the correction score of the matching content is obtained by the above formula.
[0140] In 105 , first target recommended content is determined from the matching content according to the revised score of the matching content.
[0141] After the revised score of the matching content is obtained, the first target recommended content may be determined from the matching content according to the revised score of the matching content.
[0142] For example, a second preset number of matching contents may be determined as the first target recommended contents in descending order of the correction scores, wherein the second preset number is smaller than the first preset number, such as the first preset number is twice the second preset number.
[0143] Optionally, in this embodiment, after the step of “determining first target recommended content from the matching content according to the revised score of the matching content”, the following steps may also be included:
[0144] Obtain a second object feature vector of the object to be recommended;
[0145] Determining a target object cluster vector corresponding to the second object feature vector according to a preset mapping relationship between the object feature vector and the object cluster vector, wherein the object cluster vector is obtained by clustering the object feature vectors corresponding thereto;
[0146] Determine a target content vector corresponding to the target object cluster vector according to a preset mapping relationship between the object cluster vector and the content vector;
[0147] Determining the content corresponding to the target content vector as the second target recommended content;
[0148] Determining a third target recommended content from the first target recommended content and the second target recommended content;
[0149] Recommend the third target recommended content to the recommended object.
[0150] The second object feature vector is used to represent the object features of the object to be matched in the form of a vector, which is obtained based on the object features of the object to be matched. Among them, the object features may include basic features of the object and interest features of the object. The basic features of the object may include gender, location (such as XX province), education level and terminal model, etc. The object interest features may include the object's business interests, marketing interests, application interests, media interests, business district category interests, etc. The dimensions of the object features can be tens of thousands, so that the acquired content features are more comprehensive.
[0151] For example, feedback data and sample object features of multiple sample objects and content features of multiple sample contents can be obtained in advance. Positive sample data and negative sample data are generated based on the feedback data of each sample object. Positive sample data are exposure and conversion records, and negative sample data are exposure but not conversion records.
[0152] Sample object features of multiple sample objects and sample content features of multiple sample contents may also be obtained. The sample object features of each sample object and the sample content features of each sample content are mapped to the same semantic space, such as inputting the sample object features of each sample object and the sample content features of each sample content into a multilayer perceptron (MLP) network model respectively, to obtain the first sample object feature vector of each sample object and the first sample content feature vector of each sample content of equal dimension. Then the similarity between the first sample object feature vector of each sample object and the first sample content feature vector of each sample content is calculated, and the similarity is mapped through an activation function to obtain the matching probability of each sample content for each sample object. The activation function can map the similarity to between 0 and 1, so as to obtain the matching probability corresponding to the feature distance, as the matching probability of each sample content for each sample object. The matching probability may include the probability of exposure and conversion or the probability of exposure without conversion. The above network model is trained based on the matching probability to obtain a trained second network model.
[0153] Optionally, the second network model may be a twin-tower model (Deep Structured Semantic Models, DSSM).
[0154] Content features can include content length, content type, content audience type, average browsing time, number of clicks, number of exposures, etc. The dimensions of content features can be tens of thousands, so that the content features obtained are more comprehensive. Etc. Feedback data can include: whether the object is clicked, whether it is converted (product order, application download, etc.). For generalization,
[0155] It should be noted that, in this embodiment, content features try not to use too many ID-type features (such as content ID, content main ID), and use generalized features such as statistics instead.
[0156] Optionally, the similarity can be Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, standardized Euclidean distance, Mahalanobis distance, angle cosine, Hamming distance, Jaccard distance, correlation distance or information entropy. The activation function can be a Sigmoid function, a hyperbolic tangent (Tanh) function or a rectified linear unit (ReLU).
[0157] After obtaining the trained second network model, the content features of all the to-be-matched content in the content system may be input into the second network model to obtain a second content feature vector for each to-be-matched content, and the second content feature vector for each to-be-matched content may be stored.
[0158] Optionally, in this embodiment, before the step of “obtaining the second object feature vector of the object to be recommended”, the following steps may also be included:
[0159] Acquire second object feature vectors of multiple objects to be matched, to obtain multiple object feature vectors to be matched;
[0160] Clustering multiple feature vectors of objects to be matched to obtain multiple object cluster vectors;
[0161] The to-be-matched object feature vector of each object cluster vector obtained by clustering is determined as the to-be-matched object feature vector corresponding to each object cluster vector, and a preset mapping relationship between the object feature vector and the object cluster vector is obtained.
[0162] Optionally, in this embodiment, after the step of “clustering multiple feature vectors of objects to be matched to obtain multiple object cluster vectors”, the following steps may also be included:
[0163] Obtain multiple content feature vectors to be matched;
[0164] Pairing a plurality of to-be-matched content feature vectors with a plurality of object cluster vectors one by one to obtain a plurality of vector pairs, wherein a vector pair includes a to-be-matched content feature vector and an object cluster vector;
[0165] Determine the similarity between the feature vector of the content to be matched and the object cluster vector in each vector pair, and obtain the similarity corresponding to each vector pair;
[0166] The object cluster vectors in each vector pair corresponding to each similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector.
[0167] Optionally, in this embodiment, the step of "traversing the object cluster vectors in the vector pair corresponding to each similarity in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtaining a preset mapping relationship between the object cluster vector and the content feature vector" may include:
[0168] The sample object cluster vectors in the content vector pair corresponding to each similarity are traversed in descending order of similarity, and it is determined whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0169] If so, the target object cluster vector is determined as the object cluster vector corresponding to the target to-be-matched content feature vector, the object cluster vectors in the next vector pair are traversed continuously, and the step of returning to execute the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0170] If not, continue to traverse the object cluster vectors in the next vector pair, and return to the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0171] When the preset traversal end condition is met, the traversal is stopped to obtain the preset mapping relationship between the object cluster vector and the content feature vector.
[0172] For example, after obtaining the second object feature vector of the object to be matched, the second object feature vector of the object to be matched can be clustered by a corresponding clustering algorithm to obtain multiple object cluster vectors. After obtaining multiple object cluster vectors, the second object feature vector of each object cluster vector obtained by clustering can be determined as the second object feature vector corresponding to each object cluster vector, and a preset mapping relationship between the object feature vector and the object cluster vector can be obtained.
[0173] For example, assuming that object cluster vectors C1, C2 and C3 are obtained, among which object cluster vector C1 is obtained by clustering second object feature vectors U1, U2 and U3, object cluster vector C2 is obtained by clustering second object feature vectors U4, U5, U6 and U7, and object cluster vector C3 is obtained by clustering second object feature vectors U8, U9, U10, U11 and U12, then it can be determined that the second object feature vectors U1, U2 and U3 correspond to object cluster vector C1, the second object feature vectors U4, U5, U6 and U7 correspond to object cluster vector C2, and the second object feature vectors U8, U9, U10, U11 and U12 correspond to object cluster vector C3.
[0174] Optionally, the clustering algorithm may include (K-means) clustering (K-Means), density-based clustering method (DBSCAN), hierarchical agglomerative clustering (HAC) and other algorithms.
[0175] In this embodiment, multiple content feature vectors to be matched can be matched one by one with multiple object cluster vectors to obtain multiple vector pairs. After obtaining multiple vector pairs, the similarity between the content feature vector to be matched and the object cluster vector in each vector pair can be determined to obtain the similarity corresponding to each vector pair. After obtaining the similarity corresponding to each vector pair, the object cluster vectors in each vector pair can be traversed in descending order of similarity to determine the object cluster vector corresponding to each content vector to be matched.
[0176] For example, assuming that there are multiple content vectors A1 and A2 to be matched, and multiple object cluster vectors C1 and C2, the multiple content vectors to be matched are paired one by one with the multiple object cluster vectors to obtain multiple vector pairs P1, P2, P3 and P4, wherein the vector pair P1 includes the content vector A1 to be matched and the object cluster vector C1, the vector pair P2 includes the content vector A2 to be matched and the object cluster vector C1, the vector pair P3 includes the content vector A1 to be matched and the object cluster vector C2, and the vector pair P4 includes the content vector A2 to be matched and the object cluster vector C2. The similarity between the content vector A1 to be matched and the object cluster vector C1 can be determined to obtain the similarity S1 corresponding to the vector pair P1, the similarity between the content vector A2 to be matched and the object cluster vector C2 can be determined to obtain the similarity S2 corresponding to the vector pair P2, the similarity between the content vector A1 to be matched and the object cluster vector C2 can be determined to obtain the similarity S3 corresponding to the vector pair P3, the similarity between the content vector A2 to be matched and the object cluster vector C2 can be determined to obtain the similarity S4 corresponding to the vector pair P4.
[0177] Assuming that similarity S1 is greater than similarity S2, similarity S2 is greater than similarity S3, and similarity S3 is greater than similarity S4, the object cluster vector C1 in vector pair P1, the object cluster vector C2 in vector pair P2, the object cluster vector C2 in vector pair P3, and the object cluster vector C2 in vector pair P4 can be traversed in sequence. Taking the preset content quantity as 1 and the preset vector quantity as 1 as an example, if the content quantity of the content vector to be matched corresponding to object cluster vector C1 is 0, and the content quantity corresponding to content vector A1 to be matched is 0, then object cluster vector C1 can be determined as the object cluster vector corresponding to content vector A1 to be matched. Since object cluster vector C1 in vector pair P2 corresponds to content vector A1 to be matched, that is, the content quantity of the corresponding content vector to be matched is 1, it is necessary to continue traversing the object cluster vectors in vector pair P3. Vector C2, although the content quantity of the content vector to be matched corresponding to the object cluster vector C2 is 0, the content vector A1 to be matched in the vector pair P3 corresponds to the object cluster vector C1, that is, the vector quantity of the object cluster vector corresponding to the content vector A1 to be matched in the vector pair P3 is greater than the preset vector quantity, then it is necessary to continue to traverse the object cluster vector C2 in the vector pair P4. Since the content quantity of the content vector to be matched corresponding to the object cluster vector C2 is 0, the vector quantity of the object cluster vector corresponding to the content vector A2 to be matched in the vector pair P4 is also 0. Therefore, the object cluster vector C2 can be determined as the object cluster vector corresponding to the content vector A2 to be matched, and the preset mapping relationship between the object cluster vector and the content is obtained, that is, the object cluster vector C1 corresponds to the content vector A1 to be matched, and the object cluster vector C2 corresponds to the content vector A2 to be matched.
[0178] In this embodiment, the object features of the object to be matched can be input into the above-mentioned second network model to obtain the second object feature vector of the object to be matched. After the second object feature vector of the object to be recommended is obtained, the matching object cluster vector corresponding to the second object feature vector of the object to be recommended can be determined according to the preset mapping relationship between the object feature vector and the object cluster vector obtained by the above process, and the matching content vector corresponding to the object vector to be matched can be determined according to the preset mapping relationship between the object cluster vector and the content vector obtained by the above process. The content corresponding to the matching content vector can be determined as the second target recommended content. Among them, if a matching content vector is the second content feature vector of a certain content, then the matching content vector corresponds to the content.
[0179] Usually, it is necessary to go through multiple steps such as recall, rough sorting and fine sorting to select the corresponding content from multiple contents before the final selected content can be recommended to the object to be recommended. The above process of determining the first target recommended content and the second target recommended content can be the process of the recall step. Subsequently, the rough sorting and fine sorting methods provided by the relevant technology can be used to determine the third target recommended content from the first target recommended content and the second target recommended content as the content that needs to be recommended to the object to be recommended, and recommend the third target recommended content to the object to be recommended.
[0180] Optionally, in this embodiment, before the step of “obtaining second object feature vectors of multiple objects to be matched to obtain multiple object feature vectors to be matched”, the following may also be included:
[0181] Obtain content revenues corresponding to multiple candidate objects respectively;
[0182] A preset proportion of candidate objects are selected from the plurality of candidate objects in descending order of content revenue as objects to be matched, thereby obtaining a plurality of objects to be matched.
[0183] In order to prevent local popular content from occupying too much of the recommendation share and squeezing out the recommendation share of new content, the number of objects can be reduced. For example, only objects with higher content benefits can be considered as objects to be matched with the content to be matched.
[0184] Among them, the reward value provided by the content owner to the content platform when each content is successfully converted by a certain object can be used as the content income of each content relative to the object, that is, each time the object successfully converts content, it can obtain the corresponding content income. The content income corresponding to each candidate object in a preset time period can be obtained, and then a preset proportion of candidate objects are selected from multiple candidate objects in the order of content income from large to small as the objects to be matched, and multiple objects to be matched are obtained.
[0185] In this embodiment, the first object feature vector of the object to be recommended is obtained; matching content that matches the first content feature vector and the first object feature vector, and its corresponding matching score are determined; a correction value of the matching content is determined according to the number of times the matching content is to be recommended; the matching score of the matching content is corrected according to the correction value of the matching content to obtain a corrected score; and the first target recommended content is determined from the matching content according to the corrected score of the matching content. The matching score of the matching content can be corrected according to the number of times the matching content is to be recommended. For example, for new content, that is, content with a large number of times to be recommended that is greater than 0, it can be corrected so that its correction score is higher, thereby increasing the probability of the new content being recommended.
[0186] The following description will be made by taking the case where the content is an advertisement and the target is a user as an example. The content recommendation method may include:
[0187] 201. Obtain a first object feature vector of a user to be recommended.
[0188] 202. Determine matching advertisements in which the first advertisement feature vector matches the first object feature vector, and matching scores thereof.
[0189] The user to be recommended is a user to whom an advertisement needs to be recommended.
[0190] For example, when a user is watching a video, the user can be identified as a user to be recommended. When the user pauses playing the video, the first target recommended advertisement and the second target recommended advertisement are determined by the content recommendation method provided in this embodiment, and the target advertisement determined from the first target recommended advertisement and the second target recommended advertisement is displayed.
[0191] For another example, when a user launches an application, the user can be identified as a user to be recommended, and the first target recommended advertisement and the second target recommended advertisement can be determined by the content recommendation method provided in this embodiment, and the target advertisement determined from the first target recommended advertisement and the second target recommended advertisement can be displayed before displaying the application interface of the application.
[0192] The first object feature vector is used to represent the object features of the user to be recommended in the form of a vector, which is obtained based on the object features of the user to be recommended. Among them, the object features may include basic features of the object and interest features of the object. The basic features of the object may include gender, location (such as XX province), education level and terminal model, etc. The object interest features may include the object's business interests, marketing interests, application interests, media interests, business district category interests, etc. The dimensions of the object features can be tens of thousands, so that the acquired advertising features are more comprehensive.
[0193] For example, feedback data of multiple sample users and sample object features and advertisement features of multiple sample advertisements can be obtained in advance. Positive sample data and negative sample data are generated based on the feedback data of each sample user. Positive sample data are click-and-conversion records, and negative sample data are click-but-unconversion records.
[0194] Sample object features of multiple sample users and sample advertisement features of multiple sample advertisements can also be obtained. The sample object features of each sample user and the sample advertisement features of each sample advertisement are mapped to the same semantic space, such as inputting the sample object features of each sample user and the sample advertisement features of each sample advertisement into a multilayer perceptron (MLP) network model respectively, to obtain the first sample object feature vector of each sample user and the first sample advertisement feature vector of each sample advertisement of equal dimension. Then calculate the similarity between the first sample object feature vector of each sample user and the first sample advertisement feature vector of each sample advertisement, and map the similarity through an activation function to obtain the matching probability of each sample advertisement for each sample user. The activation function can map the similarity to between 0 and 1, so as to obtain the matching probability corresponding to the feature distance, as the matching probability of each sample advertisement for each sample user. The matching probability can include the probability of click and conversion or the probability of click without conversion. The above network model is trained based on the matching probability to obtain a trained first network model.
[0195] Optionally, the first network model may be a twin-tower model (Deep Structured Semantic Models, DSSM), and the model structure of the first network model may be as follows: Figure 2a shown.
[0196] Among them, advertising features may include advertising ID, advertiser ID, advertising length, advertising type, advertising audience type, average browsing time, number of clicks, number of exposures, etc. The dimensions of advertising features can be tens of thousands, so that the acquired advertising features are more comprehensive. Etc. Feedback data may include: whether the user clicks, whether the conversion occurs (product order, application download, etc.).
[0197] Optionally, the similarity can be Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, standardized Euclidean distance, Mahalanobis distance, angle cosine, Hamming distance, Jaccard distance, correlation distance or information entropy. The activation function can be a Sigmoid function, a hyperbolic tangent (Tanh) function or a rectified linear unit (ReLU).
[0198] After obtaining the trained first network model, the advertisement features of all advertisements to be matched in the advertisement system may be input into the first network model to obtain a first advertisement feature vector for each advertisement to be matched, and the first advertisement feature vector for each advertisement to be matched may be stored.
[0199] In this embodiment, the object features of the user to be recommended may be input into the first network model to obtain a first object feature vector of the user to be recommended.
[0200] After obtaining the first object feature vector of the user to be recommended, the similarity between the first object feature vector of the user to be recommended and the first advertisement feature vector of the stored advertisement to be matched can be calculated, and according to the similarity, a matching advertisement matching the user to be recommended is determined from the advertisements to be matched, and a matching score of the matching advertisement is determined according to the similarity corresponding to the matching advertisement. The similarity corresponding to the matching advertisement is the similarity between the first advertisement feature vector of the matching advertisement and the first object feature vector of the user to be recommended.
[0201] For example, the first preset number of to-be-matched advertisements may be determined as matching advertisements that match the to-be-recommended user in descending order of similarity. The similarity corresponding to the matching advertisement may be determined as the matching score of the matching advertisement; or the similarity corresponding to the matching advertisement may be multiplied by a preset coefficient to obtain the matching score of the matching advertisement. The preset coefficient is set according to actual conditions and is not specifically limited here.
[0202] Among them, the first preset number can be set according to actual needs and is not specifically limited here.
[0203] 203. Obtain a preset mapping relationship between time and number of recommendations.
[0204] 204. Determine a target number of recommendations corresponding to the current time according to a preset mapping relationship.
[0205] 205. Obtain the number of times the matching advertisement has been recommended.
[0206] 206. Determine the number of times to be recommended for the matching advertisement according to the target number of times of recommendation and the number of times recommended.
[0207] In this embodiment, a day can be divided into multiple time slices according to the intensity of competition in different stages of traffic in a day, and the target number of recommendations corresponding to each time slice can be preset in advance to obtain a preset mapping relationship between time and recommendation number. When the traffic competition in a time slice is relatively fierce, the corresponding target number of recommendations is set to be relatively large, and when the traffic competition in a time slice is relatively mild, the corresponding target number of recommendations is set to be relatively small.
[0208] When it is necessary to determine the number of times a matching advertisement is to be recommended, the target number of recommendations corresponding to the current time can be determined based on the preset mapping relationship between the time and the number of recommendations, and the number of times the matching advertisement has been recommended can be obtained, and the difference between the target number of recommendations and the number of times the matching advertisement has been recommended can be determined as the number of times the matching advertisement is to be recommended.
[0209] 207. Determine the number of pending recommendations as the current proportion control value of the matching advertisement.
[0210] 208. Determine the number of historical target recommendations corresponding to the historical time according to a preset mapping relationship.
[0211] 209. Obtain the historical number of recommended times of the matching advertisement.
[0212] 210. Determine the historical number of pending recommendations for the matching advertisement based on the historical target recommendation number and the historical recommended number.
[0213] 211. Determine a historical score control value and a historical proportion control value of the matching advertisement according to the historical number of pending recommendations.
[0214] 212. Determine the current score control value of the matching advertisement according to the number of pending recommendations and the historical score control value.
[0215] 213. Determine the current differential control value of the matching advertisement according to the number of pending recommendations and the historical ratio control value.
[0216] 214. Determine a correction value of the matching advertisement according to the current proportional control value, the current integral control value, and the current differential control value of the matching advertisement.
[0217] Since the target number of recommendations corresponding to each time slice and the number of recommended times of the matching advertisement in each time slice can be obtained, the number of times the matching advertisement is to be recommended in each time slice can be determined based on the target number of recommendations corresponding to each time slice and the number of times the matching advertisement has been recommended in each time slice. Based on the number of times the matching advertisement is to be recommended in each time slice, the proportional control value, integral control value and differential control value of the matching advertisement in each time slice can be determined.
[0218] The proportional control value, integral control value and differential control value of the matching advertisement in each time slice can be calculated by the PID algorithm in the automatic control system. The calculation formula of the PID algorithm is:
[0219] Cur_DCur_D=E-last_P
[0220] Cur_I=last_I+E
[0221] Cur_P=E
[0222] Among them, Cur_D represents the differential control value of the matching advertisement in the current time slice, Cur_I represents the integral control value of the matching advertisement in the current time slice, Cur_P represents the proportional control value of the matching advertisement in the current time slice, E represents the number of times the matching advertisement is to be recommended in the current time slice, last_P represents the proportional control value of the matching advertisement in the previous time slice, and last_I represents the historical integral control value of the matching advertisement in the previous time slice.
[0223] In this embodiment, the proportion control value, integral control value and differential control value of the current time slice to which the matching content belongs at the current time can be calculated by the above formula to obtain the current proportion control value, current integral control value and current differential control value of the matching content.
[0224] After the current proportion control value, the current integral control value, and the current differential control value of the matching content are obtained, the correction value of the matching advertisement can be obtained by the following formula.
[0225] Pacing_score=initial value+K_P*cur_P+K_I*cur_I+K_D*cur_D
[0226] Wherein, Pacing_score represents the correction value of the matching content. cur_P, cur_I and cur_D represent the current proportional control value, the current integral control value and the current differential control value of the matching content respectively. K_P, K_I and K_D are hyperparameters. K_P, K_I, K_D and the initial value can be adjusted by those skilled in the art according to the actual situation.
[0227] 215. Correct the matching score of the matching advertisement according to the correction value of the matching advertisement to obtain a corrected score.
[0228] In this embodiment, when the correction value of the matching advertisement and the matching score of the matching advertisement are obtained, the correction score of the matching advertisement can be obtained by the following formula.
[0229] Corrected score = matching score + correction value
[0230] 216. Determine a first target recommended advertisement from the matching advertisements according to the revised scores of the matching advertisements.
[0231] In this embodiment, after the correction scores of the matching advertisements are obtained, a second preset number of matching advertisements can be determined from the matching advertisements in descending order of the correction scores as the first target recommended advertisements. The second preset number is smaller than the first preset number, such as the first preset number is twice the second preset number.
[0232] 217. Obtain advertising revenues corresponding to the multiple candidate objects.
[0233] 218. Select a preset proportion of candidate objects from the plurality of candidate objects in descending order of advertising revenue as objects to be matched, to obtain a plurality of objects to be matched.
[0234] In actual advertising systems, the user scale is in the hundreds of millions, and the online advertising scale is in the millions. The matching scale is too large and needs to be degraded. Therefore, the user scale can be reduced. For example, only users with higher advertising revenue can be considered as the objects to be matched with the advertisements to be matched.
[0235] Among them, the reward value provided by the advertiser to the advertising platform when each advertisement is successfully converted by a certain user can be used as the advertising revenue of each advertisement relative to the user, that is, each time the user successfully converts an advertisement, the corresponding advertising revenue can be obtained. The advertising revenue corresponding to each candidate object within a preset time period can be obtained, and then a preset proportion of candidate objects are selected from multiple candidate objects in the order of advertising revenue from large to small as the objects to be matched, and multiple objects to be matched are obtained.
[0236] 219. Obtain a second object feature vector of each to-be-matched object.
[0237] 220. Cluster the second object feature vector of each to-be-matched object to obtain multiple user cluster vectors.
[0238] 221. Determine the second object feature vector of each user cluster vector obtained by clustering as the second object feature vector corresponding to each user cluster vector, and obtain a preset mapping relationship between the object feature vector and the user cluster vector.
[0239] 222. Obtain second advertisement feature vectors of multiple advertisements to be matched, to obtain multiple advertisement feature vectors to be matched.
[0240] 223. Pair the multiple to-be-matched advertisement feature vectors with the multiple user cluster vectors one by one to obtain multiple vector pairs, each vector pair including a to-be-matched advertisement feature vector and a user cluster vector.
[0241] 224. Determine the similarity between the advertisement feature vector to be matched and the user cluster vector in each vector pair, and obtain the similarity corresponding to each vector pair.
[0242] 225. Traverse the user cluster vectors in each vector pair in order of similarity from large to small, and determine whether the number of to-be-matched advertising feature vectors corresponding to the traversed target user cluster vectors reaches the preset number of advertising vectors, and whether the number of user cluster vectors corresponding to the target to-be-matched advertising feature vectors in the vector pair where the traversed target user cluster vector is located reaches the preset number of user cluster vectors.
[0243] 226. If so, the target user cluster vector is determined as the user cluster vector corresponding to the target to-be-matched advertising feature vector, and the user cluster vectors in the next vector pair are traversed continuously, and the step of returning to execute determining whether the number of to-be-matched advertising feature vectors corresponding to the traversed target user cluster vectors reaches the preset number of advertising vectors, and whether the number of user cluster vectors corresponding to the target to-be-matched advertising feature vectors in the vector pair where the traversed target user cluster vector is located reaches the preset number of user cluster vectors.
[0244] 227. If not, continue to traverse the user cluster vectors in the next vector pair, and return to the step of determining whether the number of to-be-matched advertising feature vectors corresponding to the traversed target user cluster vectors reaches the preset number of advertising vectors, and whether the number of user cluster vectors corresponding to the target to-be-matched advertising feature vectors in the vector pair where the traversed target user cluster vector is located reaches the preset number of user cluster vectors.
[0245] 228. When a preset traversal end condition is met, the traversal is stopped to obtain a preset mapping relationship between the user cluster vector and the advertisement feature vector.
[0246] The second object feature vector is used to represent the object features of the object to be matched in the form of a vector, which is obtained based on the object features of the object to be matched. Among them, the object features may include basic features of the object and interest features of the object. The basic features of the object may include gender, location (such as XX province), education level and terminal model, etc. The object interest features may include the object's business interests, marketing interests, application interests, media interests, business district category interests, etc. The dimensions of the object features can be tens of thousands, so that the acquired advertising features are more comprehensive.
[0247] For example, feedback data of multiple sample users and sample object features and advertisement features of multiple sample advertisements can be obtained in advance. Positive sample data and negative sample data are generated based on the feedback data of each sample user. Positive sample data are records of exposure and conversion, and negative sample data are records of exposure but not conversion.
[0248] Sample object features of multiple sample users and sample advertisement features of multiple sample advertisements can also be obtained. The sample object features of each sample user and the sample advertisement features of each sample advertisement are mapped to the same semantic space, such as inputting the sample object features of each sample user and the sample advertisement features of each sample advertisement into a multilayer perceptron (MLP) network model respectively, to obtain the first sample object feature vector of each sample user and the first sample advertisement feature vector of each sample advertisement of equal dimension. Then calculate the similarity between the first sample object feature vector of each sample user and the first sample advertisement feature vector of each sample advertisement, and map the similarity through an activation function to obtain the matching probability of each sample advertisement for each sample user. The activation function can map the similarity to between 0 and 1, so as to obtain the matching probability corresponding to the feature distance, as the matching probability of each sample advertisement for each sample user. The matching probability can include the probability of exposure and conversion or the probability of exposure without conversion. The above network model is trained based on the matching probability to obtain a trained second network model.
[0249] Optionally, the second network model may be a twin-tower model (Deep Structured Semantic Models, DSSM).
[0250] Ad features can include ad length, ad type, ad audience type, average browsing time, clicks, exposures, etc. The dimensions of ad features can be tens of thousands, so that the acquired ad features are more comprehensive. Etc. Feedback data can include: whether the user clicks, whether the conversion occurs (product order, application download, etc.). For generalization,
[0251] It should be noted that, in this embodiment, the advertisement features try not to use too many ID-type features (such as advertisement ID, advertiser ID), and instead use generalized features such as statistical features.
[0252] Optionally, the similarity can be Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, standardized Euclidean distance, Mahalanobis distance, angle cosine, Hamming distance, Jaccard distance, correlation distance or information entropy. The activation function can be a Sigmoid function, a hyperbolic tangent (Tanh) function or a rectified linear unit (ReLU).
[0253] After obtaining the trained second network model, the advertisement features of all advertisements to be matched in the advertisement system may be input into the second network model to obtain a second advertisement feature vector for each advertisement to be matched, and the second advertisement feature vector for each advertisement to be matched may be stored.
[0254] In this embodiment, the object features of the object to be matched may be input into the second network model to obtain a second object feature vector of the object to be matched.
[0255] After obtaining the second object feature vector of the object to be matched, the second object feature vector of the object to be matched can be clustered by a corresponding clustering algorithm to obtain multiple user cluster vectors. After obtaining multiple user cluster vectors, the second object feature vector of each user cluster vector obtained by clustering can be determined as the second object feature vector corresponding to each user cluster vector, and a preset mapping relationship between the object feature vector and the user cluster vector can be obtained.
[0256] For example, Figure 2b As shown, assuming that user cluster vectors C1, C2 and C3 are obtained, wherein the user cluster vector C1 is obtained by clustering the second object feature vectors U1, U2 and U3, the user cluster vector C2 is obtained by clustering the second object feature vectors U4, U5, U6 and U7, and the user cluster vector C3 is obtained by clustering the second object feature vectors U8, U9, U10, U11 and U12, then it can be determined that the second object feature vectors U1, U2 and U3 correspond to the user cluster vector C1, the second object feature vectors U4, U5, U6 and U7 correspond to the user cluster vector C2, and the second object feature vectors U8, U9, U10, U11 and U12 correspond to the user cluster vector C3.
[0257] Optionally, the clustering algorithm may include (K-means) clustering (K-Means), density-based clustering method (DBSCAN), hierarchical agglomerative clustering (HAC) and other algorithms.
[0258] Among them, the preset traversal end conditions may include: the number of to-be-matched advertising feature vectors corresponding to each user cluster vector in the vector pair reaches the preset number of advertising vectors, or the number of user cluster vectors corresponding to the to-be-matched advertising feature vectors in the vector pair reaches the preset number of user cluster vectors, or the traversal is completed.
[0259] In this embodiment, multiple advertisement feature vectors to be matched may be matched one by one with multiple user cluster vectors to obtain multiple vector pairs. After obtaining multiple vector pairs, the similarity between the advertisement feature vector to be matched and the user cluster vector in each vector pair may be determined to obtain the similarity corresponding to each vector pair. After obtaining the similarity corresponding to each vector pair, the user cluster vectors in each vector pair may be traversed in descending order of similarity to determine the user cluster vector corresponding to each advertisement vector to be matched.
[0260] For example, assuming that there are multiple advertisement vectors A1 and A2 to be matched, and multiple user cluster vectors C1 and C2, the multiple advertisement vectors to be matched are paired one by one with the multiple user cluster vectors to obtain multiple vector pairs P1, P2, P3 and P4, wherein the vector pair P1 includes the advertisement vector A1 to be matched and the user cluster vector C1, the vector pair P2 includes the advertisement vector A2 to be matched and the user cluster vector C1, the vector pair P3 includes the advertisement vector A1 to be matched and the user cluster vector C2, and the vector pair P4 includes the advertisement vector A2 to be matched and the user cluster vector C2. The similarity between the advertisement vector A1 to be matched and the user cluster vector C1 can be determined to obtain the similarity S1 corresponding to the vector pair P1, the similarity between the advertisement vector A2 to be matched and the user cluster vector C2 can be determined to obtain the similarity S2 corresponding to the vector pair P2, the similarity between the advertisement vector A1 to be matched and the user cluster vector C2 can be determined to obtain the similarity S3 corresponding to the vector pair P3, the similarity between the advertisement vector A2 to be matched and the user cluster vector C2 can be determined to obtain the similarity S4 corresponding to the vector pair P4.
[0261] like Figure 2c As shown, assuming that similarity S1 is greater than similarity S2, similarity S2 is greater than similarity S3, and similarity S3 is greater than similarity S4, the user cluster vector C1 in vector pair P1, the user cluster vector C2 in vector pair P2, the user cluster vector C2 in vector pair P3, and the user cluster vector C2 in vector pair P4 can be traversed in sequence. The preset number of advertisements is 1. Taking the preset number of vectors as 1 as an example, if the number of advertisements of the to-be-matched advertisement vector corresponding to user cluster vector C1 is 0, and the number of advertisements corresponding to to-be-matched advertisement vector A1 is 0, then user cluster vector C1 can be determined as the user cluster vector corresponding to to-be-matched advertisement vector A1. Since user cluster vector C1 in vector pair P2 corresponds to to-be-matched advertisement vector A1, that is, the number of advertisements of the corresponding to-be-matched advertisement vector is 1, it is necessary to continue traversing user cluster vectors in vector pair P3. Cluster vector C2, although the number of advertisements in the to-be-matched advertisement vector corresponding to the user cluster vector C2 is 0, the to-be-matched advertisement vector A1 in the vector pair P3 corresponds to the user cluster vector C1, that is, the vector number of user cluster vectors corresponding to the to-be-matched advertisement vector A1 in the vector pair P3 is greater than the preset vector number, then it is necessary to continue traversing the user cluster vector C2 in the vector pair P4. Since the number of advertisements in the to-be-matched advertisement vector corresponding to the user cluster vector C2 is 0, the vector number of user cluster vectors corresponding to the to-be-matched advertisement vector A2 in the vector pair P4 is also 0. Therefore, the user cluster vector C2 can be determined as the user cluster vector corresponding to the to-be-matched advertisement vector A2, and the preset mapping relationship between the user cluster vector and the advertisement is obtained, that is, the user cluster vector C1 corresponds to the to-be-matched advertisement vector A1, and the user cluster vector C2 corresponds to the to-be-matched advertisement vector A2.
[0262] 229. Obtain a second object feature vector of the user to be recommended.
[0263] In this embodiment, the object features of the user to be recommended may be input into the second network model to obtain a second object feature vector of the user to be recommended.
[0264] 230. Determine a matching user cluster vector corresponding to the second object feature vector of the user to be recommended according to a preset mapping relationship between the object feature vector and the user cluster vector.
[0265] 231. Determine a matching advertisement vector corresponding to the matching user cluster vector according to a preset mapping relationship between the user cluster vector and the advertisement vector.
[0266] 232. Determine the advertisement corresponding to the matching advertisement vector as the second target recommended advertisement.
[0267] In this embodiment, after obtaining the second object feature vector of the user to be recommended, the matching user cluster vector corresponding to the second object feature vector of the user to be recommended can be determined according to the preset mapping relationship between the object feature vector obtained in the above process and the user cluster vector, and the matching advertisement vector corresponding to the user vector to be matched can be determined according to the preset mapping relationship between the user cluster vector obtained in the above process and the advertisement vector. The advertisement corresponding to the matching advertisement vector can be determined as the second target recommended advertisement. If a matching advertisement vector is the second advertisement feature vector of an advertisement, then the matching advertisement vector corresponds to the advertisement.
[0268] 233. Determine a third target recommended advertisement from the first target recommended advertisement and the second target recommended advertisement.
[0269] 234. Recommend the third target recommendation advertisement to the user to be recommended.
[0270] Usually, it is necessary to go through multiple steps such as recall, rough sorting and fine sorting to select the corresponding advertisement from multiple advertisements before the finally selected advertisement can be recommended to the user to be recommended. The above process of determining the first target recommended advertisement and the second target recommended advertisement can be the process of the recall step. Subsequently, the rough sorting and fine sorting methods provided by the relevant technology can be used to determine the third target recommended advertisement from the first target recommended advertisement and the second target recommended advertisement as the advertisement that needs to be recommended to the user to be recommended, and recommend the third target recommended advertisement to the user to be recommended.
[0271] Optionally, since the process of determining the second target recommended advertisement provided by this embodiment is to find the most suitable user for the advertisement, but the goal of the downstream fine sorting and other sorting modules is to find the most suitable advertisement for the user, there will be inconsistencies between the upstream and downstream. In order to ensure the competitiveness and pass rate of the recall branch, it is necessary to support it based on artificial prior knowledge. For example, the matching score of the second target recommended advertisement can be determined based on the similarity between the advertisement feature vector of the second target recommended advertisement and the feature vector of the second object, and then the matching score is multiplied by a preset coefficient and the first target recommended advertisement and the second target recommended advertisement are sent to the recall queue to enter the rough sorting and fine sorting links for further screening.
[0272] Regarding the setting of the number of preset user cluster vectors, if it is set too large, it is equivalent to the problem falling back to the traditional method based on user recall advertising, which will not play the role of new advertising to grab market share; if it is set too small, the share grabbing for other advertisements will be too serious, resulting in insufficient traffic competition, which will eventually damage the platform's revenue. Therefore, the threshold needs to be adjusted dynamically based on the posterior effect. For example, based on the posterior effect, if the total revenue of the advertisement decreases, it is likely that the number of preset user cluster vectors is set too small, resulting in the number of recalls of potential advertisements being limited; conversely, if there is basically no change, it is likely that the number of preset user cluster vectors is set too large, which is equivalent to this recall branch basically having no effect.
[0273] See also Figure 3 , Figure 3 The content recommendation device provided in the embodiment of the present application is a schematic diagram of the structure of the content recommendation device. The content recommendation device includes: a vector acquisition module 301, a score determination module 302, a correction value determination module 303, a score correction module 304 and a content determination module 305.
[0274] A vector acquisition module 301 is used to acquire a first object feature vector of an object to be recommended;
[0275] A score determination module 302 is used to determine matching content where the first content feature vector matches the first object feature vector, and the matching score thereof;
[0276] A correction value determination module 303, used to determine the correction value of the matching content according to the number of times the matching content is to be recommended;
[0277] A score correction module 304, configured to correct the matching score of the matching content according to the correction value of the matching content, to obtain a corrected score of the matching content;
[0278] The content determination module 305 is configured to determine first target recommended content from the matching content according to the revised score of the matching content.
[0279] Optionally, the correction value determination module 303 can be used to: determine the number of times to be recommended as the current proportional control value of the matching content; obtain the historical integral control value and the historical proportional control value of the matching content; determine the current integral control value of the matching content based on the number of times to be recommended and the historical integral control value; determine the current differential control value of the matching content based on the number of times to be recommended and the historical proportional control value; determine the correction value of the matching content based on the current proportional control value, the current integral control value and the current differential control value of the matching content.
[0280] Optionally, the correction value determination module 303 can be used to: obtain a preset mapping relationship between time and recommendation times; determine a target recommendation time corresponding to the current time according to the preset mapping relationship; obtain the recommended times of the matching content; and determine the number of times to be recommended of the matching content according to the target recommendation times and the recommended times.
[0281] Optionally, the correction value determination module 303 can be used to: determine the historical target recommendation times corresponding to the historical time according to a preset mapping relationship; obtain the historical recommended times of the matching content; determine the historical to-be-recommended times of the matching content according to the historical target recommendation times and the historical recommended times; determine the historical integral control value and the historical proportion control value of the matching content according to the historical to-be-recommended times.
[0282] Optionally, the content recommendation device may further include a content recommendation module, which may be used to: obtain a second object feature vector of the object to be recommended; determine a target object cluster vector corresponding to the second object feature vector according to a preset mapping relationship between the object feature vector and the object cluster vector, wherein the object cluster vector is obtained by clustering the object feature vectors corresponding to the second object feature vector; determine a target content vector corresponding to the target object cluster vector according to a preset mapping relationship between the object cluster vector and the content vector; determine the content corresponding to the target content vector as the second target recommended content; determine a third target recommended content from the first target recommended content and the second target recommended content; and recommend the third target recommended content to the object to be recommended.
[0283] Optionally, the content recommendation module can be used to: obtain the second object feature vectors of multiple objects to be matched, so as to obtain multiple object feature vectors to be matched; cluster the multiple object feature vectors to be matched, so as to obtain multiple object cluster vectors; determine the object feature vector to be matched of each object cluster vector obtained by clustering as the object feature vector to be matched corresponding to each object cluster vector, so as to obtain a preset mapping relationship between the object feature vector and the object cluster vector.
[0284] Optionally, the content recommendation module can be used to: obtain multiple content feature vectors to be matched; pair the multiple content feature vectors to be matched with multiple object cluster vectors one by one to obtain multiple vector pairs, where a vector pair includes a content feature vector to be matched and an object cluster vector; determine the similarity between the content feature vector to be matched and the object cluster vector in each vector pair to obtain the similarity corresponding to each vector pair; traverse the object cluster vectors in the vector pair corresponding to each similarity in order from large to small similarities to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector.
[0285] Optionally, the content recommendation module can be used to: traverse the sample object cluster vectors in the content vector pair corresponding to each similarity in order from large to small, and determine whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches a preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches a preset number of object cluster vectors; if so, determine the target object cluster vector as the object cluster vector corresponding to the target to-be-matched content feature vector, continue to traverse the object cluster vectors in the next vector pair, and return the content feature vector to-be-matched corresponding to the traversed target object cluster vector. The step of determining whether the number reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors; if not, continue to traverse the object cluster vectors in the next vector pair, and return to execute the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors; when the preset traversal end condition is met, stop the traversal to obtain the preset mapping relationship between the object cluster vector and the content feature vector.
[0286] Optionally, the content recommendation module can be used to: obtain content revenues corresponding to multiple candidate objects respectively; select a preset proportion of candidate objects from the multiple candidate objects in order of content revenue from large to small as objects to be matched, to obtain multiple objects to be matched.
[0287] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the content recommendation method provided in this embodiment.
[0288] An embodiment of the present application also provides a computer device, including a memory and a processor, wherein the processor is used to execute the content recommendation method provided in the present embodiment by calling a computer program stored in the memory.
[0289] In addition, the embodiment of the present application also provides a computer device, which can be a terminal or a server. Figure 4 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0290] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0291] in:
[0292] The processor 401 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the computer device and processes data, thereby controlling the computer device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0293] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0294] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0295] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0296] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0297] Obtain a first object feature vector of the object to be recommended;
[0298] Determine matching content where the first content feature vector matches the first object feature vector, and the matching score thereof;
[0299] Determine a correction value of the matching content according to the number of times the matching content is to be recommended;
[0300] Correcting the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content;
[0301] According to the revised score of the matching content, a first target recommended content is determined from the matching content.
[0302] Optionally, determining the correction value of the matching content according to the number of times the matching content is to be recommended includes:
[0303] Determine the number of pending recommendations as the current proportion control value of the matching content;
[0304] Obtain the historical integral control value and historical ratio control value of the matching content;
[0305] Determine the current score control value of the matching content according to the number of pending recommendations and the historical score control value;
[0306] Determine the current differential control value of the matching content according to the number of pending recommendations and the historical ratio control value;
[0307] The correction value of the matching content is determined according to the current proportional control value, the current integral control value and the current differential control value of the matching content.
[0308] Optionally, before determining the number of times to be recommended as the current proportion control value of the matching content, the method further includes:
[0309] Get the preset mapping relationship between time and number of recommendations;
[0310] According to the preset mapping relationship, determine the target number of recommendations corresponding to the current time;
[0311] Get the recommended count of the matching content;
[0312] The number of times the matching content needs to be recommended is determined based on the target number of recommendations and the number of times it has been recommended.
[0313] Optionally, obtaining the historical integral control value and the historical proportion control value of the matching content includes:
[0314] According to the preset mapping relationship, determine the historical target recommendation times corresponding to the historical time;
[0315] Get the historical recommended count of matching content;
[0316] Determine the historical number of times the matching content will be recommended based on the historical number of target recommendations and the historical number of times it has been recommended;
[0317] According to the historical number of pending recommendations, the historical score control value and the historical proportion control value of the matching content are determined.
[0318] Optionally, after determining the first target recommended content from the matching content according to the revised score of the matching content, the method further includes:
[0319] Obtain a second object feature vector of the object to be recommended;
[0320] Determining a target object cluster vector corresponding to the second object feature vector according to a preset mapping relationship between the object feature vector and the object cluster vector, wherein the object cluster vector is obtained by clustering the object feature vectors corresponding thereto;
[0321] Determine a target content vector corresponding to the target object cluster vector according to a preset mapping relationship between the object cluster vector and the content vector;
[0322] Determining the content corresponding to the target content vector as the second target recommended content;
[0323] Determining a third target recommended content from the first target recommended content and the second target recommended content;
[0324] Recommend the third target recommended content to the recommended object.
[0325] Optionally, before obtaining the second object feature vector of the object to be recommended, the method further includes:
[0326] Acquire second object feature vectors of multiple objects to be matched, to obtain multiple object feature vectors to be matched;
[0327] Clustering multiple feature vectors of objects to be matched to obtain multiple object cluster vectors;
[0328] The to-be-matched object feature vector of each object cluster vector obtained by clustering is determined as the to-be-matched object feature vector corresponding to each object cluster vector, and a preset mapping relationship between the object feature vector and the object cluster vector is obtained.
[0329] Optionally, after clustering the feature vectors of the multiple objects to be matched to obtain the multiple object cluster vectors, the method further includes:
[0330] Obtain multiple content feature vectors to be matched;
[0331] Pairing a plurality of to-be-matched content feature vectors with a plurality of object cluster vectors one by one to obtain a plurality of vector pairs, wherein a vector pair includes a to-be-matched content feature vector and an object cluster vector;
[0332] Determine the similarity between the feature vector of the content to be matched and the object cluster vector in each vector pair, and obtain the similarity corresponding to each vector pair;
[0333] The object cluster vectors in each vector pair corresponding to each similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector.
[0334] Optionally, the object cluster vectors in the vector pair corresponding to each similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and a preset mapping relationship between the object cluster vector and the content feature vector is obtained, including:
[0335] The sample object cluster vectors in the content vector pair corresponding to each similarity are traversed in descending order of similarity, and it is determined whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0336] If so, the target object cluster vector is determined as the object cluster vector corresponding to the target to-be-matched content feature vector, the object cluster vectors in the next vector pair are traversed continuously, and the step of returning to execute the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0337] If not, continue to traverse the object cluster vectors in the next vector pair, and return to the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors;
[0338] When the preset traversal end condition is met, the traversal is stopped to obtain the preset mapping relationship between the object cluster vector and the content feature vector.
[0339] Optionally, before obtaining the second object feature vectors of the multiple objects to be matched, the method further includes:
[0340] Obtain content revenues corresponding to multiple candidate objects respectively;
[0341] A preset proportion of candidate objects are selected from the plurality of candidate objects in descending order of content revenue as objects to be matched, thereby obtaining a plurality of objects to be matched.
[0342] A person skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a storage medium and loaded and executed by a processor.
[0343] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any content recommendation method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0344] Obtain a first object feature vector of the object to be recommended;
[0345] Determine matching content where the first content feature vector matches the first object feature vector, and the matching score thereof;
[0346] Determine a correction value of the matching content according to the number of times the matching content is to be recommended;
[0347] Correcting the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content;
[0348] According to the revised score of the matching content, a first target recommended content is determined from the matching content.
[0349] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0350] Since the instructions stored in the storage medium can execute the steps in any content recommendation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any content recommendation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0351] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the content recommendation method provided in the above-mentioned invention content and embodiments.
[0352] The above is a detailed introduction to a content recommendation method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A content recommendation method, characterized in that: include: Obtain a first object feature vector of an object to be recommended; Determine matching content where the first content feature vector matches the first object feature vector, and the matching score thereof; determining a correction value of the matching content according to the number of times the matching content is to be recommended; Correcting the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content; Determine first target recommended content from the matching content according to the revised score of the matching content.
2. The content recommendation method according to claim 1, characterized in that: The determining the correction value of the matching content according to the number of times the matching content is to be recommended includes: Determining the number of times to be recommended as the current proportion control value of the matching content; Obtaining a historical integral control value and a historical ratio control value of the matching content; Determining a current score control value of the matching content according to the number of times to be recommended and the historical score control value; Determining a current differential control value of the matching content according to the number of times to be recommended and the historical proportion control value; The correction value of the matching content is determined according to the current proportional control value, the current integral control value and the current differential control value of the matching content.
3. The content recommendation method according to claim 2, characterized in that: Before determining the number of times to be recommended as the current proportion control value of the matching content, the method further includes: Get the preset mapping relationship between time and number of recommendations; According to the preset mapping relationship, determine the target number of recommendations corresponding to the current time; Obtaining the number of times the matching content has been recommended; The number of times the matching content needs to be recommended is determined according to the target number of times of recommendation and the number of times of recommendation.
4. The content recommendation method according to claim 3, characterized in that: The obtaining of the historical integral control value and the historical proportion control value of the matching content includes: According to the preset mapping relationship, determine the number of historical target recommendations corresponding to the historical time; Obtain the historical number of times the matching content has been recommended; Determine the historical number of times the matching content is to be recommended based on the historical number of times the target is recommended and the historical number of times the content has been recommended; According to the historical number of times to be recommended, a historical integral control value and a historical proportion control value of the matching content are determined.
5. The content recommendation method according to any one of claims 1 to 4, characterized in that: After determining the first target recommended content from the matching content according to the revised score of the matching content, the method further includes: Obtaining a second object feature vector of the object to be recommended; Determining a target object cluster vector corresponding to the second object feature vector according to a preset mapping relationship between the object feature vector and the object cluster vector, wherein the object cluster vector is obtained by clustering the object feature vectors corresponding thereto; Determining a target content vector corresponding to the target object cluster vector according to a preset mapping relationship between the object cluster vector and the content vector; Determining the content corresponding to the target content vector as second target recommended content; Determining third target recommended content from the first target recommended content and the second target recommended content; Recommend the third target recommended content to the object to be recommended.
6. The content recommendation method according to claim 5, characterized in that: Before obtaining the second object feature vector of the object to be recommended, the method further includes: Acquire second object feature vectors of multiple objects to be matched, to obtain multiple object feature vectors to be matched; Clustering a plurality of feature vectors of the objects to be matched to obtain a plurality of object cluster vectors; The to-be-matched object feature vector obtained by clustering each of the object cluster vectors is determined as the to-be-matched object feature vector corresponding to each of the object cluster vectors, and a preset mapping relationship between the object feature vector and the object cluster vector is obtained.
7. The content recommendation method according to claim 6, characterized in that: After clustering the feature vectors of the objects to be matched to obtain a plurality of object cluster vectors, the method further includes: Obtain multiple content feature vectors to be matched; Pairing a plurality of to-be-matched content feature vectors with a plurality of object cluster vectors one by one to obtain a plurality of vector pairs, wherein a vector pair includes a to-be-matched content feature vector and an object cluster vector; Determine the similarity between the to-be-matched content feature vector and the object cluster vector in each of the vector pairs, and obtain the similarity corresponding to each of the vector pairs; The object cluster vectors in each vector pair corresponding to the similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector.
8. The content recommendation method according to claim 7, characterized in that: The object cluster vectors in each vector pair corresponding to the similarity are traversed in descending order of similarity to determine the object cluster vector corresponding to each content feature vector to be matched, and obtain a preset mapping relationship between the object cluster vector and the content feature vector, including: The object cluster vectors in the content vector pair corresponding to each similarity are traversed in descending order of similarity, and it is determined whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches a preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches a preset number of object cluster vectors; If so, the target object cluster vector is determined as the object cluster vector corresponding to the target advertisement feature vector to be matched, the object cluster vectors in the next vector pair are traversed continuously, and the step of returning to determine whether the number of advertisement feature vectors to be matched corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target content feature vector to be matched in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors; If not, continue to traverse the object cluster vectors in the next vector pair, and return to the step of determining whether the number of to-be-matched content feature vectors corresponding to the traversed target object cluster vectors reaches the preset number of content vectors, and whether the number of object cluster vectors corresponding to the target to-be-matched content feature vectors in the vector pair where the traversed target object cluster vector is located reaches the preset number of object cluster vectors; When the preset traversal end condition is met, the traversal is stopped to obtain the preset mapping relationship between the object cluster vector and the content feature vector.
9. The content recommendation method according to claim 6, characterized in that: Before obtaining the second object feature vectors of the plurality of objects to be matched, the method further comprises: Obtain content revenues corresponding to multiple candidate objects respectively; A preset proportion of candidate objects are selected from the plurality of candidate objects in the order of the content revenue from large to small as objects to be matched, thereby obtaining a plurality of objects to be matched.
10. A content recommendation device, characterized in that: include: A vector acquisition module, used to acquire a first object feature vector of an object to be recommended; A score determination module, used to determine matching content where the first content feature vector matches the first object feature vector, and a matching score thereof; A correction value determination module, used to determine the correction value of the matching content according to the number of times the matching content is to be recommended; A score correction module, used to correct the matching score of the matching content according to the correction value of the matching content to obtain the corrected score of the matching content; The content determination module is used to determine first target recommended content from the matching content according to the revised score of the matching content.
11. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the content recommendation method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the content recommendation method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The computer program product stores a computer program, and the computer program is suitable for being loaded by a processor to execute the content recommendation method according to any one of claims 1 to 9.
Citation Information
Cited By
Object recommendation method, device and system, computing equipment and storage medium
CN119917749A
