Video recommendation method, device, electronic device and storage medium

By inputting the image of the target video into the classification model to obtain the attention probability and vector as a video recommendation feature, the accuracy problem of video exposure potential prediction and recommendation in the cold start model is solved, and a more efficient video recommendation effect is achieved.

CN112256892BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011159050.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-09-20
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

In the cold start model, there is less data such as video exposure, click rate, like rate, attention rate or completion rate, which makes traditional video recommendation methods unable to accurately predict video exposure potential and recommend high-exposure videos.

Method used

By obtaining the image of the target video, input the preset target classification model to obtain the attention probability and vector, as video recommendation features, input the video recommendation model for recommendation. This method uses a classification model trained on historical videos to classify and cluster according to attention intervals, and generate factors that affect video attention to improve the accuracy of recommendations.

Benefits of technology

The accuracy of video recommendation is improved, and it can more accurately predict the attention of videos and recommend high-exposure videos within the preset interval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112256892B
    Figure CN112256892B
Patent Text Reader

Abstract

The present disclosure relates to a video recommendation method, device, electronic device and storage medium video, the video recommendation method comprising: obtaining a target image corresponding to a target video; inputting the target image into a preset target classification model to obtain a target probability that the target video's attention level is within a preset interval; obtaining a vector generated by inputting the target image into the target classification model to obtain a target vector; using the target probability and the target vector as video recommendation features corresponding to the target video, and inputting the preset video recommendation model to recommend the target video. In the implementation process, the target image corresponding to the target video can often affect the attention level of a video to a great extent. Therefore, starting from the target image, the target probability and the generated target vector obtained by inputting the target image into the preset target classification model are used as factors affecting the video's attention level to recommend the target video, which can improve the accuracy of the video exposure potential prediction results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video processing technology, and in particular to a video recommendation method, device, electronic device and storage medium video. Background Art

[0002] With the rapid advancement of modern information transmission technology and the popularity of video receiving devices such as smartphones, short videos have gradually become one of the main carriers for people to receive information in their daily lives, and various short video platforms have sprung up like mushrooms after a rain. In short video platforms, accurately determining the factors that affect video exposure, predicting whether a video can become a high-exposure video, and recommending videos that can become high-exposure videos will help promote the video and the healthy development of short video platforms. In traditional video recommendation methods, the exposure, click-through rate, like rate, attention rate, or completion rate of short videos within a period of time are usually used as factors affecting video exposure to predict video exposure potential and recommend videos.

[0003] However, in the cold start model, there is little data on the video's exposure, click-through rate, like rate, attention rate, or completion rate. Therefore, using traditional video recommendation methods, it is impossible to accurately predict the video's exposure potential through the video's exposure, click-through rate, like rate, attention rate, or completion rate, and it is impossible to accurately recommend the video. Summary of the invention

[0004] The present disclosure provides a video recommendation method, device, electronic device and storage medium to at least solve the problem that the related art cannot accurately recommend recommended videos. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a video recommendation method is provided, including:

[0006] Obtain the target image corresponding to the target video;

[0007] The target image is input into a preset target classification model to obtain a target probability that the attention level of the target video is within a preset interval; wherein the attention level is a comprehensive parameter value that measures the degree of attention paid to the target video, and the target classification model is a model for predicting attention level distribution obtained through historical video training;

[0008] Obtain the target image and input the vector generated by the target classification model to obtain a target vector;

[0009] The target probability and the target vector are used as video recommendation features corresponding to the target video and input into a preset video recommendation model to recommend the target video.

[0010] In an exemplary embodiment, the step of obtaining the target image and inputting the vector generated by the target classification model to obtain the target vector includes:

[0011] The target image is input into the target classification model, and the feature vector output by the preset fully connected layer is determined as the target vector.

[0012] In an exemplary embodiment, the method of acquiring the target classification model includes:

[0013] Obtaining historical images corresponding to historical videos and the attention level of the historical videos;

[0014] Classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results;

[0015] The historical image is used as input and the attention classification result is used as supervision information, and a preset initial classification model is trained to obtain the target classification model.

[0016] In an exemplary embodiment, the attention includes a primary attention and an auxiliary attention; the primary attention includes the attention amount corresponding to the target video, and the auxiliary attention includes at least one of a click rate, a like rate, an attention rate, or a completion rate corresponding to the target video; the preset interval includes a first preset interval and a second preset interval;

[0017] The step of classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results includes:

[0018] Classifying the main attention degree according to the first preset interval to obtain a first classification result;

[0019] Classifying the auxiliary attention degree according to the second preset interval to obtain a second classification result;

[0020] The first classification result and the second classification result are determined as the attention classification result.

[0021] In an exemplary embodiment, the classifying the main attention degree according to the first preset interval to obtain a first classification result includes:

[0022] Divide the first preset interval according to a preset numerical sequence to obtain at least one main preset interval;

