Frequency domain guide enhanced video time retrieval method and system
The video moment retrieval method enhanced by frequency domain guidance solves the accuracy and computational complexity problems of video moment retrieval in the existing technology, realizes cross-modal interaction and feature saliency integration, and improves the efficiency and accuracy of video moment retrieval. sex.
Patent Information
- Application Number
- CN202410807668.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Existing video moment retrieval technology has problems with result accuracy and computational complexity in generating candidate segment strategies, feature embedding and similarity calculations, and direct regression models, especially in large-scale data sets and complex query scenarios.
A video moment retrieval method with frequency domain guidance and enhancement is adopted. By converting video, audio and text features into frequency domain features, user queries are used to perform cross-modal interaction in frequency domain space, and a saliency enhancement function is designed to integrate multi-modal information. Generating inferentially fused cross-modal features for video moment retrieval.
It achieves more accurate cross-modal interaction and feature saliency quantification, significantly reduces the amount of model parameters and computational complexity, and improves the efficiency and accuracy of video moment retrieval.
Smart Images

Figure CN118673181A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of video moment retrieval, visual detection and video understanding, and in particular to a frequency domain guided enhanced video moment retrieval method and system. Background Art
[0002] In recent years, with the rapid increase in the number of videos, video retrieval technology has become increasingly important. Traditional text retrieval methods are based only on keywords and are difficult to meet the needs of complex multimedia video content. Videos contain a large amount of information such as images and sounds, so simple text retrieval is limited. In order to meet user needs more comprehensively and accurately, video moment retrieval technology has emerged, providing a richer and smarter video search experience through deep multimedia analysis. This technology combines advanced technologies such as image recognition, speech recognition, and semantic understanding, allowing users to find the required video content more conveniently and quickly, bringing breakthrough progress to the management and use of video content.
[0003] Video moment retrieval technology is a technology that aims at the ever-increasing and diverse video content, through deep analysis and indexing, so that users can more conveniently retrieve and locate specific content in the video. With the rapid development of digital media, this technology has attracted much attention in many fields. Its core lies in video content analysis and moment positioning. Video content analysis involves technologies such as image processing, audio processing, and video feature extraction. Through these means, the video is deeply mined and key information such as characters, scenes, and objects are extracted, thereby establishing a structured representation of the content. This enables the system to understand the context and meaning of the video, laying the foundation for subsequent retrieval. Moment positioning is a key link in video moment retrieval technology. By accurately locating relevant key information based on the user's query, users can directly locate specific video clips through text queries. This intelligent positioning not only provides an efficient search experience, but also enables users to quickly and accurately obtain the required information. The research and application of video moment retrieval technology is crucial to improving the management and utilization efficiency of video content. With the continuous development of technology, video moment retrieval technology will further promote innovation in the field of multimedia information processing and provide users with a more intelligent and personalized audio-visual experience.
[0004] One of the current existing technologies is the retrieval-ranking method based on the paper "Tall: Temporal activity localization via language query". This technology first generates candidate fragments, then calculates the scores through interaction with the query statement, and finally generates retrieval results based on the scores. Through the preliminary screening proposed by the candidate fragments, the ranking is further optimized through interaction with the query to achieve more accurate content retrieval. This two-stage strategy not only improves the retrieval efficiency, but also better meets user needs. The disadvantages of this technology are that, first, the strategy for generating candidate fragments may affect the accuracy of the results. Secondly, the interaction with the query may lead to increased computational complexity. Finally, for complex queries, the ranking effect may be limited. Therefore, it is necessary to balance efficiency and accuracy in the design, while considering adapting to various query types.
[0005] The second existing technology is the proposal-based method in the paper "4D spatio-temporal convnets: Minkowski convolutional neural networks". This technology generates candidate moment proposals, uses feature embedding and similarity calculation techniques, and finally achieves the sorting of moments and outputs results related to the query. Feature embedding and similarity calculation help improve the accuracy of sorting. The comprehensive application of this method enables the retrieval system to match user queries more accurately, providing an effective solution for the moment retrieval field. The disadvantages of this technology are that, first, it may be limited by the quality and diversity of proposals, affecting the comprehensiveness of candidate moments. Secondly, feature embedding and similarity calculation may require high computing resources, leading to performance challenges on large-scale data sets. Finally, the sorting stage may be affected by noise data or outliers, affecting the accuracy of the final output results. Taking all these factors into consideration, this technology may not perform well in some complex scenarios.
[0006] The third existing technology is the paper "Temporally grounding language queries in videos by contextual boundary-aware prediction", which treats video moment retrieval as a regression task. This technology directly models and learns the complex relationship between input features and related moments to obtain more accurate prediction results. This method bypasses the traditional retrieval-ranking stage and directly outputs related moments through a regression model, simplifying the process and improving efficiency. This strategy emphasizes the detailed modeling of moment correlation, bringing higher accuracy and practicality to the field of video retrieval. The disadvantages of this technology are that, first, directly regressing moments may ignore the complex context and semantic relationships in the video, resulting in the model being inferior to other methods in understanding contextual information. Secondly, it has high requirements for training data and requires a large amount of well-labeled moment data, which limits the application of the method on large-scale data sets. Finally, the model may be sensitive to outliers, affecting the accuracy of the moment. Therefore, when selecting a method, it is necessary to comprehensively consider its applicable scenarios and the degree of dependence on data. Summary of the invention
[0007] The purpose of the present invention is to overcome the shortcomings of existing methods and propose a frequency domain guided enhanced video moment retrieval method and system. The main problems solved by the present invention are: first, how to convert different modal data into frequency domain features, capture complementary information in the frequency domain space, and achieve more accurate cross-modal interaction; second, how to further quantify the significance of features related to the query.
[0008] In order to solve the above problems, the present invention proposes a frequency domain guided enhanced video moment retrieval method, the method comprising:
[0009] Input a video data set, use the trained feature extractor to extract the visual features and audio features of the video in the video data set, and obtain a video feature sequence V and an audio feature sequence A;
[0010] Performing unimodal encoding on the video feature sequence V and the audio feature sequence A to add global context features in each modality respectively, and mapping them to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′;
[0011] In the frequency domain space, the text feature T of the user query text is used to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′, and then the commonality between modalities is captured in the frequency domain space to achieve cross-modal interaction, and the video, audio and text features are fused to generate inference-fused cross-modal features O;
[0012] Input the text feature T and the reasoning-fused cross-modal feature O into the query generator to generate a time-aligned query feature Q;
[0013] Input the query feature Q and the inference-fused cross-modal feature O into a query decoder for decoding to generate a feature sequence D for video moment retrieval;
[0014] The feature sequence D is processed by the prediction head, and the loss function is constructed for training, and finally the result of video time retrieval is output, that is, the time window d p .
[0015] Preferably, the input video data set uses a trained feature extractor to extract visual features and audio features of the video in the video data set to obtain a video feature sequence V and an audio feature sequence A, specifically:
[0016] The video dataset comes from the public dataset QVHighlights. The SlowFast model and feature extractor CLIP are used to extract video features, and the PANN model pre-trained on the AudioSet training set is used to extract audio features, obtaining the video feature sequence V and audio feature sequence A respectively.
[0017] Preferably, the video feature sequence V and the audio feature sequence A are unimodally encoded to add global context features in each modality respectively, and are mapped to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′, specifically:
[0018] Use a Transformer-based unimodal feature encoder to process the video feature sequence V and the audio feature sequence A separately to add global context features in the video modality and the audio modality respectively;
[0019] Linear layers are applied to the video feature sequence and audio feature sequence with added global context features for dimensionality processing, and they are mapped to the same space to obtain the encoded video feature sequence V′ and the encoded audio feature sequence A′, which are convenient for cross-modal interaction.
[0020] Preferably, the text feature T of the user query text is used in the frequency domain space to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′, and then the commonality between modalities is captured in the frequency domain space and cross-modal interaction is realized, and the video, audio and text features are fused to generate the inference fused cross-modal feature O, specifically:
[0021] The encoded video feature sequence V′ and the encoded audio feature sequence A′ are respectively mapped to the frequency domain space by Fourier transform to obtain the video frequency domain feature sequence V~ And the audio frequency domain feature sequence A ~ ;
[0022] Use the trained feature extractor CLIP to extract text features T from the user query text, and use the text features T to extract the video frequency domain feature sequence V in the frequency domain space. ~ And the audio frequency domain feature sequence A ~ The guided video feature sequence V^ and the guided audio feature sequence A^ are obtained as shown in the following formula, where This represents element-wise multiplication:
[0023]
[0024] In the frequency domain space, the guided video feature sequence V^ and the guided audio feature sequence A^ are cross-modally fused, that is, the commonality between the video feature sequence and the audio feature sequence is captured in the frequency domain space to obtain the frequency domain fusion feature C va , as shown below, where This represents element-wise multiplication:
[0025]
[0026] The frequency domain fusion feature C is fused using the saliency enhancement function in the following formula: va Perform significance quantification and obtain the significant feature sequence P va :
[0027]
[0028] Among them, u c and Represent the frequency domain fusion features C va The mean and unbiased estimated variance of , i and j represent the element subscripts in the feature sequence;
[0029] Using the significant feature sequence P va Adaptively integrate the encoded video feature sequence V′ and the encoded audio feature sequence A′ to obtain the inference fused cross-modal feature O:
[0030] gate=sigmoid(P va ),
[0031] O=V′·gate+A′(1-gate),
[0032] That is, the sigmoid activation function is first used to generate a weight gate, and then the weight gate is used to fuse the encoded video feature sequence V′ and the encoded audio feature sequence A′.
[0033] Preferably, the text feature T and the reasoning-fused cross-modal feature O are input into a query generator together to generate a time-aligned query feature Q, specifically:
[0034] The query generator of the paper “Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection” is introduced, and the text feature T and the reasoning fused cross-modal feature O are input into the query generator together. The reasoning fused cross-modal feature O is used as the query, and the text feature T is used as the value and key. Multi-head attention is used to generate a moment-aligned query feature Q for interacting with the reasoning fused cross-modal feature O.
[0035] Preferably, the query feature Q and the inference-fused cross-modal feature O are input into a query decoder for decoding to generate a feature sequence D for video moment retrieval, specifically:
[0036] The query decoder of the paper “Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection” is introduced, and the query feature Q and the inference-fused cross-modal feature O are input into the query decoder for decoding to generate a feature sequence D for video moment retrieval.
[0037] Preferably, the prediction head is used to process the feature sequence D, and a loss function is constructed for training, and finally the result of video time retrieval is output, that is, the time window d p , specifically:
[0038] The prediction head maps the hidden layer of the feature sequence D to a one-dimensional fully connected mapping layer; a moment is represented by a center plus window, where the center point is estimated by predicting the time heat map and extracting the local optimal point, the window is regressed from the center point feature, and an offset is added to correct the result;
[0039] During the training process, for each center point c∈[1,N v ], the real moment of window size d, quantize the center point to c′∈[0,1], and use a one-dimensional Gaussian kernel To fill the time heat map, where σ c is the standard deviation of window adaptation, x is the time coordinate, N v represents the number of video clips; and the loss of the center point is defined using Gaussian focal loss as follows:
[0040]
[0041] Where N represents the number of moments, α and γ represent the weight and index of the modulation factor in Gaussian focal loss, respectively, and H′ x represents the predicted Gaussian kernel;
[0042] For the regression of window and offset, MAE loss function is used for optimization as follows:
[0043]
[0044] Among them, w c , w′ c , o c , o′ c Respectively represent the real time window, the predicted time window, the real offset and the predicted offset;
[0045] Therefore the total training loss is expressed as:
[0046] L=λ c L c +λ w L w +λ o L o ,
[0047] where λ {c、w、o} They are the weights for adjusting the center loss, window loss, and offset loss, respectively. p Obtained by center, window, offset.
[0048] Accordingly, the present invention also proposes a frequency domain guided enhanced video time retrieval system, comprising:
[0049] A video feature extraction unit is used to input a video data set, and use a trained feature extractor to extract visual features and audio features of the video in the video data set to obtain a video feature sequence V and an audio feature sequence A;
[0050] A unimodal encoding unit, used for unimodal encoding the video feature sequence V and the audio feature sequence A to add global context features in each modality respectively, and mapping them to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′;
[0051] A cross-modal feature fusion unit, used to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′ in the frequency domain space by using the text feature T of the user query text, and then capture the commonality between the modalities in the frequency domain space and realize cross-modal interaction, fuse the video, audio and text features and generate the inference fused cross-modal feature O;
[0052] A query feature generating unit, configured to input the text feature T and the inference-fused cross-modal feature O into a query generator to generate a time-aligned query feature Q;
[0053] A query feature decoding unit, used for inputting the query feature Q and the inference-fused cross-modal feature O into a query decoder for decoding, so as to generate a feature sequence D for video moment retrieval;
[0054] The training and prediction unit is used to process the feature sequence D using the prediction head, construct a loss function for training, and finally output the result of video time retrieval, that is, the time window d p .
[0055] The implementation of the present invention has the following beneficial effects:
[0056] The present invention adopts a frequency-domain guided cross-modal interaction method, uses text to guide video features and audio features in the frequency domain space, and captures the commonalities between different modalities in the frequency domain space; designs a novel saliency enhancement function to integrate multimodal information, which not only realizes cross-modal fusion, but also has lightweight characteristics, significantly reducing the number of model parameters and computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is an overall flow chart of a frequency domain guided enhanced video time retrieval method according to an embodiment of the present invention;
[0058] Figure 2 It is a flowchart of generating fused cross-modal features according to an embodiment of the present invention.
[0059] Figure 3 It is a structural diagram of a frequency domain guided enhanced video time retrieval system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Figure 1 FIG. 1 is an overall flow chart of a frequency domain guided enhanced video time retrieval method according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0062] S1, input a video data set, use the trained feature extractor to extract the visual features and audio features of the video in the video data set, and obtain the video feature sequence V and the audio feature sequence A;
[0063] S2, performs unimodal encoding on the video feature sequence V and the audio feature sequence A of S1 to add global context features in each modality respectively, and uses a linear layer to map them to the same space to obtain the encoded video feature sequence V′ and the encoded audio feature sequence A′;
[0064] S3, uses the text feature T of the user query text in the frequency domain space to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′ of S2, then captures the commonality between modalities in the frequency domain space and realizes cross-modal interaction, fuses video, audio and text features and generates inference-fused cross-modal features O;
[0065] S4, input the text feature T of S3 and the cross-modal feature O fused by reasoning into the query generator to generate the time-aligned query feature Q;
[0066] S5, inputs the query feature Q of S4 and the cross-modal feature O fused by reasoning in S3 into the query decoder for decoding, and generates a feature sequence D for video moment retrieval;
[0067] S6, uses the prediction head to process the feature sequence D of S5, constructs a loss function for training, and finally outputs the result of video time retrieval, that is, time window d p .
[0068] Step S1 is as follows:
[0069] The video dataset comes from the public dataset QVHighlights. The SlowFast model and feature extractor CLIP are used to extract video features, and the PANN model pre-trained on the AudioSet training set is used to extract audio features, obtaining the video feature sequence V and audio feature sequence A respectively.
[0070] Step S2 is as follows:
[0071] S2-1, using a Transformer-based unimodal feature encoder to process the video feature sequence V and the audio feature sequence A respectively, so as to add global context features in the video modality and the audio modality respectively;
[0072] S2-2, linear layers are applied to perform dimensionality processing on the video feature sequence and audio feature sequence with added global context features, and they are mapped to the same space to obtain the encoded video feature sequence V′ and the encoded audio feature sequence A′, which are convenient for cross-modal interaction.
[0073] Step S3, such as Figure 2 As shown, the details are as follows:
[0074] S3-1, the video feature sequence V′ and the audio feature sequence A′ encoded by S2 are mapped to the frequency domain space by Fourier transform to obtain the video frequency domain feature sequence V ~ And the audio frequency domain feature sequence A ~ ;
[0075] S3-2, use the trained feature extractor CLIP to extract text features T from the user query text, and use the text features T to extract the video frequency domain feature sequence V in the frequency domain space ~ And the audio frequency domain feature sequence A ~ The guided video feature sequence V^ and the guided audio feature sequence A^ are obtained as shown in the following formula, where This represents element-wise multiplication:
[0076]
[0077] S3-3, cross-modal fusion is performed on the guided video feature sequence V^ and the guided audio feature sequence A^ in the frequency domain space, that is, the commonality between the video feature sequence and the audio feature sequence is captured in the frequency domain space to obtain the frequency domain fusion feature C va , as shown below, where This represents element-wise multiplication:
[0078]
[0079] S3-4, use the significance enhancement function in the following formula to fusion feature C in the frequency domain va Perform significance quantification and obtain the significant feature sequence P va :
[0080]
[0081] Among them, u c and Represent the frequency domain fusion features C va The mean and unbiased estimated variance of , i and j represent the element subscripts in the feature sequence;
[0082] S3-5, using the significant feature sequence P vaAdaptively integrate the video feature sequence V′ encoded by S2 and the audio feature sequence A′ encoded by S2 to obtain the inference fused cross-modal feature O:
[0083] gate=sigmoid(P va ),
[0084] O=V′·gate+A′(1-gate),
[0085] That is, the sigmoid activation function is first used to generate a weight gate, and then the weight gate is used to fuse the encoded video feature sequence V′ and the encoded audio feature sequence A′.
[0086] Step S4 is as follows:
[0087] The query generator of the paper "Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection" is introduced, and the text feature T of S3 and the cross-modal feature O fused by reasoning are input into the query generator together. The cross-modal feature O fused by reasoning is used as the query, and the text feature T is used as the value and key. Multi-head attention is used to generate the moment-aligned query feature Q to interact with the cross-modal feature O fused by reasoning.
[0088] Step S5 is as follows:
[0089] The query decoder of the paper “Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection” is introduced, and the query feature Q of S4 and the cross-modal feature O fused by reasoning of S3 are input into the query decoder for decoding to generate a feature sequence D for video moment retrieval.
[0090] Step S6 is as follows:
[0091] S6-1, the prediction head maps the hidden layer of the feature sequence D of S5 to a one-dimensional fully connected mapping layer; a moment is represented by a center plus window, where the center point is estimated by predicting the time heat map and extracting the local optimal point, the window is regressed from the center point feature, and an offset is added to correct the result;
[0092] S6-2, during the training process, for each center point c∈[1,N v], the real moment of window size d, quantize the center point to c′∈[0,1], and use a one-dimensional Gaussian kernel To fill the time heat map, where σ c is the standard deviation of window adaptation, x is the time coordinate, N v represents the number of video clips; and the loss of the center point is defined using Gaussian focal loss as follows:
[0093]
[0094] Where N represents the number of moments, α and γ represent the weight and index of the modulation factor in Gaussian focal loss, which are set to 2.0 and 4.0 respectively in this embodiment, and H′ x represents the predicted Gaussian kernel;
[0095] S6-3, for the regression of window and offset, the MAE loss function is used for optimization as follows:
[0096]
[0097] Among them, w c , w′ c , o c , o′ c Respectively represent the real time window, the predicted time window, the real offset and the predicted offset;
[0098] S6-4, so the total training loss is expressed as:
[0099] L=λ c L c +λ w L w +λ o L o ,
[0100] where λ {c、w、o} They are the weights for adjusting the center loss, window loss, and offset loss, respectively. p Obtained by center, window, offset.
[0101] Accordingly, the present invention also provides a frequency domain guided enhanced video time retrieval system, such as Figure 3 As shown, including:
[0102] The video feature extraction unit 1 is used to input a video data set, and use a trained feature extractor to extract visual features and audio features of the video in the video data set to obtain a video feature sequence V and an audio feature sequence A;
[0103] A unimodal encoding unit 2, configured to perform unimodal encoding on the video feature sequence V and the audio feature sequence A to add global context features in each mode respectively, and map them to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′;
[0104] A cross-modal feature fusion unit 3 is used to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′ using the text feature T of the user query text in the frequency domain space, and then capture the commonality between the modalities in the frequency domain space and realize cross-modal interaction, fuse the video, audio and text features and generate the inference fused cross-modal feature O;
[0105] A query feature generating unit 4, configured to input the text feature T and the inference-fused cross-modal feature O into a query generator to generate a time-aligned query feature V;
[0106] A query feature decoding unit 5, configured to input the query feature Q and the inference-fused cross-modal feature O into a query decoder for decoding, and generate a feature sequence D for video moment retrieval;
[0107] The training and prediction unit 6 is used to process the feature sequence D using the prediction head, construct a loss function for training, and finally output the result of video time retrieval, that is, the time window d p .
[0108] Therefore, the present invention adopts a frequency domain guided cross-modal interaction method, uses text to guide video features and audio features in the frequency domain space, and captures the commonalities between different modalities in the frequency domain space; designs a novel saliency enhancement function to integrate multimodal information, which not only realizes cross-modal fusion, but also has lightweight characteristics, significantly reducing the number of model parameters and computational complexity.
[0109] The above is a detailed introduction to a frequency domain guided enhanced video moment retrieval method and system provided by an embodiment of the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A frequency domain guided enhanced video time retrieval method, characterized in that: The method comprises: Input a video data set, use the trained feature extractor to extract the visual features and audio features of the video in the video data set, and obtain a video feature sequence V and an audio feature sequence A; Performing unimodal encoding on the video feature sequence V and the audio feature sequence A to add global context features in each modality respectively, and mapping them to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′; In the frequency domain space, the text feature T of the user query text is used to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′, and then the commonality between modalities is captured in the frequency domain space to achieve cross-modal interaction, and the video, audio and text features are fused to generate inference-fused cross-modal features O; Input the text feature T and the reasoning-fused cross-modal feature O into the query generator to generate a time-aligned query feature Q; Input the query feature Q and the inference-fused cross-modal feature O into a query decoder for decoding to generate a feature sequence D for video moment retrieval; The feature sequence D is processed by the prediction head, and the loss function is constructed for training, and finally the result of video time retrieval is output, that is, the time window d p .
2. A frequency domain guided enhanced video time retrieval method as claimed in claim 1, characterized in that: The input video data set uses a trained feature extractor to extract the visual features and audio features of the video in the video data set to obtain a video feature sequence V and an audio feature sequence A, specifically: The video dataset comes from the public dataset QVHighlights. The SlowFast model and feature extractor CLIP are used to extract video features, and the PANN model pre-trained on the AudioSet training set is used to extract audio features, obtaining the video feature sequence V and audio feature sequence A respectively.
3. The frequency domain guided enhanced video time retrieval method as claimed in claim 1, characterized in that: The video feature sequence V and the audio feature sequence A are unimodally encoded to add global context features in each mode respectively, and are mapped to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′, specifically: Use a Transformer-based unimodal feature encoder to process the video feature sequence V and the audio feature sequence A separately to add global context features in the video modality and the audio modality respectively; Linear layers are applied to the video feature sequence and audio feature sequence with added global context features for dimensionality processing, and they are mapped to the same space to obtain the encoded video feature sequence V′ and the encoded audio feature sequence A′, which are convenient for cross-modal interaction.
4. The frequency domain guided enhanced video time retrieval method as claimed in claim 1, characterized in that: The text feature T of the user query text is used in the frequency domain space to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′, and then the commonality between modalities is captured in the frequency domain space to achieve cross-modal interaction, and the video, audio and text features are fused to generate the inference fused cross-modal feature O, specifically: The encoded video feature sequence V′ and the encoded audio feature sequence A′ are respectively mapped to the frequency domain space by Fourier transform to obtain the video frequency domain feature sequence V ~ And the audio frequency domain feature sequence A ~ ; Use the trained feature extractor CLIP to extract text features T from the user query text, and use the text features T to extract the video frequency domain feature sequence V in the frequency domain space. ~ And the audio frequency domain feature sequence A ~ The guided video feature sequence V^ and the guided audio feature sequence A^ are obtained as shown in the following formula, where This represents element-wise multiplication: In the frequency domain space, the guided video feature sequence V^ and the guided audio feature sequence A^ are cross-modally fused, that is, the commonality between the video feature sequence and the audio feature sequence is captured in the frequency domain space to obtain the frequency domain fusion feature C va , as shown below, where This represents element-wise multiplication: The frequency domain fusion feature C is fused using the saliency enhancement function in the following formula: va Perform significance quantification and obtain the significant feature sequence P va : Among them, u c and Represent the frequency domain fusion features C va The mean and unbiased estimated variance of , i and j represent the element subscripts in the feature sequence; Using the significant feature sequence P va Adaptively integrate the encoded video feature sequence V′ and the encoded audio feature sequence A′ to obtain the inference fused cross-modal feature O: gate=sigmoid(P va ), O=V′·gate+A′(1-gate), That is, the sigmoid activation function is first used to generate a weight gate, and then the weight gate is used to fuse the encoded video feature sequence V′ and the encoded audio feature sequence A′.
5. The frequency domain guided enhanced video time retrieval method as claimed in claim 1, characterized in that: The text feature T and the reasoning-fused cross-modal feature O are input into the query generator to generate a time-aligned query feature Q, specifically: A query generator is introduced, and the text feature T and the reasoning-fused cross-modal feature O are input into the query generator together. The reasoning-fused cross-modal feature O is used as the query, and the text feature T is used as the value and key. Multi-head attention is used to generate a time-aligned query feature Q for interacting with the reasoning-fused cross-modal feature O.
6. The frequency domain guided enhanced video time retrieval method as claimed in claim 1, characterized in that: The query feature Q and the inference-fused cross-modal feature O are input into the query decoder for decoding to generate a feature sequence D for video moment retrieval, specifically: A query decoder is introduced, and the query feature Q and the inference-fused cross-modal feature O are input into the query decoder for decoding to generate a feature sequence D for video moment retrieval.
7. The frequency domain guided enhanced video time retrieval method according to claim 1, characterized in that: The prediction head is used to process the feature sequence D, and a loss function is constructed for training, and finally the result of video time retrieval is output, that is, the time window d p , specifically: The prediction head maps the hidden layer of the feature sequence D to a one-dimensional fully connected mapping layer; a moment is represented by a center plus window, where the center point is estimated by predicting the time heat map and extracting the local optimal point, the window is regressed from the center point feature, and an offset is added to correct the result; During the training process, for each center point c∈[1,N v ], the real moment of window size d, quantize the center point to c′∈[0,1], and use a one-dimensional Gaussian kernel To fill the time heat map, where σ c is the standard deviation of window adaptation, x is the time coordinate, N v represents the number of video clips; and the loss of the center point is defined using Gaussian focal loss as follows: Where N represents the number of moments, α and γ represent the weight and index of the modulation factor in Gaussian focal loss, respectively, and H′ x represents the predicted Gaussian kernel; For the regression of window and offset, MAE loss function is used for optimization as follows: Among them, w c , w′ c , o c , o′ c They represent the real time window, the predicted time window, the real offset and the predicted offset respectively; Therefore the total training loss is expressed as: L=λ c L c +λ w L w +λ o L o , where λ {c、w、o} They are the weights for adjusting the center loss, window loss, and offset loss, respectively. p Obtained by center, window, offset.
8. A frequency domain guided enhanced video time retrieval system, characterized in that: The system comprises: A video feature extraction unit is used to input a video data set, and use a trained feature extractor to extract visual features and audio features of the video in the video data set to obtain a video feature sequence V and an audio feature sequence A; A unimodal encoding unit, used for unimodal encoding the video feature sequence V and the audio feature sequence A to add global context features in each modality respectively, and mapping them to the same space using a linear layer to obtain an encoded video feature sequence V′ and an encoded audio feature sequence A′; A cross-modal feature fusion unit, used to guide the encoded video feature sequence V′ and the encoded audio feature sequence A′ in the frequency domain space by using the text feature T of the user query text, and then capture the commonality between the modalities in the frequency domain space and realize cross-modal interaction, fuse the video, audio and text features and generate the inference fused cross-modal feature O; A query feature generating unit, configured to input the text feature T and the inference-fused cross-modal feature O into a query generator to generate a time-aligned query feature Q; A query feature decoding unit, used for inputting the query feature Q and the inference-fused cross-modal feature O into a query decoder for decoding, so as to generate a feature sequence D for video moment retrieval; The training and prediction unit is used to process the feature sequence D using the prediction head, construct a loss function for training, and finally output the result of video time retrieval, that is, the time window d p .
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Significance target detection method fusing boundary priori and frequency domain information
CN113379785A
Fault identification method and device for gas insulated switchgear, and computer equipment
CN116665710A
Marine remote sensing image-text retrieval method and system based on frequency domain and space domain dual perception
CN117435764A
Rolling bearing unknown fault detection method based on multi-modal feature fusion enhancement
CN117516937A
Cited By
Video time retrieval and highlight segment detection method and system
CN119862304A
A method and system for video moment retrieval and highlight clip detection
CN119862304B
