Audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm
Through feature extraction and deep collaborative filtering algorithms of audio and video content, combined with user behavior analysis, the recommendation problem in massive audio and video content is solved, and the accurate matching and recommendation of audio and video content is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202411159638.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-29
AI Technical Summary
Among the massive audio and video content, the prior art is difficult to quickly and efficiently match the audio and video content of users' interests and hobbies, and cannot effectively use the feature information of audio and video for recommendations.
Using a method based on audio and video content and deep collaborative filtering algorithm, the user and audio and video features are generated by extracting text and picture information in audio and video, and combining user behavior analysis. vector, match recommendation.
Achieve complete matching of audio and video features and user features in deep collaborative networks, integrate text language and image features, improve the accuracy and efficiency of recommendations, and use the latest technical means such as word2vec and deep neural networks to generate sparse attention table, improves user experience.
Smart Images

Figure CN119046539A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of audio recommendation, and in particular relates to an audio and video recommendation method based on audio and video content and a deep collaborative filtering algorithm. Background Art
[0002] With the rapid development of the Internet, it has gradually covered all aspects of people's lives. People have gradually become accustomed to obtaining information, entertainment, and even learning on the Internet. When users obtain audio and video content, they usually use software as a window. The Internet is full of a large amount of audio and video. In order to allow users to obtain the content they want faster, more timely, and more efficiently, it is necessary to analyze user behavior, determine their preferences, extract and analyze audio and video content, determine the characteristics of audio and video, and then make matching recommendations.
[0003] The patent of this invention mainly integrates speech-to-text, text recognition in images, text extraction, natural language processing, recommendation algorithm, collaborative filtering, deep learning and other technologies to extract and analyze audio and video content, and then generate feature vectors of users and audio and video through natural language processing and deep collaborative filtering and other technologies. Finally, audio and video content is recommended to users based on the matching degree of user and audio and video feature vectors. Summary of the invention
[0004] In order to achieve the above purpose, and at the same time, in order to more effectively match and recommend audio and video content that matches the user's interests and hobbies, this patent uses the latest achievements of audio, video, natural language processing, and deep learning to judge the characteristics of the audio and video based on the basic content of the audio and video, and the basic characteristics of the user based on the user's historical behavior, and then recommends the audio and video. The technical solution of the present invention is as follows: an audio and video recommendation method based on audio and video content and a deep collaborative filtering algorithm, the method comprising the following steps:
[0005] Step S1, extracting text from the audio;
[0006] Step S2, extracting text from the video;
[0007] Step S3, extracting information from useful images;
[0008] Step S4, converting the extracted information into a feature vector;
[0009] Step S5, extracting picture information vector;
[0010] Step S6, generating a user attention table and a user browsing table;
[0011] Step S7, generating a user feature vector;
[0012] Step S8, generating a predicted attention table.
[0013] As an improvement of the present invention, the step S1 of extracting text from the audio specifically includes:
[0014] Step S1.1, first extract the audio from the video;
[0015] Step S1.2, then cut the audio into 1-minute segments;
[0016] Step S1.3, extract text from each audio segment using the text extraction technology and then concatenate all the text to output the audio text. a .
[0017] As an improvement of the present invention, the step S2 of extracting text from the video specifically includes:
[0018] Step S2.1, extracting frames from the video, the frame extraction frequency is, for example, one frame for every ten frames;
[0019] Step S2.2, performing OCR text extraction on each frame of the image;
[0020] Step S2.3, remove duplicates and splice the extracted text to output the image text t i .
[0021] As an improvement of the present invention, the step S3 of extracting information from the useful picture specifically includes:
[0022] Step S3.1, after deduplication of text, extract the frames in the video according to the frames corresponding to the retained text as the key information of the picture;
[0023] Step S3.2, deduplicate the extracted frames and obtain a frame set F for each video.
[0024] As an improvement of the present invention, the step S4 of converting the extracted information into a feature vector specifically includes:
[0025] Step S4.1: for each video, the text t extracted from steps S1 and S2 is a and t i Remove duplicates and splice, output t;
[0026] Step S4.2, concatenating the texts of all videos together to form a total text set T;
[0027] Step S4.3, perform word segmentation on each video t and the total set T, and then perform word frequency statistics on each video. The importance of each word is calculated based on tfidf. For each word i that appears in each t:
[0028] w i,t =f i,tlog(N / df i )
[0029] N is the total amount of audio and video, df i is the number of audio and video clips where word i appears, f i,t is the frequency of word i appearing in t, w i,t It represents the importance of word i to word t.
[0030] Step S4.4, count each audio and video w i,t The ten words with the highest value are selected, and then each word is converted into a word vector using the latest word2vec technology, and then according to w i,t Weighted, find the feature vector of each audio and video:
[0031] v t =∑w i,t v i / w
[0032] W i,t is the importance value of word i to t, w is the sum of all the importance values of t, that is, the sum of the importance values of all the words participating in the above weighting, v i is the feature vector of word i, v t What is obtained is the feature vector of video t.
[0033] As an improvement of the present invention, the step S5 of extracting the picture information vector specifically includes:
[0034] From the frame set F obtained in step S3, each frame is converted into a feature vector v j , and then average all the feature vectors to get the feature vector v of the video f .
[0035] As an improvement of the present invention, the step S6 of generating the user attention table and the user browsing table specifically includes:
[0036] Step S6.1, analyzing user behavior;
[0037] Step S6.2, assign weight values to user behaviors and perform weighted summation. The specific method of weighted summation depends on the needs. The weight values can decrease according to the time length. Finally, a weight value will be generated between each user and each video, that is, ρ i,j , expressing the attention of user i to video j, and finally generating an attention table P, which should have a large number of ρ i,j The value will be 0, and a browse table R is required, r i,j Indicates whether user i has viewed video j.
[0038] As an improvement of the present invention, the step S7 of generating the user feature vector specifically includes:
[0039] Two types of video feature vectors v are obtained from steps S4 and S5 respectively. t and v f , and then obtain the desired user feature vector and audio and video feature vector through deep neural network training:
[0040] v=W t v t +βW f v f ,
[0041]
[0042] Where W t and W f They are all neural networks that convert two types of video feature vectors into the final video feature vector. The simplest one can be a matrix with trainable parameters, or a deep neural network. β is the weight value of the two types of feature vectors, v is the feature vector of video j, u is the feature vector of user i, and the initial feature vectors of all users are random values. u is trainable. is the user's attention to the video calculated based on the feature vector of user i and the feature vector of video j, and the loss l i,j The attention calculated by the feature vector It is calculated by the difference between the attention calculated based on user behavior. Here we can use MSE, MAE, and cosine distance. The total loss value is all l i,j Sum, and then train u, W through the back propagation algorithm t and W f , and β.
[0043] As an improvement of the present invention, the step S8 of generating the predicted attention table specifically includes: the previous attention table is sparse. If the user has not browsed the video, there is no so-called attention value, and all the previous work is to complete the attention table, through the application of various information and methods:
[0044]
[0045] U is the feature vector matrix of all users, V is the feature vector matrix of all products, and the multiplication of the two matrices gives the degree of attention of each user to each video.
[0046] As an improvement of the present invention, the step S6.1 analyzes user behavior including whether the user has browsed the video (i.e., the video layer appears on the page where the user slides), whether the user clicks on the video, the length of time the video is watched, the number of times the video is viewed, the time the video is watched, whether the user likes the video, whether the user comments on the video, whether the user inserts coins, whether the user forwards the video, and whether the comments are positive (which can be analyzed using existing relevant natural language processing technology).
[0047] Compared with the prior art, the beneficial effects of the present invention are:
[0048] 1. The deep collaborative network integrates both the text language features and image features of audio and video;
[0049] 2. It integrates the latest technologies such as deep collaborative filtering, natural language technology, and machine vision, and can use the best open source models to assist in feature extraction;
[0050] 3. Deep collaborative filtering can completely match audio and video features with user features. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a flowchart of the audio recommendation method of this embodiment;
[0052] Figure 2 For each audio and video, find the feature vector v of the audio and video t , v f Flowchart diagram;
[0053] Figure 3 Schematic diagram of the behavior processing flow for each user i for each audio and video j. DETAILED DESCRIPTION
[0054] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0055] Example: Figure 1-3 As shown, the audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm includes the following steps:
[0056] Step S1, extracting text from the audio;
[0057] Step S2, extracting text from the video;
[0058] Step S3, extracting information from useful images;
[0059] Step S4, converting the extracted information into a feature vector;
[0060] Step S5, extracting picture information vector;
[0061] Step S6, generating a user attention table and a user browsing table;
[0062] Step S7, generating a user feature vector;
[0063] Step S8, generating a predicted attention table.
[0064] As an improvement of the present invention, the step S1 of extracting text from the audio specifically includes:
[0065] Step S1.1, first extract the audio from the video;
[0066] Step S1.2, then cut the audio into 1-minute segments;
[0067] Step S1.3, extract text from each audio segment using the text extraction technology and then concatenate all the text to output the audio text. a .
[0068] Furthermore, the step S2 of extracting text from the video specifically includes:
[0069] Step S2.1, extracting frames from the video, the frame extraction frequency is, for example, one frame for every ten frames;
[0070] Step S2.2, performing OCR text extraction on each frame of the image;
[0071] Step S2.3, remove duplicates and splice the extracted text to output the image text t i .
[0072] Furthermore, the step S3 of extracting information from useful images specifically includes:
[0073] Step S3.1, after deduplication of text, extract the frames in the video according to the frames corresponding to the retained text as the key information of the picture;
[0074] Step S3.2, deduplicate the extracted frames and obtain a frame set F for each video.
[0075] As an improvement of the present invention, the step S4 of converting the extracted information into a feature vector specifically includes:
[0076] Step S4.1: for each video, the text t extracted from steps S1 and S2 is a and t i Remove duplicates and splice, output t;
[0077] Step S4.2, concatenating the texts of all videos together to form a total text set T;
[0078] Step S4.3, perform word segmentation on each video t and the total set T, and then perform word frequency statistics on each video. The importance of each word is calculated based on tfidf. For each word i that appears in each t:
[0079] w i,t =f i,t log(N / df i )
[0080] N is the total amount of audio and video, df i is the number of audio and video clips in which word i appears, f i,t is the frequency of word i appearing in t, w i,t It represents the importance of word i to word t.
[0081] Step S4.4, count each audio and video w i,t The ten words with the highest value are selected, and then each word is converted into a word vector using the latest word2vec technology, and then according to w i,t Weighted, find the feature vector of each audio and video:
[0082] v t =Σw i,t v i / w
[0083] W i,t is the importance value of word i to t, w is the sum of all the importance values of t, that is, the sum of the importance values of all the words participating in the above weighting, v i is the feature vector of word i, v t What is obtained is the feature vector of video t.
[0084] Furthermore, the step S5 of extracting the picture information vector specifically includes:
[0085] From the frame set F obtained in step S3, each frame is converted into a feature vector v j , and then average all the feature vectors to get the feature vector v of the video f .
[0086] Furthermore, the step S6 of generating the user attention table and the user browsing table specifically includes:
[0087] Step S6.1, analyzing user behavior;
[0088] Step S6.2, assign weight values to user behaviors and perform weighted summation. The specific method of weighted summation depends on the needs. The weight values can decrease according to the time length. Finally, a weight value will be generated between each user and each video, that is, ρ i,j, expressing the attention of user i to video j, and finally generating an attention table P, which should have a large number of ρ i,j The value will be 0, and a browse table R is required, r i,j Indicates whether user i has viewed video j.
[0089] Furthermore, the step S7 of generating the user feature vector specifically includes:
[0090] Two types of video feature vectors v are obtained from steps S4 and S5 respectively. t and v f , and then obtain the desired user feature vector and audio and video feature vector through deep neural network training:
[0091] v=W t v t +βW f v f ,
[0092]
[0093] Where W t and W f They are all neural networks that convert two types of video feature vectors into the final video feature vector. The simplest one can be a matrix with trainable parameters, or a deep neural network. β is the weight value of the two types of feature vectors, v is the feature vector of video j, u is the feature vector of user i, and the initial feature vectors of all users are random values. u is trainable. is the user's attention to the video calculated based on the feature vector of user i and the feature vector of video j, and the loss l i,j The attention calculated by the feature vector It is calculated by the difference between the attention calculated based on user behavior. Here we can use MSE, MAE, and cosine distance. The total loss value is all l i,j Sum, and then train u, W through the back propagation algorithm t and W f , and β.
[0094] Furthermore, the step S8 generates a predicted attention table specifically including: the previous attention table is sparse. If the user has not browsed the video, there is no so-called attention value. All previous work is to complete the attention table through the application of various information and methods:
[0095]
[0096] U is the feature vector matrix of all users, V is the feature vector matrix of all products, and the multiplication of the two matrices gives the degree of attention of each user to each video.
[0097] Furthermore, the step S6.1 analyzes user behaviors including whether the user has viewed the video (i.e., the video layer appears on the page where the user slides), whether the user clicks on the video, the length of time the video is watched, the number of times the video is viewed, the time the video is watched, whether the user likes the video, whether the user comments on the video, whether the user inserts coins, whether the user forwards the video, and whether the comments are positive (which can be analyzed using existing relevant natural language processing technology).
[0098] It should be noted that the above content only illustrates the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications all fall within the protection scope of the claims of the present invention.
Claims
1. An audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm, characterized in that: The method comprises the following steps: Step S1, extracting text from the audio; Step S2, extracting text from the video; Step S3, extracting information from useful images; Step S4, converting the extracted information into a feature vector; Step S5, extracting picture information vector; Step S6, generating a user attention table and a user browsing table; Step S7, generating a user feature vector; Step S8, generating a predicted attention table.
2. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1 is characterized in that: The step S1 of extracting text from the audio specifically includes: Step S1.1, first extract the audio from the video; Step S1.2, then cut the audio into 1-minute segments; Step S1.3, extract text from each audio segment using the text extraction technology and then concatenate all the text to output the audio text. a .
3. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1 is characterized in that: The step S2 of extracting text from the video specifically includes: Step S2.1, extracting frames from the video, the frame extraction frequency is, for example, one frame for every ten frames; Step S2.2, extracting text from each frame of the image using the image OCR text extraction technology; Step S2.3, remove duplicates and splice the extracted text to output the image text t i .
4. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S3 of extracting information from useful pictures specifically includes: Step S3.1, after deduplication of text, extract the frames in the video according to the frames corresponding to the retained text as the key information of the picture; Step S3.2, deduplicate the extracted frames and obtain a frame set F for each video.
5. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S4 of converting the extracted information into a feature vector specifically includes: Step S4.1: for each video, the text t extracted from step S1 and step S2 is a and t i Remove duplicates and splice, output t; Step S4.2, concatenating the texts of all videos together to form a total text set T; Step S4.3, perform word segmentation on each video t and the total set T, and then perform word frequency statistics on each video. The importance of each word is calculated based on tfidf. For each word i that appears in each t: w i,t =f i,t log(N / df i ) N is the total amount of audio and video, df i is the number of audio and video clips in which word i appears, f i,t is the frequency of word i appearing in t, w i,t It represents the importance of word i to t; Step S4.4, count each audio and video w i,t The ten words with the highest value are selected, and then each word is converted into a word vector using the latest word2vec technology, and then according to w i,t Weighted, find the feature vector of each audio and video: v t =∑w i,t v i / w w i,t is the importance value of word i to t, w is the sum of all the importance values of t, that is, the sum of the importance values of all the words participating in the above weighting, v i is the feature vector of word i, v t What is obtained is the feature vector of video t.
6. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S5 of extracting the picture information vector specifically includes: From the frame set F obtained in step S3, each frame is converted into a feature vector v j , and then average all the feature vectors to get the feature vector v of the video f .
7. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S6 of generating the user attention table and the user browsing table specifically includes: Step S6.1, analyzing user behavior; Step S6.2, assign weight values to user behaviors and perform weighted summation. The specific method of weighted summation depends on the needs. The weight values can decrease according to the time length. Finally, a weight value will be generated between each user and each video, that is, ρ i,j , expressing the attention of user i to video j, and finally generating an attention table P, which should have a large number of ρ i,j The value will be 0, and a browse table R is required, r i,j Indicates whether user i has viewed video j.
8. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S7 of generating the user feature vector specifically includes: Two types of video feature vectors v are obtained from steps S4 and S5 respectively. t and v f , and then obtain the desired user feature vector and audio and video feature vector through deep neural network training: v=W t v t +βW f v f , Where W t and W f They are all neural networks that convert the two types of video feature vectors into the final video feature vectors. The simplest one can be a matrix with trainable parameters or a deep neural network. β is the weight value of the two types of feature vectors after the conversion matrix or neural network. v is the feature vector of video j, and u is the feature vector of user i. The initial feature vectors of all users are random values, and u is trainable. is the user's attention to the video calculated based on the feature vector of user i and the feature vector of video j, and the loss l i,j The attention calculated by the feature vector It is calculated by the difference between the attention calculated based on user behavior. Here we can use MSE, MAE, and cosine distance. The total loss value is all l i,j Sum, and then train u, W through the back propagation algorithm t and W f , and β.
9. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 1, characterized in that: The step S8 generates a predicted attention table specifically including: the previous attention table is sparse. If the user has not browsed the video, there is no so-called attention value. All the previous work is to complete the attention table through the application of various information and methods: U is the feature vector matrix of all users, V is the feature vector matrix of all products, and the multiplication of the two matrices gives the degree of attention of each user to each video.
10. The audio and video recommendation method based on audio and video content and deep collaborative filtering algorithm according to claim 7, characterized in that: The step S6.1 analyzes user behaviors including whether the user has viewed the video, clicked on the video, length of time the video has been watched, number of times the video has been watched, time of watching the video, whether the user has liked the video, commented on the video, deposited coins, forwarded the video, and whether the comments have been positive.
Citation Information
Patent Citations
Feature construction method and system in multi-mode short video recommendation system
CN110245261A
Short video recommendation method and system based on key frame recognition and audio textualization
CN110688526A
Video recommendation method based on multi-modal video content and multi-task learning
CN111246256A
Video recommendation method and system based on deep learning and feature fusion
CN112966148A
