Video recommendation method and device based on video label weight

By dynamically adjusting video tag weights and generating feature vectors, it solves the problem that video recommendation systems in the existing technology cannot accurately reflect user preferences, achieves more accurate video recommendations, and improves user stickiness and platform competitiveness.

CN118820518APending Publication Date: 2024-10-22BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410959470.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing video recommendation systems based on static content tags are difficult to dynamically reflect users' rapidly changing preferences, resulting in recommended content that is inconsistent with users' actual preferences and lacks accuracy.

Method used

By generating tags based on the text information of the video and dynamically adjusting the video tag weight based on user interaction behavior, video feature vectors and user feature vectors are generated, and the target recommendation model is trained to generate a more accurate video recommendation list.

Benefits of technology

Dynamically adjusting tag weights and generating feature vectors can more accurately reflect users' immediate preferences, improve the accuracy and relevance of video recommendations, and enhance user stickiness and platform competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820518A_ABST
    Figure CN118820518A_ABST
Patent Text Reader

Abstract

The invention provides a video recommendation method and device based on a video tag weight. The method comprises the following steps: generating a plurality of tags according to text information of a video; dynamically adjusting the weight of each label of the video based on the interactive behaviors of the plurality of users on the video to obtain video label features; generating a video feature vector according to the video tag feature of the video, a preset video latent semantic feature and the video attribute feature; generating a user feature vector of the user according to the user attribute feature of the user and a preset user latent semantic feature; according to the user feature vectors of the sample users, the video feature vectors of the sample videos and whether each sample user clicks each sample video or not, training the initial recommendation model to obtain a target recommendation model; and processing the interactive behavior data of the target user through the target recommendation model to obtain a video recommendation list corresponding to the target user. The video recommendation accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of video recommendation, and in particular to a video recommendation method and device based on video tag weights. Background Art

[0002] Current video recommendation systems are widely used on various online platforms, such as video streaming platforms, social media, and education platforms. These platforms usually recommend video content to users to increase their viewing time and platform stickiness. Currently, most video recommendation systems make recommendations based on static content tags and user historical behavior data. These systems usually use collaborative filtering, content-based recommendations, and hybrid recommendation algorithms to predict user preferences and make recommendations.

[0003] Video content tags in traditional systems are usually statically assigned, which makes it difficult to adapt to users' rapidly changing preferences. Static tags cannot dynamically reflect users' immediate needs, resulting in the recommendation content not matching users' actual preferences and video recommendations not being accurate enough. Summary of the invention