[0023] The second preset interval is divided in the form of a logarithmic function to obtain at least one auxiliary preset interval.

[0024] In an exemplary embodiment, classifying the main attention degree according to the first preset interval to obtain a first classification result includes:

[0025] In each of the main preset intervals, clustering the main attention degrees to obtain at least one target classification result;

[0026] A preset proportion of main attention in each of the target classification results is determined as the first classification result.

[0027] In an exemplary embodiment, the historical image is used as input, the attention classification result is used as supervision information, and a preset initial classification model is trained to obtain the target classification model, including:

[0028] Taking the historical image as input and the first classification result and the second classification result as supervision information, training the initial classification model to obtain an intermediate classification model;

[0029] The intermediate classification model is trained using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value.

[0030] In an exemplary embodiment, the using the target probability and the target vector as video recommendation features corresponding to the target video and inputting them into a preset video recommendation model to recommend the target video includes:

[0031] The target probability and the target vector are used as video recommendation features corresponding to the target video, and input into a preset video recommendation model to obtain a recommendation probability of the target video's attention degree within the preset interval;

[0032] When the recommendation probability is greater than a preset threshold, the target video is recommended.

[0033] According to a second aspect of an embodiment of the present disclosure, a device for determining video recommendation features is provided, including:

[0034] A target image acquisition unit, configured to acquire a target image corresponding to a target video;

[0035] A target probability determination unit is configured to input the target image into a preset target classification model to obtain a target probability that the attention level of the target video is within a preset interval; wherein the attention level is a comprehensive parameter value for measuring the degree of attention of the target video, and the target classification model is a model for predicting attention level distribution obtained by training based on historical videos;

[0036] A target vector determination unit is configured to obtain a target vector by inputting the target image into a vector generated by the target classification model;

[0037] The video recommendation unit is configured to use the target probability and the target vector as video recommendation features corresponding to the target video, and input them into a preset video recommendation model to recommend the target video.

[0038] In an exemplary embodiment, the target vector determination unit is further configured to perform:

[0039] The target image is input into the target classification model, and the feature vector output by the preset fully connected layer is determined as the target vector.

[0040] In an exemplary embodiment, the apparatus for determining video recommendation features further includes a target classification model acquisition unit configured to execute:

[0041] Obtaining historical images corresponding to historical videos and the attention level of the historical videos;

[0042] Classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results;

[0043] The historical image is used as input and the attention classification result is used as supervision information, and a preset initial classification model is trained to obtain the target classification model.

[0044] In an exemplary embodiment, the target classification model acquisition unit is further configured to execute:

[0045] Classifying the main attention degree according to the first preset interval to obtain a first classification result;

[0046] Classifying the auxiliary attention degree according to the second preset interval to obtain a second classification result;

[0047] The first classification result and the second classification result are determined as the attention classification result.

[0048] In an exemplary embodiment, the target classification model acquisition unit is further configured to execute:

[0049] Divide the first preset interval according to a preset numerical sequence to obtain at least one main preset interval;

[0050] The second preset interval is divided in the form of a logarithmic function to obtain at least one auxiliary preset interval.

[0051] In an exemplary embodiment, the target classification model acquisition unit is further configured to execute:

[0052] In each of the main preset intervals, clustering the main attention degrees to obtain at least one target classification result;

[0053] A preset proportion of main attention in each of the target classification results is determined as the first classification result.

[0054] In an exemplary embodiment, the target classification model acquisition unit is further configured to execute:

[0055] Taking the historical image as input and the first classification result and the second classification result as supervision information, training the initial classification model to obtain an intermediate classification model;

[0056] The intermediate classification model is trained using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value.

[0057] In an exemplary embodiment, the video recommendation unit is configured to perform:

[0058] The target probability and the target vector are used as video recommendation features corresponding to the target video, and input into a preset video recommendation model to obtain a recommendation probability of the target video's attention degree within the preset interval;

[0059] When the recommendation probability is greater than a preset threshold, the target video is recommended.

[0060] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0061] processor;

[0062] a memory for storing instructions executable by the processor;

[0063] The processor is configured to execute the instructions to implement the video recommendation method described in the first aspect above.

[0064] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the video recommendation method described in the first aspect above.

[0065] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, the program product comprising a computer program, the computer program being stored in a readable storage medium, at least one processor of a device reading and executing the computer program from the readable storage medium, so that the device executes the video recommendation method described in any one of the embodiments of the first aspect above.

