Video description method based on feature enhancement and fusion
Through the feature enhancement module and multi-modal feature fusion network, the problem of inaccurate feature positioning and incomplete information fusion in video description is solved, and more accurate video description generation is achieved.
Patent Information
- Application Number
- CN202410780291.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-06
AI Technical Summary
In existing video description methods, the feature positioning and identification of key areas of the video is inaccurate and there is a lack of effective multi-modal feature information screening and fusion methods, resulting in the generated sentences being unable to correctly describe the video content.
The feature enhancement module is used to improve feature accuracy through local and global feature processing, and the multi-modal feature fusion network is used to effectively fuse video appearance, motion and object features, and the Transformer model is combined for video description generation.
It improves the accuracy of feature positioning in key areas of the video and the information filtering and fusion capabilities of multi-modal features, and the generated video description is more accurate and effective.
Smart Images

Figure CN118609028A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer vision, and in particular to a video description method based on feature enhancement and fusion. Background Art
[0002] With the rise of short video platforms such as Douyin and Kuaishou, videos have become an important medium for people to obtain information, entertainment, learning and life. However, videos contain complex information, and how to effectively understand, classify and retrieve videos has become a difficult problem. Video description refers to the technology of using machines to convert input videos into natural language related to the video content, and is one of the important means of processing videos. For humans, it is very simple to describe a video in words, but it is very difficult for machines. When describing a video, the machine first needs to identify the content in the video, including human-to-human interaction, human-to-object interaction, and object-to-object interaction; then express the identified video content in a fluent, human-understandable natural language. It can be seen that video description involves two fields: computer vision and natural language processing. At the same time, the video contains variable backgrounds, complex time sequence information, etc., which makes this task difficult and challenging.
[0003] Video description is a cross-modal subject. Its predecessor comes from image description. In essence, it realizes the fusion of computer vision and natural language processing. It uses computer vision to decompose a video into frames of images. By understanding and processing each image frame by frame, the temporal information and spatial information between frames are modeled, and natural language processing is used to generate a text that can simply describe the video. Existing video description methods have the problem of inaccurate positioning and recognition of key area features of the video, and there is no effective fusion method to filter and fuse the information in the multimodal features of the video, resulting in the generated sentences being unable to correctly describe the video content. Summary of the invention
[0004] Purpose of the invention: In order to overcome the problems of inaccurate positioning and identification of key area features of videos and the lack of effective fusion methods to filter and fuse information in multimodal features of videos in existing video description tasks, this paper proposes a new video description method based on feature enhancement and fusion.
[0005] The present invention aims at the problem of inaccurate positioning and identification of key area features in video description tasks, and proposes a feature enhancement module. Its technical basis is to use local and global features to provide correct detail guidance for the model, amplify the feature differences of similar objects, and improve the accuracy of the target subject coding features. The specific production method includes the following steps:
[0006] (1) Local branch: Process the local information in the feature. Using formula X c =δ(P(C1(X))) calculates the local branch features, where X is the previous output feature, δ is the Sigmoid activation function, P is the global pooling operation, and C1 is a 1×1 convolution operation.
[0007] (2) Global branch, which processes the global information of the feature. Using formula X c =δ(C1(C 3,2 (X))) calculates the global branch features, where X is the previous output feature, δ is the Sigmoid activation function, C1 is a 1×1 convolution operation, and C 3,2 It is a 3×3 atrous convolution operation with a dilation rate of 2.
[0008] (3) Compression branch: The features of the compression branch are fused and added with the other two branches. The obtained features are subjected to a second receptive field expansion through the dilated convolution at the tail to obtain the fused features enhanced by local and global features. Calculate the enhanced features, where X c and X s are local enhancement features and global enhancement features, C 3,3 is a 3×3 dilated convolution with a dilation number of 3. is element-wise multiplication, Add the elements.
[0009] In view of the fact that there is no effective fusion method to filter and fuse the information in the multimodal features of the video in the video description task, the present invention proposes a multimodal feature fusion network. The multimodal feature fusion network is used to realize the effective fusion of the video appearance features, motion features and object features. The specific fusion includes the following steps:
[0010] (1) Filter and select motion features and object features, and then select valid information for fusion. Using the formula Calculate the correlation between information, where tanh is the activation function, W α and W m is the learnable embedding matrix, b m and b α is the bias, α and β represent mapping functions, and T represents transpose.
[0011] (2) Normalize the correlation matrix F so that the sum of all edges connected to each frame is equal to 1. Normalized matrix F′=s0ftmax(F, dim=1).
[0012] (3) Use F′ to filter motion features and fuse motion features with appearance features to obtain appearance features that contain enhanced motion information BRIEF DESCRIPTION OF THE DRAWINGS
[0013] 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, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0014] Figure 1 It is the overall model diagram of the present invention;
[0015] Figure 2 is a feature enhancement module of the present invention;
[0016] Figure 3 It is the multimodal feature fusion network diagram of the present invention. DETAILED DESCRIPTION
[0017] The specific implementation of the present invention is given below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0018] For details, see Figure 1 , a video description method based on feature enhancement and fusion, comprising the steps of:
[0019] S1: Data preparation, preprocessing for each video sample involved in training;
[0020] S2: Multimodal feature extraction, using 2D CNN to extract appearance features from video frames, using 3D CNN to extract motion features from video clips, and using R-CNN to extract object features from video frames;
[0021] S3: semantic feature extraction, appearance features and motion features are serially input into the semantic detector to extract semantic features;
[0022] S4: Feature enhancement, using local and global features to provide the model with correct detail guidance, amplify the feature differences of similar objects, and improve the accuracy of the target subject encoding features. The specific production method includes the following steps:
[0023] S41: Local branch, processing local information in the feature. Using formula X c=δ(P(C1(X))) calculates the local branch features, where X is the previous output feature, δ is the Sigmoid activation function, P is the global pooling operation, and C1 is a 1×1 convolution operation;
[0024] S42: Global branch, processing the global information of the feature. Using formula X c =δ(C1(C 3,2 (X))) calculates the global branch features, where X is the previous output feature, δ is the Sigmoid activation function, C1 is a 1×1 convolution operation, and C 3,2 The dilated convolution operation is 3×3 with a dilation rate of 2;
[0025] S43: Compression branch, the features of the compression branch are fused and added with the other two branches. The obtained features are expanded for the second time through the dilated convolution at the tail to obtain the fused features enhanced by local and global features. Calculate the enhanced features, where X c and X s are local enhancement features and global enhancement features, C 3,3 is a 3×3 dilated convolution with a dilation number of 3. is element-wise multiplication, Add the elements.
[0026] S5: Multimodal feature fusion, guided by appearance features, filters visual information that is more relevant to the content in motion features and object features, and fuses the features to form a unified multimodal fusion feature. The specific fusion includes the following steps:
[0027] S51: Filter and select motion features and object features, and then select valid information for fusion. Using formula Calculate the correlation between information, where tanh is the activation function, W α and W m is the learnable embedding matrix, b m and b α is the bias, α and β represent mapping functions, and T represents transpose.
[0028] S52: Normalize the correlation matrix F so that the sum of all edges connected to each frame is equal to 1. Normalized matrix F'=softmax(F, dim=1).
[0029] S53: Use F′ to filter motion features and fuse motion features with appearance features to obtain appearance features containing enhanced motion information
[0030] S6: Feature decoding, using the decoder part of the Transformer model to decode from left to right. The initial input is the semantic information encoding, where the multi-head self-attention layer models the intrinsic connection between words, and the cross multi-head attention layer models the association between words and visual information;
[0031] S7: Generate video description. Use the fully connected layer to map the hidden state obtained by the decoder to a space with a dimension equal to the size of the vocabulary. Use the Softmax classifier to predict the probability of each word in the vocabulary being generated at the current moment. Select the word with the highest probability as the prediction result of the word generated at the current moment.
Claims
1. A video description method based on feature enhancement and fusion, characterized in that: Includes steps: S1: Data preparation, preprocessing for each video sample involved in training; S2: Multimodal feature extraction, extracting appearance features, motion features and object features; S3: semantic feature extraction, extracting semantic features in the semantic detector; S4: Feature enhancement, using local and global features to provide the model with correct detail guidance, amplify the feature differences of similar objects, and improve the accuracy of the target subject encoding features; S5: Multimodal feature fusion, guided by appearance features, filters visual information that is more relevant to the content among motion features and object features, and fuses the features to form a unified multimodal fusion feature; S6 : Feature decoding, using Transformer decoder to decode the features; S7: Generate video description.
2. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The preprocessing described in step S1 is to segment the input video into frames.
3. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The multimodal feature extraction described in step S2 uses 2D CNN to extract appearance features from video frames, uses 3D CNN to extract motion features from video frames, and uses R-CNN to extract object features from video frames.
4. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: In the semantic feature extraction described in step S3, the appearance features and the motion features are serially input into the semantic detector to extract the semantic features.
5. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The feature enhancement module described in step S4 uses local and global features to provide the model with correct detail guidance, amplify the feature differences of similar objects, and improve the accuracy of the target subject encoding features; specifically, it includes the following steps: S41: Local branch, processing local information in the feature. Using formula X c =δ(P(C1(X)) calculates the local branch features, where X is the previous output feature, δ is the Sigmoid activation function, P is the global pooling operation, and C1 is a 1×1 convolution operation; S42: Global branch, processing the global information of the feature. Using formula X c =δ(C1(C 3,2 (X))) calculates the global branch features, where X is the previous output feature, δ is the Sigmoid activation function, C1 is a 1×1 convolution operation, and C 3,2 The dilated convolution operation is 3×3 with a dilation rate of 2; S43: Compression branch, the features of the compression branch are fused and added with the other two branches. The obtained features are expanded for the second time through the dilated convolution at the tail to obtain the fused features enhanced by local and global features. Calculate the enhanced features, where X c and X s are local enhancement features and global enhancement features, C 3,3 is a 3×3 dilated convolution with a dilation number of 3. is element-wise multiplication, Add the elements.
6. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The multimodal feature fusion described in step S5 is guided by the appearance features, selects the visual information that is more relevant to the content in the motion features and object features, and fuses the features to form a unified multimodal fusion feature. The specific fusion includes the following steps: S51: Filter and select motion features and object features, and then select valid information for fusion. Using formula Calculate the correlation between information, where tanh is the activation function, W α and W m is the learnable embedding matrix, b m and b α is the bias, α and β represent mapping functions, and T represents transpose. S52: Normalize the correlation matrix F so that the sum of all edges connected to each frame is equal to 1. Normalized matrix F'=softmax(F, dim=1). S53: Use F′ to filter motion features and fuse motion features with appearance features to obtain appearance features containing enhanced motion information 7. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The decoding described in step S6 utilizes two Transformer decoders to respectively learn the association between static and dynamic information, cross-match and fuse them, and obtain the final visual representation.
8. The video description method based on feature enhancement and fusion as claimed in claim 1, characterized in that: The generation of the video description in step S7 is to use the fully connected layer of the decoder to map the hidden state obtained at the current moment to a space with a dimension of the vocabulary size, and use the Softmax classifier to predict the probability of each word in the vocabulary being generated at the current moment, and select the word with the highest probability as the prediction result of the word generated at the current moment.