[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a video recommendation method and device based on video tag weights.

[0005] In a first aspect, the present application provides a video recommendation method based on video tag weights, the method comprising:

[0006] Generate multiple tags based on the text information of the video;

[0007] Dynamically adjust the weight of each label of the video based on the interactive behavior of multiple users on the video to obtain the video label feature;

[0008] Generate a video feature vector according to the video tag feature, the preset video latent semantic feature and the video attribute feature of the video, wherein the video latent semantic feature is used to indicate the video interaction feature generated when the video interacts with multiple users;

[0009] Generating a user feature vector of the user according to a user attribute feature of the user and a preset user latent semantic feature, wherein the user latent semantic feature is used to indicate a user interaction feature generated when the user interacts with a plurality of videos;

[0010] According to the user feature vectors of sample users, the video feature vectors of sample videos, and whether each sample user clicks on each sample video, the initial recommendation model is trained to obtain the target recommendation model;

[0011] The interactive behavior data of the target user is processed through the target recommendation model to obtain a video recommendation list corresponding to the target user.

[0012] Optionally, based on the interactive behaviors of multiple users on the video, the weights of the labels of the video are dynamically adjusted to obtain the video label features including:

[0013] Determine a tag score and a tag weight for each tag of the video;

[0014] Analyze multiple interactive behaviors triggered by multiple users on the video to obtain a target behavior weight for each interactive behavior;

[0015] Adding the target behavior weight of each interactive behavior to the tag weight to obtain the tag adjusted weight;

[0016] The video tag feature of the video is obtained according to the weighted sum of the adjusted weight of each tag and the corresponding tag score.

[0017] Optionally, analyzing multiple interactive behaviors triggered by multiple users on the video to obtain a target behavior weight for each interactive behavior includes:

[0018] Determine multiple interactive behaviors triggered by each user on the video;

[0019] For the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior;

[0020] The target behavior weight of the interactive behavior is obtained by summing up the initial behavior weights of multiple users.

[0021] Optionally, for the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior includes:

[0022] If it is detected that the user also watches multiple other videos with the same tag within a set time period while watching the video, then the number of videos with the same tag that the user has watched is determined;

[0023] Determining an original behavior weight of the interactive behavior when the user triggers an interactive behavior on the video;

[0024] The initial behavior weight corresponding to the user is determined according to the product of the original behavior weight and the number of videos.

[0025] Optionally, obtaining a preset video latent semantic feature and a preset user latent semantic feature includes:

[0026] Obtain the interactive behavior data generated by each user when watching each video;

[0027] Analyzing the interactive behavior data through a latent semantic model to generate a user-video interaction matrix, wherein the user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video;

[0028] The user-video interaction matrix is ​​decomposed by singular value decomposition to obtain user latent semantic features of each user and video latent semantic features of each video.

[0029] Optionally, generating a video feature vector according to a video tag feature, a preset video latent semantic feature, and a video attribute feature of the video includes:

[0030] Converting the discrete features in the video tag feature, the video latent semantic feature, and the video attribute feature into a low-dimensional dense vector;

[0031] Standardizing the continuous features in the video tag feature, the video latent semantic feature, and the video attribute feature, and generating a standardized vector;

[0032] The low-dimensional dense vector and the standardized vector are concatenated to generate a video feature vector.

[0033] Optionally, the interactive behavior data of the target user is processed by the target recommendation model to obtain a video recommendation list corresponding to the target user, including:

[0034] Determine a target user vector according to the interactive behavior data and user attribute characteristics generated when the target user watches multiple videos;

[0035] determining a target video vector for each target video;

[0036] Processing the target user vector and the target video vector by the target recommendation model to obtain a recommendation score for each target video;

[0037] The recommendation scores are sorted in descending order to obtain the video recommendation list.

[0038] In a second aspect, the present application provides a video recommendation device based on video tag weights, the device comprising:

[0039] A first generating module, used to generate multiple tags according to the text information of the video;

[0040] An adjustment module, used to dynamically adjust the weight of each label of the video based on the interactive behavior of multiple users on the video to obtain the video label feature;

[0041] A second generating module is used to generate a video feature vector according to a video tag feature of the video, a preset video latent semantic feature and a video attribute feature, wherein the video latent semantic feature is used to indicate each user's interactive behavior with respect to the video;

[0042] A third generating module is used to generate a user feature vector of a single user according to preset user latent semantic features and user attribute features of the single user, wherein the user latent semantic features are used to indicate the user's interactive behavior with respect to each video;

[0043] A training module is used to train the initial recommendation model according to the user feature vectors of the sample users, the video feature vectors of the sample videos, and whether each sample user clicks on each sample video to obtain a target recommendation model;

[0044] The processing module is used to process the interactive behavior data of the target user through the target recommendation model to obtain a video recommendation list corresponding to the target user.

[0045] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0046] Memory, used to store computer programs;

[0047] The processor is used to implement any of the steps of the video recommendation method based on video tag weights when executing the program stored in the memory.

[0048] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the steps of the video recommendation method based on video tag weights is implemented.

[0049] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0050] According to the method provided in the embodiment of the present application, the user's interests and behavior patterns will change over time, and the weights of the various labels of the video will be dynamically adjusted based on the user's interactive behavior with the video, so that the label weights meet the user's immediate needs, and the generated video label features are also consistent with the user's preferences. In addition, based on the user's interactive behavior triggered by the video, video latent semantic features and user latent semantic features are also generated, which reflect the user's preference for the video. The sample data obtained in this way can accurately reflect the user's immediate preference for the video, making the target recommendation model more accurate, and thus the output video recommendation list is also more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0053] Figure 1 A schematic diagram of the hardware environment of a video recommendation method based on video tag weights provided in an embodiment of the present application;

[0054] Figure 2 A flowchart of a video recommendation method based on video tag weights provided in an embodiment of the present application;

[0055] Figure 3 A flowchart for obtaining video tag features provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the structure of a video recommendation device based on video tag weights provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0059] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0060] In order to solve the problem mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of a video recommendation method based on video tag weights is provided.

[0061] Optionally, in the embodiment of the present application, the above-mentioned video recommendation method based on video tag weights can be applied to Figure 1In the hardware environment composed of multiple terminals 101 and servers 103 shown in FIG. Figure 1 As shown, the server 103 is connected to multiple terminals 101 via a network, and can be used to provide services for the terminals or clients installed on the terminals. A database 105 can be set on the server or independently of the server to provide data storage services for the server 103. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 includes but is not limited to a PC, a mobile phone, a tablet computer, etc.

[0062] A video recommendation method based on video tag weights in an embodiment of the present application can be executed by the server 103 to accurately recommend videos to users.

[0063] The following will be combined with a specific implementation method to describe in detail a video recommendation method based on video tag weights provided by an embodiment of the present application. Figure 2 As shown, the specific steps are as follows:

[0064] Step 201: Generate multiple tags according to the text information of the video.

[0065] Step 202: Dynamically adjust the weight of each video tag based on the interactive behaviors of multiple users on the video to obtain video tag features.