[0066] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0067] Obtain a target image corresponding to a target video; input the target image into a preset target classification model to obtain a target probability that the target video's attention is within a preset interval; wherein attention is a comprehensive parameter value that measures the degree of attention paid to the target video, and the target classification model is a model trained based on historical videos for predicting the distribution of attention; obtain a vector generated by inputting the target image into the target classification model to obtain a target vector; use the target probability and the target vector as video recommendation features corresponding to the target video, and input them into a preset video recommendation model to recommend the target video. In the implementation process, the target image corresponding to the target video can often affect the attention of a video to a great extent. Therefore, starting from the target image, the target probability and the generated target vector obtained by inputting the target image into a preset target classification model are input into the preset video recommendation model as factors affecting the video's attention, so as to recommend the target video, thereby improving the accuracy of video recommendation.

[0068] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0070] Figure 1 The figure is a flowchart of a video recommendation method according to an exemplary embodiment.

[0071] Figure 2 The figure is a flowchart of an implementable method for obtaining a target classification model according to an exemplary embodiment.

[0072] Figure 3 is a flowchart of an implementable method of step S220 according to an exemplary embodiment.

[0073] Figure 4 is a flowchart of an implementable method of step S221 according to an exemplary embodiment.

[0074] Figure 5 is a flowchart of an implementable method of step S230 according to an exemplary embodiment.

[0075] Figure 6 The figure is a schematic diagram showing changes in the AUC value of a video recommendation model according to an exemplary embodiment.

[0076] Figure 7 The figure is a schematic diagram showing changes in the ROC value of a video recommendation model according to an exemplary embodiment.

[0077] Figure 8 The figure is a block diagram of a video recommendation device according to an exemplary embodiment.

[0078] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0079] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0080] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0081] Figure 1 The flowchart of a video recommendation method according to an exemplary embodiment includes the following steps:

[0082] Step S100, obtaining a target image corresponding to a target video.

[0083] Step S200, input the target image into a preset target classification model to obtain the target probability that the attention degree of the target video is within a preset interval; wherein the attention degree is a comprehensive parameter value that measures the degree of attention paid to the target video, and the target classification model is a model obtained by training historical videos for predicting the distribution of attention degrees.

[0084] Step S300, obtaining a target image input vector generated by a target classification model to obtain a target vector.

[0085] Step S400: taking the target probability and the target vector as video recommendation features corresponding to the target video and inputting them into a preset video recommendation model to recommend the target video.

[0086] Among them, the target video is a video that needs to detect and determine the factors affecting the video's attention, and the video recommendation is performed based on the factors affecting the video's attention. The target image is an image that can reflect the content of the target video to a certain extent, and can be a cover image of the video, or an image frame obtained by performing video key frame detection. The preset interval refers to the distribution interval of the attention degree. For example, when the attention degree is the exposure, the preset interval can be (0, 1000) or [1000, ∞). It should be noted that (0, 1000) and [1000, ∞) are only exemplary descriptions and are not used to specifically limit the preset interval. Optionally, the preset interval can also be (0, 1000), [1000, 10000) or [10000, ∞). When the degree of attention is exposure, click-through rate, like rate, attention rate or completion rate, the preset interval can also be {x|log(x*1000)<1}, {x|1≤log(x*1000)<2}, {x|2≤log(x*1000)<3}, {x|3≤log(x*1000)<4} and {x|4≤log(x*1000)<5}, where x represents click-through rate, like rate, attention rate or completion rate. The preset video recommendation model is a model that is trained based on video recommendation features (target probability and target vector) that affect the degree of attention of the video and can recommend the target video. For example, with the video recommendation feature as input and the degree of attention of the target video in the preset interval as supervision information, the preset initial video recommendation model is trained to obtain the video recommendation model.

[0087] Specifically, the target image is input into a target classification model that can predict the distribution of video attention, and the target probability of the target video's attention in a preset interval is obtained, as well as the target vector corresponding to a specific layer of the target classification model. The target probability and the target vector are determined as the video recommendation feature corresponding to the target video. The video recommendation feature is a factor that affects the degree of attention of the video determined based on the target image, and can reflect to a certain extent the influence of the target image in the target video on the degree of attention of the target video. The video recommendation feature is used as the input data for video recommendation, input into a preset video recommendation model, and the target video is recommended based on the output of the video recommendation model.

[0088] Exemplarily, when the attention is exposure and the preset intervals are (0, 1000) and [1000, ∞), the target image is input into the target classification model of the Resnet50 neural network + MLP structure (one layer is a 512 fully connected layer, one layer is a 32 fully connected layer), and the 32-dimensional vector output by the fully connected layer of the target classification model and the probability value of the exposure of the target video in [1000, ∞) are determined as video recommendation features. The 32-dimensional vector and the probability value of the attention in [1000, ∞) are input into the preset video recommendation model, and the target video is recommended according to the output of the video recommendation model.

