WO2020135054A1 - Method, device and apparatus for video recommendation and storage medium - Google Patents

Method, device and apparatus for video recommendation and storage medium Download PDF

Info

Publication number
WO2020135054A1
WO2020135054A1 PCT/CN2019/124582 CN2019124582W WO2020135054A1 WO 2020135054 A1 WO2020135054 A1 WO 2020135054A1 CN 2019124582 W CN2019124582 W CN 2019124582W WO 2020135054 A1 WO2020135054 A1 WO 2020135054A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
recommended
historical
classification
recommendation model
Prior art date
Application number
PCT/CN2019/124582
Other languages
French (fr)
Chinese (zh)
Inventor
刘运
刘文奇
Original Assignee
广州市百果园信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州市百果园信息技术有限公司 filed Critical 广州市百果园信息技术有限公司
Publication of WO2020135054A1 publication Critical patent/WO2020135054A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/251Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4662Learning process for intelligent management, e.g. learning user preferences for recommending movies characterized by learning algorithms
    • H04N21/4665Learning process for intelligent management, e.g. learning user preferences for recommending movies characterized by learning algorithms involving classification methods, e.g. Decision trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections

Definitions

  • the embodiments of the present application relate to computer vision technology, for example, to a video recommendation method, device, device, and storage medium.
  • Video recommendation is an important research direction in the field of computer vision.
  • deep learning is also widely used in video recommendation, that is, a video recommendation model based on deep learning training is used for video recommendation.
  • the video recommendation model needs to be adjusted according to actual business needs.
  • the video recommendation model generated based on deep learning training has a long training period, which makes it difficult to adapt to the adjustment of actual services.
  • the adjustment periods of the above actual services are relatively short, making deep learning based
  • the prediction accuracy of the video recommendation model generated by the training is not high, and it is impossible to obtain a suitable video for recommendation.
  • the adjustment of the actual business can refer to the adjustment of the operation strategy or the change of the hotspot video.
  • the so-called operation strategy adjustment can be understood as changing the recommended animation video to the recommended game video, and the change of the hotspot video can be understood as the change of the hotspot video from category C to category D.
  • the recommended category C video becomes the recommended category D video.
  • Embodiments of the present application provide a video recommendation method, device, equipment, and storage medium to improve the prediction accuracy of a video recommendation model.
  • An embodiment of the present application provides a video recommendation method.
  • the method includes:
  • the recommended video under each classification label is obtained.
  • An embodiment of the present application also provides a video recommendation device, which includes:
  • the current video collection acquisition module is set to obtain the current video collection
  • the classification label and classification score acquisition module is set to input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection;
  • the recommended video determination module is configured to obtain the recommended video under each classification label according to the classification score of the video under each classification label in the current video set.
  • An embodiment of the present application also provides a device, which includes:
  • One or more processors are One or more processors;
  • Memory set to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the video recommendation method as provided in any embodiment of the present application.
  • An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a video recommendation method as provided in any embodiment of the present application is implemented.
  • FIG. 1 is a flowchart of a video recommendation method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a video recommendation device provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of a video recommendation method provided by an embodiment of the present application. This embodiment can be applied to improve the prediction accuracy of a video recommendation model.
  • the method can be performed by a video recommendation device, which can use software and And/or hardware, the device may be configured in a device, such as a computer or a mobile terminal. As shown in Figure 1, the method includes the following steps:
  • Step 110 Obtain the current video collection.
  • Step 120 Input the current video collection and the historical video collection into the historical latest video recommendation model, and obtain the classification label and classification score of the video in the current video collection.
  • the current video collection may be a collection composed of videos without classification tags.
  • the current video collection may be a collection composed of videos uploaded on the same day without a classification label.
  • the historical video set may be a set composed of videos with classification tags, that is, each video in the historical video set has a corresponding classification tag.
  • the video classification label may refer to the content category corresponding to the video content, that is, the video classification label may refer to the content category to which the video belongs.
  • the historical video collection is a collection composed of videos with classification tags
  • the historical video collection and the current video collection are input into the historical latest video recommendation model together, and the historical video collection can be used as a priori knowledge of the current video collection, thereby improving the history The prediction accuracy of the latest video recommendation model for the current video collection.
  • the historical latest video recommendation model can be used to determine the corresponding classification label for each video in the current video collection.
  • the network structure of the latest historical video recommendation model can be the network structure of the deep learning algorithm, such as the network structure of the traditional convolutional neural network, or the lightweight structure formed by improving the network structure of the traditional convolutional neural network.
  • the latest historical video recommendation model may be a video recommendation model that is updated according to a preset period. The update described here is to calculate the loss function of the model through forward propagation according to the updated input variables, and calculate the loss function on the network parameters of the model. Partial derivative, and then update the network parameters of the model through reverse gradient propagation until the new network parameters are determined.
  • the historical latest video recommendation model may be a video recommendation model updated according to a preset update period
  • the historical latest video recommendation model may refer to the video recommendation model corresponding to the current update period.
  • the source of the updated input variable described above may be determined based on the prediction result of the video recommendation model corresponding to the last update cycle.
  • the historical latest video recommendation model described in the embodiment of the present application is different from the video recommendation model generated based on deep learning training in the related art.
  • the video recommendation model that can be applied to the actual business in the related technology often needs to go through the following three stages: First stage, collect and label data; second stage, training model; third stage, input the data from the actual online business into the trained video recommendation model, and evaluate the prediction accuracy of the model according to the prediction results of the video recommendation model Then, according to the evaluation results, adjust the input variables and retrain the model until the evaluation results meet the actual business application requirements.
  • the data in the first stage refers to offline data.
  • the offline data is input to the model as input variables. If the actual business changes, the above three stages need to be re-executed to obtain a video recommendation model corresponding to the actual business.
  • the foundation of the historical latest video recommendation model described in the embodiments of the present application is a pre-training model, which is a multi-modal model that has learned a large number of related data sets.
  • the multi-modal model includes an audio recognition model and an action recognition model , Image classification model, image segmentation model and face recognition model.
  • the video recommendation model that can be applied to the actual business in the related technologies cannot achieve good results in recommending hot videos. This is due to the long period of obtaining the video recommendation model that can be applied to the actual business in the related technology, and the update period of the hotspot video is relatively short.
  • the historical latest video recommendation model provided by the embodiment of the present application can achieve better results in recommending hotspot videos. This is because the embodiment of the present application has a shorter period of obtaining the historical latest video recommendation model that can be applied to actual services. It can be matched with the update period of hotspot videos.
  • the historical latest video recommendation model is a video recommendation model updated according to the update cycle, the historical latest video recommendation model can adapt to the changes of the hotspot video in real time and make corresponding changes to recommend the hotspot video.
  • the original classification label of the video may be sorted according to the descending sorting result of the original classification score of the video, and the top N original classification labels are selected from the sorting results of the original classification labels as The category label for this video.
  • each original classification label corresponds to an original classification score.
  • the historical latest video recommendation model described in the embodiment of the present application is a multi-category video recommendation model, that is, the number of original classification labels of each video in the current video set obtained based on the historical latest video recommendation model is two or two More than.
  • each original classification label corresponds to an original classification score, that is, the number of original classification labels is the same as the original classification score
  • the difference is that the original classification score corresponding to each original classification label, of course, may also exist
  • the number of original classification tags and the number of original classification tags are determined by the historical latest video recommendation model.
  • the number of original classification tags that can be recognized by the latest historical video recommendation model is three, and the three original classification tags are music, basketball, and original
  • the number of original classification tags of video A in the current video collection That is three, namely music, basketball and original, the original classification scores corresponding to the three original classification tags of video A are 5, 4 and 1, respectively
  • the number of original classification tags of video B is also three, respectively Music, basketball and original, the original classification scores corresponding to the three original classification labels of video B are 1, 2 and 6, respectively.
  • For video A sort the original classification tags of video A according to the descending sorting results of the original classification score of video A, and select the first two original classification tags from the sorting results of the original classification tags of video A as the classification of video A Tag, that is, the original classification label of video A, music and basketball as the classification label of video A; for video B, the original classification label of video B is sorted according to the descending sorting result of the original classification score of video B, and The first two original classification tags are selected as the classification tags of video B in the sorting results of the original classification tags, that is, the original classification tags of video B, basketball and original, are used as the classification tags of video B.
  • Step 130 According to the classification score of the video under each classification label in the current video set, obtain the recommended video under each classification label.
  • the recommended video under each classification label needs to be determined. That is, for each classification label, multiple videos can be sorted according to the classification score corresponding to multiple videos in the current video set, and the recommended videos under the classification label can be determined according to the sorting result. In an embodiment, for each classification label, multiple videos can be sorted according to the descending sorting results of the classification scores corresponding to multiple videos in the current video set, and the top M videos can be selected from the sorting results of multiple videos As a recommended video under this category label. Each category label performs the same operation as described above until the recommended video under each category label is determined. In an embodiment, the value of M corresponding to different classification labels may be the same or different, and may be determined according to actual conditions, which is not limited herein.
  • obtaining the recommended video under each classification label according to the classification score of the video under each classification label in the current video collection may include: according to each in the current video collection The classification score of the video under the classification label to obtain the video to be recommended under each classification label.
  • the classification label of the video to be recommended is consistent with the content of the video to be recommended, the video to be recommended is regarded as the recommended video under each classification label.
  • the original classification score corresponding to the original classification label of each video in the current video set obtained based on the historical latest video recommendation model may not be correct, based on the original classification score of each video, it is determined
  • the classification label of each video may also be incorrect.
  • the classification score corresponding to the classification label of the video is not correct.
  • the recommended The video may also be incorrect.
  • the following method may be adopted: according to the classification scores of multiple videos under each classification label in the current video set, the videos to be recommended under each classification label are obtained, and the classification of the videos to be recommended is determined Whether the label is consistent with the content of the video to be recommended. If the classification label of the video to be recommended is consistent with the content of the video to be recommended, it can indicate that the recommended video under each classification label obtained based on the historical latest video recommendation model is correct.
  • the to-be-recommended video determined for each category label serves as the recommended video under each category label.
  • the above determination of whether the classification label of the video to be recommended is consistent with the content of the video to be recommended may be performed by a user who has permission to review the classification label of the video.
  • the current video collection and the historical video collection are input into the historical latest video recommendation model, and the classification labels and classification scores of the videos in the current video collection are obtained, according to each classification label in the current video collection The classification score of the next video to obtain the recommended video under each classification label.
  • the latest historical video recommendation model has a shorter training period than the video recommendation model generated based on deep learning training in the related technology, the historical video The recommendation model can be well adapted to the adjustment of actual business.
  • the historical video collection that can be used as a priori knowledge of the current video collection is also used as an input variable, which improves the prediction accuracy of the latest video recommendation model for the current video collection.
  • the method may further include: when the classification label of the video to be recommended is different from the content of the video to be recommended, after the preset time point is reached, the video to be recommended will be added
  • the historical video collection is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
  • the classification label of the video to be recommended is not consistent with the content corresponding to the content of the video to be recommended, it may indicate that the recommended video under the classification label obtained based on the historical latest video recommendation model is incorrect, and at the same time .
  • the latest historical video recommendation model is the video recommendation model corresponding to the current update cycle, in other words, the video recommendation model is a video recommendation model that is updated according to the update cycle, therefore, the video recommendation model needs to be updated to get the next update
  • the historical latest video recommendation model corresponding to the period improves the prediction accuracy of the historical latest video recommendation model corresponding to the next update period, and the to-be-recommended videos whose classification labels of the to-be-recommended videos and the content of the to-be-recommended videos are inconsistent can be added to the historical video collection ,
  • the historical video set added to the to-be-recommended video is used as an input variable of the historical latest video recommendation model, and participates in the process of updating the historical latest video recommendation model.
  • the reason why the above can improve the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle is that: the category label of the above-mentioned to-be-recommended video and the content of the to-be-recommended video are inconsistent, and it is considered that the latest video recommendation model is not easy to be accurate Determine the video of the classification label, and input the historical video set added to the video to be recommended as the input variable into the historical latest video recommendation model, so that the historical latest video recommendation model can further learn the characteristics of the video to be recommended during the update process to improve
  • the recognition accuracy of the classification label of the video to be recommended by the historical latest video recommendation model corresponding to the next update cycle also increases the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle.
  • a video in which the classification label of the video to be recommended is inconsistent with the content corresponding to the content of the video to be recommended is called a hard sample, that is, a hard sample is a video of the following type: a video in the current video set is originally A video that does not belong to a category label but is labeled by the latest historical video recommendation model with a high category score as the category label.
  • determining whether the classification label marked on the video is correct can be performed by a user who has permission to review the classification label of the video.
  • the method may further include: obtaining a target video that meets the recommended conditions in the current video collection, and sending the target video to a terminal having a labeling permission for the classification label; receiving the label classification sent by the terminal The target video after the label; after reaching the preset time point, the historical video collection of the target video after adding the classification label is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
  • the target video in the current video collection that meets the recommended conditions can also be obtained and the target video can be sent to
  • the corresponding labeling personnel will label the classification label and receive the target video after the labeling of the classification label.
  • the historical video collection of the target video with the labeling classification label will be added.
  • the historical video collection of the target video after adding the classification label is used as the input variable of the latest historical video recommendation model.
  • the reason for participating in the process of updating the historical latest video recommendation model is that the target video is sent to the label with the classification label
  • the corresponding tagging personnel tag the target videos in the current video set that meet the recommended conditions, and it is generally considered that the tagging results obtained by tagging the target videos in the above manner (that is, the target video’s Classification annotation) is relatively correct, therefore, the historical video collection of the target video after adding the classification label is used as the input variable of the latest historical video recommendation model, and participates in the process of updating the historical latest video recommendation model, making the latest historical video
  • the recommendation model can further strengthen the learning of the characteristics of the target video, and on the other hand, improve the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle.
  • the target video history video set with the classification label added is used as the input variable of the latest historical video recommendation model and participates in the process of updating the historical latest video recommendation model, then the distance needs to be deleted from the historical video collection
  • the target video after the classification label is marked in an update cycle with the longest update cycle time.
  • the recommended conditions may include a video playback rate greater than or equal to the playback rate threshold, a video like rate greater than or equal to the like rate threshold, a video comment rate greater than or equal to the review rate threshold, and a video forward rate greater than or equal to the forward rate threshold
  • the recommended condition is that the video play rate is greater than or equal to the play rate threshold
  • the target video that meets the recommended conditions refers to the video play rate greater than or equal to the play Rate threshold video
  • the recommended condition is that the video like rate is greater than or equal to the like rate threshold
  • the target video that meets the recommended conditions refers to the video whose video like rate is greater than or equal to the like rate threshold
  • the recommended condition is video If the review rate is greater than or equal to the review rate threshold, the target video that meets the recommended conditions refers to the video whose review rate is greater than or equal to the review rate threshold; if the recommended condition is that the video
  • the recommended conditions are two or more of the above, they must all be met.
  • the target video that meets the recommended conditions refers to the video play rate being greater than or equal to the play rate threshold and Videos with a video like rate greater than or equal to the like rate threshold; if the recommended conditions are that the video play rate is greater than or equal to the play rate threshold, the video like rate is greater than or equal to the like rate threshold, and the video forwarding rate is greater than the forward rate threshold, the recommended conditions are met
  • the target video refers to videos with a video playback rate greater than or equal to the playback rate threshold, a video like rate greater than or equal to the like rate threshold, and a video forward rate greater than or equal to the forward rate threshold.
  • the historical video collection of the target video after adding the classification label is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation
  • the model may include: assigning different weight values to the first video that is the same as the recommended video in the target video after the classification label and the second video that is not the same as the recommended video in the target video after the classification label.
  • the historical video collection of the first video after the weighting value and the second video after the weighting value are added is used as an input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
  • the target video is a video that meets the recommendation condition in the current video collection, and the recommendation condition is a reflection of the user's real behavior
  • the target video is a video that needs to be labeled with a classification label. If the prediction accuracy of the historical latest video recommendation model is high, the target video should be included in the recommended video. In an embodiment, if the target video is included in the recommended video, the original video corresponding to the target video needs to have a relatively high score, so that it may be determined as the recommended video, and the prediction accuracy of the above-mentioned historical latest video recommendation model can only be achieved.
  • the recommended video does not contain the target video, it can indicate that the prediction accuracy of the historical latest video recommendation model is relatively low, and the original classification score of the target video cannot be accurately determined, which results in the historical latest video recommendation model being unable to correctly determine the target.
  • the reason for the original classification score of the video is that the latest video recommendation model cannot extract the effective features of the target video.
  • the target video that does not belong to the recommended video can be added to the historical video collection to participate in the update of the historical latest video recommendation model In the process, the historical latest video recommendation model can further strengthen the learning of the characteristics of the target video.
  • the historical latest video recommendation model can accurately determine the original classification score of the target video.
  • you can The target video of the recommended video and the target video that is not the recommended video are given different weight values. For the weight values corresponding to the two, a smaller weight value can be set for the target video that belongs to the recommended video and the target video that is not the recommended video Set a larger weight value.
  • the target video belonging to the recommended video means the video that appears in both the target video and the recommended video. From the perspective of the target video, the target video belonging to the recommended video can be understood as the first video in the target video that is the same as the recommended video, not The target video that belongs to the recommended video means a video that does not appear in the recommended video. From the perspective of the target video, the target video that does not belong to the recommended video can be understood as the second video in the target video that is different from the recommended video.
  • the target video that belongs to the recommended video and the target video that does not belong to the recommended video are given different weight values, that is, the first video in the target video that is the same as the recommended video and the second video in the target video that is not the same as the recommended video are given different weights Weights.
  • the weight value here indicates that in the process of updating the latest video recommendation model in history, when calculating the loss function of the video recommendation model, the loss function corresponding to the first video and the loss function corresponding to the second video are included in the loss function of the video recommendation model. Weight.
  • the first video in the target video that is the same as the recommended video may be called a positive sample.
  • the classification label corresponding to the positive sample is obtained by a person who has the authority to label the classification label.
  • the second video that is different from the recommended video in the above target video can be called a hard positive sample, that is, a hard positive sample refers to a video of the following type: a video in the current video collection should actually be a recommended video under a category label, However, because the latest historical video recommendation model processes the video, the video is given a lower original classification score, so that the video cannot be used as a recommended video under the classification label because the original classification score is low.
  • the second video in the target video after the classification label is different from the recommended video is used as the additional recommended video.
  • the second video since the second video does not belong to the recommended video, and the second video is a video that meets the recommendation condition in the current video collection, the second video that is different from the recommended video in the target video may be used as an additional recommendation video.
  • the method before inputting the current video collection and the historical video collection into the historical latest video recommendation model, the method may further include: acquiring the original historical video collection. According to the classification labels of the videos in the original historical video collection, cluster processing is performed to obtain the historical video collection.
  • the classification tags of the videos in the original historical video set may be clustered, and according to the clustering result, from each Under the category label, select the appropriate number of videos.
  • the reason for performing the above operation is that if the classification labels of the videos in the original historical video collection are not clustered, that is, the original historical video collection is used as the historical video collection, the number of videos under different classification labels in the historical video collection may not be Balanced, that is, the number of videos under one or more classification tags is relatively large, and the number of videos under other classification tags is relatively small.
  • the historical video collection will participate in the process of updating the latest video recommendation model, If the number of videos under different classification labels in the historical video collection is not balanced, it will result in the updated historical latest video recommendation model cannot accurately give the original classification score of the video with a small number of videos under the classification label. In short, the prediction accuracy of the updated historical latest video recommendation model will be low.
  • the number of videos under different classification tags in the historical video collection is more balanced, and the prediction accuracy of the updated historical latest video recommendation model is improved.
  • the number of original classification tags and original classification tags in the historical latest video recommendation model corresponding to the next update cycle is determined by the historical video set corresponding to the current update cycle. In one embodiment, the number of original classification tags and original classification tags in the historical latest video recommendation model corresponding to the next update cycle is determined by the first video in the target video corresponding to the recommended video and the recommended video in the target video corresponding to the current update cycle. The second video that is different from the video, and the first video that is the same as the recommended video in the target video corresponding to T update cycles before the current update cycle and the second video that is not the same as the recommended video in the target video. In terms of update cycle, the original classification labels and the number of original classification labels of the latest historical video recommendation model are also constantly updated.
  • the current video set corresponding to the current update cycle may be recommended
  • the classification label of the video is inconsistent with the content of the video to be recommended (i.e. difficult to sample), the first video (i.e.
  • the current update period corresponds The second video of the target video in the current video collection that is not the same as the recommended video (that is, difficult to positive samples), the first video that is the same as the recommended video in the target video corresponding to T update cycles before the current update cycle (that is, positive samples ) And in the target video corresponding to T update cycles before the current update cycle, different weight values are set for the second video (that is, difficult to sample) that is different from the recommended video.
  • the weight value here also represents the weight of the loss function corresponding to each of the above parts in the loss function of the video recommendation model when calculating the loss function of the video recommendation model during the update of the latest video recommendation model in history.
  • the video in the original historical video set is clustered, and only the first video in the target video that is the same as the recommended video in the current video set corresponding to the current update cycle and the target video may be different from the recommended video And the second video of the target video corresponding to the recommended video and the second video of the target video that is not the same as the recommended video are clustered.
  • the historical video set corresponding to the current update cycle will include the classification label determination of each video in the current video set corresponding to the previous update cycle.
  • Multi-category videos that is, videos whose classification labels of the videos to be recommended are inconsistent with the content of the videos to be recommended (that is, difficult samples), the first video in the target video that is the same as the recommended video (that is, positive samples), and the target video that is recommended
  • the first video that is, positive samples
  • the second video that is, difficult to positive samples
  • it also includes the first video (that is, positive samples) that is the same as the recommended video in the target video corresponding to T update cycles before the last update cycle and the target video that is the same as the recommended video.
  • the second video that is different from the recommended video that is, the difficult sample).
  • the target video is the same as the recommended video.
  • a video (that is, a positive sample) and a second video (that is, a difficult positive sample) that is different from the recommended video in the target video, and the target video that is the same as the recommended video in the target video corresponding to T update cycles before the last update cycle A video (that is, positive sample) and a second video (that is, difficult to positive sample) in the target video that is different from the recommended video will have a video with the classification label as Songkran.
  • the original classification label of the video is the original classification score of the video for the Songkran Festival It will be relatively high, so that the original classification label for the Songkran Festival is called the classification label of the video, and further, the video to be recommended under the classification label is obtained. If the classification label of the video to be recommended is consistent with the content of the video to be recommended, then The video to be recommended is regarded as the recommended video under the classification label, that is, the video whose classification label is Songkran Festival becomes the recommended video.
  • the video about the Songkran Festival is considered to be a recent hot video
  • FIG. 2 is a schematic structural diagram of a video recommendation device according to an embodiment of the present application. This embodiment can be applied to improve the prediction accuracy of a video recommendation model.
  • the device can be implemented in software and/or hardware.
  • the device can It is configured in the device, for example, in a computer or mobile terminal.
  • the device includes: a current video collection obtaining module 210, which is configured to obtain a current video collection.
  • the classification label and classification score acquisition module 220 is set to input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection.
  • the recommended video determination module 230 is set to obtain the recommended video under each classification label according to the classification score of the video under each classification label in the current video set.
  • the current video collection and the historical video collection are input into the historical latest video recommendation model, and the classification labels and classification scores of the videos in the current video collection are obtained, according to each classification label in the current video collection
  • the classification score of the next video is used to obtain the recommended video under each classification label, and the video recommendation is performed by using the historical latest video recommendation model obtained on the basis of the pre-trained model.
  • the historical latest video recommendation model is based on The training period of the video recommendation model generated by deep learning training is short, so the historical video recommendation model can be well adapted to the adjustment of actual business, and at the same time, the historical video collection that can be used as a priori knowledge of the current video collection is also used as input Variables to improve the prediction accuracy of the latest video recommendation model for the current video collection.
  • FIG. 3 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 3 shows a block diagram of an exemplary device 312 suitable for implementing embodiments of the present application.
  • the device 312 is represented in the form of a general-purpose computing device.
  • the components of device 312 may include, but are not limited to, one or more processors 316, system memory 328, and bus 318 connected to different system components (including system memory 328 and processor 316).
  • System memory 328 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 330 and/or cache memory 332.
  • RAM random access memory
  • the storage system 334 may be configured to read and write non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive").
  • the program/utility tool 340 having a set of (at least one) program modules 342 may be stored in the memory 328, for example.
  • the device 312 may also communicate with one or more external devices 314 (eg, keyboard, pointing device, display 324, etc.). This communication may be performed through an input/output (I/O) interface 322.
  • I/O input/output
  • the device 312 can also communicate with one or more networks (such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet) through the network adapter 320.
  • the processor 316 runs a program stored in the system memory 328 to execute various functional applications and data processing, for example, to implement a video recommendation method provided by an embodiment of the present application, the method includes: acquiring a current video collection. Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection. According to the classification score of the video under each classification label in the current video set, the recommended video under the classification label is obtained.
  • networks such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet
  • the processor 316 runs a program stored in the system memory 328 to execute various functional applications and
  • An embodiment of the present application also provides a computer-readable storage medium that stores a computer program, and when the program is executed by a processor, a video recommendation method as provided in the embodiment of the present application is implemented.
  • the method includes: obtaining a current video collection . Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection. According to the classification score of the video under each classification label in the current video set, the recommended video under the classification label is obtained.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed by the present disclosure are a method, device and apparatus for video recommendation and a storage medium. The method comprises the following steps: acquiring a current video set; inputting the current video set and a historical video set into a latest historical video recommendation model to obtain a category tag and a category score for each video in the current video set; and obtaining recommended videos under each category tag according to the category scores of the videos under each category tag in the current video set.