[0066] Step 203: Generate a video feature vector according to the video tag features, preset video latent semantic features and video attribute features of the video, wherein the video latent semantic features are used to indicate video interaction features generated when the video interacts with multiple users.

[0067] Step 204: Generate a user feature vector of the user according to the user attribute features of the user and preset user latent semantic features, wherein the user latent semantic features are used to indicate user interaction features generated when the user interacts with multiple videos.

[0068] Step 205: Train the initial recommendation model according to the user feature vectors of the sample users, the video feature vectors of the sample videos, and whether each sample user clicks on each sample video to obtain a target recommendation model.

[0069] Step 206: Process the target user's interactive behavior data through the target recommendation model to obtain a video recommendation list corresponding to the target user.

[0070] The server collects interactive behavior data transmitted by each terminal in real time through log recording and event tracking technology. The interactive behavior data includes data such as users' likes, comments, shares, and viewing time of the video. The interactive behavior data refers to the interactive behavior triggered by each user for each video. In the embodiment of the present application, it is assumed that each terminal corresponds to one user.

[0071] After the server preprocesses the interactive behavior data, it uses a latent factor model (LFM) to analyze the interactive behavior data to obtain user latent semantic features and video latent semantic features. The user latent semantic features are used to indicate the user interaction features of a user generated when a user interacts with multiple videos, and the video latent semantic features are used to indicate the video interaction features of a video generated when a video interacts with multiple users.

[0072] Data preprocessing refers to cleaning, formatting and standardizing the collected raw data to remove noise and abnormal data. Specifically, it includes 1. Data cleaning, removing duplicates, null values ​​and abnormal data; 2. Data formatting, converting data into a unified format; 3. Data standardization, standardizing continuous variables (such as z-score standardization).

[0073] The server uses a classification model to obtain the text information of the video (such as title, video description, etc.) and generates different labels for the video in multiple dimensions. For example, it generates type dimension labels (such as romance, comedy, suspense) and content dimension labels (basketball, robots, friends). Labels of other dimensions can also be generated, and this application does not make specific restrictions.

[0074] Each tag of a video has a corresponding tag weight. The server adjusts the tag weight of the video based on the interactive behaviors triggered by multiple users on the video. Since the user's interactive behavior reflects the user's interest in the video, for example, liking indicates interest, sharing indicates further interest, and watching for 2 seconds and unfollowing indicate no interest, then adjusting the video's tag weight based on the interactive behavior and then generating the video tag feature can make the video tag feature reflect the user's interest in the video.

[0075] For any video, the server obtains the video tag features, preset video latent semantic features and video attribute features of the video, and generates a video feature vector of the video based on the above three features, where the video attribute features refer to the video cover, title, description, video id, etc. of the video itself. Similarly, for any user, the server obtains the user attribute features and preset user latent semantic features of the user, and generates a user feature vector of the user based on the two features. User attribute features refer to the user's gender, region, age, user id, etc.

[0076] The server constructs sample data based on the video feature vector and sample feature vector generated above. The sample data includes multiple sample data pairs and label tags for each sample data pair. The sample data pair includes a user feature vector of a user and a video feature vector of a video. The label tag is whether the sample user clicks on the sample video or not. Then, the initial recommendation model is trained based on the sample data to obtain the target recommendation model. In the process of using the target recommendation model, the server obtains the interactive behavior data of the target user and some target videos to be recommended. The target recommendation model processes the interactive behavior data and the target videos, sorts the target videos, and obtains a video recommendation list corresponding to the target user.

[0077] In this application, the user's interests and behavior patterns will change over time. The weights of each video label are dynamically adjusted based on the user's interactive behavior with the video, so that the label weight meets the user's immediate needs, and the generated video label features are also consistent with the user's preferences. In addition, based on the user's interactive behavior triggered by the video, video latent semantic features and user latent semantic features are also generated. These latent semantic features also reflect the user's preference for the video. The sample data obtained in this way can accurately reflect the user's immediate preference for the video, making the target recommendation model more accurate, and thus the output video recommendation list is also more accurate.

[0078] The videos in the embodiments of the present application include long videos (such as TV series, movies, documentaries, etc.) and short videos (such as edited videos, short video creation, etc.). Generally speaking, long videos and short videos have different content processing depth and viewing motivations. It is difficult for general recommendation strategies to take into account the characteristics of these two types of videos. However, the present application reflects the user's immediate preference for videos based on the user's interactive behavior data. Whether it is a long video or a short video, the user's interactive behavior data is similar and is not affected by the length of the video. The video recommendation method in the present application can effectively take into account both long videos and short videos, thereby improving the flexibility of video recommendations.

[0079] In the above step 202, the weights of the labels of the video are dynamically adjusted based on the interactive behaviors of multiple users on the video, and the video label features are obtained, including the following steps: Figure 3 shown.

[0080] Step 301: Determine the tag score and tag weight of each tag of the video.