[0089] In the above-mentioned method for determining video recommendation features, a target image corresponding to a target video is obtained; the target image is input into a preset target classification model to obtain a target probability that the target video's attention is within a preset interval; wherein attention is a comprehensive parameter value that measures the degree of attention of a target video, and the target classification model is a model for predicting attention distribution obtained through historical video training; a vector generated by inputting the target image into the target classification model is obtained to obtain a target vector; the target probability and the target vector are used as video recommendation features corresponding to the target video and input into a preset video recommendation model to recommend the target video. In the implementation process, the target image corresponding to the target video can often affect the attention of a video to a great extent. Therefore, starting from the target image, the target probability obtained by inputting the target image into the preset target classification model and the generated target vector are input into the preset video recommendation model as factors affecting the video's attention to recommend the target video, which can improve the accuracy of video recommendation.

[0090] In an exemplary embodiment, a possible implementation of step S300 includes:

[0091] The target image is input into the target classification model, and the feature vector output by the preset fully connected layer is determined as the target vector.

[0092] Specifically, the target classification model is a preset neural network model. When the target image is input into the target classification model to obtain the target probability, the feature vector of the fully connected layer before the output probability value of the target classification model can be obtained at the same time. The feature vector represents the characteristics of the target image obtained through layer-by-layer data transmission of the target classification model, which can reflect the impact of the video's attention to a certain extent and can be used as one of the factors reflecting the impact of the video's attention.

[0093] In the above embodiment, the target image is input into the target classification model, and the feature vector output by the preset fully connected layer is determined as the target vector, and the target vector is used as one of the factors reflecting the degree of attention of the video, together with the target probability as the factors reflecting the degree of attention of the video, and the influence of the target image on the degree of attention of the target video is used as one of the factors affecting the degree of attention of the video, so as to obtain more accurate factors affecting the degree of attention of the video, and the target image is added as one of the influencing factors for subsequent prediction of the degree of attention of the target video, and at the same time, the accuracy of subsequent video recommendations can be improved.

[0094] In an exemplary embodiment, if Figure 2 FIG. 1 is a flowchart of an implementable method for obtaining a target classification model according to an exemplary embodiment, comprising the following steps:

[0095] Step S210, obtaining the historical image corresponding to the historical video and the attention degree of the historical video.

[0096] Step S220, classifying the attention levels of historical videos according to preset intervals to obtain attention level classification results.

[0097] Step S230 , using the historical images as input and the attention classification results as supervision information, a preset initial classification model is trained to obtain a target classification model.

[0098] Specifically, the attention of historical videos is classified according to the distribution of preset intervals. For example, when the attention is exposure and the preset intervals are (0, 1000) and [1000, ∞), historical images with exposure between (0, 1000) are classified into one category, and historical images with exposure between [1000, ∞) are classified into another category. Optionally, when the preset intervals are (0, 1000), [1000, 10000) and [10000, ∞), historical images with exposure between (0, 1000) are classified into one category, historical images with exposure between (0, 10000) are classified into one category, and historical images with exposure between [10000, ∞) are classified into another category. In this way, the attention classification result corresponding to the preset interval can be obtained.

[0099] Next, the historical images are used as input and the attention classification results are used as supervision information to train the preset initial classification model to obtain the target classification model. For example, when the attention is the exposure and the preset interval is (0, 1000) and [1000, ∞), the label of the historical image with an exposure between (0, 1000) can be set to "0", and the label of the historical image with an exposure between [1000, ∞) can be set to "1". The historical images are used as input and the corresponding "0" and "1" are used as supervision information to train the initial classification model, and the model whose loss function meets certain conditions is determined as the target classification model.

[0100] In the above embodiment, the historical images corresponding to the historical videos and the attention of the historical videos are obtained; the attention of the historical videos is classified according to the preset intervals to obtain the attention classification results; the historical images are used as input and the attention classification results are used as supervision information to train the preset initial classification model to obtain the target classification model. Among them, the historical images can be used to train a model that can output the attention distribution, which provides a basis for determining the video recommendation features according to the current target image.

[0101] In an exemplary embodiment, if Figure 3 FIG. 2 is a flowchart of a possible implementation method of step S220 according to an exemplary embodiment, comprising the following steps:

[0102] Step S221: classify the main attention degree according to the first preset interval to obtain a first classification result.

[0103] Step S222: classify the auxiliary attention degrees according to the second preset interval to obtain a second classification result.

[0104] Step S223: determine the first classification result and the second classification result as the attention degree classification result.

[0105] Among them, the attention includes main attention and auxiliary attention; the main attention includes the attention amount corresponding to the target video, and the auxiliary attention includes at least one of the click rate, like rate, attention rate or completion rate corresponding to the target video; the preset interval includes a first preset interval and a second preset interval.

[0106] Optionally, the first preset interval is divided according to a preset numerical sequence to obtain at least one main preset interval; and the second preset interval is divided in the form of a logarithmic function to obtain at least one auxiliary preset interval.

[0107] Among them, the preset numerical sequence is the critical point divided according to the attention amount corresponding to the main attention degree, and the preset numerical sequence can vary from 1000, 1000, 10000, etc.

