Video recommendation method, device, electronic device and storage medium
By sorting and grouping the recommended videos by duration, the difference in video duration is reduced, the effectiveness and diversity of video recommendations are improved, and the problem of insufficient fairness of the target video duration in the existing technology is solved.
Patent Information
- Application Number
- CN202111255506.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-27
Smart Images

Figure CN113901258B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of video recommendation, and in particular to a video recommendation method, device, electronic device and storage medium. Background Art
[0002] Recommendation algorithms play an important role in short video recommendation application scenarios. Recommendation algorithms can filter videos to be recommended based on various features corresponding to the videos to be recommended, and provide users with personalized recommendation results. In related technologies, each video to be recommended is only sorted by video quality, and then the target video is obtained from the sorted videos, and video recommendations are made based on the target video, which results in a lack of fairness in the length of the target video and low effectiveness of video recommendations. Summary of the invention
[0003] The present disclosure provides a video recommendation method, device, electronic device and storage medium to at least solve the problem in the related art that the target video lacks fairness in duration and the effectiveness of video recommendation is low. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a video recommendation method is provided, the method comprising:
[0005] Sort the videos to be recommended based on the video durations corresponding to the videos to be recommended to obtain a first video sequence;
[0006] Pre-segmenting the first video sequence to obtain a preset number of video sets, wherein the videos in the video sets have similar video durations;
[0007] Performing video filtering on each of the video sets respectively to obtain a target video corresponding to each of the video sets;
[0008] Based on the target video, video recommendation processing is performed.
[0009] As an optional embodiment, the pre-segmenting the first video sequence to obtain a preset number of video sets includes:
[0010] Based on preset grouping parameters, the first video sequence is pre-segmented to obtain a preset number of video sets corresponding to the preset grouping parameters, and the preset grouping parameters are determined from multiple grouping parameters to be tested after grouping the test videos based on multiple grouping parameters to be tested.
[0011] As an optional embodiment, performing video filtering on each of the video sets to obtain a target video corresponding to each of the video sets includes:
[0012] Based on the video quality information corresponding to the video to be recommended, the videos in each of the video sets are sorted to obtain a second video sequence corresponding to each of the video sets, wherein the video quality information is obtained based on the operation data performed on the object corresponding to the video;
[0013] From each of the second video sequences, a preset number of videos are obtained as the target videos.
[0014] As an optional embodiment, obtaining a preset number of videos as the target videos from each of the second video sequences includes:
[0015] Based on preset filtering parameters, a preset number of videos corresponding to the preset filtering parameters are obtained from each of the second video sequences as the target videos, and the preset filtering parameters are determined from multiple filtering parameters to be tested after filtering the test videos respectively based on multiple filtering parameters to be tested.
[0016] As an optional embodiment, the method further includes:
[0017] Sorting the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence;
[0018] Based on each of the grouping parameters to be tested, pre-segmenting the first test video sequence respectively to obtain a number of test video sets to be tested corresponding to each of the grouping parameters to be tested, and the number of video sets corresponding to each of the grouping parameters to be tested is different;
[0019] Determine a video recommendation result corresponding to each of the test video sets;
[0020] Performing data verification on the video recommendation results corresponding to each of the test video sets to determine a first target recommendation result;
[0021] The to-be-tested grouping parameter corresponding to the first target recommendation result is used as the preset grouping parameter.
[0022] As an optional embodiment, the method further includes:
[0023] Based on the test video quality information corresponding to the video to be tested, the test videos in each preset test video set are sorted to obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on the preset grouping parameters;
[0024] Based on each of the filter parameters to be tested, respectively obtaining, from each of the second test video sequences, a number of test videos to be tested corresponding to each of the filter parameters to be tested as target test videos, wherein the number of target test videos corresponding to each of the filter parameters to be tested is different;
[0025] Determine a video recommendation result corresponding to each of the target test videos;
[0026] Performing data verification on the video recommendation result corresponding to each of the target test videos to determine a second target recommendation result;
[0027] The to-be-tested filtering parameter corresponding to the second target recommendation result is used as the preset filtering parameter.
[0028] As an optional embodiment, the performing video recommendation processing based on the target video includes:
[0029] Inputting the target video into a sorting model for sorting to obtain a target video sequence;
[0030] The videos in the target video sequence are recommended to the target object according to the arrangement order of the videos in the target video sequence.
[0031] According to a second aspect of an embodiment of the present disclosure, a video recommendation device is provided, the device comprising:
[0032] A duration sorting module is configured to sort the videos to be recommended based on the video durations corresponding to the videos to be recommended, to obtain a first video sequence;
[0033] A video set division module is configured to perform a pre-segmentation operation on the first video sequence to obtain a preset number of video sets, wherein the videos in the video sets have similar video durations;
[0034] A target video filtering module is configured to perform video filtering on each of the video sets to obtain a target video corresponding to each of the video sets;
[0035] The video recommendation module is configured to perform video recommendation processing based on the target video.
[0036] As an optional embodiment, the video set partitioning module includes:
[0037] The grouping unit is configured to perform a pre-segmentation operation on the first video sequence based on a preset grouping parameter to obtain a preset number of video sets corresponding to the preset grouping parameter, and the preset grouping parameter is determined from multiple grouping parameters to be tested after grouping the test videos based on multiple grouping parameters to be tested.
[0038] As an optional embodiment, the target video filtering module includes:
[0039] A quality sorting unit is configured to sort the videos in each of the video sets based on the video quality information corresponding to the video to be recommended, so as to obtain a second video sequence corresponding to each of the video sets, wherein the video quality information is obtained based on operation data performed on the object corresponding to the video;
[0040] The target video acquisition unit is configured to acquire a preset number of videos from each of the second video sequences as the target video.
[0041] As an optional embodiment, the target video acquisition unit includes:
[0042] The filtering unit is configured to execute based on preset filtering parameters, and obtain a preset number of videos corresponding to the preset filtering parameters from each of the second video sequences as the target video. The preset filtering parameters are determined from multiple filtering parameters to be tested after filtering the test videos respectively based on multiple filtering parameters to be tested.
[0043] As an optional embodiment, the device further includes:
[0044] A first test video sequence acquisition module is configured to sort the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence;
[0045] A grouping test module is configured to perform a pre-segmentation operation on the first test video sequence based on each of the grouping parameters to be tested, to obtain a number of test video sets to be tested corresponding to each of the grouping parameters to be tested, and the number of video sets corresponding to each of the grouping parameters to be tested is different;
[0046] A first recommendation result determination module is configured to determine a video recommendation result corresponding to each of the test video sets;
[0047] A first data verification module is configured to perform data verification on the video recommendation result corresponding to each of the test video sets to determine a first target recommendation result;
[0048] The preset grouping parameter determination module is configured to execute the to-be-tested grouping parameter corresponding to the first target recommendation result as the preset grouping parameter.
[0049] As an optional embodiment, the device further includes:
[0050] A second test video sequence acquisition module is configured to sort the test videos in each preset test video set based on the test video quality information corresponding to the video to be tested, and obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on the preset grouping parameters;
[0051] A target test video acquisition module is configured to execute, based on each of the filter parameters to be tested, respectively acquiring a number of test videos to be tested corresponding to each of the filter parameters to be tested from each of the second test video sequences as target test videos, wherein the number of target test videos corresponding to each of the filter parameters to be tested is different;
[0052] A second recommendation result determination module is configured to determine a video recommendation result corresponding to each of the target test videos;
[0053] A second data verification module is configured to perform data verification on the video recommendation result corresponding to each of the target test videos to determine a second target recommendation result;
[0054] The preset filtering parameter determination module is configured to execute the to-be-tested filtering parameter corresponding to the second target recommendation result as the preset filtering parameter.
[0055] As an optional embodiment, the video recommendation module includes:
[0056] A model sorting unit is configured to input the target video into a sorting model for sorting to obtain a target video sequence;
[0057] The recommendation unit is configured to recommend the videos in the target video sequence to the target object according to the arrangement order of the videos in the target video sequence.
[0058] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0059] processor;
[0060] a memory for storing instructions executable by the processor;
[0061] The processor is configured to execute the instructions to implement the video recommendation method as described above.
[0062] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the video recommendation method as described above.
[0063] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the video recommendation method described above is implemented.
[0064] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0065] Based on the video durations of the videos to be recommended, the recommended videos are sorted to obtain a first video sequence, and the first video sequence is divided into a preset number of video sets. The videos in the video sets have similar video durations, and each video set is filtered to obtain a target video corresponding to each video set. Based on the target video, video recommendation processing is performed. By grouping the recommended videos according to the video duration, the method reduces the difference in video duration of the videos in each group, so that videos in each duration range can be effectively displayed, thereby improving the effectiveness and diversity of video recommendations.
[0066] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0068] Figure 1 The figure is a schematic diagram of an application scenario of a video recommendation method according to an exemplary embodiment.
[0069] Figure 2 The figure is a flowchart of a video recommendation method according to an exemplary embodiment.
[0070] Figure 3 The diagram is a schematic diagram of dividing a first video sequence in a video recommendation method according to an exemplary embodiment.
[0071] Figure 4 The present invention is a flowchart of performing grouping test in a video recommendation method according to an exemplary embodiment.
[0072] Figure 5 The present invention is a flowchart of performing video filtering in a video recommendation method according to an exemplary embodiment.
[0073] Figure 6 The diagram is a schematic diagram of performing video filtering on each second video sequence in a video recommendation method according to an exemplary embodiment.
[0074] Figure 7 The diagram is a schematic diagram of performing video filtering on each second video sequence in a video recommendation method according to an exemplary embodiment.
[0075] Figure 8 The figure is a block diagram of a video recommendation device according to an exemplary embodiment.
[0076] Fig. 9 It is a block diagram of a server side of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0077] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0078] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0079] Figure 1 is a schematic diagram of an application scenario of a video recommendation method according to an exemplary embodiment. Figure 1 As shown, the application scenario includes a server 110 and a client 120. The server 110 sorts the recommended videos based on the video length and divides them into multiple video sets, and then sorts and filters the videos in each video set based on the video quality information to obtain the target video. The client 120 sends a video recommendation request to the server 110. The server 110 responds to the video recommendation request, performs video recommendation processing based on the target video, and sends the target video to the client 120.
[0080] In the disclosed embodiment, the server 110 may include an independently operated server, a distributed server, or a server cluster composed of multiple servers. The server 110 may include a network communication unit, a processor, a memory, etc. Specifically, the server 110 may be used to sort based on video duration and video quality information, and receive a video recommendation request sent by the client 120.
[0081] In the disclosed embodiment, the client 120 includes physical devices such as smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, etc., and may also include software running in the physical devices, such as applications, etc. The operating system running on the physical device in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Unix, Windows, etc. The client 120 includes a UI (User Interface) layer, and the client 120 provides the display of the target video to the outside through the UI layer. In addition, based on the API (Application Programming Interface, application program interface), the video recommendation request is sent to the server 110.
[0082] Figure 2 is a flowchart of a video recommendation method according to an exemplary embodiment. Figure 2 As shown, the method is used in a server and includes the following steps.
[0083] S210. Sort the recommended videos based on the video durations corresponding to the recommended videos to obtain a first video sequence;
[0084] As an optional embodiment, the recommended videos may be sorted from large to small or from small to large according to the video lengths corresponding to the videos to be recommended, so as to obtain a first video sequence.
[0085] S220. Pre-segment the first video sequence to obtain a preset number of video sets, where the videos in the video set have similar video durations;
[0086] As an optional embodiment, based on preset grouping information, in the pre-segmentation operation, the first video sequence is divided into a preset number of video sets corresponding to the preset grouping information, the grouping information is information for determining the number of video sets, different video sets correspond to different video duration intervals, and the durations corresponding to videos in the same video set are similar. When the pre-segmentation operation is equal division, the number of videos in each video set is the same.
[0087] As an optional embodiment, performing a pre-segmentation operation on the first video sequence to obtain a preset number of video sets includes:
[0088] Based on the preset grouping parameters, the first video sequence is pre-segmented to obtain a preset number of video sets corresponding to the preset grouping parameters. The preset grouping parameters are determined from multiple grouping parameters to be tested after grouping the test videos based on the multiple grouping parameters to be tested.
[0089] As an alternative embodiment, see Figure 3 , based on the preset grouping parameter, the first video sequence is equally divided into a preset number of video sets corresponding to the preset grouping parameter. For example, assuming that the first video sequence includes video 1 with a video duration of 9 minutes, video 2 and video 3 with a video duration of 8 minutes, video 4, video 5 and video 6 with a video duration of 7 minutes, video 7 with a video duration of 6 minutes, video 8 and video 9 with a video duration of 4 minutes, video 10 with a video duration of 3 minutes, video 11 with a video duration of 2 minutes and video 12 with a video duration of 1 minute, and the preset grouping parameter is 4, then the first video sequence is equally divided into 4 groups, namely video set 1, video set 2, video set 3 and video set 4. Video set 1 includes video 1, video 2 and video 3, video set 2 includes video 4, video 5 and video 6, video set 3 includes video 7, video 8 and video 9, and video set 4 includes video 10, video 11 and video 12.
[0090] As an optional embodiment, the larger the preset grouping parameter is, the more video sets there are after the first video sequence is divided, and the smaller the difference between the video durations corresponding to each video in each video set is, that is, the smaller the difference in the duration of the videos in each video set is, so that the fairness of duration can be enhanced, but at the same time, since there are many video sets after the division, the number of videos in each video set is small, so when filtering the videos in each video set, the video quality of the target video will be reduced. The smaller the preset grouping parameter is, the fewer video sets there are after the first video sequence is divided, and the larger the difference between the video durations corresponding to each video in each video set is, so that the fairness of duration is weakened, and since there are many videos in each video set, the video quality of the target video will be improved when filtering the videos in each video set. The preset grouping parameter is used to balance the fairness of video duration and video quality. A grouping test is performed based on the first test video sequence corresponding to the test video, and the preset grouping parameter can be determined according to the grouping test result.
[0091] Based on the grouping test, the preset grouping parameters are obtained, and then the first video sequence is divided into a preset number of video sets corresponding to the preset grouping parameters. The difference in duration between videos in each video set is smaller, and therefore more comparable, thereby achieving fair presentation of videos of different durations and improving the balance of video recommendations.
[0092] As an alternative embodiment, see Figure 4 , the method further comprises:
[0093] S410. Sort the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence;
[0094] S420. Based on each grouping parameter to be tested, pre-segment the first test video sequence to obtain a number of test video sets to be tested corresponding to each grouping parameter to be tested, and the number of video sets corresponding to each grouping parameter to be tested is different;
[0095] S430. Determine the video recommendation result corresponding to each test video set;
[0096] S440. Perform data verification on the video recommendation results corresponding to each test video set to determine the first target recommendation result;
[0097] S450. Use the to-be-tested grouping parameter corresponding to the first target recommendation result as the preset grouping parameter.
[0098] As an optional embodiment, a test video is obtained, and the test video is sorted based on the video duration corresponding to the test video, so as to obtain a first test video sequence. A plurality of grouping parameters to be tested are set, and based on each grouping parameter to be tested, a pre-segmentation operation is performed on the first test video sequence respectively, so as to obtain a number of test video sets to be tested corresponding to each grouping parameter to be tested. When a pre-segmentation operation is performed based on different grouping parameters to be tested, the number of segments corresponding to different grouping parameters to be tested is different, and the number of video sets obtained is also different. For example, based on the grouping parameter A to be tested, a pre-segmentation operation is performed on the first test video sequence to obtain 10 test video sets corresponding to the grouping parameter A to be tested, and based on the grouping parameter B to be tested, a pre-segmentation operation is performed on the first test video sequence to obtain 15 test video sets corresponding to the grouping parameter B to be tested.
[0099] Based on the first grouping parameter to be tested, the first test video sequence is divided into a first test number of video sets corresponding to the first grouping parameter to be tested, and video recommendation is performed after video filtering on each video set in the first number of video sets, so as to obtain the video recommendation result corresponding to the first grouping parameter to be tested. Based on the second grouping parameter to be tested, the first test video sequence is divided into a second number of video sets corresponding to the second grouping parameter to be tested, and video recommendation is performed after video filtering on each video set in the second test number of video sets, so as to obtain the video recommendation result corresponding to the second grouping parameter to be tested. And so on, until based on the last grouping parameter to be tested, the first test video sequence is divided into a last test number of video sets corresponding to the last grouping parameter to be tested, and video recommendation is performed after video filtering on each video set in the last test number of video sets, so as to obtain the video recommendation result corresponding to the last grouping parameter to be tested.
[0100] Based on the preset first recommendation confidence information, data verification is performed on the video recommendation result corresponding to each grouping parameter to be tested, and the grouping test result of each video recommendation result can be obtained. Compare different grouping test results, and select the first target recommendation result with the maximum matching degree with the first recommendation confidence information from the multiple video recommendation results. The first target recommendation result is the video recommendation result that can have video duration fairness and video quality, and the grouping parameter to be tested corresponding to the first target recommendation result is used as the preset grouping parameter.
[0101] As an optional embodiment, when multiple group tests are performed based on multiple group parameters to be tested, an A / B test method can be used. Based on the A / B test method, multiple group parameters to be tested are set, and based on the group parameters to be tested, a first test video sequence is segmented to obtain a test number of video sets corresponding to the group parameters to be tested, and then the video sets are filtered and video recommended to obtain video recommendation results corresponding to each group parameter to be tested. At the beginning of the A / B test, based on the hypothesis test method, a first recommendation confidence information is set. The first recommendation confidence information may include confidence and confidence interval, the confidence is the probability of the user clicking the target video when the corresponding group parameter to be tested is set, and the confidence interval is the degree to which the probability of the user clicking the target video corresponds to the probability of the user clicking the target video when the corresponding group parameter to be tested is set, which can reflect the reliability of the test results of the group parameter to be tested. When performing the A / B test, only one variable of the different group parameters to be tested is set, that is, the filtering parameters in the subsequent steps of each group test remain unchanged, and only the group parameters to be tested will change during the group test. Since the preset grouping parameters are used to perform time segmentation operations, and the preset filtering parameters are used to perform video quality filtering, and video quality filtering can determine the approximate filtering parameters based on experience, thereby ensuring that the video recommendation results corresponding to the grouping parameters to be tested can meet the first recommendation confidence information, it is possible to first estimate the approximate filtering parameters for grouping testing, and after determining the preset grouping parameters, add the preset grouping parameters to the filtering test, so that the video recommendation results corresponding to the filtering parameters to be tested can meet the second recommendation confidence information, thereby improving the accuracy of the grouping test and the filtering test.
[0102] Based on multiple grouping tests, preset grouping parameters can be determined from multiple grouping parameters to be tested, so that the preset grouping parameters can balance the fairness of video duration and video quality, improve the accuracy of the preset grouping parameters, and thus improve the rationality of dividing the first video sequence into video collections.
[0103] As an optional embodiment, the first video sequence is divided into a preset number of video sets, each video set has the same number of videos, and the video durations corresponding to the videos in each video set are similar.
[0104] S230. Perform video filtering on each video set to obtain a target video corresponding to each video set;
[0105] As an optional embodiment, in the first sorting stage in the sorting stage, that is, the rough sorting stage, each video set can be filtered based on preset video index data to obtain the target video corresponding to each video set. The video index data is index data related to video quality, and the video index data can reflect the interest level of the object in each video, wherein the object can be a user. The video index data can be video quality information.
[0106] As an alternative embodiment, see Figure 5 , filter each video set separately, and obtain the target videos corresponding to each video set, including:
[0107] S510. Based on the video quality information corresponding to the video to be recommended, the videos in each video set are sorted to obtain a second video sequence corresponding to each video set, wherein the video quality information is obtained based on the operation data performed on the object corresponding to the video;
[0108] S520. From each second video sequence, obtain a preset number of videos as target videos.
[0109] As an optional embodiment, video quality information corresponding to the video to be recommended is obtained. The video quality information can be obtained based on the object operation data corresponding to the video. The object operation data may include operation data performed by different users such as playback efficiency, long playback rate, like rate and attention rate.
[0110] The video quality information can be a comprehensive score of the videos in each video set, which is used to measure the video quality of the videos in each video set. When there are multiple object operation data, the video quality information can be calculated by weighted summation. For example, when the operation data performed by the object can include effective play rate, long play rate, like rate and attention rate, the calculation formula of the video quality information can be:
[0111] a*evtr+b*lvtr+c*ltr+d*wtr=S
[0112] Among them, S is the video quality information, a, b, c, d are weighted parameters of different object operation data, evtr is the effective playback rate, lvtr is the long playback rate, ltr is the like rate, and wtr is the attention rate.
[0113] By sorting the videos in each video set from large to small according to the size of the video quality information, or sorting the videos in each video set from small to large according to the size of the video quality information, the second video sequence corresponding to each video set can be obtained.
[0114] From each second video sequence, a preset number of videos are obtained as target videos, and the target videos are videos whose video quality is higher than a preset quality threshold. If the videos in each video set are sorted from large to small according to the video quality information, the first preset number of videos are obtained from each second video sequence as target videos, and if the videos in each video set are sorted from small to large according to the video quality information, the last preset number of videos are obtained from each second video sequence as target videos.
[0115] Based on the video quality information, the videos in each video set are sorted to obtain a second video sequence, and then a preset number of videos are obtained from the sorted second video sequence as target videos, thereby improving the quality of the target videos, further improving the effectiveness of video recommendation, and improving user experience.
[0116] As an optional embodiment, obtaining a preset number of videos as target videos from each second video sequence includes:
[0117] Based on preset filtering parameters, a preset number of videos corresponding to the preset filtering parameters are filtered from each second video sequence as target videos, and the preset filtering parameters are obtained by filtering tests based on the second test video sequence corresponding to the test video.
[0118] As an alternative embodiment, see Figure 6 Based on the preset filtering parameters, a preset number of videos corresponding to the preset filtering parameters can be obtained from each second video sequence as target videos. Since the preset grouping parameters divide the first video sequence into a preset number of video sets, wherein the number of video sets is fixed, when there are differences in the number of videos, the number of videos in each video set is not fixed. Therefore, the preset filtering parameters can be filtering ratio information, and based on the filtering ratio information, the second video sequence corresponding to each video set is obtained in proportion. For example, when the videos in each video set are sorted from large to small according to the video quality information, the preset filtering parameters are to filter the first 10% of videos, and the first 10% of videos are obtained from each second video sequence as target videos.
[0119] As an optional embodiment, the preset filtering parameters can be used to determine the number of target videos that enter the second sorting stage from the first sorting stage. The first sorting stage is a rough sorting stage, and the second sorting stage is a fine sorting stage. Therefore, by adjusting the preset filtering parameters, the number of target videos can be adjusted. The preset filtering parameters can be obtained by performing a filtering test based on the second test video sequence corresponding to the test video.
[0120] As an optional embodiment, the video set can be sorted and video filtered by the model. Each video set is input into the sorting model corresponding to the first sorting stage for sorting and video filtering to obtain the target video. In the sorting model corresponding to the first sorting stage, each video set can be sorted based on the video quality information to obtain multiple second video sequences, and each second video sequence can be filtered based on the preset filtering parameters to obtain the target video.
[0121] Based on the filtering test, preset filtering parameters are obtained, and then each second video sequence is filtered based on the preset filtering parameters to determine the number of videos input into the second sorting stage, and obtain the target video. The number of target videos can be controlled while ensuring the quality of the target video, thereby improving the effectiveness of video recommendation and user experience.
[0122] As an alternative embodiment, see Figure 7 , the method further comprises:
[0123] S710. Based on the test video quality information corresponding to the video to be tested, the test videos in each preset test video set are sorted to obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on a preset grouping parameter;
[0124] S720. Based on each filter parameter to be tested, respectively, from each second test video sequence, obtain the number of test videos to be tested corresponding to each filter parameter to be tested as target test videos, and the number of target test videos corresponding to each filter parameter to be tested is different;
[0125] S730. Determine the video recommendation result corresponding to each target test video;
[0126] S740. Perform data verification on the video recommendation result corresponding to each target test video to determine the second target recommendation result;
[0127] S750. Using the to-be-tested filtering parameter corresponding to the second target recommendation result as the preset filtering parameter;
[0128] As an optional embodiment, the test videos are sorted based on the video lengths corresponding to the test videos to obtain a first test video sequence. When the preset grouping parameters have been determined, the preset grouping parameters can be selected to divide the first test video sequence to obtain multiple test video sets. Based on the video quality information corresponding to the test videos, the videos in each test video set are sorted separately to obtain multiple second test video sequences.
[0129] Set multiple filtering parameters to be tested, and obtain the number of test videos to be tested corresponding to each filtering parameter to be tested from each second test video sequence as target test videos. When performing video filtering operations based on different filtering parameters to be tested, different filtering parameters to be tested correspond to different degrees of filtering, and the number of target test videos obtained is also different. For example, based on filtering parameter C to be tested, obtain 20 test videos corresponding to filtering parameter C to be tested from each second test video sequence as target test videos. Based on filtering parameter D to be tested, obtain 25 test videos corresponding to filtering parameter D to be tested from each second test video sequence as target test videos.
[0130] Based on the first filtering parameter to be tested, a first number of videos corresponding to the first filtering parameter to be tested can be obtained from each second test video sequence as the first target test video, and based on the first target test video, video recommendation processing is performed to the test object, and the video recommendation result of the first filtering parameter to be tested is obtained. Based on the second filtering parameter to be tested, a second number of videos corresponding to the second filtering parameter to be tested can be obtained from each second test video sequence as the second target test video, and based on the second target test video, video recommendation processing is performed to the test object, and the video recommendation result corresponding to the second filtering parameter to be tested is obtained. And so on, until based on the last filtering parameter to be tested, the last test number of videos corresponding to the last filtering parameter to be tested is obtained as the last target test video, and based on the last target test video, video recommendation processing is performed to the test object, and the video recommendation result corresponding to the last filtering parameter to be tested is obtained.
[0131] Based on the preset second recommendation confidence information, data verification is performed on the video recommendation results corresponding to each to-be-tested filtering parameter, and the filtering test results of each video recommendation result can be obtained. Different filtering test results are compared, and the second target recommendation result with the maximum matching degree with the second recommendation confidence information is selected from the multiple video recommendation results. The second target recommendation result is a video recommendation result that can have video duration fairness and video quality, and the to-be-tested filtering parameter corresponding to the second target recommendation result is used as the preset filtering parameter.
[0132] As an optional embodiment, when multiple filtering tests are performed based on multiple filtering parameters to be tested, an A / B test method can be used. Based on the A / B test method, multiple filtering parameters to be tested are set, and the number of test videos to be tested corresponding to each filtering parameter to be tested is obtained from each second test video sequence as the target test video, and then video recommendation is performed based on the target test video to obtain the video recommendation result corresponding to each filtering parameter to be tested. At the beginning of the A / B test, based on the hypothesis test method, second recommendation confidence information is set. The second recommendation confidence information may include confidence and confidence interval, the confidence is the probability that the user clicks the target video when the corresponding filtering parameter to be tested is set, and the confidence interval is the degree to which the true value corresponding to the probability of the user clicking the target video falls around the test result of the filtering test when the corresponding filtering parameter to be tested is set, which can reflect the reliability of the test result of the filtering parameter to be tested. When performing the A / B test, only one variable of different filtering parameters to be tested is set, that is, the grouping parameters in the pre-order step of each filtering test remain unchanged, and only the filtering parameters to be tested will change during the filtering test.
[0133] Based on multiple filtering tests, preset filtering parameters can be determined from multiple filtering parameters to be tested, thereby obtaining preset filtering parameters that can control the number of videos entering the second sorting stage, improving the accuracy of the preset filtering parameters and limiting the number of target videos.
[0134] S240. Perform video recommendation processing based on the target video.
[0135] As an optional embodiment, in the second sorting stage, that is, the refined sorting stage, video sorting processing is performed based on the target video corresponding to each video set, and according to the sorting result corresponding to the video sorting processing, video recommendation processing can be performed on the target video.
[0136] As an optional embodiment, performing video recommendation processing based on the target video includes:
[0137] Input the target video into the sorting model for sorting to obtain a target video sequence;
[0138] According to the arrangement order of the videos in the target video sequence, the videos in the target video sequence are recommended to the target object.
[0139] As an optional embodiment, the target video is input into the sorting model corresponding to the second sorting stage for sorting, and a target video sequence can be obtained. The second sorting stage is a refined sorting stage. In the sorting model corresponding to the second sorting stage, at least one video feature information corresponding to the target video can be calculated, and the target videos can be sorted from large to small according to the size of the at least one video feature information to obtain a target video sequence, and the videos in the target video sequence can be recommended to the target object according to the arrangement order of the videos in the target video sequence. Alternatively, a preset number of videos are obtained from the target video sequence, and the preset number of videos are recommended to the target object.
[0140] As an optional embodiment, in response to a video recommendation request sent by a target object, object feature information of the target object is obtained, the object feature information and the video feature information corresponding to the target video are input into a sorting model corresponding to the second sorting stage to calculate the correlation, and the target video is sorted based on the correlation to obtain a target video sequence. According to the arrangement order of the videos in the target video sequence, the videos in the target video sequence are recommended to the target object. Alternatively, videos whose correlation is greater than a preset correlation threshold are obtained from the target video sequence, and these videos whose correlation is greater than the preset correlation threshold are recommended to the target object.
[0141] As an optional embodiment, when sorting in the first sorting stage, it is necessary to sort according to the video quality information corresponding to the video, and the video quality information may include effective play rate, long play rate, like rate and attention rate, among which the long play rate is already related to the video length. After the first sorting stage, if the length sorting is performed again, since the long play rate has been used as the video quality information in the first sorting stage, the length of the video will affect the video quality of each video. At this time, it is meaningless to sort by length. Therefore, it is necessary to sort by length before the first sorting stage to eliminate the influence of the length of the video on the video quality of each video before the first sorting stage, so as to avoid the problem that a large number of videos with longer lengths are recommended, while short high-quality videos cannot be recommended.
[0142] Based on the target videos obtained through time length sorting, the first sorting stage, and the second sorting stage, video recommendation processing can effectively promote high-quality videos in each time range, thereby achieving a positive cycle in video recommendation and a healthy video ecosystem. It also covers more user interest needs, allowing users to consume high-quality videos of different time ranges, improving user consumption experience and usage stickiness.
[0143] As an optional embodiment, in the short video recommendation scenario, short video recommendation can be performed based on the above-mentioned video recommendation method. In long videos, movies or TV series have a relatively fixed duration, while the duration of short videos varies greatly, ranging from more than ten minutes to one or two minutes. Therefore, when recommending short videos, the short videos to be recommended are sorted based on the video duration corresponding to the short videos to be recommended to obtain a first video sequence. Based on the preset grouping parameters, the first video sequence is divided into a preset number of video sets, and the video durations corresponding to the short videos in each video set are similar. For example, the first video set includes short videos with video durations of 1 minute, 2 minutes and 3 minutes, respectively, the second video set includes short videos with video durations of 4 minutes, 5 minutes and 6 minutes, respectively, and the third video set includes short videos with video durations of 7 minutes, 8 minutes and 9 minutes. Based on the video quality information of each short video, the short videos in each video set are sorted to obtain a second video sequence. Based on the preset filtering parameters, a preset number of target videos are obtained from the second video sequence, and recommendation processing is performed based on the target videos, thereby achieving fairness in the duration distribution of the target videos while ensuring the video quality.
[0144] The disclosed embodiment provides a video recommendation method, which includes: sorting the recommended videos based on the video durations corresponding to the recommended videos to obtain a first video sequence, dividing the first video sequence into a preset number of video sets, wherein the videos in the video sets have similar video durations, filtering each video set to obtain a target video corresponding to each video set, and performing video recommendation processing based on the target video. By grouping the recommended videos according to the video duration, the method reduces the differences in the video durations of the videos in each group, thereby allowing videos in each duration range to be effectively displayed, thereby improving the effectiveness and diversity of video recommendations.
[0145] Figure 8 FIG. 1 is a block diagram of a video recommendation device according to an exemplary embodiment. Figure 8 , the device comprises:
[0146] The duration sorting module 810 is configured to sort the recommended videos based on the video durations corresponding to the recommended videos to obtain a first video sequence;
[0147] The video set division module 820 is configured to perform a pre-segmentation operation on the first video sequence to obtain a preset number of video sets, wherein the videos in the video set have similar video durations;
[0148] The target video filtering module 830 is configured to perform video filtering on each video set to obtain a target video corresponding to each video set;
[0149] The video recommendation module 840 is configured to perform video recommendation processing based on the target video.
[0150] As an optional embodiment, the video set partitioning module includes:
[0151] The grouping unit is configured to perform a pre-segmentation operation on the first video sequence based on a preset grouping parameter to obtain a preset number of video sets corresponding to the preset grouping parameter, wherein the preset grouping parameter is determined from multiple grouping parameters to be tested after grouping the test videos based on the multiple grouping parameters to be tested.
[0152] As an optional embodiment, the target video filtering module includes:
[0153] A quality sorting unit is configured to sort the videos in each video set based on the video quality information corresponding to the video to be recommended, so as to obtain a second video sequence corresponding to each video set, wherein the video quality information is obtained based on the operation data performed on the object corresponding to the video;
[0154] The target video acquisition unit is configured to acquire a preset number of videos as target videos from each second video sequence.
[0155] As an optional embodiment, the target video acquisition unit includes:
[0156] The filtering unit is configured to execute based on preset filtering parameters, and obtain a preset number of videos corresponding to the preset filtering parameters from each second video sequence as target videos. The preset filtering parameters are determined from multiple filtering parameters to be tested after filtering tests are performed on the test videos based on multiple filtering parameters to be tested.
[0157] As an optional embodiment, the device further includes:
[0158] A first test video sequence acquisition module is configured to sort the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence;
[0159] The grouping test module is configured to perform a pre-segmentation operation on the first test video sequence based on each grouping parameter to be tested, respectively, to obtain a number of test video sets to be tested corresponding to each grouping parameter to be tested, and the number of video sets corresponding to each grouping parameter to be tested is different;
[0160] A first recommendation result determination module is configured to determine a video recommendation result corresponding to each test video set;
[0161] A first data verification module is configured to perform data verification on the video recommendation result corresponding to each test video set to determine a first target recommendation result;
[0162] The preset grouping parameter determination module is configured to execute the to-be-tested grouping parameter corresponding to the first target recommendation result as the preset grouping parameter.
[0163] As an optional embodiment, the device further includes:
[0164] A second test video sequence acquisition module is configured to perform, based on the test video quality information corresponding to the video to be tested, sorting the test videos in each preset test video set to obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on preset grouping parameters;
[0165] The target test video acquisition module is configured to execute, based on each filter parameter to be tested, respectively acquiring a number of test videos to be tested corresponding to each filter parameter to be tested from each second test video sequence as target test videos, wherein the number of target test videos corresponding to each filter parameter to be tested is different;
[0166] A second recommendation result determination module is configured to determine a video recommendation result corresponding to each target test video;
[0167] A second data verification module is configured to perform data verification on the video recommendation result corresponding to each target test video to determine a second target recommendation result;
[0168] The preset filtering parameter determination module is configured to execute the to-be-tested filtering parameter corresponding to the second target recommendation result as the preset filtering parameter.
[0169] As an optional embodiment, the video recommendation module includes:
[0170] The model sorting unit is configured to input the target video into the sorting model for sorting to obtain a target video sequence;
[0171] The recommendation unit is configured to recommend videos in the target video sequence to the target object according to the arrangement order of the videos in the target video sequence.
[0172] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0173] Fig. 9is a block diagram of an electronic device for ... according to an exemplary embodiment, the electronic device may be a server, and its internal structure diagram may be as shown in Fig. 9 As shown. The electronic device includes a processor, a memory and a network interface connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a video recommendation method is implemented.
[0174] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0175] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by the processor 920 of the electronic device 900 to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0176] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned video recommendation method is implemented.
[0177] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0178] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A video recommendation method, characterized in that: The method comprises: Sort the videos to be recommended based on the video durations corresponding to the videos to be recommended to obtain a first video sequence; Pre-segmenting the first video sequence to obtain a preset number of video sets, wherein the videos in the video sets have similar video durations; Performing video filtering on each of the video sets respectively to obtain a target video corresponding to each of the video sets; Based on the target video, perform video recommendation processing; The performing video filtering on each of the video sets to obtain a target video corresponding to each of the video sets comprises: Based on the video quality information corresponding to the video to be recommended, the videos in each of the video sets are sorted to obtain a second video sequence corresponding to each of the video sets, wherein the video quality information is obtained based on the operation data performed by the object corresponding to the video; the operation data performed by the object includes an effective play rate, a long play rate, a like rate, and an attention rate; the video quality information is obtained by taking a weighted sum of the effective play rate, the long play rate, the like rate, and the attention rate; From each of the second video sequences, a preset number of videos are obtained as the target videos.
2. The video recommendation method according to claim 1, characterized in that: The pre-segmenting operation on the first video sequence to obtain a preset number of video sets includes: Based on preset grouping parameters, the first video sequence is pre-segmented to obtain a preset number of video sets corresponding to the preset grouping parameters, and the preset grouping parameters are determined from multiple grouping parameters to be tested after grouping the test videos based on multiple grouping parameters to be tested.
3. The video recommendation method according to claim 1, characterized in that: The acquiring a preset number of videos as the target videos from each of the second video sequences comprises: Based on the preset filtering parameters, a preset number of videos corresponding to the preset filtering parameters are obtained from each of the second video sequences as the target videos. The preset filtering parameters are determined from multiple filtering parameters to be tested after filtering the test videos separately based on the multiple filtering parameters to be tested.
4. The video recommendation method according to claim 2, characterized in that: The method further comprises: Sorting the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence; Based on each of the grouping parameters to be tested, pre-segmenting the first test video sequence respectively to obtain a number of test video sets to be tested corresponding to each of the grouping parameters to be tested, and the number of video sets corresponding to each of the grouping parameters to be tested is different; Determine a video recommendation result corresponding to each of the test video sets; Performing data verification on the video recommendation results corresponding to each of the test video sets to determine a first target recommendation result; The to-be-tested grouping parameter corresponding to the first target recommendation result is used as the preset grouping parameter.
5. The video recommendation method according to claim 4, characterized in that: The method further comprises: Based on the test video quality information corresponding to the video to be tested, the test videos in each preset test video set are sorted to obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on the preset grouping parameters; Based on each filtering parameter to be tested, respectively obtaining a number of test videos to be tested corresponding to each filtering parameter to be tested as target test videos from each of the second test video sequences, wherein the number of target test videos corresponding to each filtering parameter to be tested is different; Determine a video recommendation result corresponding to each of the target test videos; Performing data verification on the video recommendation result corresponding to each of the target test videos to determine a second target recommendation result; The to-be-tested filtering parameter corresponding to the second target recommendation result is used as the preset filtering parameter.
6. The video recommendation method according to any one of claims 1 to 3, characterized in that: The performing video recommendation processing based on the target video includes: Inputting the target video into a sorting model for sorting to obtain a target video sequence; The videos in the target video sequence are recommended to the target object according to the arrangement order of the videos in the target video sequence.
7. A video recommendation device, characterized in that: The device comprises: A duration sorting module is configured to sort the videos to be recommended based on the video durations corresponding to the videos to be recommended, to obtain a first video sequence; A video set division module is configured to perform a pre-segmentation operation on the first video sequence to obtain a preset number of video sets, wherein the videos in the video sets have similar video durations; A target video filtering module is configured to perform video filtering on each of the video sets to obtain a target video corresponding to each of the video sets; A video recommendation module is configured to perform video recommendation processing based on the target video; The target video filtering module comprises: A quality sorting unit is configured to sort the videos in each of the video sets based on the video quality information corresponding to the video to be recommended, so as to obtain a second video sequence corresponding to each of the video sets, wherein the video quality information is obtained based on the operation data performed by the object corresponding to the video; the operation data performed by the object includes an effective play rate, a long play rate, a like rate and an attention rate; and the video quality information is obtained by weighted summing the effective play rate, the long play rate, the like rate and the attention rate; The target video acquisition unit is configured to acquire a preset number of videos from each of the second video sequences as the target video.
8. The video recommendation device according to claim 7, characterized in that: The video set partitioning module comprises: The grouping unit is configured to perform a pre-segmentation operation on the first video sequence based on a preset grouping parameter to obtain a preset number of video sets corresponding to the preset grouping parameter, and the preset grouping parameter is determined from multiple grouping parameters to be tested after grouping the test videos based on multiple grouping parameters to be tested.
9. The video recommendation device according to claim 8, characterized in that: The target video acquisition unit comprises: The filtering unit is configured to execute based on preset filtering parameters, and obtain a preset number of videos corresponding to the preset filtering parameters from each of the second video sequences as the target video. The preset filtering parameters are determined from multiple filtering parameters to be tested after filtering the test videos respectively based on multiple filtering parameters to be tested.
10. The video recommendation device according to claim 7, characterized in that: The device also includes: A first test video sequence acquisition module is configured to sort the test videos based on the video durations corresponding to the test videos to obtain a first test video sequence; The grouping test module is configured to perform a pre-segmentation operation on the first test video sequence based on each grouping parameter to be tested, respectively, to obtain a number of test video sets to be tested corresponding to each grouping parameter to be tested, and the number of video sets corresponding to each grouping parameter to be tested is different; A first recommendation result determination module is configured to determine a video recommendation result corresponding to each of the test video sets; A first data verification module is configured to perform data verification on the video recommendation result corresponding to each of the test video sets to determine a first target recommendation result; The preset grouping parameter determination module is configured to execute the to-be-tested grouping parameter corresponding to the first target recommendation result as the preset grouping parameter.
11. The video recommendation device according to claim 10, characterized in that: The device also includes: A second test video sequence acquisition module is configured to sort the test videos in each preset test video set based on the test video quality information corresponding to the video to be tested, and obtain a second test video sequence corresponding to each preset test video set, wherein the test video quality information is obtained based on the operation data performed on the object corresponding to the test video, and the preset test video set is obtained by performing a pre-segmentation operation based on the preset grouping parameters; The target test video acquisition module is configured to execute, based on each filter parameter to be tested, respectively acquiring a number of test videos to be tested corresponding to each filter parameter to be tested from each of the second test video sequences as target test videos, wherein the number of target test videos corresponding to each filter parameter to be tested is different; A second recommendation result determination module is configured to determine a video recommendation result corresponding to each of the target test videos; A second data verification module is configured to perform data verification on the video recommendation result corresponding to each of the target test videos to determine a second target recommendation result; The preset filtering parameter determination module is configured to execute the to-be-tested filtering parameter corresponding to the second target recommendation result as the preset filtering parameter.
12. The video recommendation device according to any one of claims 7 to 9, characterized in that: The video recommendation module includes: A model sorting unit is configured to input the target video into a sorting model for sorting to obtain a target video sequence; The recommendation unit is configured to recommend the videos in the target video sequence to the target object according to the arrangement order of the videos in the target video sequence.
13. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video recommendation method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the video recommendation method according to any one of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video recommendation method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Video recommendation method and apparatus, and server
CN105893443A
Method and device for recommending videos in sequence
CN106303719A
Multicast sending method and device of streaming media, multicast server and medium
CN113099259A