[0081] The server uses a text processing model to process the text data of the video, such as the video title, video description, etc., to generate a vector representation of the text data, and then uses a classification model to determine multiple labels represented by the vector to obtain the label score and label weight of each label.

[0082] Specifically, text data processing includes: 1. Data cleaning: removing noise, stop words and special symbols; 2. Word segmentation and part-of-speech tagging: segmenting and tagging text; 3. Feature extraction: using text processing models to generate vector representations of text data.

[0083] Label generation includes: 1. Training the classification model: using existing labeled data for fine-tuning training; 2. Label generation: classifying the vector representation of video text data and generating multiple labels.

[0084] Among them, both the text processing model and the classification model can use the BERT (Bidirectional Encoder Representations from Transformer) model, which can effectively understand and process natural language, improve the accuracy and richness of label generation, and make the recommended content more in line with user preferences. Other models can also be used, and this application does not limit the specific type of the model.

[0085] Step 302: Analyze multiple interactive behaviors triggered by multiple users on the video to obtain a target behavior weight for each interactive behavior.

[0086] If the video has been viewed by multiple users, then each user has more or less triggered interactive behaviors on the video. Each user's interactive behaviors include but are not limited to: likes, comments, reposts, following, favorites, viewing time, whether to open the video cover, etc. Each interactive behavior has a certain weight, but for the same interactive behavior, the weights of the interactive behavior corresponding to different users are not necessarily the same. If the weights of multiple users under the same interactive behavior are added together, the target behavior weight of the interactive behavior is obtained.

[0087] For example, the weight of a like is 0.1. User 1 and User 2 both like the video. If User 1 also likes another video, and the two videos liked by User 1 belong to the same category, then the weight of User 1's like is 0.1*2=0.2. The other videos liked by User 2 are of a different category from this video, so the weight of User 2's like is still 0.1, so the weight of the video's like is 0.2+0.1=0.3.

[0088] Step 303: Add the target behavior weight of each interactive behavior to the label weight to obtain the label-adjusted weight.

[0089] The label itself has its own label weight, and then the target behavior weight of each interactive behavior is added to the label weight to obtain the label adjusted weight.

[0090] For example, the label is suspense, the suspense weight is 0.5, the video receives two likes and two comments, the total weight of the likes is 0.3, and the total weight of the unfollows is -0.4, then the weight of the suspense label is 0.5+0.3-0.4=0.4.

[0091] Step 304: Obtain the video tag feature of the video according to the weighted sum of the adjusted weight of each tag and the corresponding tag score.

[0092] Each tag obtains an adjusted weight according to the method of steps 302 to 303 above. Each tag also has its own tag score. The total tag score of the video is obtained by the weighted sum of the tag weight and the tag score. The database stores the correspondence between the total tag score and the tag feature, and the database obtains the video tag feature of the video based on the correspondence.

[0093] In this application, on the basis of the video tag weight, the weight of the interactive behavior is added. The weight of the interactive behavior reflects the popularity of the video. The video tag features generated in this way also reflect the user's interest in the video.

[0094] In step 302, obtaining the target behavior weight of each interactive behavior specifically includes the following steps: determining multiple interactive behaviors triggered by each user on the video; for the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior; and obtaining the target behavior weight of the interactive behavior based on the sum of the initial behavior weights of multiple users.

[0095] When a user watches the video, he triggers at least one interactive behavior on the video. For any interactive behavior, the user triggering the interactive behavior will have a corresponding original behavior weight. If the user only watches one video of this type within the set time, then the original behavior weight will be used as the user's initial behavior weight for the interactive behavior.

[0096] If the user has watched other videos with the same tag as the video within the set duration, the number of videos with the same tag that the user has watched is determined, and the initial behavior weight = original behavior weight * number of videos.

[0097] The target behavior weight of a certain interactive behavior = the initial behavior weight of user 1 for the interactive behavior + the initial behavior weight of user 2 for the interactive behavior + ... + the initial behavior weight of user n for the interactive behavior.

[0098] As an optional implementation, obtaining preset video latent semantic features and preset user latent semantic features includes: obtaining the interactive behavior data generated when each user watches each video; analyzing the interactive behavior data through a latent semantic model to generate a user-video interaction matrix, wherein the user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video; decomposing the user-video interaction matrix using singular value decomposition to obtain user latent semantic features of each user and video latent semantic features of each video.

[0099] The server collects the interactive behavior data generated when each user watches each video through log recording and event tracking technology, and analyzes the interactive behavior data through the latent semantic model to generate a user-video interaction matrix. The user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video. The server decomposes the user-video interaction matrix by singular value decomposition (SVD) to obtain the user latent semantic features of each user and the video latent semantic features of each video. The user latent semantic features reflect the user interaction features generated when the user interacts with multiple videos, such as how many videos the user has watched, what type of videos the user prefers, what is the effective playback rate of the watched videos, what is the video playback rate, etc. The video latent semantic features reflect the video interaction features generated when the video interacts with multiple users, such as how many users have watched the video, how many have been watched by member users, how many have been watched by non-member users, what is the click-through rate in one hour, etc.