[0108] Specifically, when the preset value in the preset value sequence is 1000, two main preset intervals (0, 1000) and [1000, ∞) can be obtained. When the preset thresholds are 1000 and 1000, three main preset intervals (0, 1000), [1000, 10000) and [10000, ∞) can be obtained. By dividing the second preset interval in the form of a logarithmic function, at least one auxiliary preset interval can be obtained. For example, the second preset interval is {x|log(x*1000)<1}, {x|1≤log(x*1000)<2}, {x|2≤log(x*1000)<3}, {x|3≤log(x*1000)<4} and {x|4≤log(x*1000)<5}, and five corresponding auxiliary preset intervals can be obtained.

[0109] Specifically, when the main attention degree is the attention amount, the main attention degree is classified according to the first preset interval to obtain a first classification result. For example, when the preset interval is (0, 1000) and [1000, ∞), the historical images with attention amounts between (0, 1000) are classified into one category, and the historical images with attention amounts between [1000, ∞) are classified into one category. Optionally, when the preset interval is (0, 1000), [1000, 10000) and [10000, ∞), the historical images with attention amounts between (0, 1000) are classified into one category, the historical images with attention amounts between (0, 10000) are classified into one category, and the historical images with attention amounts between [10000, ∞) are classified into one category.

[0110] When the auxiliary attention is a click rate, a marking rate, an attention rate or a completion rate, the auxiliary attention is classified according to a second preset interval to obtain a second classification result. For example, the second preset interval is {x|log(x*1000)<1}, {x|1≤log(x*1000)<2}, {x|2≤log(x*1000)<3}, {x|3≤log(x*1000)<4} and {x|4≤log(x*1000)<5}, where x represents a click rate, a marking rate, an attention rate or a completion rate. The historical images with x between {x|log(x*1000)<1} are classified into one category, the historical images with x between {x|1≤log(x*1000)<2} are classified into one category, ..., the historical images with x between {x|4≤log(x*1000)<5} are classified into one category.

[0111] In the above embodiment, the main attention is classified according to the first preset interval to obtain the first classification result; the auxiliary attention is classified according to the second preset interval to obtain the second classification result; the first classification result and the second classification result are determined as the attention classification result. Among them, the attention is divided into the main attention and the auxiliary attention, which can further refine the factors affecting the video attention amount, so that different parameters can determine the personalized factors affecting the video attention amount based on their own characteristics. For example, the attention amount is determined as a factor affecting the video attention amount as the main attention, and the auxiliary attention is determined as another factor affecting the video attention amount. Among them, the main attention is divided according to a certain threshold and determined as a first classification result, and based on the exponential decay characteristics of the auxiliary attention click rate, mark rate, attention rate or completion rate, it is classified according to the logarithmic function to obtain the second classification result. The above process of classifying according to the characteristics of the main attention and the auxiliary attention and obtaining the corresponding classification results enables the corresponding classification results to more comprehensively reflect the characteristics of the target image, and provides a basis for accurately determining the video recommendation features that affect the video attention amount.

[0112] In an exemplary embodiment, if Figure 4 FIG. 2 is a flowchart of a possible implementation method of step S221 according to an exemplary embodiment, comprising the following steps:

[0113] Step S2211: cluster the main attention degrees in each main preset interval to obtain at least one target classification result.

[0114] Step S2212: determining a preset proportion of main attention in each target classification result as a first classification result.

[0115] Specifically, when the main attention degree is the attention amount, and at least one main preset interval is (0, 1000) and [1000, ∞), generally, the number of target videos and target images with attention amounts between the main preset interval [1000, ∞) accounts for about 1 / 15. In order to ensure that the distribution of the number of samples is as uniform as possible and to improve the accuracy of the subsequent video recommendation features in reflecting the video attention amount, cluster sampling is used to balance the data, cluster the target images with attention amounts between (0, 1000), and obtain the fifth preset number of target classification results, and the target images with attention amounts between [1000, ∞) are another category. In the main preset interval (0, 1000), the target images with a preset proportion (optionally, the preset proportion here can be 15%) in each category, and in the main preset interval [1000, ∞)), the target images with a preset proportion (optionally, the preset proportion here can be 100 or 90%) in each category are determined as the first classification result for initial classification model training.

[0116] In the above embodiment, in each main preset interval, the main attention is clustered to obtain at least one target classification result; the main attention of a preset proportion in each target classification result is determined as the first classification result. According to the distribution of the main attention, the images in different main preset intervals are used to determine the sample data that is inversely proportional to the attention amount, and the first classification result is obtained, which can ensure that the sample data is evenly distributed, so that the data for training the initial classification model more comprehensively reflects the correlation between the image and the attention amount, and finally the video recommendation features obtained according to the target classification model can obtain video recommendation features that more accurately affect the video attention amount.