Description

视频推荐方法、装置、设备及存储介质Video recommendation method, device, equipment and storage medium
本申请要求在2018年12月29日提交中国专利局、申请号为201811640356.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application filed on December 29, 2018 with the Chinese Patent Office, application number 201811640356.6. The entire contents of this application are incorporated by reference in this application.
技术领域Technical field
本申请实施例涉及计算机视觉技术,例如涉及一种视频推荐方法、装置、设备及存储介质。The embodiments of the present application relate to computer vision technology, for example, to a video recommendation method, device, device, and storage medium.
背景技术Background technique
随着计算机硬件性能的提升和大规模图像数据的出现,深度学习在计算机视觉领域得到广泛应用。视频推荐是计算机视觉领域的重要研究方向,针对视频推荐来说,深度学习也在视频推荐方面得到广泛应用,即采用基于深度学习训练生成的视频推荐模型进行视频推荐。视频推荐模型需要根据实际业务需要进行相应调整。With the improvement of computer hardware performance and the emergence of large-scale image data, deep learning has been widely used in the field of computer vision. Video recommendation is an important research direction in the field of computer vision. For video recommendation, deep learning is also widely used in video recommendation, that is, a video recommendation model based on deep learning training is used for video recommendation. The video recommendation model needs to be adjusted according to actual business needs.
相关技术中,基于深度学习训练生成的视频推荐模型,由于视频推荐模型的训练周期比较长,导致无法很好的适应实际业务的调整,上述实际业务的调整周期相对都较短,使得基于深度学习训练生成的视频推荐模型的预测精度不高,无法得到合适的视频进行推荐。实际业务的调整可以指运营策略调整或热点视频的变化,所谓运营策略调整可以理解为将推荐动漫视频改为推荐游戏视频,热点视频的变化可以理解为热点视频从C类变为了D类,相应的,将推荐C类视频变为推荐D类视频。In the related art, the video recommendation model generated based on deep learning training has a long training period, which makes it difficult to adapt to the adjustment of actual services. The adjustment periods of the above actual services are relatively short, making deep learning based The prediction accuracy of the video recommendation model generated by the training is not high, and it is impossible to obtain a suitable video for recommendation. The adjustment of the actual business can refer to the adjustment of the operation strategy or the change of the hotspot video. The so-called operation strategy adjustment can be understood as changing the recommended animation video to the recommended game video, and the change of the hotspot video can be understood as the change of the hotspot video from category C to category D. , The recommended category C video becomes the recommended category D video.
发明内容Summary of the invention
本申请实施例提供一种视频推荐方法、装置、设备及存储介质,以提高视频推荐模型的预测精度。Embodiments of the present application provide a video recommendation method, device, equipment, and storage medium to improve the prediction accuracy of a video recommendation model.
本申请实施例提供了一种视频推荐方法,该方法包括:An embodiment of the present application provides a video recommendation method. The method includes:
获取当前视频集合;Get the current video collection;
将所述当前视频集合和历史视频集合输入历史最新视频推荐模型,得到所述当前视频集合中视频的分类标签和分类得分;Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection;
根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。According to the classification score of the video under each classification label in the current video set, the recommended video under each classification label is obtained.
本申请实施例还提供了一种视频推荐装置,该装置包括:An embodiment of the present application also provides a video recommendation device, which includes:
当前视频集合获取模块,设置为获取当前视频集合;The current video collection acquisition module is set to obtain the current video collection;
分类标签和分类得分获取模块,设置为将所述当前视频集合和历史视频集合输入历史最新视频推荐模型,得到所述当前视频集合中视频的分类标签和分类得分;The classification label and classification score acquisition module is set to input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection;
推荐视频确定模块,设置为根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。The recommended video determination module is configured to obtain the recommended video under each classification label according to the classification score of the video under each classification label in the current video set.
本申请实施例还提供了一种设备,该设备包括:An embodiment of the present application also provides a device, which includes:
一个或多个处理器;One or more processors;
存储器,设置为存储一个或多个程序;Memory, set to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本申请任意实施例提供的视频推荐方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the video recommendation method as provided in any embodiment of the present application.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请任意实施例提供的视频推荐方法。An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a video recommendation method as provided in any embodiment of the present application is implemented.
附图说明BRIEF DESCRIPTION
图1是本申请实施例提供的一种视频推荐方法的流程图;FIG. 1 is a flowchart of a video recommendation method provided by an embodiment of the present application;
图2是本申请实施例提供的一种视频推荐装置的结构示意图;2 is a schematic structural diagram of a video recommendation device provided by an embodiment of the present application;
图3是本申请实施例提供的一种设备的结构示意图。FIG. 3 is a schematic structural diagram of a device provided by an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请进行说明。本文所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be described below with reference to the drawings and embodiments. The specific embodiments described herein are only used to explain this application, not to limit this application. For ease of description, the drawings only show part, but not all structures related to the present application.
实施例一Example one
图1为本申请实施例提供的一种视频推荐方法的流程图,本实施例可适用于提高视频推荐模型的预测精度的情况,该方法可以由视频推荐装置来执行,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于设备中,例如配置于计算机或移动终端等中。如图1所示,该方法包括如下步骤:FIG. 1 is a flowchart of a video recommendation method provided by an embodiment of the present application. This embodiment can be applied to improve the prediction accuracy of a video recommendation model. The method can be performed by a video recommendation device, which can use software and And/or hardware, the device may be configured in a device, such as a computer or a mobile terminal. As shown in Figure 1, the method includes the following steps:
步骤110、获取当前视频集合。Step 110: Obtain the current video collection.
步骤120、将当前视频集合和历史视频集合输入历史最新视频推荐模型,得 到当前视频集合中视频的分类标签和分类得分。Step 120: Input the current video collection and the historical video collection into the historical latest video recommendation model, and obtain the classification label and classification score of the video in the current video collection.
在本申请的实施例中,当前视频集合可以为由不具有分类标签的视频所组成的集合。一实施例中,当前视频集合可以为由当天上传且不具有分类标签的视频所组成的集合。历史视频集合可以为由具有分类标签的视频所组成的集合,即历史视频集合中的每个视频已有对应的分类标签。视频的分类标签可以指与视频内容对应的内容类别,即视频的分类标签可以指视频归属的内容类别。由于历史视频集合为由具有分类标签的视频所组成的集合,因此,将历史视频集合与当前视频集合共同输入历史最新视频推荐模型,历史视频集合可以作为当前视频集合的先验知识,进而提高历史最新视频推荐模型对当前视频集合的预测精度。In the embodiment of the present application, the current video collection may be a collection composed of videos without classification tags. In an embodiment, the current video collection may be a collection composed of videos uploaded on the same day without a classification label. The historical video set may be a set composed of videos with classification tags, that is, each video in the historical video set has a corresponding classification tag. The video classification label may refer to the content category corresponding to the video content, that is, the video classification label may refer to the content category to which the video belongs. Since the historical video collection is a collection composed of videos with classification tags, the historical video collection and the current video collection are input into the historical latest video recommendation model together, and the historical video collection can be used as a priori knowledge of the current video collection, thereby improving the history The prediction accuracy of the latest video recommendation model for the current video collection.
历史最新视频推荐模型可以用于为当前视频集合中的每个视频确定对应的分类标签。此外,历史最新视频推荐模型的网络结构可以为深度学习算法的网络结构,如可以为传统卷积神经网络的网络结构,也可以为对传统卷积神经网络的网络结构进行改进所形成的轻量级卷积神经网络的网络结构。历史最新视频推荐模型可以为按照预设周期进行更新的视频推荐模型,这里所述的更新为根据更新后的输入变量,经过前向传播计算模型的损失函数,计算损失函数对模型的网络参数的偏导数,再通过反向梯度传播更新模型的网络参数,直至确定新的网络参数。由于历史最新视频推荐模型可以是按照预设更新周期进行更新的视频推荐模型,因此,历史最新视频推荐模型可以指当前更新周期对应的视频推荐模型。上文所述的更新后的输入变量的来源可以基于上一更新周期对应的视频推荐模型的预测结果确定。The historical latest video recommendation model can be used to determine the corresponding classification label for each video in the current video collection. In addition, the network structure of the latest historical video recommendation model can be the network structure of the deep learning algorithm, such as the network structure of the traditional convolutional neural network, or the lightweight structure formed by improving the network structure of the traditional convolutional neural network. The network structure of the level convolutional neural network. The latest historical video recommendation model may be a video recommendation model that is updated according to a preset period. The update described here is to calculate the loss function of the model through forward propagation according to the updated input variables, and calculate the loss function on the network parameters of the model. Partial derivative, and then update the network parameters of the model through reverse gradient propagation until the new network parameters are determined. Since the historical latest video recommendation model may be a video recommendation model updated according to a preset update period, the historical latest video recommendation model may refer to the video recommendation model corresponding to the current update period. The source of the updated input variable described above may be determined based on the prediction result of the video recommendation model corresponding to the last update cycle.
本申请实施例所述的历史最新视频推荐模型与相关技术中基于深度学习训练生成的视频推荐模型不同,相关技术中可以应用到实际业务中的视频推荐模型,往往需要经过如下三个阶段:第一阶段、收集和标注数据;第二阶段、训练模型;第三阶段、将线上实际业务中的数据输入已训练完成的视频推荐模型,根据视频推荐模型的预测结果对模型的预测精度进行评价,再根据评价结果,调整输入变量,对模型进行重新训练,直至评价结果符合实际业务应用要求。第一阶段中的数据指的是离线数据,相应的,第二阶段在对模型进行训练过程中,作为输入变量输入模型的便是离线数据。如果实际业务发生变化,则需要重新执行上述三个阶段,以得到与实际业务对应的视频推荐模型。The historical latest video recommendation model described in the embodiment of the present application is different from the video recommendation model generated based on deep learning training in the related art. The video recommendation model that can be applied to the actual business in the related technology often needs to go through the following three stages: First stage, collect and label data; second stage, training model; third stage, input the data from the actual online business into the trained video recommendation model, and evaluate the prediction accuracy of the model according to the prediction results of the video recommendation model Then, according to the evaluation results, adjust the input variables and retrain the model until the evaluation results meet the actual business application requirements. The data in the first stage refers to offline data. Correspondingly, during the training process of the model in the second stage, the offline data is input to the model as input variables. If the actual business changes, the above three stages need to be re-executed to obtain a video recommendation model corresponding to the actual business.
而本申请实施例所述的历史最新视频推荐模型建立的基础是预训练模型,该预训练模型是学习过大量相关数据集的多模态模型,多模态模型包括音频识别模型、动作识别模型、图片分类模型、图像分割模型和人脸识别模型等。在该预训练模型的基础上,只需要根据实际业务进行微调,便可以得到直接应用 到实际业务中的视频推荐模型。The foundation of the historical latest video recommendation model described in the embodiments of the present application is a pre-training model, which is a multi-modal model that has learned a large number of related data sets. The multi-modal model includes an audio recognition model and an action recognition model , Image classification model, image segmentation model and face recognition model. On the basis of this pre-trained model, you only need to fine-tune the actual business to get the video recommendation model that is directly applied to the actual business.
相关技术中可以应用到实际业务中的视频推荐模型无法在推荐热点视频方面取得好的效果。这是由于相关技术中得到可以应用到实际业务中的视频推荐模型的周期较长,而热点视频的更新周期相对较短,这样导致:在需要根据视频推荐模型推荐一类热点视频时,由于视频推荐模型还处于训练阶段,因此,无法根据该阶段的视频推荐模型得到该类热点视频;在该类热点视频的热度下降,即不再需要根据该视频推荐模型推荐该类热点视频时,该视频推荐模型经过上述三个阶段后,可以用于推荐该类热点视频,并将推荐大量该类热点视频,而由于该类热点视频的热度已过,因此,如果该视频推荐模型再推荐该类热点视频,则无法达到原有的效果,同时,还可能引起用户的反感。因此,相关技术中可以应用到实际业务中的视频推荐模型无法在推荐热点视频方面取得好的效果。而本申请实施例所提供的历史最新视频推荐模型可以在推荐热点视频方面取得比较好的效果,这是由于本申请实施例得到可以应用到实际业务中的历史最新视频推荐模型的周期较短,可以与热点视频的更新周期匹配。同时,由于历史最新视频推荐模型是按照更新周期更新的视频推荐模型,因此,历史最新视频推荐模型可以实时适应热点视频的变化而进行相应变化,以推荐热点视频。The video recommendation model that can be applied to the actual business in the related technologies cannot achieve good results in recommending hot videos. This is due to the long period of obtaining the video recommendation model that can be applied to the actual business in the related technology, and the update period of the hotspot video is relatively short. This leads to: when a type of hotspot video needs to be recommended according to the video recommendation model, due to the video The recommendation model is still in the training stage, so it is not possible to obtain this type of hotspot video based on the video recommendation model at this stage; when the popularity of this type of hotspot video drops, that is, it is no longer necessary to recommend this type of hotspot video according to this video recommendation model, the video After the above three stages, the recommendation model can be used to recommend this type of hotspot video, and will recommend a large number of such hotspot videos. Since the popularity of this type of hotspot video has passed, if the video recommendation model recommends this type of hotspot Video, it can not achieve the original effect, at the same time, it may also cause user disgust. Therefore, the video recommendation model that can be applied to the actual business in the related art cannot achieve good results in recommending hot videos. The historical latest video recommendation model provided by the embodiment of the present application can achieve better results in recommending hotspot videos. This is because the embodiment of the present application has a shorter period of obtaining the historical latest video recommendation model that can be applied to actual services. It can be matched with the update period of hotspot videos. At the same time, since the historical latest video recommendation model is a video recommendation model updated according to the update cycle, the historical latest video recommendation model can adapt to the changes of the hotspot video in real time and make corresponding changes to recommend the hotspot video.
将当前视频集合和历史视频集合输入历史最新视频推荐集合,得到当前视频集合中每个视频的原始分类标签和原始分类得分,根据每个视频的原始分类得分,对该视频的原始分类标签进行排序,根据排序结果确定该视频的分类标签,并将该视频的分类标签对应的原始分类得分作为该视频的分类得分。一实施例中,对于每个视频,可根据该视频的原始分类得分的降序排序结果,对该视频的原始分类标签进行排序,并从原始分类标签的排序结果中选择前N个原始分类标签作为该视频的分类标签。本实施例中,每个原始分类标签对应一个原始分类得分。Input the current video collection and the historical video collection into the historical latest video recommendation collection to obtain the original classification label and original classification score of each video in the current video collection, and sort the original classification label of the video according to the original classification score of each video , Determine the classification label of the video according to the sorting result, and use the original classification score corresponding to the classification label of the video as the classification score of the video. In an embodiment, for each video, the original classification label of the video may be sorted according to the descending sorting result of the original classification score of the video, and the top N original classification labels are selected from the sorting results of the original classification labels as The category label for this video. In this embodiment, each original classification label corresponds to an original classification score.
本申请实施例所述的历史最新视频推荐模型是一个多分类的视频推荐模型,即基于该历史最新视频推荐模型得到的当前视频集合中每个视频的原始分类标签的个数为两个或两个以上。同时,由于每个原始分类标签对应一个原始分类得分,即原始分类标签的个数和原始分类得分的个数相同,所不同的是每个原始分类标签对应的原始分类得分,当然,也可能存在不同视频的原始分类得分部分相同或全部相同的情况。一实施例中,原始分类标签和原始分类标签的个数由历史最新视频推荐模型所确定。The historical latest video recommendation model described in the embodiment of the present application is a multi-category video recommendation model, that is, the number of original classification labels of each video in the current video set obtained based on the historical latest video recommendation model is two or two More than. At the same time, since each original classification label corresponds to an original classification score, that is, the number of original classification labels is the same as the original classification score, the difference is that the original classification score corresponding to each original classification label, of course, may also exist The case where the original classification scores of different videos are partially the same or all the same. In an embodiment, the number of original classification tags and the number of original classification tags are determined by the historical latest video recommendation model.
示例性的,如历史最新视频推荐模型可识别的原始分类标签的个数为三个,三个原始分类标签分别为音乐、篮球和原创,则当前视频集合中视频A的原始 分类标签的个数即为三个,分别为音乐、篮球和原创,视频A的三个原始分类标签对应的原始分类得分分别为5、4和1,视频B的原始分类标签的个数同样为三个,分别为音乐、篮球和原创,视频B的三个原始分类标签对应的原始分类得分分别为1、2和6。对于视频A,根据视频A的原始分类得分的降序排序结果,对视频A的原始分类标签进行排序,并从视频A的原始分类标签的排序结果中选择前两个原始分类标签作为视频A的分类标签,即将视频A的原始分类标签音乐和篮球作为视频A的分类标签;对于视频B,根据视频B的原始分类得分的降序排序结果,对视频B的原始分类标签进行排序,并从视频B的原始分类标签的排序结果中选择前两个原始分类标签作为视频B的分类标签,即将视频B的原始分类标签篮球和原创作为视频B的分类标签。Exemplarily, if the number of original classification tags that can be recognized by the latest historical video recommendation model is three, and the three original classification tags are music, basketball, and original, then the number of original classification tags of video A in the current video collection That is three, namely music, basketball and original, the original classification scores corresponding to the three original classification tags of video A are 5, 4 and 1, respectively, and the number of original classification tags of video B is also three, respectively Music, basketball and original, the original classification scores corresponding to the three original classification labels of video B are 1, 2 and 6, respectively. For video A, sort the original classification tags of video A according to the descending sorting results of the original classification score of video A, and select the first two original classification tags from the sorting results of the original classification tags of video A as the classification of video A Tag, that is, the original classification label of video A, music and basketball as the classification label of video A; for video B, the original classification label of video B is sorted according to the descending sorting result of the original classification score of video B, and The first two original classification tags are selected as the classification tags of video B in the sorting results of the original classification tags, that is, the original classification tags of video B, basketball and original, are used as the classification tags of video B.
步骤130、根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。Step 130: According to the classification score of the video under each classification label in the current video set, obtain the recommended video under each classification label.
在本申请的实施例中,由于向用户推荐视频时,是根据视频的分类标签进行推荐的,因此,在确定推荐视频时,需要确定每个分类标签下的推荐视频。即对于每个分类标签,可根据当前视频集合中多个视频对应的分类得分,对多个视频进行排序,根据排序结果,确定该分类标签下的推荐视频。一实施例中,对于每个分类标签,可根据当前视频集合中多个视频对应的分类得分的降序排序结果,对多个视频进行排序,并从多个视频的排序结果中选择前M个视频作为该分类标签下的推荐视频。每个分类标签均执行上述相同的操作,直至确定出每个分类标签下的推荐视频。一实施例中,不同分类标签对应的M的数值可以相同,也可以不同,可根据实际情况进行确定,在此不作限定。In the embodiment of the present application, because the video is recommended to the user according to the classification label of the video, therefore, when determining the recommended video, the recommended video under each classification label needs to be determined. That is, for each classification label, multiple videos can be sorted according to the classification score corresponding to multiple videos in the current video set, and the recommended videos under the classification label can be determined according to the sorting result. In an embodiment, for each classification label, multiple videos can be sorted according to the descending sorting results of the classification scores corresponding to multiple videos in the current video set, and the top M videos can be selected from the sorting results of multiple videos As a recommended video under this category label. Each category label performs the same operation as described above until the recommended video under each category label is determined. In an embodiment, the value of M corresponding to different classification labels may be the same or different, and may be determined according to actual conditions, which is not limited herein.
一实施例中,在上述技术方案的基础上,根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频,可以包括:根据当前视频集合中每个分类标签下视频的分类得分,得到每个分类标签下的待推荐视频。在待推荐视频的分类标签与待推荐视频的内容一致的情况下,将待推荐视频作为所述每个分类标签下的推荐视频。In an embodiment, based on the above technical solution, obtaining the recommended video under each classification label according to the classification score of the video under each classification label in the current video collection may include: according to each in the current video collection The classification score of the video under the classification label to obtain the video to be recommended under each classification label. When the classification label of the video to be recommended is consistent with the content of the video to be recommended, the video to be recommended is regarded as the recommended video under each classification label.
在本申请的实施例中,由于基于历史最新视频推荐模型得到的当前视频集合中每个视频的原始分类标签对应的原始分类得分可能并不正确,因此,基于每个视频的原始分类得分,确定出的每个视频的分类标签也可能并不正确,相应的,视频的分类标签对应的分类得分也并不正确,在此基础上,对于每个分类标签,根据视频的分类得分,确定的推荐视频可能也并不正确。In the embodiment of the present application, since the original classification score corresponding to the original classification label of each video in the current video set obtained based on the historical latest video recommendation model may not be correct, based on the original classification score of each video, it is determined The classification label of each video may also be incorrect. Correspondingly, the classification score corresponding to the classification label of the video is not correct. On this basis, for each classification label, according to the classification score of the video, the recommended The video may also be incorrect.
为了确保确定出的推荐视频正确,可采用如下方式:根据当前视频集合中每个分类标签下多个视频的分类得分,得到所述每个分类标签下的待推荐视频,确定待推荐视频的分类标签与待推荐视频的内容是否一致,如果待推荐视频的 分类标签与待推荐视频的内容一致,则可以说明基于历史最新视频推荐模型得到的每个分类标签下的推荐视频是正确的,可将针对每个分类标签确定的待推荐视频作为所述每个分类标签下的推荐视频。In order to ensure that the recommended videos determined are correct, the following method may be adopted: according to the classification scores of multiple videos under each classification label in the current video set, the videos to be recommended under each classification label are obtained, and the classification of the videos to be recommended is determined Whether the label is consistent with the content of the video to be recommended. If the classification label of the video to be recommended is consistent with the content of the video to be recommended, it can indicate that the recommended video under each classification label obtained based on the historical latest video recommendation model is correct. The to-be-recommended video determined for each category label serves as the recommended video under each category label.
一实施例中,上述确定待推荐视频的分类标签与待推荐视频的内容是否一致,可以由具有对视频的分类标签进行复核权限的用户来执行。In an embodiment, the above determination of whether the classification label of the video to be recommended is consistent with the content of the video to be recommended may be performed by a user who has permission to review the classification label of the video.
本实施例的技术方案,通过获取当前视频集合,将当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的分类标签和分类得分,根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频,由于历史最新视频推荐模型相比于相关技术中基于深度学习训练生成的视频推荐模型的训练周期较短,因此,该历史视频推荐模型可以很好的适应实际业务的调整,同时,将可以作为当前视频集合的先验知识的历史视频集合也作为输入变量,提高了历史最新视频推荐模型对当前视频集合的预测精度。In the technical solution of this embodiment, by acquiring the current video collection, the current video collection and the historical video collection are input into the historical latest video recommendation model, and the classification labels and classification scores of the videos in the current video collection are obtained, according to each classification label in the current video collection The classification score of the next video to obtain the recommended video under each classification label. Since the latest historical video recommendation model has a shorter training period than the video recommendation model generated based on deep learning training in the related technology, the historical video The recommendation model can be well adapted to the adjustment of actual business. At the same time, the historical video collection that can be used as a priori knowledge of the current video collection is also used as an input variable, which improves the prediction accuracy of the latest video recommendation model for the current video collection.
一实施例中,在上述技术方案的基础上,该方法还可以包括:在待推荐视频的分类标签与待推荐视频的内容不一致的情况下,在到达预设时间点后,将加入待推荐视频的历史视频集合后作为历史最新视频推荐模型的输入变量,更新历史最新视频推荐模型。In an embodiment, based on the above technical solution, the method may further include: when the classification label of the video to be recommended is different from the content of the video to be recommended, after the preset time point is reached, the video to be recommended will be added The historical video collection is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
在本申请的实施例中,如果待推荐视频的分类标签与待推荐视频的内容对应的内容不一致,则可以说明基于历史最新视频推荐模型得到的该分类标签下的推荐视频是不正确的,同时,由于历史最新视频推荐模型是当前更新周期对应的视频推荐模型,换句话说,视频推荐模型是按照更新周期进行更新的视频推荐模型,因此,需要对视频推荐模型进行更新,以得到下一更新周期对应的历史最新视频推荐模型,使得下一更新周期对应的历史最新视频推荐模型的预测精度提高,可将上述待推荐视频的分类标签与待推荐视频的内容不一致的待推荐视频加入历史视频集合,将加入该待推荐视频的历史视频集合作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中。In the embodiment of the present application, if the classification label of the video to be recommended is not consistent with the content corresponding to the content of the video to be recommended, it may indicate that the recommended video under the classification label obtained based on the historical latest video recommendation model is incorrect, and at the same time , Because the latest historical video recommendation model is the video recommendation model corresponding to the current update cycle, in other words, the video recommendation model is a video recommendation model that is updated according to the update cycle, therefore, the video recommendation model needs to be updated to get the next update The historical latest video recommendation model corresponding to the period improves the prediction accuracy of the historical latest video recommendation model corresponding to the next update period, and the to-be-recommended videos whose classification labels of the to-be-recommended videos and the content of the to-be-recommended videos are inconsistent can be added to the historical video collection , The historical video set added to the to-be-recommended video is used as an input variable of the historical latest video recommendation model, and participates in the process of updating the historical latest video recommendation model.
上述可提高下一更新周期对应的历史最新视频推荐模型的预测精度的原因在于:可将上述待推荐视频的分类标签与待推荐视频的内容不一致的待推荐视频认为是历史最新视频推荐模型不易准确确定分类标签的视频,通过将加入该待推荐视频的历史视频集合作为输入变量输入历史最新视频推荐模型,使得历史最新视频推荐模型在更新过程中,可以进一步学习该待推荐视频的特征,以提高下一更新周期对应的历史最新视频推荐模型对该待推荐视频的分类标签的识别准确度,在此基础上,也就提高了下一更新周期对应的历史最新视频推荐模型的预测精度。The reason why the above can improve the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle is that: the category label of the above-mentioned to-be-recommended video and the content of the to-be-recommended video are inconsistent, and it is considered that the latest video recommendation model is not easy to be accurate Determine the video of the classification label, and input the historical video set added to the video to be recommended as the input variable into the historical latest video recommendation model, so that the historical latest video recommendation model can further learn the characteristics of the video to be recommended during the update process to improve The recognition accuracy of the classification label of the video to be recommended by the historical latest video recommendation model corresponding to the next update cycle also increases the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle.
一实施例中,这里可将待推荐视频的分类标签与待推荐视频的内容对应的内容不一致的视频称为难负样本,即难负样本是指如下一类视频:当前视频集合中的一个视频本来不属于一个分类标签,却被历史最新视频推荐模型以较高的分类得分将该视频标注为该分类标签的视频。一实施例中,确定该视频所标注的分类标签是否正确,可以由对视频的分类标签具有复核权限的用户来执行。In an embodiment, a video in which the classification label of the video to be recommended is inconsistent with the content corresponding to the content of the video to be recommended is called a hard sample, that is, a hard sample is a video of the following type: a video in the current video set is originally A video that does not belong to a category label but is labeled by the latest historical video recommendation model with a high category score as the category label. In one embodiment, determining whether the classification label marked on the video is correct can be performed by a user who has permission to review the classification label of the video.
一实施例中,在上述技术方案的基础上,该方法还可以包括:获取当前视频集合中符合推荐条件的目标视频,并发送目标视频至具有分类标签标注权限的终端;接收终端发送的标注分类标签后的目标视频;在到达预设时间点后,将加入标注分类标签后的目标视频的历史视频集合作为历史最新视频推荐模型的输入变量,更新历史最新视频推荐模型。In an embodiment, based on the above technical solution, the method may further include: obtaining a target video that meets the recommended conditions in the current video collection, and sending the target video to a terminal having a labeling permission for the classification label; receiving the label classification sent by the terminal The target video after the label; after reaching the preset time point, the historical video collection of the target video after adding the classification label is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
在本申请的实施例中,在基于历史最新视频推荐模型,得到当前视频集合中每个视频的分类标签的同时,还可以获取当前视频集合中符合推荐条件的目标视频,将该目标视频发送给具有分类标签标注权限的终端,由相应的标注人员进行分类标签的标注,并接收标注分类标签后的目标视频,在到达预设时间点后,将加入标注分类标签的目标视频的历史视频集合,作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中。In the embodiment of the present application, while obtaining the classification label of each video in the current video collection based on the historical latest video recommendation model, the target video in the current video collection that meets the recommended conditions can also be obtained and the target video can be sent to For terminals with classification label labeling authority, the corresponding labeling personnel will label the classification label and receive the target video after the labeling of the classification label. When the preset time point is reached, the historical video collection of the target video with the labeling classification label will be added. As an input variable of the historical latest video recommendation model, participate in the process of updating the historical latest video recommendation model.
将加入标注分类标签后的目标视频的历史视频集合,作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中的原因在于:由于是将目标视频发送给具有分类标签标注权限的终端,由相应的标注人员对当前视频集合中符合推荐条件的目标视频进行分类标签的标注的,而通常认为通过上述方式对目标视频进行分类标签标注所得到的标注结果(即目标视频的分类标注)是比较正确的,因此,将加入标注分类标签后的目标视频的历史视频集合,作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中,使得历史最新视频推荐模型可以进一步加强学习该目标视频的特征,也从另一方面提高下一更新周期对应的历史最新视频推荐模型的预测精度。The historical video collection of the target video after adding the classification label is used as the input variable of the latest historical video recommendation model. The reason for participating in the process of updating the historical latest video recommendation model is that the target video is sent to the label with the classification label For authorized terminals, the corresponding tagging personnel tag the target videos in the current video set that meet the recommended conditions, and it is generally considered that the tagging results obtained by tagging the target videos in the above manner (that is, the target video’s Classification annotation) is relatively correct, therefore, the historical video collection of the target video after adding the classification label is used as the input variable of the latest historical video recommendation model, and participates in the process of updating the historical latest video recommendation model, making the latest historical video The recommendation model can further strengthen the learning of the characteristics of the target video, and on the other hand, improve the prediction accuracy of the historical latest video recommendation model corresponding to the next update cycle.
一实施例中,如果将加入标注分类标签后的目标视频历史视频集合,作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中,则需要从历史视频集合中删除距离当前更新周期时间最长的一个更新周期中的标注分类标签后的目标视频。In one embodiment, if the target video history video set with the classification label added is used as the input variable of the latest historical video recommendation model and participates in the process of updating the historical latest video recommendation model, then the distance needs to be deleted from the historical video collection The target video after the classification label is marked in an update cycle with the longest update cycle time.
一实施例中,推荐条件可以包括视频播放率大于或等于播放率阈值、视频点赞率大于或等于点赞率阈值、视频评论率大于或等于评论率阈值、视频转发率大于或等于转发率阈值和用户收藏率大于或等于收藏率阈值中的至少一种,相应的,如果推荐条件为视频播放率大于或等于播放率阈值,则符合推荐条件 的目标视频指的是视频播放率大于或等于播放率阈值的视频;如果推荐条件为视频点赞率大于或等于点赞率阈值,则符合推荐条件的目标视频指的是视频点赞率大于或等于点赞率阈值的视频;如果推荐条件为视频评论率大于等于评论率阈值,则符合推荐条件的目标视频指的是视频的评论率大于或等于评论率阈值的视频;如果推荐条件为视频转发率大于或等于转发率阈值,则符合推荐条件的目标视频指的是视频转发率大于或等于转发率阈值的视频;如果推荐条件为用户收藏率大于或等于收藏率阈值,则符合推荐条件的目标视频指的是用户收藏率大于或等于收藏率阈值的视频。此外,如果推荐条件为上述两种或两种以上,则需要全部符合。示例性的,如果推荐条件为视频播放率大于或等于播放率阈值和视频点赞率大于或等于点赞率阈值,则符合推荐条件的目标视频指的是视频播放率大于或等于播放率阈值且视频点赞率大于或等于点赞率阈值的视频;如果推荐条件为视频播放率大于等于播放率阈值、视频点赞率大于等于点赞率阈值以及视频转发率大于转发率阈值,则符合推荐条件的目标视频指的是视频播放率大于或等于播放率阈值、视频点赞率大于或等于点赞率阈值以及视频转发率大于或等于转发率阈值的视频。In an embodiment, the recommended conditions may include a video playback rate greater than or equal to the playback rate threshold, a video like rate greater than or equal to the like rate threshold, a video comment rate greater than or equal to the review rate threshold, and a video forward rate greater than or equal to the forward rate threshold And at least one of the user’s favorite rate is greater than or equal to the favorite rate threshold, correspondingly, if the recommended condition is that the video play rate is greater than or equal to the play rate threshold, the target video that meets the recommended conditions refers to the video play rate greater than or equal to the play Rate threshold video; if the recommended condition is that the video like rate is greater than or equal to the like rate threshold, the target video that meets the recommended conditions refers to the video whose video like rate is greater than or equal to the like rate threshold; if the recommended condition is video If the review rate is greater than or equal to the review rate threshold, the target video that meets the recommended conditions refers to the video whose review rate is greater than or equal to the review rate threshold; if the recommended condition is that the video forwarding rate is greater than or equal to the forwarding rate threshold, then the recommended condition is met Target video refers to a video with a video forwarding rate greater than or equal to the forwarding rate threshold; if the recommended condition is that the user's favorite rate is greater than or equal to the favorite rate threshold, the target video that meets the recommended conditions refers to the user's favorite rate being greater than or equal to the favorite rate threshold Video. In addition, if the recommended conditions are two or more of the above, they must all be met. Exemplarily, if the recommended condition is that the video play rate is greater than or equal to the play rate threshold and the video like rate is greater than or equal to the like rate threshold, the target video that meets the recommended conditions refers to the video play rate being greater than or equal to the play rate threshold and Videos with a video like rate greater than or equal to the like rate threshold; if the recommended conditions are that the video play rate is greater than or equal to the play rate threshold, the video like rate is greater than or equal to the like rate threshold, and the video forwarding rate is greater than the forward rate threshold, the recommended conditions are met The target video refers to videos with a video playback rate greater than or equal to the playback rate threshold, a video like rate greater than or equal to the like rate threshold, and a video forward rate greater than or equal to the forward rate threshold.
一实施例中,在上述技术方案的基础上,在到达预设时间点后,将加入标注分类标签后的目标视频的历史视频集合后作为历史最新视频推荐模型的输入变量,更新历史最新视频推荐模型,可以包括:为标注分类标签后的目标视频中与推荐视频相同的第一视频以及标注分类标签后的目标视频中与推荐视频不相同的第二视频赋予不同的权重值。在到达预设时间点后,将加入赋予权重值后的第一视频和赋予权重值后的第二视频的历史视频集合后作为历史最新视频推荐模型的输入变量,更新历史最新视频推荐模型。In one embodiment, on the basis of the above technical solution, after the preset time point is reached, the historical video collection of the target video after adding the classification label is used as the input variable of the historical latest video recommendation model to update the historical latest video recommendation The model may include: assigning different weight values to the first video that is the same as the recommended video in the target video after the classification label and the second video that is not the same as the recommended video in the target video after the classification label. After the preset time point is reached, the historical video collection of the first video after the weighting value and the second video after the weighting value are added is used as an input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
在本申请的实施例中,由于目标视频是当前视频集合中符合推荐条件的视频,推荐条件是用户真实行为的反映,因此,目标视频是需要标注分类标签的视频。如果历史最新视频推荐模型的预测精度较高的话,则推荐视频中应该包括目标视频。一实施例中,如果推荐视频中包括目标视频,则需要目标视频对应的原始分类得分比较高,这样才可能被确定为推荐视频,上述要求历史最新视频推荐模型的预测精度比较高才可以实现。从另一个角度看,如果推荐视频中不包含目标视频,则可以说明历史最新视频推荐模型的预测精度比较低,无法准确确定目标视频的原始分类得分,而导致历史最新视频推荐模型无法正确确定目标视频的原始分类得分的原因在于:历史最新视频推荐模型无法提取到目标视频的有效特征。为了使后续的历史最新视频推荐模型可以对不属于推荐视频的目标视频给出正确的原始分类得分,则可将不属于推荐视频的目标视频加入历史视频集合,参与到更新历史最新视频推荐模型的过程中,使得历史最新视频推荐模型可以进一步加强学习该目标视频的特征。In the embodiment of the present application, since the target video is a video that meets the recommendation condition in the current video collection, and the recommendation condition is a reflection of the user's real behavior, the target video is a video that needs to be labeled with a classification label. If the prediction accuracy of the historical latest video recommendation model is high, the target video should be included in the recommended video. In an embodiment, if the target video is included in the recommended video, the original video corresponding to the target video needs to have a relatively high score, so that it may be determined as the recommended video, and the prediction accuracy of the above-mentioned historical latest video recommendation model can only be achieved. From another perspective, if the recommended video does not contain the target video, it can indicate that the prediction accuracy of the historical latest video recommendation model is relatively low, and the original classification score of the target video cannot be accurately determined, which results in the historical latest video recommendation model being unable to correctly determine the target. The reason for the original classification score of the video is that the latest video recommendation model cannot extract the effective features of the target video. In order that the subsequent historical latest video recommendation model can give the correct original classification score for the target video that does not belong to the recommended video, the target video that does not belong to the recommended video can be added to the historical video collection to participate in the update of the historical latest video recommendation model In the process, the historical latest video recommendation model can further strengthen the learning of the characteristics of the target video.
对于属于推荐视频的目标视频,则可以说明历史最新视频推荐模型已经可以准确确定目标视频的原始分类得分,为了使最新视频推荐模型可以进一步加强学习不属于推荐视频的目标视频的特征,可对属于推荐视频的目标视频和不属于推荐视频的目标视频赋予不同的权重值,对于两者对应的权重值,可对属于推荐视频的目标视频设置较小的权重值,对不属于推荐视频的目标视频设置较大的权重值。For the target video that belongs to the recommended video, it can be explained that the historical latest video recommendation model can accurately determine the original classification score of the target video. In order to make the latest video recommendation model can further strengthen the learning of the characteristics of the target video that is not a recommended video, you can The target video of the recommended video and the target video that is not the recommended video are given different weight values. For the weight values corresponding to the two, a smaller weight value can be set for the target video that belongs to the recommended video and the target video that is not the recommended video Set a larger weight value.
基于上述,属于推荐视频的目标视频表示目标视频与推荐视频中均出现的视频,从目标视频角度理解,可将属于推荐视频的目标视频理解为目标视频中与推荐视频相同的第一视频,不属于推荐视频的目标视频表示推荐视频中没有出现的视频,从目标视频角度理解,可将不属于推荐视频的目标视频理解为目标视频中与推荐视频不相同的第二视频。对属于推荐视频的目标视频和不属于推荐视频的目标视频赋予不同的权重值,即为目标视频中与推荐视频相同的第一视频和目标视频中与推荐视频不相同的第二视频赋予不同的权重值。Based on the above, the target video belonging to the recommended video means the video that appears in both the target video and the recommended video. From the perspective of the target video, the target video belonging to the recommended video can be understood as the first video in the target video that is the same as the recommended video, not The target video that belongs to the recommended video means a video that does not appear in the recommended video. From the perspective of the target video, the target video that does not belong to the recommended video can be understood as the second video in the target video that is different from the recommended video. The target video that belongs to the recommended video and the target video that does not belong to the recommended video are given different weight values, that is, the first video in the target video that is the same as the recommended video and the second video in the target video that is not the same as the recommended video are given different weights Weights.
在到达预设时间点后,将加入赋予权重值后的第一视频和赋予权重值后的第二视频的历史视频集合后作为历史最新视频推荐模型的输入变量,参与到更新历史最新视频推荐模型的过程中。After reaching the preset time point, add the historical video collection of the first video after the weighting value and the second video after the weighting value as the input variables of the historical latest video recommendation model, and participate in updating the historical latest video recommendation model in the process of.
这里的权重值表示的是更新历史最新视频推荐模型的过程中,计算视频推荐模型的损失函数时,第一视频对应的损失函数和第二视频对应的损失函数在视频推荐模型的损失函数中所占的权重。The weight value here indicates that in the process of updating the latest video recommendation model in history, when calculating the loss function of the video recommendation model, the loss function corresponding to the first video and the loss function corresponding to the second video are included in the loss function of the video recommendation model. Weight.
可将目标视频中与推荐视频相同的第一视频,称为正样本。对于目标视频来说,正样本所对应的分类标签是由具有分类标签标注权限的人员进行标注得到的。The first video in the target video that is the same as the recommended video may be called a positive sample. For the target video, the classification label corresponding to the positive sample is obtained by a person who has the authority to label the classification label.
可将上述目标视频中与推荐视频不相同的第二视频称为难正样本,即难正样本是指如下一类视频:当前视频集合中的一个视频实际上应该是一个分类标签下的推荐视频,但是由于历史最新视频推荐模型对该视频进行处理时,给该视频一个较低的原始分类得分,使得该视频由于原始分类得分较低,而无法被作为该分类标签下的推荐视频。The second video that is different from the recommended video in the above target video can be called a hard positive sample, that is, a hard positive sample refers to a video of the following type: a video in the current video collection should actually be a recommended video under a category label, However, because the latest historical video recommendation model processes the video, the video is given a lower original classification score, so that the video cannot be used as a recommended video under the classification label because the original classification score is low.
一实施例中,在上述技术方案的基础上,将标注分类标签后的目标视频中与推荐视频不相同的第二视频作为附加推荐视频。In an embodiment, on the basis of the above technical solution, the second video in the target video after the classification label is different from the recommended video is used as the additional recommended video.
在本申请的实施例中,由于第二视频不属于推荐视频,第二视频是当前视频集合中符合推荐条件的视频,因此,可将目标视频中与推荐视频不相同的第二视频作为附加推荐视频。In the embodiment of the present application, since the second video does not belong to the recommended video, and the second video is a video that meets the recommendation condition in the current video collection, the second video that is different from the recommended video in the target video may be used as an additional recommendation video.
一实施例中,在上述技术方案的基础上,将当前视频集合和历史视频集合 输入历史最新视频推荐模型之前,还可以包括:获取原始历史视频集合。根据原始历史视频集合中视频的分类标签,进行聚类处理,得到历史视频集合。In an embodiment, on the basis of the above technical solution, before inputting the current video collection and the historical video collection into the historical latest video recommendation model, the method may further include: acquiring the original historical video collection. According to the classification labels of the videos in the original historical video collection, cluster processing is performed to obtain the historical video collection.
在本申请的实施例中,为了使历史视频集合中不同分类标签下的视频的数量比较平衡,可对原始历史视频集合中视频的分类标签,进行聚类处理,根据聚类结果,从每个分类标签下,选取出合适数量的视频。In the embodiment of the present application, in order to balance the number of videos under different classification tags in the historical video set, the classification tags of the videos in the original historical video set may be clustered, and according to the clustering result, from each Under the category label, select the appropriate number of videos.
执行上述操作的原因在于:如果不对原始历史视频集合中视频的分类标签,进行聚类处理,即将原始历史视频集合作为历史视频集合,则历史视频集合中不同分类标签下的视频的数量可能并不平衡,即出现一种或几种分类标签下的视频的数量相对比较多,而其它分类标签下的视频的数量相对比较少,同时,由于历史视频集合将参与更新历史最新视频推荐模型的过程,而如果历史视频集合中不同分类标签下的视频的数量并不平衡,则将导致更新后的历史最新视频推荐模型无法准确给出分类标签下的视频的数量比较少的视频的原始分类得分,简而言之,将导致更新后的历史最新视频推荐模型的预测精度不高。通过对原始历史视频集合进行聚类处理,使得历史视频集合中不同分类标签下的视频的数量比较平衡,提高了更新后的历史最新视频推荐模型的预测精度。The reason for performing the above operation is that if the classification labels of the videos in the original historical video collection are not clustered, that is, the original historical video collection is used as the historical video collection, the number of videos under different classification labels in the historical video collection may not be Balanced, that is, the number of videos under one or more classification tags is relatively large, and the number of videos under other classification tags is relatively small. At the same time, because the historical video collection will participate in the process of updating the latest video recommendation model, If the number of videos under different classification labels in the historical video collection is not balanced, it will result in the updated historical latest video recommendation model cannot accurately give the original classification score of the video with a small number of videos under the classification label. In short, the prediction accuracy of the updated historical latest video recommendation model will be low. By clustering the original historical video collection, the number of videos under different classification tags in the historical video collection is more balanced, and the prediction accuracy of the updated historical latest video recommendation model is improved.
一实施例中,下一更新周期对应的历史视频集合除了可以包括对当前更新周期对应的当前视频集合中每个视频进行分类标签确定所产生的多类视频,即待推荐视频的分类标签与待推荐视频的内容不一致的视频(即难负样本)、目标视频中与推荐视频相同的第一视频(即正样本)以及目标视频中与推荐视频不相同的第二视频(即难正样本)外,还包括当前更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频(即正样本)以及目标视频中与推荐视频不相同的第二视频(即难正样本)。本实施例中,历史视频集合是随着更新周期是在不断更新的。In an embodiment, the historical video set corresponding to the next update cycle may include multiple types of videos generated by classifying and determining each video in the current video set corresponding to the current update cycle, that is, the classification tag and the pending video of the video to be recommended The videos with inconsistent content in the recommended video (that is, difficult to sample), the first video in the target video that is the same as the recommended video (that is, the positive sample), and the second video in the target video that is different from the recommended video (that is, the hard to positive sample) It also includes a first video (that is, a positive sample) that is the same as the recommended video in the target video corresponding to T update cycles before the current update cycle and a second video that is not the same as the recommended video (that is, a hard positive sample) in the target video. In this embodiment, the historical video collection is continuously updated with the update cycle.
一实施例中,下一更新周期对应的历史最新视频推荐模型中原始分类标签和原始分类标签的个数由当前更新周期对应的历史视频集合所确定。一实施例中,下一更新周期对应的历史最新视频推荐模型中原始分类标签和原始分类标签的个数由当前更新周期对应的目标视频中与推荐视频相同的第一视频和目标视频中与推荐视频不相同的第二视频,以及,当前更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频和目标视频中与推荐视频不相同的第二视频所确定。从更新周期来说,历史最新视频推荐模型的原始分类标签和原始分类标签的个数也是在不断更新的。In one embodiment, the number of original classification tags and original classification tags in the historical latest video recommendation model corresponding to the next update cycle is determined by the historical video set corresponding to the current update cycle. In one embodiment, the number of original classification tags and original classification tags in the historical latest video recommendation model corresponding to the next update cycle is determined by the first video in the target video corresponding to the recommended video and the recommended video in the target video corresponding to the current update cycle. The second video that is different from the video, and the first video that is the same as the recommended video in the target video corresponding to T update cycles before the current update cycle and the second video that is not the same as the recommended video in the target video. In terms of update cycle, the original classification labels and the number of original classification labels of the latest historical video recommendation model are also constantly updated.
一实施例中,在对当前更新周期对应的历史最新视频推荐模型进行更新,以得到下一更新周期对应的历史最新视频推荐模型的过程中,可以为当前更新周期对应的当前视频集合中待推荐视频的分类标签与待推荐视频的内容不一致 的视频(即难负样本)、当前更新周期对应的当前视频集合中目标视频中与推荐视频相同的第一视频(即正样本)、当前更新周期对应的当前视频集合中目标视频中与推荐视频不相同的第二视频(即难正样本)、当前更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频(即正样本)以及当前更新周期之前的T个更新周期对应的目标视频中与推荐视频不相同的第二视频(即难正样本)设置不同的权重值。这里的权重值同样表示的是更新历史最新视频推荐模型的过程中,计算视频推荐模型的损失函数时,上述每个部分对应的损失函数在视频推荐模型的损失函数中所占的权重。In an embodiment, in the process of updating the historical latest video recommendation model corresponding to the current update cycle to obtain the historical latest video recommendation model corresponding to the next update cycle, the current video set corresponding to the current update cycle may be recommended The classification label of the video is inconsistent with the content of the video to be recommended (i.e. difficult to sample), the first video (i.e. positive sample) in the target video in the current video set corresponding to the current update period and the recommended video, the current update period corresponds The second video of the target video in the current video collection that is not the same as the recommended video (that is, difficult to positive samples), the first video that is the same as the recommended video in the target video corresponding to T update cycles before the current update cycle (that is, positive samples ) And in the target video corresponding to T update cycles before the current update cycle, different weight values are set for the second video (that is, difficult to sample) that is different from the recommended video. The weight value here also represents the weight of the loss function corresponding to each of the above parts in the loss function of the video recommendation model when calculating the loss function of the video recommendation model during the update of the latest video recommendation model in history.
一实施例中,对原始历史视频集合中的视频进行聚类处理,可以仅对当前更新周期对应的当前视频集合中目标视频中与推荐视频相同的第一视频和目标视频中与推荐视频不相同的第二视频,以及,当前更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频和目标视频中与推荐视频不相同的第二视频进行聚类处理。In an embodiment, the video in the original historical video set is clustered, and only the first video in the target video that is the same as the recommended video in the current video set corresponding to the current update cycle and the target video may be different from the recommended video And the second video of the target video corresponding to the recommended video and the second video of the target video that is not the same as the recommended video are clustered.
为了说明本申请实施例所提供的技术方案,下面通过示例进行说明。In order to explain the technical solutions provided by the embodiments of the present application, the following will be described by way of examples.
当前日期邻近泼水节,则预测关于泼水节的视频将成为近期的热点视频,当前更新周期对应的历史视频集合将包括对上一更新周期对应的当前视频集合中每个视频进行分类标签确定所产生的多类视频,即待推荐视频的分类标签与待推荐视频的内容不一致的视频(即难负样本)、目标视频中与推荐视频相同的第一视频(即正样本)以及目标视频中与推荐视频不相同的第二视频(即难正样本)外,还包括上一更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频(即正样本)以及目标视频中与推荐视频不相同的第二视频(即难正样本),由于关于泼水节的视频将成为近期的热点视频,因此,对于上一更新周期对应的当前视频集合,目标视频中与推荐视频相同的第一视频(即正样本)和目标视频中与推荐视频不相同的第二视频(即难正样本),以及,上一更新周期之前的T个更新周期对应的目标视频中与推荐视频相同的第一视频(即正样本)和目标视频中与推荐视频不相同的第二视频(即难正样本)将出现分类标签为泼水节的视频。If the current date is near the Songkran Festival, the video about the Songkran Festival is predicted to become a recent hotspot video. The historical video set corresponding to the current update cycle will include the classification label determination of each video in the current video set corresponding to the previous update cycle. Multi-category videos, that is, videos whose classification labels of the videos to be recommended are inconsistent with the content of the videos to be recommended (that is, difficult samples), the first video in the target video that is the same as the recommended video (that is, positive samples), and the target video that is recommended In addition to the second video with different videos (that is, difficult to positive samples), it also includes the first video (that is, positive samples) that is the same as the recommended video in the target video corresponding to T update cycles before the last update cycle and the target video that is the same as the recommended video. The second video that is different from the recommended video (that is, the difficult sample). Since the video about the Songkran Festival will become a recent hot video, for the current video set corresponding to the previous update cycle, the target video is the same as the recommended video. A video (that is, a positive sample) and a second video (that is, a difficult positive sample) that is different from the recommended video in the target video, and the target video that is the same as the recommended video in the target video corresponding to T update cycles before the last update cycle A video (that is, positive sample) and a second video (that is, difficult to positive sample) in the target video that is different from the recommended video will have a video with the classification label as Songkran.
将当前更新周期对应的当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的原始分类标签和原始分类得分,则视频的原始分类标签为泼水节的视频的原始分类得分将比较高,从而使得为泼水节的原始分类标签称为该视频的分类标签,进而,得到该分类标签下的待推荐视频,如果待推荐视频的分类标签与待推荐视频的内容一致,则将待推荐视频作为该分类标签下的推荐视频,即视频的分类标签为泼水节的视频成为了推荐视频。Enter the current video collection and the historical video collection corresponding to the current update period into the historical latest video recommendation model to obtain the original classification label and the original classification score of the video in the current video collection, then the original classification label of the video is the original classification score of the video for the Songkran Festival It will be relatively high, so that the original classification label for the Songkran Festival is called the classification label of the video, and further, the video to be recommended under the classification label is obtained. If the classification label of the video to be recommended is consistent with the content of the video to be recommended, then The video to be recommended is regarded as the recommended video under the classification label, that is, the video whose classification label is Songkran Festival becomes the recommended video.
本示例中,使得关于泼水节的视频被认为是近期的热点视频开始,便可以 基于历史最新视频推荐模型得到关于分类标签为泼水节的视频,并将分类标签为泼水节的视频作为推荐视频,可以满足大部分的热点视频的挖掘需求,不会由于相关技术中冗长的模型训练而错过热点。In this example, if the video about the Songkran Festival is considered to be a recent hot video, you can get the video about the classification label as the Songkran Festival based on the latest historical video recommendation model, and use the video with the classification label as the Songkran Festival as the recommended video. It can meet most of the hotspot video mining needs, and will not miss hotspots due to lengthy model training in related technologies.
图2为本申请实施例提供的一种视频推荐装置的结构示意图,本实施例可适用于提高视频推荐模型的预测精度的情况,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于设备中,例如配置于计算机或移动终端等中。如图2所示,该装置包括:当前视频集合获取模块210,设置为获取当前视频集合。分类标签和分类得分获取模块220,设置为将当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的分类标签和分类得分。推荐视频确定模块230,设置为根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。FIG. 2 is a schematic structural diagram of a video recommendation device according to an embodiment of the present application. This embodiment can be applied to improve the prediction accuracy of a video recommendation model. The device can be implemented in software and/or hardware. The device can It is configured in the device, for example, in a computer or mobile terminal. As shown in FIG. 2, the device includes: a current video collection obtaining module 210, which is configured to obtain a current video collection. The classification label and classification score acquisition module 220 is set to input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection. The recommended video determination module 230 is set to obtain the recommended video under each classification label according to the classification score of the video under each classification label in the current video set.
本实施例的技术方案,通过获取当前视频集合,将当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的分类标签和分类得分,根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频,通过采用在预训练模型基础上得到的历史最新视频推荐模型进行视频推荐,由于历史最新视频推荐模型相比于相关技术中基于深度学习训练生成的视频推荐模型的训练周期较短,因此,该历史视频推荐模型可以很好的适应实际业务的调整,同时,将可以作为当前视频集合的先验知识的历史视频集合也作为输入变量,提高了历史最新视频推荐模型对当前视频集合的预测精度。In the technical solution of this embodiment, by acquiring the current video collection, the current video collection and the historical video collection are input into the historical latest video recommendation model, and the classification labels and classification scores of the videos in the current video collection are obtained, according to each classification label in the current video collection The classification score of the next video is used to obtain the recommended video under each classification label, and the video recommendation is performed by using the historical latest video recommendation model obtained on the basis of the pre-trained model. Since the historical latest video recommendation model is based on The training period of the video recommendation model generated by deep learning training is short, so the historical video recommendation model can be well adapted to the adjustment of actual business, and at the same time, the historical video collection that can be used as a priori knowledge of the current video collection is also used as input Variables to improve the prediction accuracy of the latest video recommendation model for the current video collection.
图3为本申请实施例提供的一种设备的结构示意图。图3示出了适于用来实现本申请实施方式的示例性设备312的框图。如图3所示,设备312以通用计算设备的形式表现。设备312的组件可以包括但不限于:一个或者多个处理器316,系统存储器328,连接于不同系统组件(包括系统存储器328和处理器316)的总线318。系统存储器328可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)330和/或高速缓存存储器332。仅作为举例,存储系统334可以设置为读写不可移动的、非易失性磁介质(图3未显示,通常称为“硬盘驱动器”)。具有一组(至少一个)程序模块342的程序/实用工具340,可以存储在例如存储器328中。设备312也可以与一个或多个外部设备314(例如键盘、指向设备、显示器324等)通信。这种通信可以通过输入/输出(I/O)接口322进行。并且,设备312还可以通过网络适配器320与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN)和/或公共网络,例如因特网)通信。处理器316通过运行存储在系统存储器328中的程序,从而执行各种功能应用以及数据处理,例如实现本申请实施例所提供的一种视频推荐方法,该方法包括: 获取当前视频集合。将当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的分类标签和分类得分。根据当前视频集合中每个分类标签下视频的分类得分,得到该分类标签下的推荐视频。FIG. 3 is a schematic structural diagram of a device provided by an embodiment of the present application. FIG. 3 shows a block diagram of an exemplary device 312 suitable for implementing embodiments of the present application. As shown in FIG. 3, the device 312 is represented in the form of a general-purpose computing device. The components of device 312 may include, but are not limited to, one or more processors 316, system memory 328, and bus 318 connected to different system components (including system memory 328 and processor 316). System memory 328 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 330 and/or cache memory 332. Merely by way of example, the storage system 334 may be configured to read and write non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). The program/utility tool 340 having a set of (at least one) program modules 342 may be stored in the memory 328, for example. The device 312 may also communicate with one or more external devices 314 (eg, keyboard, pointing device, display 324, etc.). This communication may be performed through an input/output (I/O) interface 322. In addition, the device 312 can also communicate with one or more networks (such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet) through the network adapter 320. The processor 316 runs a program stored in the system memory 328 to execute various functional applications and data processing, for example, to implement a video recommendation method provided by an embodiment of the present application, the method includes: acquiring a current video collection. Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection. According to the classification score of the video under each classification label in the current video set, the recommended video under the classification label is obtained.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,该程序被处理器执行时实现如本申请实施例所提供的一种视频推荐方法,该方法包括:获取当前视频集合。将当前视频集合和历史视频集合输入历史最新视频推荐模型,得到当前视频集合中视频的分类标签和分类得分。根据当前视频集合中每个分类标签下视频的分类得分,得到该分类标签下的推荐视频。An embodiment of the present application also provides a computer-readable storage medium that stores a computer program, and when the program is executed by a processor, a video recommendation method as provided in the embodiment of the present application is implemented. The method includes: obtaining a current video collection . Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection. According to the classification score of the video under each classification label in the current video set, the recommended video under the classification label is obtained.