[0100] The latent semantic model conducts in-depth analysis of interactive behavior data and extracts latent semantic features of users and videos. The latent semantic features can better capture the potential connections between users and videos, thereby improving the accuracy of the recommendation model.

[0101] Singular value decomposition (Singular Value Decomposition) is an important matrix decomposition in linear algebra. Singular value decomposition is the generalization of eigendecomposition on any matrix.

[0102] This application decomposes the interactive behavior data to generate user interaction features on the user side and video interaction features on the video side. The user interaction features reflect which videos users prefer, and the video interaction features reflect which users prefer the videos. This application uses the user interaction features and video interaction features as sample data to train the recommendation model, which can make the trained recommendation model better reflect the videos preferred by users, thereby making the video recommendation list more accurate.

[0103] As an optional implementation, generating a video feature vector based on the video tag features, preset video latent semantic features and video attribute features of the video includes: converting discrete features in the video tag features, video latent semantic features and video attribute features into low-dimensional dense vectors; standardizing the continuous features in the video tag features, video latent semantic features and video attribute features to generate a standardized vector; and splicing the low-dimensional dense vector and the standardized vector to generate a video feature vector.

[0104] After the server obtains the video tag features, preset video latent semantic features and video attribute features of the video, it extracts discrete features and continuous features from the three features respectively. Discrete features include video ID, etc., and continuous features include the number of likes per minute of the video. The server processes the discrete features and continuous features into vectors respectively. Specifically, the discrete features are processed into low-dimensional dense vectors, the continuous features are normalized and other processing is performed to generate standardized vectors, and then the low-dimensional dense vectors and the standardized vectors are spliced ​​to generate video feature vectors.

[0105] The present application decomposes video features into discrete features and continuous features, and then processes the discrete features and continuous features separately, so that the final video feature vector can be more reasonable, the accuracy of the video feature vector can be improved, and thus the accuracy of the sample data can be improved.

[0106] By the same token, the embodiment of the present application converts the user attribute features and preset user latent semantic features into user feature vectors, and also adopts a method of processing discrete features and continuous features separately, which will not be repeated here.

[0107] As an optional implementation, the specific process of training the target recommendation model includes: the server obtains a sample data pair and a label of the sample data pair, the sample data pair includes a user feature vector based on the sample user and a video feature vector of the sample video, the label includes whether the sample user clicks on the sample video or not, the server trains the initial recommendation model based on the sample data pair, and obtains an output result. If the output result and the label are different, the loss function is used to adjust the internal parameters of the model until the output result and the label are the same, at which time the model training is considered to be completed.

[0108] Among them, sample users and sample videos constitute data pairs. The source of data pairs is manually set on the one hand, and based on the interactive behavior of sample users on sample videos on the other hand. If the sample user has positive interactions with the sample video such as liking and collecting, then the number of data pairs will be increased. If the sample user has negative interactions with the sample video such as unfollowing or only watching it for two seconds, then the number of data pairs will be reduced.

[0109] The target recommendation model in this application can be DNN (Deep Neural Network, fully connected neural network). The DNN model can make full use of complex user behavior data and video content features to optimize the recommendation sorting effect and improve user satisfaction. Other types of neural networks can also be used. DNN includes an input layer, several hidden layers and an output layer. The training process is to first train the model using historical data, optimize the sorting loss function, and then evaluate the model performance through the validation set, and adjust the hyperparameters and model structure.

[0110] As an optional implementation method, the target user's interactive behavior data is processed through a target recommendation model to obtain a video recommendation list corresponding to the target user, including: determining a target user vector based on the interactive behavior data and user attribute characteristics generated when the target user watches multiple videos; determining a target video vector for each target video; processing the target user vector and the target video vector through a target recommendation model to obtain a recommendation score for each target video; and sorting the recommendation scores in descending order to obtain a video recommendation list.

[0111] The latent semantic model extracts the latent semantic features of the target user from the interactive behavior data of the target user, generates a target user vector for the target user based on the latent semantic features and the user attribute features, and generates a target video vector for some target videos to be recommended based on the video tag features, preset video latent semantic features and video attribute features of the target video. The server inputs the target user vector and the target video vector into the target recommendation model, and the target recommendation model outputs the recommendation score for each target video, and then sorts the recommendation scores in descending order to obtain a video recommendation list.

[0112] If there are fewer videos in the database, for example, three hundred, then all the videos in the database are used as target videos. If there are more videos in the database, for example, tens of thousands, then some videos can be selected as target videos through a callback method. The callback method can be to select videos liked by other users who have similar preferences to the target user, or similar videos in the historical videos watched by the user, etc.

