Personalized click-through rate prediction method, device and readable storage medium
By calculating the balance factor and updating the data pool in real time in the personalized click-through rate prediction method in the field of financial technology, the problem of low accuracy in message click-through rate prediction is solved and the accuracy and stability of the prediction are improved.
Patent Information
- Application Number
- CN202010128117.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-02-28
AI Technical Summary
In the existing technology, the accuracy of message click-through rate prediction is low. Especially when the message exposure is low, the prediction strategy is easy to fluctuate, resulting in inaccurate click-through rate prediction.
The personalized click-through rate prediction method is adopted to obtain the prediction request information, retrieve the candidate messages in the preset data pool, calculate the balance factor, and predict the personalized click-through rate based on the balance factor to avoid excessive shock of the message prediction strategy and update the data pool in real time. to keep forecasting.
It improves the accuracy of message click-through rate prediction, avoids prediction inaccuracies due to low exposure, and enhances the stability of click-through rate prediction.
Smart Images

Figure CN111311015B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of message optimization in financial technology (Fintech), and in particular to a personalized click-through rate prediction method, device and readable storage medium. Background Art
[0002] With the continuous development of financial technology, especially Internet technology finance, more and more technologies (such as distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, but the financial industry also puts forward higher requirements on technology, such as higher requirements on the distribution of corresponding to-do items in the financial industry.
[0003] With the continuous development of computer software and artificial intelligence, the application fields of artificial intelligence are becoming more and more extensive. At present, in the message field, the click rate of messages is usually predicted based on historical data, and then the messages with higher click rates are pushed to users. However, historical data often have a lag in the time dimension, which leads to the current message click rate prediction strategy cannot accurately reflect the current user's click tendency. The estimated click rate has a time deviation, which leads to a low accuracy in the message click rate prediction. In addition, in the early stage of message click rate prediction, the message prediction strategy is usually too volatile due to the low exposure of the message, which further reduces the accuracy of the message click rate prediction. Therefore, there is a technical problem of low accuracy in message click rate prediction in the prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a personalized click-through rate prediction method, device and readable storage medium, aiming to solve the technical problem of low accuracy of message click-through rate prediction in the prior art.
[0005] To achieve the above object, the present application provides a personalized click-through rate prediction method, which is applied to a personalized click-through rate real-time prediction device, and the personalized click-through rate prediction method includes:
[0006] Obtain prediction request information, and retrieve each to-be-selected message corresponding to the prediction request information in a preset data pool;
[0007] The balance factor corresponding to each of the to-be-selected messages is calculated, and the personalized click rate corresponding to each of the to-be-selected messages is predicted based on the balance factor.
[0008] Optionally, the step of calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors includes:
[0009] Acquire exposure data corresponding to each of the to-be-selected messages, wherein the exposure data includes exposure clicks and exposure non-clicks;
[0010] Calculating each of the balance factors based on each of the exposure unclicked amounts and a preset exposure threshold;
[0011] Based on each of the balancing factors, each of the exposure click volumes and each of the exposure non-click volumes, each of the personalized click rates is calculated using a preset click rate calculation formula.
[0012] Optionally, the step of calculating each of the balance factors based on the exposure unclick amount and a preset exposure threshold comprises:
[0013] Calculate the difference between each of the exposure unclicked amounts and the preset exposure threshold to obtain a balance factor index set corresponding to each of the differences;
[0014] The maximum value is selected from each of the balance factor index sets as the balance factor index, and each of the balance factor indexes is substituted into a preset balance factor calculation formula to calculate each of the balance factors.
[0015] Optionally, after the step of calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors, the following steps are included:
[0016] Based on the personalized click-through rates, a target push message is selected from the messages to be selected for push exposure, and push exposure results corresponding to the target push messages are collected;
[0017] Based on each of the push exposure results, the preset data pool is updated in real time, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool after real-time update.
[0018] Optionally, the step of selecting a target push message from each to-be-selected message for push exposure based on each personalized click-through rate includes:
[0019] Based on the personalized click-through rates, the messages to be selected are sorted to obtain a list of messages to be selected;
[0020] One or more target push messages are selected from the list of messages to be selected, and each of the target push messages is pushed and exposed on its corresponding preset message platform.
[0021] Optionally, the preset data pool includes exposure data corresponding to one or more of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks.
[0022] The step of updating the preset data pool in real time based on each of the pushed exposure results includes:
[0023] Determine the type of each of the pushed exposure results, and if the pushed exposure result belongs to a preset first type result, update the exposure click amount corresponding to the pushed exposure result;
[0024] If the pushed exposure result belongs to the preset second type result, the exposure unclicked amount corresponding to the pushed exposure result is updated.
[0025] Optionally, the prediction request information includes one or more user feature codes, one or more message feature codes and one or more context feature codes.
[0026] The step of obtaining prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in a preset data pool comprises:
[0027] Acquire each of the user feature codes, each of the message feature codes, and each of the context feature codes, and combine each of the user feature codes, each of the message feature codes, and each of the context feature codes to obtain each feature code combination, wherein one of the feature code combinations includes one of the user feature codes, one of the message feature codes, and one of the context feature codes;
[0028] Based on each of the feature coding combinations, each of the to-be-selected messages corresponding to each of the feature coding combinations is retrieved from the preset data pool, wherein one of the feature coding combinations corresponds to one of the to-be-selected messages.
[0029] Optionally, the prediction request information includes one or more user feature codes.
[0030] The step of obtaining the prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in the preset data pool includes:
[0031] Obtain user portrait data corresponding to each preset user to be pushed, and convert each of the user portrait data into a user feature representation matrix of a preset mode;
[0032] Based on the user feature representation matrix, clustering each of the preset users to be pushed to obtain one or more user clusters;
[0033] Based on a preset coding rule, each of the user clusters is encoded to obtain a characteristic code of each of the users.
[0034] The present application also provides a personalized click rate real-time prediction device, which is a virtual device and is applied to a personalized click rate real-time prediction device. The personalized click rate real-time prediction device includes:
[0035] A retrieval module, used to obtain prediction request information and retrieve each to-be-selected message corresponding to the prediction request information in a preset data pool;
[0036] The prediction module is used to calculate the balance factor corresponding to each of the messages to be selected, and predict the personalized click rate corresponding to each of the messages to be selected based on each of the balance factors.
[0037] Optionally, the prediction module includes:
[0038] An acquisition unit, configured to acquire exposure data corresponding to each of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks;
[0039] A first calculation unit, configured to calculate each of the balance factors based on each of the exposure unclicked amounts and a preset exposure threshold;
[0040] The second calculation unit is used to calculate each personalized click-through rate through a preset click-through rate calculation formula based on each balance factor, each exposure click amount and each exposure non-click amount.
[0041] Optionally, the first computing unit includes:
[0042] A first calculation subunit is used to calculate the difference between each of the exposure unclicked amounts and the preset exposure threshold, so as to obtain a balance factor index set corresponding to each of the differences;
[0043] The second calculation subunit is used to select the maximum value in each of the balance factor index sets as the balance factor index, and substitute each of the balance factor indexes into a preset balance factor calculation formula to calculate each of the balance factors.
[0044] Optionally, the personalized click rate real-time prediction device further includes:
[0045] A push module, configured to select a target push message from each of the to-be-selected messages for push exposure based on each of the personalized click-through rates, and collect push exposure results corresponding to each of the target push messages;
[0046] An updating module is used to update the preset data pool in real time based on each of the push exposure results, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool after real-time update.
[0047] Optionally, the push module includes:
[0048] A sorting unit, used for sorting the messages to be selected based on the personalized click-through rates to obtain a list of messages to be selected;
[0049] The push unit is used to select one or more target push messages from the list of messages to be selected, and push and expose each of the target push messages on the corresponding preset message platforms respectively.
[0050] Optionally, the update module includes:
[0051] A first updating unit, configured to determine the type of each of the pushed exposure results, and if the pushed exposure result belongs to a preset first type of result, update the exposure click amount corresponding to the pushed exposure result;
[0052] The second updating unit is used to update the exposure unclick amount corresponding to the pushed exposure result if the pushed exposure result belongs to a preset second type of result.
[0053] Optionally, the retrieval module includes:
[0054] a combining unit, configured to obtain each of the user feature codes, each of the message feature codes, and each of the context feature codes, and to combine each of the user feature codes, each of the message feature codes, and each of the context feature codes to obtain each feature code combination, wherein one of the feature code combinations includes one of the user feature codes, one of the message feature codes, and one of the context feature codes;
[0055] The retrieval unit is used to retrieve the messages to be selected corresponding to each feature coding combination in the preset data pool based on each feature coding combination, wherein one feature coding combination corresponds to one message to be selected.
[0056] Optionally, the personalized click rate real-time prediction device further includes:
[0057] A conversion module, used to obtain user portrait data corresponding to each preset user to be pushed, and convert each of the user portrait data into a user feature representation matrix of a preset mode;
[0058] A clustering module, used to cluster the preset users to be pushed based on the user feature representation matrix to obtain one or more user clusters;
[0059] The encoding module is used to encode each of the user clusters based on a preset encoding rule to obtain a characteristic code of each of the users.
[0060] The present application also provides a personalized click-through rate real-time prediction device, which is a physical device. The personalized click-through rate real-time prediction device includes: a memory, a processor, and a program of the personalized click-through rate prediction method stored in the memory and executable on the processor. When the program of the personalized click-through rate prediction method is executed by the processor, the steps of the personalized click-through rate prediction method as described above can be implemented.
[0061] The present application also provides a readable storage medium, on which is stored a program for implementing a personalized click-through rate prediction method. When the program of the personalized click-through rate prediction method is executed by a processor, the steps of the personalized click-through rate prediction method as described above are implemented.
[0062] The present application obtains prediction request information, and retrieves each to-be-selected message corresponding to the prediction request information in a preset data pool, and then calculates the balance factor corresponding to each to-be-selected message, and predicts the personalized click-through rate corresponding to each to-be-selected message based on each balance factor. That is, the present application provides a real-time prediction method for personalized click-through rate, wherein, after obtaining the prediction request information, the to-be-selected messages corresponding to the prediction request information are retrieved in the preset data pool, and then the personalized click-through rate of each to-be-selected message is predicted by calculating the balance factor, wherein, by predicting the personalized click-through rate based on the balance factor, the situation in which the message prediction strategy is too volatile and the message click-through rate prediction is inaccurate in the early stage of the message click-through rate prediction due to the low message exposure is avoided, thereby improving the accuracy of the message click-through rate prediction, and thus solving the technical problem of low accuracy of the message click-through rate prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0065] Figure 1 This is a flow chart of the first embodiment of the personalized click-through rate prediction method of the present application;
[0066] Figure 2 This is a flow chart of the second embodiment of the personalized click rate prediction method of the present application;
[0067] Figure 3This is a flow chart of the third embodiment of the personalized click rate prediction method of the present application;
[0068] Figure 4 A schematic diagram of a personalized click rate real-time prediction process in the third embodiment of the personalized click rate prediction method of the present application;
[0069] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0070] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0071] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0072] The present application embodiment provides a personalized click-through rate prediction method. In the first embodiment of the personalized click-through rate prediction method of the present application, refer to Figure 1 , the personalized click rate prediction method includes:
[0073] Step S10, obtaining prediction request information, and searching a preset data pool for each message to be selected corresponding to the prediction request information;
[0074] In this embodiment, it should be noted that the message includes an advertisement, and the prediction request information includes one or more user feature codes, one or more message feature codes, and one or more context feature codes, wherein the user feature code is obtained by encoding the user feature based on the corresponding encoding rule, the message feature code is obtained by encoding the message feature based on the corresponding encoding rule, and the context feature code is obtained by encoding the context feature based on the corresponding encoding rule, wherein the user features include user age, user hobbies, and user education, etc., the message features include message material pictures, message titles, etc., the context features include message push applications, message push exposure positions, etc., wherein the message push applications include, for example, Tencent Video, Baidu web pages, etc., the message push exposure positions include, for example, Tencent Video homepage, Baidu web page homepage, etc., and the preset data pool includes one or more messages to be selected and exposure data corresponding to each of the messages to be selected.
[0075] Obtain prediction request information, and retrieve each to-be-selected message corresponding to the prediction request information in a preset data pool. Specifically, obtain each coding combination corresponding to one or more user feature codes, one or more message feature codes and one or more context feature codes, wherein one coding combination includes one user feature code, one message feature code and one context feature code, and then based on the coding combination, retrieve the to-be-selected message corresponding to each coding combination and the exposure data corresponding to each to-be-selected message in the preset data pool.
[0076] The prediction request information includes one or more user feature codes, one or more message feature codes and one or more context feature codes.
[0077] The step of obtaining prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in a preset data pool comprises:
[0078] Step S11, obtaining each of the user feature codes, each of the message feature codes and each of the context feature codes, and combining each of the user feature codes, each of the message feature codes and each of the context feature codes to obtain each feature code combination, wherein one feature code combination includes one of the user feature codes, one of the message feature codes and one of the context feature codes;
[0079] In this embodiment, it should be noted that the coding combination is obtained by combining each of the user feature codes, each of the message feature codes and each of the context feature codes based on the purpose of message push exposure. For example, assuming that the purpose of message push is to push message a, message b and message c to category A users respectively, and message a and message b are pushed and exposed on the homepage of Tencent Video Sports Program, message c is pushed and exposed on the homepage of Tencent Video Variety Show, and the user feature code corresponding to user A is 001, the message feature code corresponding to message a is 11111, the message feature code corresponding to message b is 11112, the message feature code corresponding to message c is 11113, the context feature code corresponding to the homepage of Tencent Video Sports Program is 000001, and the context feature code corresponding to the homepage of Tencent Video Variety Show is 000002, then the coding combinations are (001, 11111, 000001), (001, 11112, 000001), (001, 11113, 000002) respectively.
[0080] Step S12: based on each of the feature coding combinations, searching the preset data pool for each of the to-be-selected messages corresponding to each of the feature coding combinations, wherein one of the feature coding combinations corresponds to one of the to-be-selected messages.
[0081] In this embodiment, based on each of the feature coding combinations, each to-be-selected message corresponding to each of the feature coding combinations is retrieved in the preset data pool, specifically, based on each of the feature coding combinations, the to-be-selected message number corresponding to each of the feature coding combinations is retrieved in the preset data pool, and based on each of the to-be-selected message numbers, each to-be-selected message and the exposure data corresponding to each to-be-selected message are extracted.
[0082] The prediction request information includes one or more user feature codes.
[0083] The step of obtaining the prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in the preset data pool includes:
[0084] Step A10, obtaining user portrait data corresponding to each preset user to be pushed, and converting each user portrait data into a user feature representation matrix of a preset mode;
[0085] In this embodiment, it should be noted that the preset mode includes a One-Hot encoding mode.
[0086] Obtain user portrait data corresponding to each preset user to be pushed, and convert each user portrait data into a user feature representation matrix of a preset mode. Specifically, obtain user portrait data corresponding to each preset user to be pushed, and convert each user portrait data into a user feature representation matrix based on the One-Hot encoding rule, wherein each column of the user feature representation matrix corresponds to a user, and each column of the user feature representation matrix corresponds to a feature, wherein each column of the user feature representation matrix contains one or more 0s or 1s, wherein 0 indicates that the user corresponding to the column does not have the feature, and 1 indicates that the user corresponding to the column has the feature.
[0087] Step A20, clustering each of the preset users to be pushed based on the user feature representation matrix to obtain one or more user clusters;
[0088] In this embodiment, it should be noted that the clustering algorithms used for clustering include K-Means, agglomerative hierarchical clustering algorithm, and the like.
[0089] Based on the user feature representation matrix, each of the preset users to be pushed is clustered to obtain one or more user clustering clusters. Specifically, based on the user feature representation matrix, the user similarity between each of the users to be pushed is calculated to divide each of the users to be pushed into one or more user clustering clusters, wherein the user similarity between each of the user clustering clusters should be lower than the inter-cluster similarity threshold, and the user similarity within each of the user clustering clusters should be higher than the intra-cluster similarity threshold.
[0090] Step A30: encoding each of the user clusters based on a preset encoding rule to obtain a characteristic code of each of the users.
[0091] In this embodiment, it should be noted that the preset encoding rule is a pre-set encoding rule and can be set by the user.
[0092] Step S20, calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors;
[0093] In this embodiment, it should be noted that there is exposure data corresponding to the message to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks, wherein the exposure clicks are the number of times the message is clicked among all exposure times, and the exposure clicks are the number of times the message is not clicked among all exposure times. For example, assuming that a message is exposed 1,000 times in total, of which 400 are clicked, then the exposure clicks are 400 and the exposure non-clicks are 600.
[0094] The balance factor is used to prevent the personalized click-through rate prediction strategy from being too volatile during exposure, thereby causing inaccurate personalized click-through rate prediction.
[0095] Calculate the balance factor corresponding to each of the messages to be selected, and predict the personalized click rate corresponding to each of the messages to be selected based on each of the balance factors. Specifically, obtain the exposure click volume and exposure non-click volume corresponding to each of the messages to be selected, and substitute the exposure non-click volume into the preset balance factor calculation formula to obtain the balance factor, wherein the preset balance factor calculation formula is as follows:
[0096] F=e Max(Threshold-β,0)
[0097] Wherein, F is the balance factor, Threshold is the exposure threshold, which can be set by the user, β is the exposure unclicked amount, Max(Threshold-β, 0) is the balance factor index, and then the exposure unclicked amount, exposure click amount and the balance factor are substituted into the preset click rate calculation formula to obtain the personalized click rate, wherein the preset click rate calculation formula is as follows:
[0098] CTR=Beta(α0+α*F, β0+β*F)
[0099] Wherein, CTR is the personalized click-through rate, Beta is the beta distribution symbol, α is the exposure click volume, β is the exposure non-click volume, F is the balance factor, α0 is the initial exposure click volume set by the user, and β0 is the initial exposure non-click volume set by the user, wherein α0 and β0 are both used to smooth the estimated value of the personalized click-through rate prediction during cold start, wherein the balance factor is used to prevent the variance of CTR from being too large when the exposure volume is low, that is, when the exposure volume is less than the preset exposure threshold, thereby causing the accuracy of the personalized click-through rate prediction to be too low, and when the exposure volume is less than the preset exposure threshold, the exposure non-click volume is less than the preset exposure threshold, and thus the balance factor index is greater than 0, and thus the balance factor is greater than 1. Based on the preset click-through rate calculation formula, if the balance factor F is greater than 1, the exposure click volume α and the exposure non-click volume β are both multiplied by F, which can reduce the variance of the personalized click-through rate CTR calculation, thereby improving the accuracy of the personalized click-through rate prediction.
[0100] This embodiment obtains prediction request information, and retrieves each to-be-selected message corresponding to the prediction request information in a preset data pool, and then calculates the balance factor corresponding to each to-be-selected message, and predicts the personalized click-through rate corresponding to each to-be-selected message based on each balance factor. That is, this embodiment provides a real-time prediction method for personalized click-through rate, wherein, after obtaining the prediction request information, each to-be-selected message corresponding to the prediction request information is retrieved in the preset data pool, and then the personalized click-through rate of each to-be-selected message is predicted by calculating the balance factor, wherein, by predicting the personalized click-through rate based on the balance factor, it avoids the situation in which the message prediction strategy is too volatile and the message click-through rate prediction is inaccurate in the early stage of the message click-through rate prediction due to the low message exposure, thereby improving the accuracy of the message click-through rate prediction, and thus solving the technical problem of low accuracy of the message click-through rate prediction.
[0101] Further, refer to Figure 2 Based on the first embodiment of the present application, in another embodiment of the present application, the step of calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors includes:
[0102] Step S21, obtaining exposure data corresponding to each of the to-be-selected messages, wherein the exposure data includes exposure clicks and exposure non-clicks;
[0103] In this embodiment, it should be noted that the exposure data is stored in the preset data pool, and the exposure data includes exposure, exposure clicks and exposure not clicks, wherein the exposure is the number of push exposures, the exposure clicks are the number of push exposures clicked by users in the exposure, and the exposure not clicks are the number of push exposures not clicked by users in the exposure, wherein the exposure is equal to the sum of the exposure clicks and the exposure not clicks.
[0104] Step S22, calculating each of the balance factors based on the exposure unclicked amount and a preset exposure threshold;
[0105] Based on the exposure amount but not clicked and the preset exposure threshold, each balance factor is calculated. Specifically, it is determined whether the exposure amount is greater than the preset exposure threshold. If the exposure amount is greater than the preset exposure threshold, the balance factor index in the preset balance factor calculation formula is set to 0, and the corresponding balance factor is calculated. If the exposure amount is less than or equal to the preset exposure threshold, the difference between the preset exposure threshold and the exposure amount but not clicked is calculated, and the difference is used as the balance factor index to calculate the corresponding balance factor.
[0106] The step of calculating each of the balance factors based on the exposure unclicked amount and the preset exposure threshold comprises:
[0107] Step S221, calculating the difference between each of the exposure unclicked amounts and the preset exposure threshold, to obtain a balance factor index set corresponding to each of the differences;
[0108] In this embodiment, it should be noted that the balance factor index set is (Threshold-β, 0), wherein Threshold is the preset exposure threshold, β is the exposure-unclick amount, and one exposure-unclick amount corresponds to one balance factor index set.
[0109] Step S222: Select the maximum value in each of the balance factor index sets as the balance factor index, and substitute each of the balance factor indexes into a preset balance factor calculation formula to calculate each of the balance factors.
[0110] In this embodiment, it should be noted that the preset balance factor calculation formula is as follows:
[0111] F=e Max(Threshold-β,0)
[0112] Wherein, F is the balance factor, Threshold is the exposure threshold, which can be set by the user, β is the exposure but not clicked amount, and Max(Threshold-β, 0) is the balance factor index.
[0113] Step S23, based on each of the balance factors, each of the exposure clicks and each of the exposure non-clicks, calculate each of the personalized click rates using a preset click rate calculation formula.
[0114] In this embodiment, based on each of the balancing factors, each of the exposure clicks, and each of the exposure non-clicks, each of the personalized click rates is calculated using a preset click rate calculation formula. Specifically, the initial exposure clicks and the initial exposure non-clicks are obtained, and then the initial exposure clicks, the initial exposure non-clicks, each of the balancing factors, each of the exposure clicks, and each of the exposure non-clicks are respectively substituted into a preset click rate calculation formula to calculate each of the personalized click rates, wherein the preset click rate calculation formula is as follows:
[0115] CTR=Beta(α0+α*F, β0+β*F)
[0116] Wherein, CTR is the personalized click-through rate, Beta is the beta distribution symbol, α is the exposure click volume, β is the exposure non-click volume, F is the balance factor, α0 is the initial exposure click volume set by the user, and β0 is the initial exposure non-click volume set by the user, wherein α0 and β0 are both used to smooth the estimated value of the personalized click-through rate prediction during cold start, wherein the balance factor is used to prevent the variance of CTR from being too large when the exposure volume is low, that is, when the exposure volume is less than the preset exposure threshold, thereby causing the accuracy of the personalized click-through rate prediction to be too low, and when the exposure volume is less than the preset exposure threshold, the exposure non-click volume is less than the preset exposure threshold, and thus the balance factor index is greater than 0, and thus the balance factor is greater than 1. Based on the preset click-through rate calculation formula, if the balance factor F is greater than 1, the exposure click volume α and the exposure non-click volume β are both multiplied by F, which can reduce the variance of the personalized click-through rate CTR calculation, thereby improving the accuracy of the personalized click-through rate prediction.
[0117] This embodiment obtains the exposure data corresponding to each of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks, and then calculates each of the balance factors based on each of the exposure non-clicks and the preset exposure threshold, and then calculates each of the personalized click-through rates based on each of the balance factors, each of the exposure clicks and each of the exposure non-clicks by using a preset click-through rate calculation formula. That is, after obtaining the exposure data corresponding to each of the messages to be selected, the exposure data includes exposure clicks and exposure non-clicks, and then calculates each of the balance factors based on each of the exposure non-clicks and the preset exposure threshold, and then calculates each of the personalized click-through rates based on each of the balance factors, each of the exposure clicks and each of the exposure non-clicks by using a preset click-through rate calculation formula. That is, the present application provides a method for calculating the personalized click-through rate by constructing a balance factor, and then when the exposure is low, the exposure clicks and the exposure non-clicks in the preset click-through rate calculation formula are multiplied by the balance factor, and because when the exposure is low, the balance factor is greater than 1, thereby reducing the variance in the personalized click-through rate calculation, avoiding the situation where the message click-through rate strategy is too volatile, which in turn leads to a low predicted click-through rate of the message click-through rate, thereby improving the accuracy of the message click-through rate prediction, and thus laying a foundation for solving the technical problem of low accuracy in message click-through rate prediction.
[0118] Further, refer to Figure 3 Based on the first embodiment and the second embodiment of the present application, in another embodiment of the present application, the step of calculating the balance factor corresponding to each of the to-be-selected messages and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors includes:
[0119] Step S30, based on each of the personalized click-through rates, selecting a target push message from each of the to-be-selected messages for push exposure, and collecting push exposure results corresponding to each of the target push messages;
[0120] In this embodiment, based on each of the personalized click-through rates, a target push message is selected from each of the messages to be selected for push exposure, and the push exposure results corresponding to each of the target push messages are collected. Specifically, from each of the personalized click-through rates, one or more target click-through rates that exceed a preset click-through rate threshold are selected, and then a target push message corresponding to each of the target click-through rates is selected from each of the messages to be selected, and then based on a preset push exposure plan, each of the target push messages is pushed for exposure, and the push exposure results corresponding to each of the target push messages are collected. For example, assuming that the preset push exposure plan is to push and expose target push message A to user a on the homepage of the Tencent Video Sports Program Column, then the target push message is pushed and exposed on the homepage of the Tencent Video Sports Program Column of user a, and if the user clicks on the target push message within a preset time period, then the push exposure result is the cumulative exposure click amount plus 1, and if the user does not click on the target push message within the preset time period, then the push exposure result is the cumulative exposure non-click amount plus 1.
[0121] The step of selecting a target push message from each to-be-selected message for push exposure based on each personalized click-through rate includes:
[0122] Step S31, sorting the messages to be selected based on the personalized click-through rates to obtain a list of messages to be selected;
[0123] In this embodiment, based on each of the personalized click-through rates, each of the messages to be selected is sorted to obtain a list of messages to be selected. Specifically, based on the size of each of the personalized click-through rates, each of the messages to be selected is sorted in order from large to small according to the personalized click-through rate to obtain a list of messages to be selected.
[0124] Step S32, selecting one or more target push messages from the list of messages to be selected, and pushing and exposing each of the target push messages on the corresponding preset message platforms.
[0125] In this embodiment, one or more target push messages are selected from the list of messages to be selected, and each of the target push messages is pushed and exposed on the corresponding preset message platforms. Specifically, based on the preset message push exposure number, a corresponding number of target push messages with the top personalized click-through rate are extracted from the list of messages to be selected, and each of the target push messages is pushed and exposed on the corresponding preset message platforms, wherein the preset message platforms include Tencent Video, Baidu Web Page, etc.
[0126] Step S40, based on each of the push exposure results, the preset data pool is updated in real time, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool updated in real time.
[0127] In this embodiment, based on each of the push exposure results, the preset data pool is updated in real time, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool after real-time update. Specifically, the type of each of the push exposure results is judged. If the push exposure result belongs to the first type, it indicates that the user clicks on the target push message corresponding to the push exposure result, and then the corresponding exposure click amount in the preset data pool is accumulated by 1. If the push exposure result belongs to the second type, it indicates that the user does not click on the target push message corresponding to the push exposure result, and then the corresponding exposure non-click amount in the preset data pool is accumulated by 1, thereby realizing real-time update of the preset data pool, and then based on the preset data pool after real-time update, the next real-time prediction of the personalized click-through rate and the real-time update of the preset data pool are performed again, thereby realizing the purpose of predicting the personalized click-through rate based on real-time data.
[0128] In step S40, the preset data pool includes exposure data corresponding to one or more of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks.
[0129] The step of updating the preset data pool in real time based on each of the pushed exposure results includes:
[0130] Step S41, determining the type of each pushed exposure result, and if the pushed exposure result belongs to a preset first type result, updating the exposure click amount corresponding to the pushed exposure result;
[0131] In this embodiment, it should be noted that the push exposure result includes whether the user clicks on the corresponding target push message. For example, the user evaluates the target push message, and the evaluation content indicates that he likes the product in the target push message very much. At this time, the push exposure result is the user's evaluation content, that is, the push exposure result belongs to the preset first type result.
[0132] Determine the type of each of the push exposure results. If the push exposure result belongs to the preset first type result, update the exposure click volume corresponding to the push exposure result. Specifically, judge the type of each of the push exposure results. If the push exposure result belongs to the preset first type result, it indicates that the push exposure result is that the user clicks on the corresponding target push message, and then accumulate 1 for the exposure click volume corresponding to the push exposure result to update the preset data pool.
[0133] Step S42: if the pushed exposure result belongs to the preset second type result, the exposure unclicked amount corresponding to the pushed exposure result is updated.
[0134] In this embodiment, if the push exposure result belongs to the preset second type result, the exposure unclick amount corresponding to the push exposure result is updated. Specifically, if the push exposure result belongs to the preset second type result, it indicates that the push exposure result is that the user did not click on the corresponding target push message, and then the exposure unclick amount corresponding to the push exposure result is accumulated by 1 to update the preset data pool, wherein the message includes an advertisement, such as Figure 4 The figure shows a schematic diagram of the real-time prediction process of personalized click-through rate in the present implementation, wherein the request is the prediction request corresponding to the prediction request information, the user clustering is the user feature corresponding to the user feature code, the material number is the advertising feature of the message feature code, the display position is the context feature corresponding to the context feature code, arm1 to armN are all the advertisement numbers to be selected, cluster+adid+adpos is the feature code combination, the data pool is the preset data pool, CTR is the personalized click-through rate, the creative sorting process is the process of selecting the target push advertisement, the advertising bidding is the process of bidding for advertising space with other companies, if the bidding is successful, the advertisement push exposure is carried out, if the bidding fails, the personalized click-through rate prediction process is terminated.
[0135] This embodiment selects a target push message from each to-be-selected message for push exposure based on each personalized click-through rate, collects push exposure results corresponding to each target push message, and then updates the preset data pool in real time based on each push exposure result, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool updated in real time. That is, this embodiment selects a target push message from each to-be-selected message for push exposure based on each personalized click-through rate, and updates the preset data pool in real time by collecting push exposure results, and then based on the real-time updated data pool, the real-time update of the personalized click-through rate and the real-time update of the preset data pool can be continuously performed. That is, the present embodiment collects message push results each time a message is pushed, and then the message push results are used to perform real-time updates of the preset data pool, and then a real-time prediction of personalized click-through rate can be performed based on the real-time updated preset data pool, thereby avoiding the prediction of message click-through rate based on data with time lag, which leads to inaccurate message click-through rate prediction, thereby improving the accuracy of message click-through rate prediction, and thus solving the technical problem of low accuracy of message click-through rate prediction.
[0136] Reference Figure 5 , Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0137] like Figure 5 As shown, the personalized click rate real-time prediction device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0138] Optionally, the personalized click rate real-time prediction device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0139] Those skilled in the art will understand that Figure 5The structure of the personalized click rate real-time prediction device shown in the figure does not constitute a limitation on the personalized click rate real-time prediction device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0140] like Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, and a personalized click rate real-time prediction program. The operating system is a program that manages and controls the hardware and software resources of the personalized click rate real-time prediction device, and supports the operation of the personalized click rate real-time prediction program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the personalized click rate real-time prediction system.
[0141] exist Figure 5 In the personalized click rate real-time prediction device shown, the processor 1001 is used to execute the personalized click rate real-time prediction program stored in the memory 1005 to implement the steps of any of the above-mentioned personalized click rate prediction methods.
[0142] The specific implementation of the personalized click-through rate real-time prediction device of the present application is basically the same as the embodiments of the above-mentioned personalized click-through rate prediction method, and will not be repeated here.
[0143] The embodiment of the present application further provides a personalized click rate real-time prediction device, which is applied to a personalized click rate real-time prediction device, and the personalized click rate real-time prediction device includes:
[0144] A retrieval module, used to obtain prediction request information and retrieve each to-be-selected message corresponding to the prediction request information in a preset data pool;
[0145] The prediction module is used to calculate the balance factor corresponding to each of the messages to be selected, and predict the personalized click rate corresponding to each of the messages to be selected based on each of the balance factors.
[0146] Optionally, the prediction module includes:
[0147] An acquisition unit, configured to acquire exposure data corresponding to each of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks;
[0148] A first calculation unit, configured to calculate each of the balance factors based on each of the exposure unclicked amounts and a preset exposure threshold;
[0149] The second calculation unit is used to calculate each personalized click-through rate through a preset click-through rate calculation formula based on each balance factor, each exposure click amount and each exposure non-click amount.
[0150] Optionally, the first computing unit includes:
[0151] A first calculation subunit is used to calculate the difference between each of the exposure unclicked amounts and the preset exposure threshold, so as to obtain a balance factor index set corresponding to each of the differences;
[0152] The second calculation subunit is used to select the maximum value in each of the balance factor index sets as the balance factor index, and substitute each of the balance factor indexes into a preset balance factor calculation formula to calculate each of the balance factors.
[0153] Optionally, the personalized click rate real-time prediction device further includes:
[0154] A push module, configured to select a target push message from each of the to-be-selected messages for push exposure based on each of the personalized click-through rates, and collect push exposure results corresponding to each of the target push messages;
[0155] An updating module is used to update the preset data pool in real time based on each of the push exposure results, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool after real-time update.
[0156] Optionally, the push module includes:
[0157] A sorting unit, used for sorting the messages to be selected based on the personalized click-through rates to obtain a list of messages to be selected;
[0158] The push unit is used to select one or more target push messages from the list of messages to be selected, and push and expose each of the target push messages on the corresponding preset message platforms respectively.
[0159] Optionally, the update module includes:
[0160] A first updating unit, configured to determine the type of each of the pushed exposure results, and if the pushed exposure result belongs to a preset first type of result, update the exposure click amount corresponding to the pushed exposure result;
[0161] The second updating unit is used to update the exposure unclick amount corresponding to the pushed exposure result if the pushed exposure result belongs to a preset second type of result.
[0162] Optionally, the retrieval module includes:
[0163] a combining unit, configured to obtain each of the user feature codes, each of the message feature codes, and each of the context feature codes, and to combine each of the user feature codes, each of the message feature codes, and each of the context feature codes to obtain each feature code combination, wherein one of the feature code combinations includes one of the user feature codes, one of the message feature codes, and one of the context feature codes;
[0164] The retrieval unit is used to retrieve the messages to be selected corresponding to each feature coding combination in the preset data pool based on each feature coding combination, wherein one feature coding combination corresponds to one message to be selected.
[0165] Optionally, the personalized click rate real-time prediction device further includes:
[0166] A conversion module, used to obtain user portrait data corresponding to each preset user to be pushed, and convert each of the user portrait data into a user feature representation matrix of a preset mode;
[0167] A clustering module, used to cluster the preset users to be pushed based on the user feature representation matrix to obtain one or more user clusters;
[0168] The encoding module is used to encode each of the user clusters based on a preset encoding rule to obtain a characteristic code of each of the users.
[0169] The specific implementation of the personalized click-through rate real-time prediction device of the present application is basically the same as the embodiments of the above-mentioned personalized click-through rate prediction method, and will not be repeated here.
[0170] An embodiment of the present application provides a readable storage medium, and the readable storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the personalized click-through rate prediction methods described above.
[0171] The specific implementation of the readable storage medium of the present application is basically the same as the embodiments of the above-mentioned personalized click-through rate prediction method, and will not be repeated here.
[0172] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A personalized click-through rate prediction method, characterized in that: The personalized click rate prediction method comprises: Obtain prediction request information, and retrieve each to-be-selected message corresponding to the prediction request information in a preset data pool; Calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors; The step of calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors includes: Acquire exposure data corresponding to each of the to-be-selected messages, wherein the exposure data includes exposure, exposure clicks, and exposure non-clicks; Calculate each of the balance factors based on the exposure amount but not clicked and the preset exposure threshold, wherein the balance factor is used to reduce the variance in the calculation of the personalized click rate when the exposure amount is less than the preset exposure threshold; Based on each of the balancing factors, each of the exposure clicks and each of the exposure non-clicks, the personalized click rates are calculated using a preset click rate calculation formula; The step of calculating each of the balance factors based on each of the exposure unclicked amounts and a preset exposure threshold comprises: Calculate the difference between each of the exposure unclicked amounts and the preset exposure threshold to obtain a balance factor index set corresponding to each of the differences; The maximum value is selected from each of the balance factor index sets as the balance factor index, and each of the balance factor indexes is substituted into a preset balance factor calculation formula to calculate each of the balance factors.
2. The personalized click rate prediction method according to claim 1, characterized in that: The step of calculating the balance factor corresponding to each of the to-be-selected messages, and predicting the personalized click rate corresponding to each of the to-be-selected messages based on each of the balance factors includes: Based on the personalized click-through rates, a target push message is selected from the messages to be selected for push exposure, and push exposure results corresponding to the target push messages are collected; Based on each of the push exposure results, the preset data pool is updated in real time, so as to continuously perform real-time prediction of the personalized click-through rate and real-time update of the preset data pool based on the preset data pool after real-time update.
3. The personalized click rate prediction method according to claim 2, characterized in that: The step of selecting a target push message from each to-be-selected message for push exposure based on each personalized click-through rate includes: Based on the personalized click-through rates, the messages to be selected are sorted to obtain a list of messages to be selected; One or more target push messages are selected from the list of messages to be selected, and each of the target push messages is pushed and exposed on its corresponding preset message platform.
4. The personalized click rate prediction method according to claim 2, characterized in that: The preset data pool includes exposure data corresponding to one or more of the messages to be selected, wherein the exposure data includes exposure clicks and exposure non-clicks. The step of updating the preset data pool in real time based on each of the pushed exposure results includes: Determine the type of each of the pushed exposure results, and if the pushed exposure result belongs to a preset first type result, update the exposure click amount corresponding to the pushed exposure result; If the pushed exposure result belongs to the preset second type of result, the exposure unclicked amount corresponding to the pushed exposure result is updated.
5. The personalized click rate prediction method according to claim 1, characterized in that: The prediction request information includes one or more user feature codes, one or more message feature codes and one or more context feature codes, The step of obtaining prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in a preset data pool comprises: Acquire each of the user feature codes, each of the message feature codes, and each of the context feature codes, and combine each of the user feature codes, each of the message feature codes, and each of the context feature codes to obtain each feature code combination, wherein one of the feature code combinations includes one of the user feature codes, one of the message feature codes, and one of the context feature codes; Based on each of the feature coding combinations, each of the to-be-selected messages corresponding to each of the feature coding combinations is retrieved from the preset data pool, wherein one of the feature coding combinations corresponds to one of the to-be-selected messages.
6. The personalized click rate prediction method according to claim 1, characterized in that: The prediction request information includes one or more user feature codes, The step of obtaining the prediction request information and retrieving each to-be-selected message corresponding to the prediction request information in the preset data pool includes: Obtain user portrait data corresponding to each preset user to be pushed, and convert each of the user portrait data into a user feature representation matrix of a preset mode; Based on the user feature representation matrix, clustering each of the preset users to be pushed to obtain one or more user clusters; Based on a preset coding rule, each of the user clusters is encoded to obtain a characteristic code of each of the users.
7. A personalized click rate real-time prediction device, characterized in that: The personalized click rate real-time prediction device includes: a memory, a processor, and a program stored in the memory for implementing the personalized click rate prediction method. The memory is used to store a program for implementing a personalized click rate prediction method; The processor is used to execute a program for implementing the personalized click rate prediction method to implement the steps of the personalized click rate prediction method as described in any one of claims 1 to 6.
8. A readable storage medium, characterized in that: The readable storage medium stores a program for implementing a personalized click-through rate prediction method, and the program for implementing a personalized click-through rate prediction method is executed by a processor to implement the steps of the personalized click-through rate prediction method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Multimedia resource recommendation method and device and storage medium
CN109189951A