[0117] In an exemplary embodiment, if Figure 5 FIG. 2 is a flowchart of a possible implementation method of step S230 according to an exemplary embodiment, comprising the following steps:

[0118] Step S231, taking the historical image as input, the first classification result and the second classification result as supervision information, training the initial classification model to obtain an intermediate classification model.

[0119] Step S232, using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention, to train the intermediate classification model to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value.

[0120] Specifically, during the training of the target classification model, the first preset value is used as the weight of the loss function corresponding to the main attention, and the second preset value is used as the weight of the loss function corresponding to the auxiliary attention, and the intermediate classification model is trained. This allows the target classification model finally obtained to better reflect the impact of the main attention on the output of the target classification model, and to be supplemented by the impact of the auxiliary attention on the model output, so that the output of the target classification model can combine the impact of the main attention and the auxiliary attention, and obtain an output that more accurately affects the video attention amount.

[0121] In the above embodiment, the historical image is used as input, the first classification result and the second classification result are used as supervision information, the initial classification model is trained to obtain the intermediate classification model; the first preset value is used as the weight of the loss function corresponding to the main attention, and the second preset value is used as the weight of the loss function corresponding to the auxiliary attention, the intermediate classification model is trained to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value. The influence of the main attention and the auxiliary attention on the target classification model can be comprehensively considered, so that the output of the target classification model can more accurately affect the video recommendation features of the video attention.

[0122] In a specific embodiment, whether the video exposure (attention) is greater than 1000 is used as the main target (main attention), and the four indicators of click rate, like rate, attention rate, and completion rate are used as auxiliary targets (auxiliary attention). The short video cover image is input, and a multi-task embedding model (target classification model) of a deep convolutional neural network is learned. The learned embedding features (target vectors) and predicted probability values ​​(target probabilities) are used as inputs of the cold start XGB model (video recommendation model), and finally a model that can accurately predict the exposure of the target video is obtained, including the following steps:

[0123] Step S1, multi-task target construction: Based on the online data distribution, the main target and the four auxiliary targets are all exponentially decaying. Therefore, the logarithm is selected to divide the target categories (for example, 0 to 1000 is one category, 1000 to 10000 is another category). The specific target task division is:

[0124] The exposure task category show is determined as shown in formula (1):

[0125]

[0126] Where x is the exposure.

[0127] The click rate, like rate, attention rate, and completion rate ctr(x) are determined as shown in formula (2):

[0128]

[0129] Here, x is one of the click rate, like rate, attention rate, and completion rate.

[0130] Step S2, data balancing: Since the main learning target (exposure) has a serious imbalance in online data distribution, the proportion of exposure > 1000 is about 1 / 15. In order to ensure the final accuracy and maintain consistency with the online data distribution, cluster sampling is used to balance the data. For sample images with exposure less than 1000, VAE clustering is used to cluster the images into 10 categories. In each cluster category, 15% of the data is randomly sampled as negative sample images for training as the final training data;

[0131] Step S2, model construction: The model includes 5 corresponding tasks: Task 1 is the main exposure binary classification task, Task 2, Task 3, Task 4 and Task 5 are auxiliary target click rate 5 classification tasks, like rate 5 classification tasks, attention rate 5 classification tasks and completion rate 5 classification multi-classification tasks, and the input is the video cover image. The model selects Resnet50 neural network + MLP structure (one layer is a 512 fully connected layer, and one layer is a 32 fully connected layer) as the training model. The final fitting target is a loss objective function value with Task 1 as the main target and Task 2, Task 3, Task 4 and Task 5 as auxiliary targets within the preset range. The specific loss function is shown in formula (3):

[0132]

[0133] in, w i is the task weight. Since task 1 is the main task, the weight of w1 is set to 0.5, and the sum of the weights of the other four tasks is 0.5.

[0134] Step S4, online use: After the multi-task target constructed in the first step, the training data selected after the data balancing in the second step, and the model training constructed in the third step are completed, the 32-dimensional fully connected layer vector and the predicted probability value of the main target (exposure greater than 1000) are selected as the final prediction result (video recommendation feature), and finally this result is added to the video recommendation model to improve the accuracy of the video recommendation model's prediction results on the video exposure potential. Figure 6 FIG. 1 is a schematic diagram showing a change in the AUC value of a video recommendation model according to an exemplary embodiment. Figure 7 FIG. 1 is a schematic diagram showing the change of the ROC value of the video recommendation model according to an exemplary embodiment. Figure 6 and Figure 7 It can be seen that the AUC value of the video recommendation model obtained by training the video recommendation features as the input of the video recommendation model has increased from 0.89 to 0.91, indicating that the video recommendation model can better predict the exposure potential of the video.

