Video content retrieval method based on label retrieval and multimodal vector
By combining tag retrieval and multi-modal vector retrieval, using multi-modal large models and graphic question and answer models to extract video features, combined with ES search engines and cosine similarity calculations, precise retrieval of video content is achieved, solving problems in the existing technology. The problem of high false detection rate and insufficient accuracy rate significantly improves the accuracy of search results.
Patent Information
- Application Number
- CN202411163349.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-23
AI Technical Summary
Among existing video content retrieval technologies, methods based on multi-modal feature vectors have a high false detection rate and insufficient model accuracy, making it impossible to achieve accurate retrieval of video content.
Combining tag retrieval and multi-modal vector retrieval, extract tags, semantic vectors and text descriptions through video processing, use multi-modal large models and graphic question and answer models for feature extraction and sorting, and use ES search engines and cosine similarity to calculate scores. A weighted average ranking is performed to improve retrieval accuracy.
It reduces the false detection rate and improves the accuracy of video content retrieval. Through multi-dimensional data fusion and weighted sorting, the hit rate and accuracy of retrieval results are improved.
Smart Images

Figure CN118673180B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of video retrieval, and in particular relates to a video content retrieval method based on tag retrieval and multimodal vectors. Background Art
[0002] With the continuous development of Internet technology and the continuous growth of network bandwidth, online videos have attracted a large number of users with their convenient access experience, diverse video sources and real-time update speed, making online videos an indispensable part of users' online life. With the massive growth of various types of videos on the Internet, video users often use video retrieval to obtain video content of interest.
[0003] At present, the development of video content retrieval technology can be divided into several different stages, from traditional text-based video retrieval to cross-modal video retrieval based on AI tags, and now to natural language video retrieval based on large models; these technological advances have not only improved search efficiency and accuracy, but also greatly improved user experience. Among them, the multimodal feature vector retrieval method is to perform multimodal feature analysis on the video screen, and use multimodal large models such as multimodal pre-trained neural network models (CLIP) to extract features for vector retrieval. This method can solve the problem of scene semantic features and has been widely used in image retrieval scenarios; however, the problem with this method is that the false detection rate is relatively high, and the higher model accuracy in the industry is only more than 90%. Summary of the invention
[0004] The purpose of the present invention is to provide a video content retrieval method based on tag retrieval and multimodal vectors, which combines tag retrieval and multimodal feature vector retrieval to achieve accurate retrieval of video content.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] A video content retrieval method based on label retrieval and multimodal vector, comprising:
[0007] Video processing before retrieval; video processing refers to extracting tags, semantic vectors and text descriptions from video content;
[0008] Sort and display the search results according to the search terms entered by the user;
[0009] The sorting of search results according to the search formula input by the user is performed according to the following steps: Step 201: extracting the semantic vector of the search formula input by the user using a multimodal large model; matching the semantic vector of the search formula with the semantic vector of the video content to obtain a multimodal semantic vector search score, sorting the results from high to low according to the multimodal semantic vector search score and obtaining a data list vec_ret of the top N video contents;
[0010] Step 202: perform entity segmentation on the search terms input by the user; use the ES search engine to search the entity segmentation in the data list vec_ret and obtain the ES score, and use the logarithmic function f(x) to normalize the ES score and re-sort it from high to low to obtain the data list tag_ret;
[0011] Step 203: weighting the multimodal semantic vector retrieval scores of the data list vec_ret obtained in step 201 and the ES scores of the data list tag_ret in step 202 on average and re-ranking them to obtain a data list m_ret of the top M (M<N) video contents;
[0012] Step 204: Count the number of label hits in the data list m_ret according to the entity participle of the search formula input by the user, and sort them based on the number of hits as the priority, that is, the more hits, the higher the ranking; when the number of hits is the same, sort them by the average weighted score; output the final sorting result.
[0013] Furthermore, the video processing refers to extracting tags, semantic vectors and text descriptions from video content, including the following steps:
[0014] Step 101: Using a CV algorithm to perform scene-by-scene cutting of the video content into a plurality of segment sequences; extracting a picture in each segment sequence as a segment representation picture;
[0015] Step 102: extracting tags from the segment representation picture using AI tags;
[0016] Step 103: using a CNN convolutional network to filter the segment representation picture to obtain a normal feature segment representation picture;
[0017] Step 104: Processing the normal feature segment representation picture; using a multimodal large model and a picture-text question-answering model to extract semantic vectors and text descriptions from the normal feature segment representation picture.
[0018] Furthermore, the abnormal feature segment representation picture filtered in step 103 is processed:
[0019] A visual label model, a screen segmentation model, and a picture-text question answering model are used to comprehensively determine the label, transition segmentation, and text description of the screen representing the abnormal feature fragment;
[0020] Comprehensive judgment refers to judging again whether the segment representation picture has a label, whether it can be segmented into transitions, and whether it has a text description. If the segment representation picture without a label and a segmentation into transitions is determined to be an invalid segment representation picture, otherwise, the text description extracted by the picture-text question answering model is used as the text description or "no specific meaning" is used as the text description;
[0021] Then a multimodal large model is used to extract semantic features as semantic vectors.
[0022] Furthermore, the multimodal semantic vector retrieval score is obtained by cosine similarity.
[0023] Furthermore, the ES score in step 202 is an average of the ES scores of multiple word segments.
[0024] Furthermore, in step 202, when the segmented word belongs to a person and corresponds to a label of the video content, and when the segmented word corresponds to a manual label, a weight greater than 1 is assigned to the ES score.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] (1) Before extracting features from the semantics of the screen, the CNN convolutional network is used to classify the screen, which can quickly extract the semantic description of the screen; then the interface classified as an abnormal screen is detected again to avoid data loss caused by misclassification and reduce the multi-modal false detection rate;
[0027] (2) Since the EC search score is affected by time, search frequency, etc., resulting in low accuracy, the present invention uses the self-scoring mechanism and data averaging and numerical normalization to unify the ES search score and the multimodal cosine similarity score into the same data interval, and reduces the error by weighted averaging. In addition, the accuracy is improved by weighting factors with high hit rates such as people and manual labels.
[0028] (3) Secondary sorting is performed based on the number of tag hits and the final average weighted score, further placing video content with a high hit rate at the front, which can greatly improve the accuracy of video content retrieval results. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is the overall flow chart of the present invention.
[0030] Figure 2 This is a flow chart of video processing before retrieval of the present invention.
[0031] Figure 3 This is a process flow chart for searching the present invention. DETAILED DESCRIPTION
[0032] like Figure 1 As shown, the present embodiment provides a video content retrieval method based on tag retrieval and multimodal vector, comprising the following steps:
[0033] Video processing before retrieval; Video processing mainly refers to proposing the data organization form in the video content, and the data organization form is label, semantic vector, and text description.
[0034] like Figure 2 As shown, the acquisition of the data organization form in the video content specifically includes the following steps:
[0035] Step 101: Using a CV algorithm to perform scene-by-scene cutting of the video content into a plurality of segment sequences; extracting a picture in each segment sequence as a segment representation picture;
[0036] Step 102: extracting tags from the segment representation picture using AI tags;
[0037] Step 103: using a CNN convolutional network to classify the fragment representation pictures into normal feature fragment representation pictures and abnormal feature fragment representation pictures, wherein the abnormal feature fragment representation pictures refer to fragment representation pictures of pure color pictures and highly blurred pictures, and the rest are normal pictures;
[0038] Step 104: Processing the normal feature segment representation picture; using a multimodal large model and a picture-text question answering model to extract semantic vectors and text descriptions in the normal feature segment representation picture;
[0039] Step 105: Processing the abnormal feature segment representation picture, extracting the valid picture from the abnormal feature representation picture, and filtering out too many valid pictures, such as valid pictures with pure color background, by using CNN convolution network;
[0040] A visual label model, a picture segmentation model, and a picture-text question-answering model are used to perform a comprehensive judgment on the label, transition segmentation, and text description of the abnormal feature fragment representation picture. The comprehensive judgment refers to re-judging whether the fragment representation picture has a label, whether transition segmentation can be performed, and whether it has a text description. If the fragment representation picture has no label, transition segmentation, and text description, it is determined to be an invalid fragment representation picture; otherwise, the text description extracted by the picture-text question-answering model is used as the text description or "no specific meaning" is used as the text description; and then the multimodal large model is used to extract semantic features as semantic vectors.
[0041] The labels, text descriptions and semantic vectors of the extracted video content are associated and stored in a database. The present application processes the video content through multiple models to obtain the labels, text descriptions and semantic vectors of the video content, thereby improving the controllability and accuracy of subsequent content retrieval.
[0042] The video content is sorted during retrieval. This embodiment improves the hit rate of retrieval results by comprehensive sorting such as single sorting and mixed sorting. Figure 3 As shown, the method specifically includes the following steps:
[0043] Step 201: Use a multimodal large model to extract the semantic vector of the search formula input by the user; match the semantic vector of the search formula with the semantic vector of the video content in the database to obtain a multimodal semantic vector retrieval score, sort from high to low according to the multimodal semantic vector retrieval score and obtain a data list vec_ret of the top N video contents; wherein the multimodal semantic vector retrieval score is obtained by cosine similarity.
[0044] Step 202: perform entity segmentation on the search expression input by the user; use the ES search engine to search the segmented words in the data list vec_ret and obtain the ES score, and use the logarithmic function f(x) to normalize the ES score and re-sort it from high to low to obtain the data list tag_ret;
[0045] Since the number of search word segmentation results input by the user is generally greater than 1, that is, there may be two or more word segmentations, the final ES score of this embodiment takes the average ES score of the multiple word segmentations as the ES score.
[0046] In addition, when the segmented word belongs to a person and corresponds to the label of the video content, and when the segmented word corresponds to a manual label, this embodiment assigns a weight greater than 1 to the final ES score to improve the hit rate. The person is more referential, and the search result is more accurate. The manual label is a label that is manually marked by humans, and the accuracy of the manual label is higher than that of the AI label. Therefore, when the segmented word belongs to the above two situations, its ES score will be improved.
[0047] Since the interval of the multimodal semantic vector retrieval score is [0.21, 0.35], and the ES score is [3, 25], in order to make the ES score and the multimodal semantic vector retrieval score in the same interval, this application processes the ES score through a logarithmic function f(x). When x is in the interval [3, 35], the function value approaches [0.21, 0.35]; when x is in the interval [1, 3], the function value approaches [0.15, 0.21]; when x is greater than 35, it is 0.35.
[0048] Step 203: weighting the multimodal semantic vector retrieval scores of the data list vec_ret obtained in step 201 and the ES scores of the data list tag_ret in step 202 on average and re-ranking them to obtain a data list m_ret of the top M (M<N) video contents;
[0049] Step 204: Count the number of label hits in the data list m_ret according to the entity participle of the search formula input by the user, and sort them based on the number of hits as the priority, that is, the more hits, the higher the ranking; when the number of hits is the same, sort them by the average weighted score; output the final sorting result.
[0050] This embodiment realizes multi-dimensional hybrid retrieval of video content, reduces the disadvantages of a single model on special data, and greatly improves the accuracy of video search through fusion retrieval of multi-dimensional data. This method can be applied to various video data asset management and has high economic value for the secondary use of video data assets.
[0051] The above description is only a preferred implementation manner of the present invention, but the protection scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be included in the protection scope of the present invention.
Claims
1. A video content retrieval method based on tag retrieval and multimodal vector, characterized in that: include: Video processing before retrieval; video processing refers to extracting tags, semantic vectors and text descriptions from video content; Sort and display the search results according to the search terms entered by the user; The video processing refers to extracting tags, semantic vectors and text descriptions from the video content, including the following steps: Step 101: Using a CV algorithm to perform scene-by-scene cutting of the video content into a plurality of segment sequences; extracting a picture in each segment sequence as a segment representation picture; Step 102: extracting tags from the segment representation picture using AI tags; Step 103: using a CNN convolutional network to classify the segment representation pictures into normal feature segment representation pictures and abnormal feature segment representation pictures; Processing the abnormal feature segment representation picture: using the visual label model, picture segmentation model, and picture-text question answering model to comprehensively determine the label, transition segmentation, and text description of the abnormal feature segment representation picture; Comprehensive judgment refers to judging again whether the segment representation screen has a label, whether it can be segmented into transitions, and whether it has a text description. If the segment representation screen has no label and no transition segmentation, it is determined to be an invalid segment representation screen; otherwise, the text description extracted by the picture-text question answering model is used as the text description or "no specific meaning" is used as the text description; Then use the multimodal large model to extract semantic features as semantic vectors; Step 104: Processing the normal feature segment representation picture; using a multimodal large model and a picture-text question answering model to extract semantic vectors and text descriptions in the normal feature segment representation picture; Sorting the search results according to the search terms entered by the user is done in the following steps: Step 201: using a multimodal large model to extract the semantic vector of the search formula input by the user; matching the semantic vector of the search formula with the semantic vector of the video content to obtain a multimodal semantic vector search score, sorting the multimodal semantic vector search scores from high to low and obtaining a data list vec_ret of the top N video contents; Step 202: perform entity segmentation on the search terms input by the user; use the ES search engine to search the entity segmentation in the data list vec_ret and obtain the ES score, and use the logarithmic function f(x) to normalize the ES score and re-sort it from high to low to obtain the data list tag_ret; When the segmented word belongs to a person and corresponds to the label of the video content, and when the segmented word corresponds to a manual label, a weight greater than 1 is given to the ES score; Step 203: weight the multimodal semantic vector retrieval scores of the data list vec_ret obtained in step 201 and the ES scores of the data list tag_ret obtained in step 202 and re-sort them to obtain a data list m_ret of the top M video contents, where M<N; Step 204: Count the number of label hits in the data list m_ret according to the entity participle of the search formula input by the user, and sort them based on the number of hits as the priority, that is, the more hits, the higher the ranking; when the number of hits is the same, sort them by the average weighted score; output the final sorting result.
2. The video content retrieval method based on tag retrieval and multimodal vector according to claim 1, characterized in that: The multimodal semantic vector retrieval score is obtained by cosine similarity.
3. The video content retrieval method based on tag retrieval and multimodal vector according to claim 1, characterized in that: The ES score in step 202 is the average ES score of multiple word segments.
Citation Information
Patent Citations
Video query retrieval method and system based on semantic depth model
CN118093938A
System and methods for providing user generated video reviews
US20130283301A1