[0113] This application provides a video recommendation process based on video tag weights, including the following steps:

[0114] 1. Data collection. The server collects interactive behavior data from each terminal in real time through log recording and event tracking technology.

[0115] 2. Data analysis and processing.

[0116] 2.1. The server cleans, formats and standardizes the interactive behavior data.

[0117] 2.2. Use the latent semantic model to analyze the interactive behavior data and obtain user latent semantic features and video latent semantic features.

[0118] 3. Label generation and dynamic adjustment.

[0119] 3.1. Use the BERT model to process the text data of the video and generate a vector representation of the text data.

[0120] 3.2. Use the BERT model to classify the vector representation of video text data and generate multiple labels.

[0121] 3.3. Dynamically adjust tag weights based on user interaction behavior data.

[0122] 4. Determine the training samples.

[0123] 4.1. Determine the video tag features based on the dynamically adjusted tag weights, and obtain sample videos based on the video tag features, video latent semantic features, and video attribute features.

[0124] 4.2. Obtain sample users based on user attribute characteristics and preset user implicit semantic features.

[0125] 5. Model recommendation ranking.

[0126] 5.1. Use sample videos and sample users to train the DNN model.

[0127] 5.2.The DNN model processes the target user’s interactive behavior data and the features of the target video, and outputs a video recommendation list.

[0128] This application can achieve the following effects: 1. Improve user stickiness: By dynamically adjusting content tags and optimizing recommendation rankings, the accuracy and relevance of recommended content can be improved, allowing users to find video content of interest more quickly, increasing user viewing time and stickiness. 2. Enhance user experience: Using advanced latent semantic models and BERT models to provide more personalized and intelligent recommendation services, improving user viewing experience and satisfaction. 3. Improve platform competitiveness: By introducing dynamic tags to adjust the recommendation model, the recommendation model can quickly respond to changes in user needs, improve recommendation effects, and thus enhance the platform's competitiveness in the market.

[0129] Based on the same technical concept, the embodiment of the present application also provides a video recommendation device based on video tag weights, such as Figure 4 As shown, the device comprises:

[0130] A first generating module 401, used to generate multiple tags according to the text information of the video;

[0131] An adjustment module 402 is used to dynamically adjust the weight of each label of the video based on the interactive behavior of multiple users on the video to obtain the video label feature;

[0132] The second generating module 403 is used to generate a video feature vector according to the video tag feature, the preset video latent semantic feature and the video attribute feature of the video, wherein the video latent semantic feature is used to indicate the interactive behavior of each user on the video;

[0133] The third generating module 404 is used to generate a user feature vector of a user according to preset user latent semantic features and user attribute features of a single user, wherein the user latent semantic features are used to indicate the user's interactive behavior with respect to each video;

[0134] The training module 405 is used to train the initial recommendation model according to the user feature vectors of the sample users, the video feature vectors of the sample videos, and whether each sample user clicks on each sample video to obtain a target recommendation model;

[0135] The processing module 406 is used to process the interactive behavior data of the target user through the target recommendation model to obtain a video recommendation list corresponding to the target user.

[0136] Optionally, the adjustment module 402 is used to:

[0137] Determine the label scores and label weights of each label of the video;

[0138] Analyze multiple interactive behaviors triggered by multiple users on the video and obtain the target behavior weight of each interactive behavior;

[0139] Add the target behavior weight of each interactive behavior to the label weight to get the label-adjusted weight.

[0140] The video tag features of the video are obtained according to the weighted sum of the adjusted weight of each tag and the corresponding tag score.

[0141] Optionally, the adjustment module 402 is used to:

[0142] Determine the various interactive behaviors triggered by each user on the video;

[0143] For the same interactive behavior, determine the initial behavior weight corresponding to each user when each user triggers the interactive behavior;

[0144] The target behavior weight of the interactive behavior is obtained by summing up the initial behavior weights of multiple users.

[0145] Optionally, the adjustment module 402 is used to:

[0146] If it is detected that the user has watched multiple other videos with the same tag within a set time while watching the video, the number of videos with the same tag that the user has watched is determined;

[0147] Determine the original behavior weight of the user's interactive behavior when the video triggers an interactive behavior;

[0148] The initial behavior weight corresponding to the user is determined according to the product of the original behavior weight and the number of videos.

[0149] Optionally, the device is also used for:

[0150] Obtain the interactive behavior data generated by each user when watching each video;

[0151] The interactive behavior data is analyzed through a latent semantic model to generate a user-video interaction matrix, where the user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video;

[0152] The user-video interaction matrix is ​​decomposed by singular value decomposition to obtain the user latent semantic features of each user and the video latent semantic features of each video.

[0153] Optionally, the second generating module 403 is used to:

[0154] Convert discrete features in video tag features, video latent semantic features, and video attribute features into low-dimensional dense vectors;

[0155] Standardize the continuous features in the video tag features, the video latent semantic features, and the video attribute features, and generate a standardized vector;