[0135] In the above embodiment, starting from the target image, the target probability and the generated target vector obtained by inputting a preset target classification model are used as one of the factors affecting the video exposure. The factors that more accurately affect the video exposure (target probability and target vector) are used as input, and the exposure of the target video in a preset interval is used as supervision information. The video recommendation model is trained to improve the accuracy of the video recommendation model in recommending videos.

[0136] It should be understood that although Figure 1-5The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0137] Figure 8 FIG. 1 is a block diagram of a device for determining video recommendation features according to an exemplary embodiment. Figure 8 , the device includes a target image acquisition unit 801, a target probability determination unit 802, a target vector determination unit 803 and a video recommendation unit 804:

[0138] A target image acquisition unit 801 is configured to acquire a target image corresponding to a target video;

[0139] The target probability determination unit 802 is configured to input the target image into a preset target classification model to obtain a target probability that the attention level of the target video is within a preset range; wherein the attention level is a comprehensive parameter value for measuring the degree of attention of the target video, and the target classification model is a model for predicting attention level distribution obtained by training based on historical videos;

[0140] The target vector determination unit 803 is configured to execute the acquisition of the target image input and the vector generated by the target classification model to obtain the target vector;

[0141] The video recommendation unit 804 is configured to use the target probability and the target vector as video recommendation features corresponding to the target video and input them into a preset video recommendation model to recommend the target video.

[0142] In an exemplary embodiment, the target vector determination unit 803 is further configured to execute: inputting the target image into the target classification model, and determining the feature vector output by the preset fully connected layer as the target vector.

[0143] In an exemplary embodiment, the device for determining video recommendation features also includes a target classification model acquisition unit, which is configured to perform the following operations: acquiring historical images corresponding to historical videos, and the attention levels of historical videos; classifying the attention levels of historical videos according to preset intervals to obtain attention level classification results; using historical images as input and the attention level classification results as supervision information, training a preset initial classification model to obtain a target classification model.

[0144] In an exemplary embodiment, the target classification model acquisition unit is further configured to perform: classifying the main attention according to a first preset interval to obtain a first classification result; classifying the auxiliary attention according to a second preset interval to obtain a second classification result; and determining the first classification result and the second classification result as the attention classification result.

[0145] In an exemplary embodiment, the target classification model acquisition unit is further configured to perform: dividing the first preset interval according to a preset numerical sequence to obtain at least one main preset interval; dividing the second preset interval in the form of a logarithmic function to obtain at least one auxiliary preset interval.

[0146] In an exemplary embodiment, the target classification model acquisition unit is further configured to perform: clustering the main attention within each main preset interval to obtain at least one target classification result; and determining a preset proportion of the main attention in each target classification result as the first classification result.

[0147] In an exemplary embodiment, the target classification model acquisition unit is further configured to perform: using historical images as input, and the first classification results and the second classification results as supervision information, to train the initial classification model to obtain an intermediate classification model; using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention, to train the intermediate classification model to obtain a target classification model; wherein the first preset value is greater than or equal to the second preset value.

[0148] In an exemplary embodiment, the video recommendation unit 804 is configured to perform: using the target probability and the target vector as video recommendation features corresponding to the target video, inputting a preset video recommendation model, and obtaining the recommendation probability of the target video's attention level in a preset interval; when the recommendation probability is greater than a preset threshold, recommending the target video.

[0149] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0150] Fig. 9 900 is a block diagram of an electronic device according to an exemplary embodiment. The electronic device can be used to determine video recommendation features and determine a video recommendation model. For example, device 900 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0151] Reference Fig. 9, the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 90 , an input / output (I / O) interface 92 , a sensor component 94 , and a communication component 96 .

[0152] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0153] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0154] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0155] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0156] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0157] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0158] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0159] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication.

[0160] In an exemplary embodiment, the device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A video recommendation method, characterized in that: include: Get the target image corresponding to the target video; The target image is input into a preset target classification model to obtain a target probability that the attention level of the target video is within a preset interval; wherein the attention level is a comprehensive parameter value that measures the degree of attention paid to the target video, and the target classification model is a model for predicting attention level distribution obtained through historical video training; Inputting the target image into the target classification model, and determining the feature vector output by the preset fully connected layer as the target vector; The target probability and the target vector are used as video recommendation features corresponding to the target video and input into a preset video recommendation model to recommend the target video.

2. The video recommendation method according to claim 1, characterized in that: The method for obtaining the target classification model includes: Obtaining historical images corresponding to historical videos and the attention level of the historical videos; Classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results; The historical image is used as input and the attention classification result is used as supervision information, and a preset initial classification model is trained to obtain the target classification model.

3. The video recommendation method according to claim 2, characterized in that: The attention level includes primary attention level and secondary attention level; the primary attention level includes the attention amount corresponding to the target video, and the secondary attention level includes at least one of the click rate, like rate, attention rate or completion rate corresponding to the target video; the preset interval includes a first preset interval and a second preset interval; The step of classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results includes: Classifying the main attention degree according to the first preset interval to obtain a first classification result; Classifying the auxiliary attention degree according to the second preset interval to obtain a second classification result; The first classification result and the second classification result are determined as the attention classification result.

