Interest prediction model training method, content recommendation method and device
Through the analysis of user historical interaction records and verification of interest, targeted content recommendations are pushed, solving the problem of users abandoning dramas and improving user experience.
Patent Information
- Application Number
- CN202210016018.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-07
AI Technical Summary
Different users' satisfaction with the same episode varies due to differences in entertainment time and episodes, leading users to abandon the show. The platform's use of the same processing method may cause user inconvenience and the inability to discover other episodes in a timely manner.
By obtaining the user's historical interaction records, extracting interaction features and calculating interest, using training labels to verify the interest prediction model, and then pushing targeted content recommendations based on the user's interest.
It achieves accurate prediction of user interests and content recommendations, reduces users’ abandonment of dramas, and improves user experience.
Smart Images

Figure CN114358314B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a training method for an interest prediction model, a content recommendation method and a device. Background Art
[0002] In actual applications, users will choose the dramas they are interested in based on their personal preferences. However, different users have different available time for entertainment, or different dramas may be influenced by factors such as subject matter, production, and cast, which may lead to different users having different satisfaction levels with the same drama, which may lead to users abandoning the drama.
[0003] However, different users have different reasons for abandoning a show. If the platform adopts the same handling method, it may cause inconvenience to users. For example, if a user is not interested in a show, if the platform continues to remind the user to watch the show, or still displays the show in a more prominent position, it may disturb the user and prevent the user from discovering other shows, causing inconvenience to the user. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a training method for an interest prediction model, a content recommendation method and a device.
[0005] In a first aspect, the present application provides a method for training an interest prediction model, comprising:
[0006] Obtain historical interaction records of sample users for the sample content collection;
[0007] Based on the historical interaction records, obtaining interaction features of the sample user on the sample content collection;
[0008] Outputting the interest of the sample user in the sample content collection based on the computational processing of the interaction feature;
[0009] The interest level is verified using training labels corresponding to the sample content collection. If the verification passes, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
[0010] Optionally, the interaction features of the sample users with the sample content collection include: browsing time and browsing progress of the sample users with respect to the sample content collection, browsing time and browsing progress of the sample users with respect to non-sample content collections, and user portraits of the sample users.
[0011] Optionally, the method further comprises:
[0012] Based on the interaction features, using a classifier to obtain a parameter of the degree of interaction of the sample user with respect to the sample content collection;
[0013] If the interaction degree parameter meets the preset condition, a step of outputting the interest of the sample user in the sample content collection based on the operation processing of the interaction feature is performed.
[0014] Optionally, if the interaction degree parameter satisfies a preset condition, the step of performing a computational process on the interaction feature to output the interest of the sample user in the sample content collection includes:
[0015] Extracting the usage duration and / or usage frequency of the software from the interaction degree parameter;
[0016] Determine whether the usage duration of the software exceeds a preset first threshold and / or whether the usage frequency exceeds a preset second threshold;
[0017] If the usage duration of the software exceeds a preset first threshold and / or the usage frequency exceeds a preset second threshold, it is determined that the interaction degree parameter meets a preset condition.
[0018] Optionally, the collection period of the historical interaction records is within a preset time period closest to the current moment.
[0019] Optionally, outputting the interest of the sample user in the sample content collection based on the computational processing of the interaction feature includes:
[0020] If within the preset time period, the browsing time of the sample user on the target content collection is less than the first preset value, and the browsing time on the non-target content collection is greater than the second preset value, it is determined that the interest of the sample user in the sample content collection is the first interest type;
[0021] Alternatively, if within a preset time period, the browsing time of the sample user on the target content collection is less than a third preset value, and the last browsing time of the target content collection is greater than a fourth preset value, it is determined that the interest of the sample user in the sample content collection is a second interest type;
[0022] Alternatively, if within a preset time period, the browsing time of the sample user on the target content collection is greater than a fifth preset value, determining the third interest type of the sample user's interest in the sample content collection;
[0023] Alternatively, within a preset time period, the browsing time of the sample user on the sample content collection is less than a sixth preset value and the last browsing time on the sample content collection is less than a seventh preset value, and it is determined that the interest of the sample user in the sample content collection is a fourth interest type;
[0024] Alternatively, within the preset time period, the sample user's browsing time for the sample content collection is greater than an eighth preset value and has finished viewing the latest content in the sample content collection, and it is determined that the sample user's interest in the sample content collection is the fifth interest type.
[0025] In a second aspect, the present application provides a content recommendation method, comprising:
[0026] For a target user, determine the interest of the target user in the target content collection using the interest prediction model described in the first aspect;
[0027] Based on the interest level, determining a recommendation strategy for recommending a target content collection to a target user;
[0028] Push content recommendation information for the target content collection to the target user according to the recommendation strategy.
[0029] Optionally, pushing content recommendation information for the target content collection to the target user according to the recommendation strategy includes:
[0030] When the target content collection is updated, sending recommendation information of the target content collection to a client device corresponding to the target user;
[0031] or,
[0032] In response to an access instruction of an associated page of the target content collection, recommendation information of the target content collection is sent to a client device corresponding to the target user.
[0033] In a third aspect, the present application provides a training device for an interest prediction model, comprising:
[0034] A first acquisition module is used to acquire historical interaction records of sample users for a sample content collection;
[0035] A second acquisition module, configured to acquire, based on the historical interaction records, interaction features of the sample user on the sample content collection;
[0036] An output module, configured to output the interest of the sample user in the sample content collection based on the computational processing of the interaction feature;
[0037] The verification module is used to verify the interest level using the training labels corresponding to the sample content collection. If the verification is successful, it is determined that the interest prediction model has converged to obtain a trained interest prediction model.
[0038] In a fourth aspect, the present application provides a content recommendation device, comprising:
[0039] A first determination module, configured to determine, for a target user, the interest level of the target user in the target content collection using the training device for the interest prediction model as claimed in claim 8;
[0040] A second determination module is used to determine a recommendation strategy for recommending a target content collection to a target user based on the interest level;
[0041] A push module is used to push content recommendation information for the target content collection to the target user according to the recommendation strategy.
[0042] In a fifth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0043] Memory, used to store computer programs;
[0044] The processor is used to implement the interest prediction model training method described in the first aspect or the content recommendation method described in the second aspect when executing the program stored in the memory.
[0045] In a sixth aspect, the present application provides a computer-readable storage medium, on which a training method for an interest prediction model is stored, and when the training method for an interest prediction model is executed by a processor, the steps of the training method for an interest prediction model described in the first aspect are implemented; or, the computer-readable storage medium stores a program for a content recommendation method, and when the program for the content recommendation method is executed by a processor, the steps of the content recommendation method described in the second aspect are implemented.
[0046] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0047] The embodiment of the present invention first obtains the historical interaction records of sample users for a sample content collection, then obtains the interaction features of the sample users for the sample content collection based on the historical interaction records, and then outputs the interest level of the sample users for the sample content collection based on the computational processing of the interaction features. Finally, the interest level can be verified using the training labels corresponding to the sample content collection. If the verification passes, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
[0048] The embodiment of the present invention uses the interaction features in the historical interaction records of sample users to train the interest prediction model, and uses the training labels to verify the interest level output by the interest prediction model. When the verification passes, the interest prediction model is obtained, which is convenient for recommending content to users. Different recommended content can be pushed according to the user's interest level in different content collections, thereby achieving targeted and accurate recommendation of content, which is convenient for users to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0050] In order to more clearly illustrate the embodiments of the present invention 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.
[0051] Figure 1 A flowchart of a method for training an interest prediction model provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of the principle of an attribution model provided in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of the principle of a method for training an interest prediction model in a practical application provided in an embodiment of the present application;
[0054] Figure 4 A flowchart of a content recommendation method provided in an embodiment of the present application;
[0055] Figure 5 A structural diagram of a training device for an interest prediction model provided in an embodiment of the present application;
[0056] Figure 6 A flowchart of a content recommendation device provided in an embodiment of the present application;
[0057] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0059] Since different users have different reasons for abandoning a show, if the platform adopts the same processing method, it may cause inconvenience to the user. For example, if the user is not interested in the show, if the platform continues to remind the user to watch the show, or still displays the show in a more prominent position, it may disturb the user and make it difficult for the user to find other shows, causing inconvenience to the user. To this end, an embodiment of the present invention provides a training method for an interest prediction model, a content recommendation method and a device, and the user classification method can be applied to the server to pass.
[0060] like Figure 1 As shown, an embodiment of the present invention provides a method for training an interest prediction model, which may include the following steps:
[0061] Step S101, obtaining historical interaction records of sample users for a sample content collection;
[0062] In an embodiment of the present invention, sample users may refer to users used to train an interest prediction model, and a sample content collection may refer to a collection of periodically updated works such as film and television series (videos), audio novel collections (audio), and journal works (pictures and texts) used to train an interest prediction model.
[0063] The collection period of the historical interaction record is the preset time period closest to the current moment, such as within the last N days, where N is greater than 0. The historical interaction record may include: user portrait information, drama viewing behavior information, drama attribute information, and broadcast scheduling information, etc. The drama viewing behavior information includes: viewing behavior information of the target drama and other viewing behavior information of non-target dramas, etc. In addition, the historical interaction record is not limited to browsing information, or may further include other interaction methods during the browsing process, such as comments, collections, sharing, and other information.
[0064] Among them, user portrait information includes: the platform used by the user, the user's gender and the user's age, etc.; series attribute information includes: daily updated episodes for members / non-members, cumulative updated episodes, length of updated episodes of the main film, whether it is a self-produced drama, whether it is an exclusive broadcast and the total number of episodes, etc.; scheduling information: broadcast date, time, etc.; viewing behavior information of this drama includes: number of main film episodes watched, proportion of trailers / previews watched, viewing completion rate, viewing time, etc.; other viewing behavior information: viewing time of TV series channels, viewing time of all channels, etc.
[0065] Exemplarily, historical interaction records of sample users during the popular period corresponding to the series can be obtained. Specifically, the popular period can refer to the time period from the series launch date to the 14th day after the series ends (for example, from June 1, 2019 to October 31, 2019), during which sample users have watched the series. The historical interaction records corresponding to the sample users are derived from the client playback behavior log and user portrait data.
[0066] In actual applications, the historical interaction records of sample users for the sample content collection can be collected through the client, then uploaded to the server for storage, and then obtained and used in training the interest prediction model.
[0067] Step S102, based on the historical interaction records, obtaining the interaction features of the sample user on the sample content collection;
[0068] The interactive features of the sample users on the sample content collection include: the browsing time and browsing progress of the sample users on the sample content collection, the browsing time and browsing progress of the sample users on the non-sample content collection, and the user portrait of the sample users.
[0069] In this step, the historical interaction records may be analyzed and processed to obtain the interaction features of the sample users on the sample content collection.
[0070] In order to make the interaction features more complete and accurate, the interaction features can be preprocessed. Preprocessing refers to missing value filling, discretization, four arithmetic operations, and outlier removal. Then, a feature matrix is constructed based on the preprocessed interaction features.
[0071] Step S103, outputting the interest of the sample user in the sample content collection based on the computational processing of the interaction feature;
[0072] In this step, the interaction features may be input into an attribution model, and the attribution model outputs the interest of the sample user in the sample content collection.
[0073] In the embodiment of the present invention, the attribution model can be used to analyze and summarize the interest of different sample users in the sample content collection according to the interaction characteristics of the sample users in the sample content collection.
[0074] like Figure 2 As shown, the attribution model can analyze the interaction characteristics of different users and obtain the following interaction behavior categories: "Has not watched the target series in the past N days and the platform playback time has increased", "Has not watched the target series in the past N days and watched the target series in full last time", "Has not watched the target series in the past N days and did not watch the target series in full last time" and "Watched the target series in the past N days and has watched the latest target series", etc.; the user's interest in the sample content collection includes: "Attracted by other content", "Forgot to watch / hoard the series", "Not very interested in the series", "More interested in the series" and "Watched to the latest episode", etc.
[0075] In actual applications, after the attribution model can obtain the interactive behavior category based on the interactive feature analysis, illustratively, different interactive behavior categories can be set to correspond to different degrees of interest, such as: the interactive behavior category of "the target series has not been watched in the past N days and the platform playback time has increased" corresponds to "attracted by other content"; the interactive behavior category of "the target series has not been watched in the past N days and the last time the target series was watched in full" corresponds to "forgot to watch / hoard the series"; the interactive behavior category of "the target series has not been watched in the past N days and the last time the target series was watched in full" corresponds to "not much interest in the series"; the interactive behavior category of "watched the target series in the past N days" corresponds to "more interested in the series"; the interactive behavior category of "watched the latest target series" corresponds to "watched to the latest episode".
[0076] Based on the above, in the embodiment of the present invention, step S103 outputs the interest of the sample user in the sample content collection based on the computational processing of the interaction features, including:
[0077] If within a preset time period, the browsing time of the sample user on the target content collection is less than a first preset value, and the browsing time on the non-target content collection is greater than a second preset value, it is determined that the sample user's interest in the sample content collection is a first interest type, and the first interest type may refer to "being attracted by other content";
[0078] Alternatively, if within a preset time period, the browsing time of the target content collection by the sample user is less than a third preset value, and the last browsing time of the target content collection is greater than a fourth preset value, it is determined that the interest of the sample user in the sample content collection is a second interest type, and the second interest type may refer to "forgot to watch / hoard dramas";
[0079] Alternatively, if within a preset time period, the browsing time of the sample user on the target content collection is greater than a fifth preset value, a third interest type of the sample user's interest in the sample content collection is determined, and the third interest type may refer to "not much interest in the drama";
[0080] Alternatively, within a preset time period, the browsing time of the sample user on the sample content collection is less than a sixth preset value and the last browsing time on the sample content collection is less than a seventh preset value, and it is determined that the interest of the sample user in the sample content collection is a fourth interest type, and the fourth interest type may refer to "being relatively interested in the drama";
[0081] Alternatively, within the preset time period, the sample user's browsing time for the sample content collection is greater than an eighth preset value and has completed watching the latest content in the sample content collection, and it is determined that the sample user's interest in the sample content collection is the fifth interest type, and the fifth interest type may refer to "watched to the latest episode."
[0082] Step S104, verifying the interest level using the training labels corresponding to the sample content collection, and if the verification is successful, determining that the interest prediction model has converged, and obtaining a trained interest prediction model.
[0083] The training label corresponding to the sample content collection, that is, the actual accurate sample user's interest in the sample content collection, is used as the training label of the interest prediction model. The training label is compared with the interest. If the similarity between the two exceeds a preset threshold, it can be determined that the verification has passed, and then it is determined that the interest prediction model has converged to obtain a trained interest prediction model.
[0084] The embodiment of the present invention first obtains the historical interaction records of sample users for a sample content collection, then obtains the interaction features of the sample users for the sample content collection based on the historical interaction records, and then outputs the interest level of the sample users for the sample content collection based on the computational processing of the interaction features. Finally, the interest level can be verified using the training labels corresponding to the sample content collection. If the verification passes, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
[0085] The embodiment of the present invention uses the interaction features in the historical interaction records of sample users to train the interest prediction model, and uses the training labels to verify the interest level output by the interest prediction model. When the verification passes, the interest prediction model is obtained, which is convenient for recommending content to users. Different recommended content can be pushed according to the user's interest level in different content collections, thereby achieving targeted and accurate recommendation of content, which is convenient for users to use.
[0086] In yet another embodiment of the present invention, the method further comprises:
[0087] 201, based on the interaction feature, using a classifier to obtain a parameter of the interaction degree of the sample user to the sample content collection;
[0088] In the embodiment of the present invention, the classifier is used to obtain the interaction degree parameter of the sample user to the sample content collection based on the interaction feature, and the interaction degree parameter may include non-light and light.
[0089] The classifier of the embodiment of the present invention can be trained in advance in the following manner:
[0090] First, obtain multiple sample users with different interaction characteristics and the interaction degree parameter label of each sample user. In practical applications, the interaction degree parameter labels can be pre-added for sample users with different interaction characteristics, such as: the interaction degree parameter corresponding to light interaction is 1, and the interaction degree parameter corresponding to non-light interaction is 0.
[0091] Then, the interaction features of multiple users are input into the classifier, so that the classifier predicts the predicted interaction degree parameter corresponding to each of the sample users; in the embodiment of the present invention, the classifier can be trained by a five-fold cross validation method.
[0092] Then, based on the predicted interaction degree parameter and the interaction degree parameter label corresponding to each sample user, the model parameters of the classifier are adjusted until the classifier converges to obtain a trained classifier.
[0093] Under the real data set, the effect of this classifier in predicting the interaction degree parameters is shown in Table 1 below:
[0094] Table 1
[0095]
[0096] The recall rate reflects the classifier's ability to identify positive samples (i.e., non-mild samples). The higher the recall rate, the stronger the model's ability to identify positive samples. The precision reflects the model's ability to distinguish negative samples. The higher the precision, the stronger the model's ability to distinguish negative samples.
[0097] The F1 score is a combination of precision and recall. The higher the F1 score, the more robust the classifier.
[0098] The embodiment of the present invention can automatically train and obtain a classifier, so as to facilitate the subsequent use of the classifier to accurately predict the user's interaction degree parameters.
[0099] 202 , if the interaction degree parameter satisfies a preset condition, a step of outputting the interest of the sample user in the sample content collection based on a computational processing of the interaction feature is performed.
[0100] In the embodiment of the present invention, if the interaction degree parameter is not light, it can be determined that the interaction degree parameter meets the preset condition, and a step of outputting the interest of the sample user in the sample content collection based on the operation processing of the interaction feature is performed.
[0101] If the interaction degree parameter does not meet the preset condition, the user classification label of the sample user may be marked as a light user.
[0102] The embodiment of the present invention can use a classifier to automatically predict the user's drama category, so as to select a sample user who has a higher probability of watching all the contents of the sample content collection from multiple users.
[0103] In another embodiment of the present invention, if the interaction degree parameter satisfies a preset condition, the step of performing a calculation based on the interaction feature to output the interest of the sample user in the sample content collection includes:
[0104] 301, extracting the usage duration and / or usage frequency of the software from the interaction degree parameter;
[0105] 302, determining whether the usage duration of the software exceeds a preset first threshold and / or whether the usage frequency exceeds a preset second threshold;
[0106] 303 , if the usage time of the software exceeds a preset first threshold and / or the usage frequency exceeds a preset second threshold, it is determined that the interaction degree parameter meets a preset condition.
[0107] Exemplarily, the usage time of the software corresponds to the number of episodes of the feature film watched during the popular period. If the number of episodes of the feature film watched during the popular period is <= 10% of the total number of episodes, it is determined that the interaction degree parameter does not meet the preset conditions; if the number of episodes of the feature film watched during the popular period is > 10% of the total number of episodes, it is determined that the interaction degree parameter meets the preset conditions.
[0108] In summary, in practical applications, Figure 3As shown, for ease of understanding, an embodiment of the present invention may first obtain historical interaction records of sample users, perform feature engineering processing on the historical interaction records, i.e., preprocessing (missing value filling processing, discretization processing, four arithmetic operations processing, and outlier removal processing, etc.), and input the interaction features obtained after preprocessing into a light user prediction model (i.e., a classifier) to obtain an interaction degree parameter output by the classifier: light or non-light. When the interaction degree parameter of the sample user is non-light, the attribution model is used to determine the interaction behavior category of the sample user, and then the interest of the sample user is determined according to the interaction behavior category, i.e., one of "attracted by other content, forgotten to watch / hoard the show, not very interested in the show, relatively interested in the show, and watched to the latest episode".
[0109] In another embodiment of the present invention, a content recommendation method is also provided. Figure 4 As shown, including:
[0110] Step S401, for a target user, using the interest prediction model described in any of the above method embodiments to determine the interest of the target user in the target content collection;
[0111] In this step, the historical interaction records of the target user can be first obtained, and then based on the historical interaction records of the target user, the interaction features of the target user for the target content collection can be obtained, and the interaction features can be input into the interest prediction model to obtain the target user's interest in the target content collection.
[0112] In actual applications, before inputting the interaction features into the interest prediction model, the classifier can also be used to obtain the interaction degree parameters of the target user for the target content collection. When the interaction degree parameters meet the preset conditions, the interaction features are input into the interest prediction model; when the interaction degree parameters do not meet the preset conditions, the user classification label of the target user can be determined to be set as a light user.
[0113] Step S402, based on the interest level, determining a recommendation strategy for recommending a target content collection to a target user;
[0114] In actual applications, after determining the interest of the target user, the prediction results obtained based on the classifier and attribution model can be superimposed to obtain the user classification label of the target user, that is, one of "a. Light user; b. Not light - attracted by other content; c. Not light - hoarding dramas / forgetting to watch; d. Not light - dissatisfied with the content; e. Not light - interested and likely to finish watching; f. Not light - already caught up with the latest." Finally, according to actual operational needs, targeted operations are carried out on the user classification labels of different target users, that is, different recommendation strategies are specified to improve the viewing level of the entire user group as a whole.
[0115] Step S403: Push content recommendation information for the target content collection to the target user according to the recommendation strategy.
[0116] In the embodiment of the present invention, pushing content recommendation information for the target content collection to the target user according to the recommendation strategy includes:
[0117] When the target content collection is updated, recommendation information of the target content collection is sent to the client device corresponding to the target user; or, in response to an access instruction of an associated page of the target content collection, recommendation information of the target content collection is sent to the client device corresponding to the target user.
[0118] The embodiment of the present invention determines the interest of the target user, and then pushes different recommended contents based on the interest of the target user in the target content collection, thereby achieving targeted and accurate recommended contents, which is convenient for users to use.
[0119] In another embodiment of the present invention, a training device for an interest prediction model is also provided. Figure 5 As shown, including:
[0120] A first acquisition module 11 is used to acquire historical interaction records of sample users for a sample content collection;
[0121] A second acquisition module 12, configured to acquire, based on the historical interaction records, interaction features of the sample user on the sample content collection;
[0122] An output module 13, configured to output the interest of the sample user in the sample content collection based on the computational processing of the interaction features;
[0123] The verification module 14 is used to verify the interest level using the training labels corresponding to the sample content collection. If the verification is successful, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
[0124] In another embodiment of the present invention, a content recommendation device is also provided. Figure 6 As shown, including:
[0125] A first determination module 21 is used to determine the interest of a target user in a target content collection using the training device of the interest prediction model described in the above embodiment;
[0126] A second determination module 22, configured to determine a recommendation strategy for recommending a target content collection to a target user based on the interest level;
[0127] The push module 23 is used to push content recommendation information for the target content collection to the target user according to the recommendation strategy.
[0128] In another embodiment of the present invention, there is also provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0129] Memory, used to store computer programs;
[0130] The processor is used to implement the interest prediction model training method described in any of the aforementioned method embodiments or the content recommendation method described in any of the aforementioned method embodiments when executing the program stored in the memory.
[0131] In the electronic device provided by the embodiment of the present invention, the processor executes the program stored in the memory to first obtain the historical interaction records of the sample user for the sample content collection, then obtain the interaction features of the sample user for the sample content collection based on the historical interaction records, and then output the interest level of the sample user for the sample content collection based on the operation processing of the interaction features. Finally, the interest level can be verified using the training label corresponding to the sample content collection. If the verification passes, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
[0132] The embodiment of the present invention uses the interaction features in the historical interaction records of sample users to train the interest prediction model, and uses the training labels to verify the interest level output by the interest prediction model. When the verification passes, the interest prediction model is obtained, which is convenient for recommending content to users. Different recommended content can be pushed according to the user's interest level in different content collections, thereby achieving targeted and accurate recommendation of content, which is convenient for users to use.
[0133] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0134] The communication interface 1120 is used for communication between the electronic device and other devices.
[0135] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0136] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0137] In another embodiment of the present invention, a computer-readable storage medium is provided, on which a training method for an interest prediction model is stored, and when the training method for an interest prediction model is executed by a processor, the steps of the training method for an interest prediction model described in any of the aforementioned method embodiments are implemented; or, a program of a content recommendation method is stored on the computer-readable storage medium, and when the program of the content recommendation method is executed by a processor, the steps of the content recommendation method described in any of the aforementioned method embodiments are implemented.
[0138] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0139] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for training an interest prediction model, characterized in that: include: Obtain historical interaction records of sample users for the sample content collection; Based on the historical interaction records, obtaining interaction features of the sample user on the sample content collection; Outputting the interest of the sample user in the sample content collection based on the operation processing of the interaction feature, including: inputting the interaction feature into an attribution model, the attribution model outputting the interest of the sample user in the sample content collection, and after the attribution model obtains the interaction behavior category based on the interaction feature analysis, setting different interaction behavior categories to correspond to different interest levels; The interest level is verified using training labels corresponding to the sample content collection. If the verification passes, it is determined that the interest prediction model has converged, and a trained interest prediction model is obtained.
2. The method for training the interest prediction model according to claim 1, characterized in that: The interactive features of the sample users on the sample content collection include: browsing time and browsing progress of the sample users on the sample content collection, browsing time and browsing progress of the sample users on the non-sample content collection, and user portraits of the sample users.
3. The training method of the interest prediction model according to claim 1, characterized in that: The method further comprises: Based on the interaction features, using a classifier to obtain a parameter of the degree of interaction of the sample user with respect to the sample content collection; If the interaction degree parameter meets the preset condition, a step of outputting the interest of the sample user in the sample content collection based on the operation processing of the interaction feature is performed.
4. The method for training the interest prediction model according to claim 3, characterized in that: If the interaction degree parameter satisfies a preset condition, the step of performing a calculation based on the interaction feature to output the interest of the sample user in the sample content collection comprises: Extracting the usage duration and / or usage frequency of the software from the interaction degree parameter; Determine whether the usage duration of the software exceeds a preset first threshold and / or whether the usage frequency exceeds a preset second threshold; If the usage duration of the software exceeds a preset first threshold and / or the usage frequency exceeds a preset second threshold, it is determined that the interaction degree parameter meets a preset condition.
5. The method for training an interest prediction model according to claim 1, characterized in that: The collection period of the historical interaction records is within a preset time period closest to the current moment.
6. The method for training an interest prediction model according to claim 1, characterized in that: Outputting the interest of the sample user in the sample content collection based on the computational processing of the interaction feature includes: If within the preset time period, the browsing time of the sample user on the target content collection is less than the first preset value, and the browsing time on the non-target content collection is greater than the second preset value, it is determined that the interest of the sample user in the sample content collection is the first interest type; Alternatively, if within a preset time period, the browsing time of the sample user on the target content collection is less than a third preset value, and the last browsing time of the target content collection is greater than a fourth preset value, it is determined that the interest of the sample user in the sample content collection is a second interest type; Alternatively, if within a preset time period, the browsing time of the sample user on the target content collection is greater than a fifth preset value, determining the third interest type of the sample user's interest in the sample content collection; Alternatively, within a preset time period, the browsing time of the sample user on the sample content collection is less than a sixth preset value and the last browsing time on the sample content collection is less than a seventh preset value, and it is determined that the interest of the sample user in the sample content collection is a fourth interest type; Alternatively, within the preset time period, the sample user's browsing time for the sample content collection is greater than an eighth preset value and has completed viewing the latest content in the sample content collection, and it is determined that the sample user's interest in the sample content collection is the fifth interest type.
7. A content recommendation method, characterized in that: include: For a target user, using the interest prediction model as described in any one of claims 1 to 6 to determine the interest of the target user in the target content collection; Based on the interest level, determining a recommendation strategy for recommending a target content collection to a target user; Push content recommendation information for the target content collection to the target user according to the recommendation strategy.
8. The content recommendation method according to claim 7, characterized in that: Pushing content recommendation information for the target content collection to the target user according to the recommendation strategy includes: When the target content collection is updated, sending recommendation information of the target content collection to a client device corresponding to the target user; or, In response to an access instruction of an associated page of the target content collection, recommendation information of the target content collection is sent to a client device corresponding to the target user.
9. A training device for an interest prediction model, characterized in that: include: A first acquisition module is used to acquire historical interaction records of sample users for a sample content collection; A second acquisition module, configured to acquire, based on the historical interaction records, interaction features of the sample user on the sample content collection; an output module, configured to output the interest of the sample user in the sample content collection based on the operation processing of the interaction feature, comprising: inputting the interaction feature into an attribution model, the attribution model outputting the interest of the sample user in the sample content collection, and the attribution model setting different interaction behavior categories to correspond to different interest levels after obtaining interaction behavior categories based on the interaction feature analysis; The verification module is used to verify the interest level using the training labels corresponding to the sample content collection. If the verification is successful, it is determined that the interest prediction model has converged to obtain a trained interest prediction model.
10. A content recommendation device, characterized in that: include: A first determination module, configured to determine, for a target user, the interest level of the target user in the target content collection using the training device for the interest prediction model as claimed in claim 8; A second determination module is used to determine a recommendation strategy for recommending a target content collection to a target user based on the interest level; A push module is used to push content recommendation information for the target content collection to the target user according to the recommendation strategy.
11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the interest prediction model training method described in any one of claims 1 to 6 or the content recommendation method described in any one of claims 7 to 8 when executing a program stored in a memory.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a training method for an interest prediction model, and when the training method for an interest prediction model is executed by a processor, the steps of the training method for an interest prediction model described in any one of claims 1 to 6 are implemented; or, the computer-readable storage medium stores a program for a content recommendation method, and when the program for the content recommendation method is executed by a processor, the steps of the content recommendation method described in any one of claims 7 to 8 are implemented.
Citation Information
Patent Citations
User behavior statistical method and device and terminal equipment
CN108062415A
Multimedia resource playing method, device and appartus and storage medium
CN110209843A
Information pushing method, apparatus and device, and storage medium
CN112261423A
Information recommendation method and device, medium and equipment
CN112989174A
Advertisement attribution method and device
WO2021147673A1