[0156] The video feature vector is generated by concatenating the low-dimensional dense vector and the standardized vector.

[0157] Optionally, the processing module 406 is used to:

[0158] Determine the target user vector based on the interactive behavior data and user attribute characteristics generated when the target user watches multiple videos;

[0159] determining a target video vector for each target video;

[0160] The target user vector and the target video vector are processed by the target recommendation model to obtain the recommendation score of each target video;

[0161] Sort the recommendation scores in descending order to obtain a video recommendation list.

[0162] Based on the same technical concept, an embodiment of the present invention further provides an electronic device, such as Figure 5As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0163] Memory 503, used for storing computer programs;

[0164] The processor 501 is used to implement the above steps when executing the program stored in the memory 503.

[0165] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0166] The communication interface is used for communication between the above electronic device and other devices.

[0167] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0168] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0169] In another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the steps of implementing any of the above methods include:

[0170] Generate multiple tags based on the text information of the video;

[0171] Dynamically adjust the weight of each video tag based on the interactive behavior of multiple users on the video to obtain the video tag features;

[0172] Generate a video feature vector according to the video tag feature, the preset video latent semantic feature and the video attribute feature of the video, wherein the video latent semantic feature is used to indicate the video interaction feature generated when the video interacts with multiple users;

[0173] Generate a user feature vector of the user according to the user attribute features of the user and the preset user latent semantic features, wherein the user latent semantic features are used to indicate user interaction features generated when the user interacts with multiple videos;

[0174] According to the user feature vectors of sample users, the video feature vectors of sample videos, and whether each sample user clicks on each sample video, the initial recommendation model is trained to obtain the target recommendation model;

[0175] The interactive behavior data of the target user is processed through the target recommendation model to obtain a video recommendation list corresponding to the target user.

[0176] Optionally, the weights of various labels of the video are dynamically adjusted based on the interactive behaviors of multiple users on the video, and the obtained video label features include:

[0177] Determine the label scores and label weights of each label of the video;

[0178] Analyze multiple interactive behaviors triggered by multiple users on the video and obtain the target behavior weight of each interactive behavior;

[0179] Add the target behavior weight of each interactive behavior to the label weight to get the label-adjusted weight.

[0180] The video tag features of the video are obtained according to the weighted sum of the adjusted weight of each tag and the corresponding tag score.

[0181] Optionally, multiple interactive behaviors triggered by multiple users on the video are analyzed to obtain target behavior weights of each interactive behavior, including:

[0182] Determine the various interactive behaviors triggered by each user on the video;

[0183] For the same interactive behavior, determine the initial behavior weight corresponding to each user when each user triggers the interactive behavior;

[0184] The target behavior weight of the interactive behavior is obtained by summing up the initial behavior weights of multiple users.

[0185] Optionally, for the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior includes:

[0186] If it is detected that the user has watched multiple other videos with the same tag within a set time while watching the video, the number of videos with the same tag that the user has watched is determined;

[0187] Determine the original behavior weight of the user's interactive behavior when the video triggers an interactive behavior;

[0188] The initial behavior weight corresponding to the user is determined according to the product of the original behavior weight and the number of videos.

[0189] Optionally, obtaining a preset video latent semantic feature and a preset user latent semantic feature includes:

[0190] Obtain the interactive behavior data generated by each user when watching each video;

[0191] The interactive behavior data is analyzed through a latent semantic model to generate a user-video interaction matrix, where the user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video;

[0192] The user-video interaction matrix is ​​decomposed by singular value decomposition to obtain the user latent semantic features of each user and the video latent semantic features of each video.

[0193] Optionally, generating a video feature vector according to a video tag feature, a preset video latent semantic feature, and a video attribute feature of the video includes:

[0194] Convert discrete features in video tag features, video latent semantic features, and video attribute features into low-dimensional dense vectors;

[0195] Standardize the continuous features in the video tag features, the video latent semantic features, and the video attribute features, and generate a standardized vector;

[0196] The video feature vector is generated by concatenating the low-dimensional dense vector and the standardized vector.

[0197] Optionally, the interactive behavior data of the target user is processed by the target recommendation model to obtain a video recommendation list corresponding to the target user, including:

[0198] Determine the target user vector based on the interactive behavior data and user attribute characteristics generated when the target user watches multiple videos;

[0199] determining a target video vector for each target video;

[0200] The target user vector and the target video vector are processed by the target recommendation model to obtain the recommendation score of each target video;

[0201] Sort the recommendation scores in descending order to obtain a video recommendation list.

[0202] In another embodiment of the present invention, a computer program product including instructions is provided, which enables the computer to execute any one of the methods in the above embodiments when the computer program product is executed on the computer.