4. The video recommendation method according to claim 3, characterized in that: The step of classifying the main attention degree according to the first preset interval to obtain a first classification result includes: Divide the first preset interval according to a preset numerical sequence to obtain at least one main preset interval; The second preset interval is divided in the form of a logarithmic function to obtain at least one auxiliary preset interval.

5. The video recommendation method according to claim 4, characterized in that: The classifying the main attention degree according to the first preset interval to obtain a first classification result includes: In each of the main preset intervals, clustering the main attention degrees to obtain at least one target classification result; A preset proportion of main attention in each of the target classification results is determined as the first classification result.

6. The video recommendation method according to any one of claims 3 to 5, characterized in that: The method uses the historical image as input and the attention classification result as supervision information to train a preset initial classification model to obtain the target classification model, including: Taking the historical image as input and the first classification result and the second classification result as supervision information, training the initial classification model to obtain an intermediate classification model; The intermediate classification model is trained using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value.

7. The video recommendation method according to claim 1, characterized in that: The step of using the target probability and the target vector as video recommendation features corresponding to the target video and inputting them into a preset video recommendation model to recommend the target video includes: The target probability and the target vector are used as video recommendation features corresponding to the target video, and input into a preset video recommendation model to obtain a recommendation probability of the target video's attention degree within the preset interval; When the recommendation probability is greater than a preset threshold, the target video is recommended.

8. A video recommendation device, characterized in that: include: A target image acquisition unit, configured to acquire a target image corresponding to a target video; A target probability determination unit is configured to input the target image into a preset target classification model to obtain a target probability that the attention level of the target video is within a preset interval; wherein the attention level is a comprehensive parameter value for measuring the degree of attention of the target video, and the target classification model is a model for predicting attention level distribution obtained by training based on historical videos; a target vector determination unit, configured to input the target image into the target classification model, and determine a feature vector output by a preset fully connected layer as a target vector; The video recommendation unit is configured to use the target probability and the target vector as video recommendation features corresponding to the target video, and input them into a preset video recommendation model to recommend the target video.

9. The video recommendation device according to claim 8, characterized in that: The apparatus for determining video recommendation features further includes a target classification model acquisition unit configured to execute: Obtaining historical images corresponding to historical videos and the attention level of the historical videos; Classifying the attention levels of the historical videos according to the preset intervals to obtain attention level classification results; The historical image is used as input and the attention classification result is used as supervision information, and a preset initial classification model is trained to obtain the target classification model.

10. The video recommendation device according to claim 9, characterized in that: The attention level includes primary attention level and secondary attention level; the primary attention level includes the attention amount corresponding to the target video, and the secondary attention level includes at least one of the click rate, like rate, attention rate or completion rate corresponding to the target video; the preset interval includes a first preset interval and a second preset interval; The target classification model acquisition unit is further configured to execute: Classifying the main attention degree according to the first preset interval to obtain a first classification result; Classifying the auxiliary attention degree according to the second preset interval to obtain a second classification result; The first classification result and the second classification result are determined as the attention classification result.

11. The video recommendation device according to claim 10, characterized in that: The target classification model acquisition unit is further configured to execute: Divide the first preset interval according to a preset numerical sequence to obtain at least one main preset interval; The second preset interval is divided in the form of a logarithmic function to obtain at least one auxiliary preset interval.

12. The video recommendation device according to claim 11, characterized in that: The target classification model acquisition unit is further configured to execute: In each of the main preset intervals, clustering the main attention degrees to obtain at least one target classification result; A preset proportion of main attention in each of the target classification results is determined as the first classification result.

13. The video recommendation device according to any one of claims 10 to 12, characterized in that: The target classification model acquisition unit is further configured to execute: Taking the historical image as input and the first classification result and the second classification result as supervision information, training the initial classification model to obtain an intermediate classification model; The intermediate classification model is trained using the first preset value as the weight of the loss function corresponding to the main attention, and the second preset value as the weight of the loss function corresponding to the auxiliary attention to obtain the target classification model; wherein the first preset value is greater than or equal to the second preset value.

14. The video recommendation device according to claim 8, characterized in that: The video recommendation unit is configured to perform: The target probability and the target vector are used as video recommendation features corresponding to the target video, and input into a preset video recommendation model to obtain a recommendation probability of the target video's attention degree within the preset interval; When the recommendation probability is greater than a preset threshold, the target video is recommended.

15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video recommendation method according to any one of claims 1 to 7. 16 . A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the video recommendation method according to claim 1 .

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video recommendation method according to any one of claims 1 to 7 is implemented.