Claims (10)

  1. 一种视频推荐方法,包括:A video recommendation method, including:
    获取当前视频集合;Get the current video collection;
    将所述当前视频集合和历史视频集合输入历史最新视频推荐模型,得到所述当前视频集合中视频的分类标签和分类得分;Input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection;
    根据所述当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。According to the classification score of the video under each classification label in the current video set, the recommended video under each classification label is obtained.
  2. 根据权利要求1所述的方法,其中,所述根据所述当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频,包括:The method according to claim 1, wherein the obtaining the recommended video under each classification label according to the classification score of the video under each classification label in the current video set includes:
    根据所述当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的待推荐视频;Obtaining the video to be recommended under each classification label according to the classification score of the video under each classification label in the current video set;
    在所述待推荐视频的分类标签与所述待推荐视频的内容一致的情况下,将所述待推荐视频作为所述每个分类标签下的推荐视频。When the classification label of the video to be recommended is consistent with the content of the video to be recommended, the video to be recommended is used as the recommended video under each classification label.
  3. 根据权利要求2所述的方法,还包括:The method of claim 2, further comprising:
    在所述待推荐视频的分类标签与所述待推荐视频的内容不一致的情况下,在到达预设时间点后,将加入所述待推荐视频的历史视频集合作为所述历史最新视频推荐模型的输入变量,更新所述历史最新视频推荐模型。When the classification label of the video to be recommended is inconsistent with the content of the video to be recommended, after the preset time point is reached, the historical video set added to the video to be recommended will be used as the latest video recommendation model of the history Input variables to update the historical latest video recommendation model.
  4. 根据权利要求1-3中任一项所述的方法,还包括:The method according to any one of claims 1-3, further comprising:
    获取所述当前视频集合中符合推荐条件的目标视频,并发送所述目标视频至具有分类标签标注权限的终端;Obtain the target video in the current video set that meets the recommended conditions, and send the target video to a terminal with the authority to classify labels;
    接收所述终端发送的标注分类标签后的目标视频;Receiving the target video after the classification label sent from the terminal;
    在到达预设时间点后,将加入所述标注分类标签后的目标视频的历史视频集合作为所述历史最新视频推荐模型的输入变量,更新所述历史最新视频推荐模型。After the preset time point is reached, the historical video set of the target video added with the classification label is used as an input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
  5. 根据权利要求4所述的方法,其中,所述在到达预设时间点后,将加入所述标注分类标签后的目标视频的历史视频集合作为所述历史最新视频推荐模型的输入变量,更新所述历史最新视频推荐模型,包括:The method according to claim 4, wherein after the preset time point is reached, the historical video set of the target video added with the classification label is used as an input variable of the historical latest video recommendation model to update all The latest video recommendation model of history, including:
    为所述标注分类标签后的目标视频中与所述推荐视频相同的第一视频以及所述标注分类标签后的目标视频中与所述推荐视频不相同的第二视频赋予不同的权重值;Assigning different weight values to the first video that is the same as the recommended video in the target video after being labeled with the classification label and the second video that is different from the recommended video in the target video after being labeled with the classification label;
    在到达预设时间点后,将加入赋予权重值后的第一视频和赋予权重值后的第二视频的历史视频集合作为所述历史最新视频推荐模型的输入变量,更新所 述历史最新视频推荐模型。After the preset time point is reached, the historical video set of the first video with the weighted value and the second video with the weighted value added is used as an input variable of the historical latest video recommendation model to update the historical latest video recommendation model.
  6. 根据权利要求5所述的方法,还包括:The method of claim 5, further comprising:
    将所述标注分类标签后的目标视频中与所述推荐视频不相同的第二视频作为附加推荐视频。The second video that is different from the recommended video in the target video after the classification tag is marked as an additional recommended video.
  7. 根据权利要求1-6中任一项所述的方法,在所述将所述当前视频集合和历史视频集合输入历史最新视频推荐模型之前,还包括:The method according to any one of claims 1 to 6, before the inputting the current video collection and the historical video collection into the historical latest video recommendation model, further comprising:
    获取原始历史视频集合;Get the original historical video collection;
    根据所述原始历史视频集合中视频的分类标签,进行聚类处理,得到所述历史视频集合。Perform clustering processing according to the classification labels of the videos in the original historical video collection to obtain the historical video collection.
  8. 一种视频推荐装置,包括:A video recommendation device, including:
    当前视频集合获取模块,设置为获取当前视频集合;The current video collection acquisition module is set to obtain the current video collection;
    分类标签和分类得分获取模块,设置为将所述当前视频集合和历史视频集合输入历史最新视频推荐模型,得到所述当前视频集合中视频的分类标签和分类得分;The classification label and classification score acquisition module is set to input the current video collection and the historical video collection into the historical latest video recommendation model to obtain the classification label and classification score of the video in the current video collection;
    推荐视频确定模块,设置为根据当前视频集合中每个分类标签下视频的分类得分,得到所述每个分类标签下的推荐视频。The recommended video determination module is configured to obtain the recommended video under each classification label according to the classification score of the video under each classification label in the current video set.
  9. 一种设备,包括:A device, including:
    至少一个处理器;At least one processor;
    存储器,设置为存储至少一个程序;Memory, set to store at least one program;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-7任一所述的方法。When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,存储有计算机程序,所述程序被处理器执行时实现如权利要求1-7任一所述的方法。A computer-readable storage medium storing a computer program, which when executed by a processor implements the method according to any one of claims 1-7.