[0203] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0204] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0205] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A video recommendation method based on video tag weights, characterized in that: The method comprises: Generate multiple tags based on the text information of the video; Dynamically adjust the weight of each label of the video based on the interactive behavior of multiple users on the video to obtain the video label feature; Generate a video feature vector according to the video tag feature, the preset video latent semantic feature and the video attribute feature of the video, wherein the video latent semantic feature is used to indicate the video interaction feature generated when the video interacts with multiple users; Generating a user feature vector of the user according to a user attribute feature of the user and a preset user latent semantic feature, wherein the user latent semantic feature is used to indicate a user interaction feature generated when the user interacts with a plurality of videos; According to the user feature vectors of sample users, the video feature vectors of sample videos, and whether each sample user clicks on each sample video, the initial recommendation model is trained to obtain the target recommendation model; The interactive behavior data of the target user is processed through the target recommendation model to obtain a video recommendation list corresponding to the target user.

2. The method according to claim 1, characterized in that The weights of the labels of the video are dynamically adjusted based on the interactive behaviors of multiple users on the video, and the obtained video label features include: Determine a tag score and a tag weight for each tag of the video; Analyze multiple interactive behaviors triggered by multiple users on the video to obtain a target behavior weight for each interactive behavior; Adding the target behavior weight of each interactive behavior to the tag weight to obtain the tag adjusted weight; The video tag feature of the video is obtained according to the weighted sum of the adjusted weight of each tag and the corresponding tag score.

3. The method according to claim 2, characterized in that Analyze multiple interactive behaviors triggered by multiple users on the video, and obtain the target behavior weight of each interactive behavior, including: Determine multiple interactive behaviors triggered by each user on the video; For the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior; The target behavior weight of the interactive behavior is obtained by summing up the initial behavior weights of multiple users.

4. The method according to claim 3, characterized in that For the same interactive behavior, determining the initial behavior weight corresponding to each user when each user triggers the interactive behavior includes: If it is detected that the user also watches multiple other videos with the same tag within a set time period while watching the video, then the number of videos with the same tag that the user has watched is determined; Determining an original behavior weight of the interactive behavior when the user triggers an interactive behavior on the video; The initial behavior weight corresponding to the user is determined according to the product of the original behavior weight and the number of videos.

5. The method according to claim 1, characterized in that: Acquiring preset video latent semantic features and preset user latent semantic features includes: Obtain the interactive behavior data generated by each user when watching each video; Analyzing the interactive behavior data through a latent semantic model to generate a user-video interaction matrix, wherein the user-video interaction matrix is ​​used to indicate the interactive behavior between each user and each video; The user-video interaction matrix is ​​decomposed by singular value decomposition to obtain user latent semantic features of each user and video latent semantic features of each video.

6. The method according to claim 1, characterized in that Generating a video feature vector according to the video tag feature, the preset video latent semantic feature and the video attribute feature of the video includes: Converting the discrete features in the video tag feature, the video latent semantic feature, and the video attribute feature into a low-dimensional dense vector; Standardizing the continuous features in the video tag feature, the video latent semantic feature, and the video attribute feature, and generating a standardized vector; The low-dimensional dense vector and the standardized vector are concatenated to generate a video feature vector.

7. The method according to claim 1, characterized in that The interactive behavior data of the target user is processed by the target recommendation model to obtain a video recommendation list corresponding to the target user, including: Determine a target user vector according to the interactive behavior data and user attribute characteristics generated when the target user watches multiple videos; determining a target video vector for each target video; Processing the target user vector and the target video vector by the target recommendation model to obtain a recommendation score for each target video; The recommendation scores are sorted in descending order to obtain the video recommendation list.

8. A video recommendation device based on video tag weights, characterized in that: The device comprises: A first generating module, used to generate multiple tags according to the text information of the video; An adjustment module, used to dynamically adjust the weight of each label of the video based on the interactive behavior of multiple users on the video to obtain the video label feature; A second generating module is used to generate a video feature vector according to a video tag feature, a preset video latent semantic feature and a video attribute feature of the video, wherein the video latent semantic feature is used to indicate the interactive behavior of each user on the video; A third generating module is used to generate a user feature vector of a single user according to preset user latent semantic features and user attribute features of the single user, wherein the user latent semantic features are used to indicate the user's interactive behavior with respect to each video; A training module is used to train the initial recommendation model according to the user feature vectors of the sample users, the video feature vectors of the sample videos, and whether each sample user clicks on each sample video to obtain a target recommendation model; The processing module is used to process the interactive behavior data of the target user through the target recommendation model to obtain a video recommendation list corresponding to the target user.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Short video recommendation method based on label semantic similarity

    CN111046231A

  • Recommendation method and device, equipment and computer storage medium

    CN112395489A

  • Video recommendation method and device, computer equipment and storage medium

    CN113420181A

  • Video recommendation method and device

    CN115544299A

  • Model training method and device, video recommendation method and device and electronic equipment

    CN116975443A