PCT/CN2019/124582 2018-12-29 2019-12-11 Method, device and apparatus for video recommendation and storage medium WO2020135054A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811640356.6 2018-12-29
CN201811640356.6A CN111385659B (en) 2018-12-29 2018-12-29 Video recommendation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020135054A1 true WO2020135054A1 (en) 2020-07-02

Family

ID=71128373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124582 WO2020135054A1 (en) 2018-12-29 2019-12-11 Method, device and apparatus for video recommendation and storage medium

Country Status (2)

Country Link
CN (1) CN111385659B (en)
WO (1) WO2020135054A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112016613A (en) * 2020-08-26 2020-12-01 广州市百果园信息技术有限公司 Training method and device for video content classification model, computer equipment and medium
CN112364202B (en) * 2020-11-06 2023-11-14 上海众源网络有限公司 Video recommendation method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120049550A (en) * 2010-11-09 2012-05-17 경희대학교 산학협력단 Method for recommending content based on user preference with time flow
CN104065981A (en) * 2014-06-20 2014-09-24 海信集团有限公司 Method and device for recommending videos
CN108228911A (en) * 2018-02-11 2018-06-29 北京搜狐新媒体信息技术有限公司 The computational methods and device of a kind of similar video
CN108243357A (en) * 2018-01-25 2018-07-03 北京搜狐新媒体信息技术有限公司 A kind of video recommendation method and device
CN109104620A (en) * 2018-07-26 2018-12-28 腾讯科技(深圳)有限公司 A kind of short video recommendation method, device and readable medium

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101112092A (en) * 2005-05-09 2008-01-23 皇家飞利浦电子股份有限公司 Auxiliary user control in recommending device
CN101834837A (en) * 2009-12-18 2010-09-15 北京邮电大学 On-line landscape video active information service system of scenic spots in tourist attraction based on bandwidth network
CN102651033B (en) * 2012-04-09 2016-04-27 百度在线网络技术(北京)有限公司 A kind of recommend method of online resource and device
US20140215506A1 (en) * 2013-01-25 2014-07-31 Mobitv, Inc. Time context weighted content recommendation
US9535897B2 (en) * 2013-12-20 2017-01-03 Google Inc. Content recommendation system using a neural network language model
CN103838835B (en) * 2014-02-25 2017-11-21 中国科学院自动化研究所 A kind of network sensitive video detection method
US10460247B2 (en) * 2015-12-08 2019-10-29 Adobe Inc. Attribute weighting for media content-based recommendation
CN105512331B (en) * 2015-12-28 2019-03-26 海信集团有限公司 A kind of video recommendation method and device
CN107451148A (en) * 2016-05-31 2017-12-08 北京金山安全软件有限公司 Video classification method and device and electronic equipment
CN106294783A (en) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 A kind of video recommendation method and device
KR102012676B1 (en) * 2016-10-19 2019-08-21 삼성에스디에스 주식회사 Method, Apparatus and System for Recommending Contents
CN106407477A (en) * 2016-11-22 2017-02-15 深圳市互联在线云计算股份有限公司 Multidimensional interconnection recommendation method and system
JP2018116515A (en) * 2017-01-19 2018-07-26 株式会社日立製作所 Control apparatus
CN107194419A (en) * 2017-05-10 2017-09-22 百度在线网络技术(北京)有限公司 Video classification methods and device, computer equipment and computer-readable recording medium
CN107515909B (en) * 2017-08-11 2020-05-19 深圳市云网拜特科技有限公司 Video recommendation method and system
CN107562875A (en) * 2017-08-31 2018-01-09 北京麒麟合盛网络技术有限公司 A kind of update method of model, apparatus and system
CN107846629B (en) * 2017-10-11 2021-01-26 五八有限公司 Method, device and server for recommending videos to users
CN107563455A (en) * 2017-10-18 2018-01-09 百度在线网络技术(北京)有限公司 For obtaining the method and device of information
CN107743249A (en) * 2017-11-27 2018-02-27 四川长虹电器股份有限公司 A kind of CTR predictor methods based on Model Fusion
CN108647293B (en) * 2018-05-07 2022-02-01 广州虎牙信息科技有限公司 Video recommendation method and device, storage medium and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120049550A (en) * 2010-11-09 2012-05-17 경희대학교 산학협력단 Method for recommending content based on user preference with time flow
CN104065981A (en) * 2014-06-20 2014-09-24 海信集团有限公司 Method and device for recommending videos
CN108243357A (en) * 2018-01-25 2018-07-03 北京搜狐新媒体信息技术有限公司 A kind of video recommendation method and device
CN108228911A (en) * 2018-02-11 2018-06-29 北京搜狐新媒体信息技术有限公司 The computational methods and device of a kind of similar video
CN109104620A (en) * 2018-07-26 2018-12-28 腾讯科技(深圳)有限公司 A kind of short video recommendation method, device and readable medium

Also Published As

Publication number Publication date
CN111385659B (en) 2021-08-17
CN111385659A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
Yuan et al. Active learning for deep visual tracking
CN107491432B (en) Low-quality article identification method and device based on artificial intelligence, equipment and medium
CN110069709B (en) Intention recognition method, device, computer readable medium and electronic equipment
CN107766929B (en) Model analysis method and device
Murray et al. A deep architecture for unified aesthetic prediction
WO2020253127A1 (en) Facial feature extraction model training method and apparatus, facial feature extraction method and apparatus, device, and storage medium
CN104573130B (en) The entity resolution method and device calculated based on colony
CN103559504A (en) Image target category identification method and device
WO2020082734A1 (en) Text emotion recognition method and apparatus, electronic device, and computer non-volatile readable storage medium
Hua et al. Collaborative active visual recognition from crowds: A distributed ensemble approach
CN112613552B (en) Convolutional neural network emotion image classification method combined with emotion type attention loss
CN110880019A (en) Method for adaptively training target domain classification model through unsupervised domain
CN112749330B (en) Information pushing method, device, computer equipment and storage medium
CN110807086A (en) Text data labeling method and device, storage medium and electronic equipment
CN109214444B (en) Game anti-addiction determination system and method based on twin neural network and GMM
CN111695458A (en) Video image frame processing method and device
CN112115993A (en) Zero sample and small sample evidence photo anomaly detection method based on meta-learning
WO2023088174A1 (en) Target detection method and apparatus
WO2020135054A1 (en) Method, device and apparatus for video recommendation and storage medium
CN110458600A (en) Portrait model training method, device, computer equipment and storage medium
Gu et al. Unsupervised and semi-supervised robust spherical space domain adaptation
CN113239159A (en) Cross-modal retrieval method of videos and texts based on relational inference network
Jiang et al. Boosting facial expression recognition by a semi-supervised progressive teacher
Yu et al. Deep metric learning with dynamic margin hard sampling loss for face verification
CN112711676B (en) Video recall method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19903396

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19903396

Country of ref document: EP

Kind code of ref document: A1