Video saliency prediction method and system based on audio-visual correlation feature fusion strategy
By using S3D and SoundNet to extract features in video saliency prediction, combined with a multi-head cross-attention mechanism and a multi-scale adjustment gating module, the problem of insufficient feature fusion in the existing technology is solved and the accuracy of video saliency prediction is improved. and robustness to adapt to changing application environments.
Patent Information
- Application Number
- CN202411074751.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-07
AI Technical Summary
When existing video saliency prediction methods deal with audio and video timing synchronization but play different roles, feature fusion is insufficient, leading to semantic correlation issues and reducing prediction accuracy.
The pre-trained S3D is used as the visual encoder, combined with hole spatial pyramid pooling and local importance pooling to extract multi-scale visual spatiotemporal features, and semantic correlation is performed with the audio features extracted by SoundNet through the correlation-guided multi-head cross-attention mechanism. Calculate, dynamically adjust feature fusion, build a multi-scale adjustment gating module to screen important information, and improve the utilization of multi-scale features.
It improves the accuracy and robustness of saliency prediction, effectively avoids background audio interference, enhances the detection ability of multi-scale salient targets, and adapts to application environments in different scenarios.
Smart Images

Figure CN118585964B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video saliency prediction, and in particular to a video saliency prediction method and system based on a video-audio correlation feature fusion strategy. Background Art
[0002] Video saliency prediction has made significant improvements in prediction accuracy from traditional saliency prediction algorithms using manual features to models using deep learning methods. In the prior art, Min et al.'s article "Fixation prediction through multimodal analysis" published in the TOMM journal in 2016 and their article "A multimodal saliency model for videos with high audio-visual correspondence" published in the TIP journal in 2020 attempted to establish a cross-modal connection between audio and visual modalities, but the research on end-to-end deep learning is still not in-depth enough. Tavakoli et al. proposed a new method in their article "Dave: Adeep audio-visual embedding for dynamic saliency prediction" published via arXiv preprint in 2019. They trained two independent 3D ResNet models to process audio and video respectively, and then directly connected their outputs as a late fusion strategy. The article "Stavis: Spatio-temporal audiovisual saliency network" published by Tsiami et al. at the CVPR conference in 2020 uses SoundNet for audio representation learning, obtains audio features through spatial sound source localization, and then fuses these features with visual feature maps through bilinear operations. Similarly, the article "Vinet: Pushing the limits of visualmodality for audio-visual saliency prediction" published by Jain et al. at the IROS conference in 2021 also uses a bilinear fusion method to combine the audio features of SoundNet with the visual features to generate a saliency map.
[0003] Existing methods often use simpler methods to fuse features (such as element-wise addition, concatenation, or bilinear fusion) after obtaining audio and video features. However, when video and audio data are synchronized in time but play different roles, such as when audio is only used as background music, these methods may not be able to solve the problem of semantic relevance. This blind feature fusion will reduce the prediction accuracy of these models. Summary of the invention
[0004] The purpose of the present invention is to provide a video saliency prediction method and system based on a video-audio correlation feature fusion strategy to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a video saliency prediction method based on a video-audio correlation feature fusion strategy, comprising the following steps:
[0006] Receive video and audio data, perform preprocessing operations on the video data, and obtain continuous video frames;
[0007] The pre-trained S3D is used as the visual encoder, combined with the dilated spatial pyramid pooling and local importance pooling, to extract multi-scale visual spatiotemporal features based on video frames;
[0008] The multi-scale visual spatiotemporal features are input into the multi-scale feature collaboration module. By extracting and fusing multi-scale features at different levels of the network, enhanced features are obtained to enrich its representation capabilities for objects of different sizes.
[0009] Preprocess the audio data to achieve time synchronization with the visual data, use SoundNet as the audio encoder to extract features and obtain audio features;
[0010] Construct a correlation-guided audio-visual feature fusion module, calculate the semantic correlation between audio features and video features with the smallest spatial scale through a correlation-aware multi-head cross-attention mechanism, and selectively perform multimodal fusion of video features and audio features based on this correlation to obtain fused features;
[0011] Construct a multi-scale adjustment gating module to filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features;
[0012] The overall model constructed by the above steps is trained according to the loss function until the prediction accuracy requirement is met, and then the trained overall model is used for significance prediction.
[0013] Furthermore, S3D is used as the visual encoder, combined with dilated spatial pyramid pooling and local importance pooling, and multi-scale visual spatiotemporal features are extracted from video frames. The specific method is as follows:
[0014] (1) Feature extraction: S3D uses separated 3D convolution to process videos, optimizing the spatial and temporal dimensions of the video to improve processing efficiency. It uses multiple Inception modules to capture multi-scale features through convolution and pooling operations in different branches, merging features at each level to form a comprehensive and rich video feature representation.
[0015] (2) Feature enhancement: Atrous spatial pyramid pooling and local importance pooling are used to enhance multi-scale visual features. ASPP expands the receptive field through parallel atrous convolutions with different atrous rates to capture richer contextual information. LIP dynamically adjusts pooling according to regional importance to optimize feature expression.
[0016] Furthermore, the multi-scale visual spatiotemporal features are input into the multi-scale feature collaboration module, and the enhanced features are obtained by extracting and fusing multi-scale features at different levels of the network, as follows:
[0017] Multi-scale visual spatiotemporal features Interaction with features at adjacent scales is expressed as:
[0018]
[0019] In the formula They represent adjacent multi-scale feature maps from high resolution to low resolution respectively; is the processed feature, and the multi-scale feature collaborative module mapping MS(·) is expressed as:
[0020]
[0021]
[0022]
[0023]
[0024] In the formula, represents 3D convolution, represents upsampling followed by 3D convolution, represents downsampling followed by 3D convolution, h, m, and l represent high, medium, and low scales, respectively. Indicates the feature of scale i that is currently in the jth processing stage; as well as They represent the features of a certain scale currently being processed, as well as the features of lower or higher scales adjacent to them; after being processed by the multi-scale feature collaborative module, enhanced features can be obtained .
[0025] Furthermore, the audio data is preprocessed to achieve timing synchronization with the visual data, as follows:
[0026] (1) Segment the audio clips corresponding to the video frames according to the video frame rate and audio sampling rate;
[0027] (2) Add a Hanning window to alleviate the edge effect caused by segmentation.
[0028] Furthermore, SoundNet is used as an audio encoder for feature extraction to obtain audio features, as follows:
[0029] (1) Use the initial convolution layer with large convolution kernels to capture basic audio features and reduce the data dimension through maximum pooling;
[0030] (2) Through a series of deeper convolutional networks, each layer is followed by batch normalization and ReLU activation function to gradually extract and refine the complex features in the audio.
[0031] Furthermore, a correlation-guided audio-visual feature fusion module is constructed. The semantic correlation between audio features and video features with the smallest spatial scale is calculated through a correlation-aware multi-head cross-attention mechanism. Based on this correlation, the video features and audio features are selectively multimodally fused to obtain fused features. The correlation-aware multi-head cross-attention mechanism is expressed as follows:
[0032] (1) For visual features and audio features Use six different affine transformations , , , , , To generate visual queries , Visual Key , Visual Value , Audio Query , Audio Key and audio value , then the visual attention to the audio and audio attention to vision It is expressed as:
[0033]
[0034]
[0035]
[0036] Where softmax(·) is the activation function, Represents the dimensions of all query, key, and value vectors
[0037] (2) A correlation weighted estimation module is introduced to evaluate the comprehensive features of the two modalities to generate weights that dynamically adjust the influence of different heads. It can be expressed as:
[0038]
[0039]
[0040] In the formula Represents the learned weight of each attention head, which is used to weigh the impact of different attention heads and enhance the relevance-oriented characteristics of the fusion.
[0041] Furthermore, a multi-scale adjustment gating module is constructed to filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features, as follows:
[0042] (1) Receiving multi-scale visual features , and the fusion features from the correlation-guided audio-visual feature fusion module or the previous stage gating module , then:
[0043]
[0044]
[0045]
[0046] in represents the fused features of the previous stage after upsampling, Indicates a connection operation. represents a 3D convolutional layer, represents the sigmoid function, Represents global average pooling, gate value For audio and video features Weighted.
[0047] Furthermore, regarding the loss function, it is as follows:
[0048] The saliency map predicted by the model is denoted as , and the true saliency map is denoted by , then the expression of the overall loss function is as follows:
[0049]
[0050] In the formula and The hyperparameters are all set to -0.1, KL represents Kullback-Leibler divergence, CC represents linear correlation coefficient, Sim represents similarity measure, and the specific calculation method is as follows:
[0051]
[0052] In the formula is the total number of pixels in the image, is a small positive number that prevents division by zero, and They are the normalized model prediction and true value saliency maps respectively;
[0053]
[0054] In the formula and is the normalized value of each pixel:
[0055]
[0056] In the formula and They are and The mean of .
[0057] According to a second aspect of the present invention, the present invention provides a video saliency prediction system using a visual-audio correlation feature fusion strategy, comprising:
[0058] A receiving unit, used for receiving video and audio data, preprocessing the video data, and obtaining continuous video frames;
[0059] The video feature extraction unit is used to use the pre-trained S3D as the visual encoder, combined with the hollow space pyramid pooling and the local importance pooling, to extract multi-scale visual spatiotemporal features according to the video frames;
[0060] The feature enhancement unit is used to input the multi-scale visual spatiotemporal features into the multi-scale feature collaboration module, and obtain enhanced features by extracting and fusing multi-scale features at different levels of the network to enrich its representation capabilities for objects of different sizes;
[0061] The audio feature extraction unit is used to pre-process the audio data to achieve time synchronization with the visual data, and uses SoundNet as an audio encoder to extract features to obtain audio features;
[0062] A fusion unit is used to construct a relevance-guided audio-visual feature fusion module, which calculates the semantic relevance of audio features and video features with the smallest spatial scale through a relevance-aware multi-head cross-attention mechanism, and selectively performs multimodal fusion of video features and audio features based on this relevance to obtain fused features;
[0063] The balancing unit is used to construct a multi-scale adjustment gating module, filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features;
[0064] The prediction unit is used to train the overall model constructed in the above steps according to the loss function until the prediction accuracy requirement is met, and then use the trained overall model to perform significance prediction.
[0065] According to a third aspect of the present invention, the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the memory stores a computer program capable of running on the processor, and when the processor loads and executes the computer program, the video saliency prediction method of the above-mentioned audio-visual correlation feature fusion strategy is adopted.
[0066] The present invention has at least the following beneficial effects:
[0067] 1. Improve the accuracy of significance prediction:
[0068] Through the relevance-aware multi-head cross-attention mechanism, the fusion strategy is dynamically adjusted according to the semantic relevance of audio and video features, which improves the robustness of the model in dealing with semantic inconsistencies in audio and video, effectively avoids the interference of irrelevant audio such as background audio on saliency prediction, and improves the prediction accuracy.
[0069] 2. Improve the utilization of multi-scale features:
[0070] The multi-scale feature collaboration module (MS) and the multi-scale adjustment gate module (MRG) improve the detection ability of salient objects of different sizes by effectively integrating and processing visual features of different scales. This multi-scale processing method enables the model to more accurately capture salient objects of various scales and improves the applicability of salient prediction in different scenarios.
[0071] 3. Optimize feature fusion strategy:
[0072] The relevance-guided feature fusion mechanism (RAVF) of the present invention can be dynamically adjusted according to the relevance of audio and video features, making feature fusion more flexible and intelligent, adapting to different video content and audio backgrounds, and thus performing well in a variety of practical application environments.
[0073] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 A framework diagram of the method of the present invention;
[0075] Figure 2 The structure diagram of the audio-visual feature fusion module guided by the correlation of the present invention;
[0076] Figure 3 This is a structural diagram of the multi-scale feature collaboration module MS and the multi-scale feature adjustment gating unit MRG of the present invention. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0078] Embodiment 1:
[0079] See also Figure 1-Figure 3 The present invention provides a technical solution: a video saliency prediction method based on a visual-audio correlation feature fusion strategy, which specifically includes the following steps:
[0080] S1. Receive video and audio data, pre-process the video data, and obtain continuous video frames, as follows:
[0081] (S1.1) The video frames are adjusted to a uniform resolution to ensure that all input frames have the same size and adapt to the network input requirements. The video frames are normalized and each color channel is standardized using a predefined mean and standard deviation to help the model converge better. The pixel values are adjusted to make the image data conform to the expected distribution of the model.
[0082] According to the technical solution of this embodiment, the picture resolution is uniformly adjusted to 224*384, and then the video frames are normalized using the predefined mean and variance;
[0083] S2. Use the pre-trained S3D as the visual encoder, combine the void space pyramid pooling and local importance pooling, and extract multi-scale visual spatiotemporal features based on the video frame, as follows:
[0084] (S2.1) Feature extraction: S3D uses separated 3D convolution to process videos, optimizing the spatial and temporal dimensions of the video to improve processing efficiency. It uses multiple Inception modules to capture multi-scale features through convolution and pooling operations in different branches, enhancing the model's ability to express complex video content, and merging features at all levels to form a comprehensive and rich video feature representation.
[0085] (S2.2) Feature enhancement: Atrous spatial pyramid pooling and local importance pooling are used to enhance multi-scale visual features. ASPP expands the receptive field through parallel atrous convolutions with different atrous rates to capture richer contextual information. LIP dynamically adjusts pooling according to regional importance, optimizes feature expression, and improves the ability to capture key visual elements.
[0086] It should be further explained that, considering that video data has dual dimensions of time and space, and 3D convolution has the ability to extract time and space features at the same time, this embodiment uses S3D as the visual backbone network to effectively represent the time and space information extracted from the video data. Specifically, the input of S3D consists of a number of continuous video frames, and the four encoder blocks of the encoder output multi-scale features with different receptive fields. In order to enrich the representation ability of the model, each encoder block is followed by Atrous Spatial Pyramid Pooling (ASPP) and Locally Important Pooling (LIP) to generate for subsequent processing;
[0087] S3. Input the multi-scale visual spatiotemporal features into the multi-scale feature collaboration module, and obtain enhanced features by extracting and fusing multi-scale features at different levels of the network to enrich its representation capabilities for objects of different sizes, as follows:
[0088] (S3.1) In the saliency prediction process, large objects are usually considered more salient, while objects that are small in size but move fast or form a strong color contrast with the surrounding environment are also very salient. These multi-scale features are usually obtained through deep or shallow networks with different receptive fields. In order to accurately capture objects with these different features, the technical solution of this embodiment introduces a multi-scale feature collaboration module (MS), whose structure is shown in the attached figure. Figure 3 The left half shows:
[0089] Multi-scale visual spatiotemporal features The interaction with features at adjacent scales can be expressed as:
[0090]
[0091] In the formula They represent adjacent multi-scale feature maps from high resolution to low resolution respectively; is the processed feature, and the multi-scale feature collaborative module mapping MS(·) can be expressed as:
[0092]
[0093]
[0094]
[0095]
[0096] In the formula, represents 3D convolution, represents upsampling followed by 3D convolution, represents downsampling followed by 3D convolution, h, m, and l represent high, medium, and low scales, respectively. Indicates the feature of scale i that is currently in the jth processing stage; as well as They represent the features of a certain scale currently being processed, as well as the features of lower or higher scales adjacent to them; after being processed by the multi-scale feature collaborative module, enhanced features can be obtained ;
[0097] S4. Preprocess the audio data to achieve timing synchronization with the visual data, use SoundNet as the audio encoder to extract features, and obtain audio features, as follows:
[0098] (S4.1) Segment the audio segments corresponding to the video frames according to the video frame rate and the audio sampling rate;
[0099] (S4.2) applying a Hanning window to the segmented audio segments to mitigate edge effects caused by the segmentation;
[0100] It should be noted that in terms of feature extraction, SoundNet is selected as the audio backbone network because of its superior performance in learning audio features, especially its ability to process multimodal data. By learning from a large number of unlabeled videos through a teacher-student network, SoundNet captures the intrinsic association between complex audio and visual patterns, which is crucial for the task of audio-visual saliency prediction. The extracted audio features are denoted as , together with the visual features, are fed into the RAVF module for further processing;
[0101] S5. Construct a relevance-guided audio-visual feature fusion module, calculate the semantic relevance of audio features and video features with minimum spatial scale through a relevance-aware multi-head cross-attention mechanism, and selectively perform multi-modal fusion of video features and audio features based on this relevance to obtain fused features. The relevance-aware multi-head cross-attention mechanism is expressed as follows:
[0102] (S5.1) For visual features and audio features Use six different affine transformations , , , , , To generate visual queries , Visual Key , Visual Value , Audio Query , Audio Key and audio value , then the visual attention to the audio and audio attention to vision It can be expressed as:
[0103]
[0104]
[0105]
[0106] Where softmax(·) is the activation function, Represents the dimensions of all query, key, and value vectors
[0107] (S5.2) A correlation weighted estimation module is introduced to evaluate the comprehensive features of the two modalities to generate weights that dynamically adjust the influence of different heads. It can be expressed as:
[0108]
[0109]
[0110] In the formula Represents the learned weight of each attention head, which is used to weigh the impact of different attention heads and enhance the relevance-oriented characteristics of the fusion.
[0111] It should be noted that the overall process of feature fusion is as follows Figure 2 As shown, the audio features and the visual features with the smallest spatial resolution are combined Flattened, and then fed into N RAVF blocks consisting of multi-head cross-attention layers and feed-forward layers that perceive audio-visual correlation;
[0112] S6. Construct a multi-scale adjustment gating module to filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features, as follows:
[0113] (S6.1) Receive multi-scale visual features , and the fusion features from the correlation-guided audio-visual feature fusion module or the previous stage gating module , then:
[0114]
[0115]
[0116]
[0117] in represents the fused features of the previous stage after upsampling, Indicates a connection operation. represents a 3D convolutional layer, represents the sigmoid function, Represents global average pooling, gate value For audio and video features To perform weighting;
[0118] S7. Train the overall model constructed in the above steps according to the loss function until the prediction accuracy requirement is met, and then use the trained overall model to perform significance prediction.
[0119] It should be noted that the fusion feature Together with other multi-scale visual features , as well as The decoder is input to predict the saliency map. Similar to the encoder, the decoder contains four blocks, each of which consists of a convolutional layer and a 2x upsampling layer.
[0120] About the loss function:
[0121] There are many different evaluation criteria that can reflect the quality of the predicted saliency map. They evaluate the performance of the model from different perspectives. Therefore, this embodiment selects three main evaluation indicators and uses their weighted sum as the loss function. The saliency map predicted by the model is denoted as , and the true saliency map is denoted by , then the expression of the overall loss function is as follows:
[0122]
[0123] In the formula and The hyperparameters are all set to -0.1, KL represents Kullback-Leibler divergence, CC represents linear correlation coefficient, Sim represents similarity measure, and the specific calculation method is as follows:
[0124]
[0125] In the formula is the total number of pixels in the image, is a small positive number that prevents division by zero, and They are the normalized model prediction and true value saliency maps respectively;
[0126]
[0127] In the formula and is the normalized value of each pixel:
[0128]
[0129] In the formula and They are and The mean of .
[0130] In summary, this embodiment uses S3D pre-trained on Kinetics as the visual backbone network. The network takes 32 consecutive frames as input, and the spatial size of the image is scaled to 224×384. In order to process the audio stream, SoundNet is used to extract audio features. First, the classification head in the original structure is removed, and in order to ensure the time synchronization of audio and frames, a preprocessing method similar to previous work is adopted: the audio data is segmented according to the audio sampling rate and the video frame rate, and then each segment is windowed to reduce the edge effect caused by the segmentation.
[0131] Training: During the training process, the AdamW optimizer was used, and the initial learning rate was set to 1e-4. This embodiment applied the learning rate scheduler ReduceLROnPlateau, which automatically adjusted the learning rate according to the validation loss, with a decay factor of 0.5. At the same time, in order to perform L2 regularization, weight decay was used with a value of 1e-4;
[0132] First, the visual branch was trained for 100 epochs on DHF1K with a batch size of 4. The forward propagation process was as follows: Figure 1As shown by the solid line in , at this stage, the input of the model is 32 consecutive frames; after completing the training of the visual branch, it is combined with the audio branch and trained for 150 epochs on three audio and video datasets. At this stage, the input includes 32 consecutive frames and their corresponding audio clips.
[0133] Test: Use a sliding window of length 32 with a step size of 1 to generate the corresponding saliency map for the last frame image in the window. For the initial frames of the sequence, use a reverse window, that is, the reverse segment of the saliency map from the Xth frame to the X+31th frame as input for prediction.
[0134] Embodiment 2:
[0135] The present invention provides a video saliency prediction system using a video-audio correlation feature fusion strategy, comprising:
[0136] A receiving unit, used for receiving video and audio data, preprocessing the video data, and obtaining continuous video frames;
[0137] The video feature extraction unit is used to use the pre-trained S3D as the visual encoder, combined with the hollow space pyramid pooling and the local importance pooling, to extract multi-scale visual spatiotemporal features according to the video frames;
[0138] The feature enhancement unit is used to input the multi-scale visual spatiotemporal features into the multi-scale feature collaboration module, and obtain enhanced features by extracting and fusing multi-scale features at different levels of the network to enrich its representation capabilities for objects of different sizes;
[0139] The audio feature extraction unit is used to pre-process the audio data to achieve time synchronization with the visual data, and uses SoundNet as an audio encoder to extract features to obtain audio features;
[0140] A fusion unit is used to construct a relevance-guided audio-visual feature fusion module, which calculates the semantic relevance of audio features and video features with the smallest spatial scale through a relevance-aware multi-head cross-attention mechanism, and selectively performs multimodal fusion of video features and audio features based on this relevance to obtain fused features;
[0141] The balancing unit is used to construct a multi-scale adjustment gating module, filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features;
[0142] The prediction unit is used to train the overall model constructed in the above steps according to the loss function until the prediction accuracy requirement is met, and then use the trained overall model to perform significance prediction.
[0143] Specifically, the above-mentioned receiving unit, video feature extraction unit, audio feature extraction unit and fusion unit can be embedded in a computer processing system. The computer calls the above-mentioned modules to complete the task of equivalent modeling based on the video saliency prediction method of the audio-visual correlation feature fusion strategy provided above; the above-mentioned receiving unit, video feature extraction unit, audio feature extraction unit and fusion unit can perform operations according to the specific steps given in the video saliency prediction method of the audio-visual correlation feature fusion strategy.
[0144] It should be noted that it should be understood that the division of the various units of the above system is only the division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated, and these units can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, the receiving unit can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and a processing element of the above device calls and executes the functions of the above signal processing unit. The implementation of other units is similar. In addition, these units can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above units can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.
[0145] For example, the above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0146] Embodiment three:
[0147] The present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the memory stores a computer program capable of running on the processor, and when the processor loads and executes the computer program, the video saliency prediction method of the above-mentioned audio-visual correlation feature fusion strategy is adopted.
[0148] It should be noted that the terminal device can be a computer device such as a desktop computer, a laptop computer or a cloud server, and the terminal device includes but is not limited to a processor and a memory. For example, the terminal device can also include input and output devices, network access devices and buses.
[0149] Furthermore, the processor may adopt a central processing module (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. may also be adopted. The general-purpose processor may adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.
[0150] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0151] For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. When an element is referred to as being "assembled on", "installed on", "fixed on" or "set on" another element, it can be directly on the other element or there can also be a centered element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be a centered element at the same time. The terms "vertical", "horizontal", "up", "down", "left", "right" and similar expressions used herein are only for illustrative purposes and are not intended to be the only implementation method.
[0152] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0153] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
Claims
1. A video saliency prediction method based on a visual-audio correlation feature fusion strategy, characterized in that: The specific steps include: Receive video and audio data, perform preprocessing operations on the video data, and obtain continuous video frames; The pre-trained S3D is used as the visual encoder, combined with the dilated spatial pyramid pooling and local importance pooling, to extract multi-scale visual spatiotemporal features based on video frames; The multi-scale visual spatiotemporal features are input into the multi-scale feature collaboration module. By extracting and fusing multi-scale features at different levels of the network, enhanced features are obtained to enrich its representation capabilities for objects of different sizes. Preprocess the audio data to achieve time synchronization with the visual data, use SoundNet as the audio encoder to extract features and obtain audio features; Construct a correlation-guided audio-visual feature fusion module, calculate the semantic correlation between audio features and video features with the smallest spatial scale through a correlation-aware multi-head cross-attention mechanism, and selectively perform multimodal fusion of video features and audio features based on this correlation to obtain fused features; Construct a multi-scale adjustment gating module to filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features; The overall model constructed in the above steps is trained according to the loss function until the prediction accuracy requirement is met, and then the trained overall model is used to perform significance prediction; The multi-scale visual spatiotemporal features are input into the multi-scale feature collaboration module, and the enhanced features are obtained by extracting and fusing multi-scale features at different levels of the network, as follows: Multi-scale visual spatiotemporal features Interaction with features at adjacent scales is expressed as: In the formula They represent adjacent multi-scale feature maps from high resolution to low resolution respectively; is the processed feature, and the multi-scale feature collaborative module mapping MS(·) is expressed as: In the formula, represents 3D convolution, represents upsampling followed by 3D convolution, represents downsampling followed by 3D convolution, h, m, and l represent high, medium, and low scales, respectively. Indicates the feature of scale i that is currently in the jth processing stage; as well as They represent the features of a certain scale currently being processed, as well as the features of lower or higher scales adjacent to them; After being processed by the multi-scale feature collaborative module, the enhanced features can be obtained ; A relevance-guided audio-visual feature fusion module is constructed. The semantic relevance of audio features and video features with the smallest spatial scale is calculated through a relevance-aware multi-head cross-attention mechanism. Based on this relevance, the video features and audio features are selectively multimodally fused to obtain fused features. The relevance-aware multi-head cross-attention mechanism is expressed as follows: (1) For visual features and audio features Use six different affine transformations , , , , , To generate visual queries , Visual Key , Visual Value , Audio Query , Audio Key and audio value , then the visual attention to the audio and audio attention to vision It is expressed as: Where softmax(·) is the activation function, Represents the dimensions of all query, key, and value vectors; (2) A correlation weighted estimation module is introduced to evaluate the comprehensive features of the two modalities to generate weights that dynamically adjust the influence of different heads. It can be expressed as: In the formula Represents the weight of each attention head learned, which is used to weigh the influence of different attention heads and enhance the correlation-oriented characteristics of fusion; Construct a multi-scale adjustment gating module to filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features. The details are as follows: Accepting multi-scale visual features , and the fusion features from the correlation-guided audio-visual feature fusion module or the previous stage gating module , then: in represents the fused features of the previous stage after upsampling, Indicates a connection operation. represents a 3D convolutional layer, represents the sigmoid function, Represents global average pooling, gate value For audio and video features Weighted.
2. The video saliency prediction method based on the audio-visual correlation feature fusion strategy according to claim 1 is characterized in that: S3D is used as the visual encoder, combined with dilated spatial pyramid pooling and local importance pooling, and multi-scale visual spatiotemporal features are extracted from video frames. The specific method is as follows: (1) Feature extraction: S3D uses separated 3D convolution to process videos, optimizing the spatial and temporal dimensions of the video to improve processing efficiency. It uses multiple Inception modules to capture multi-scale features through convolution and pooling operations in different branches, merging features at each level to form a comprehensive and rich video feature representation. (2) Feature enhancement: Atrous spatial pyramid pooling and local importance pooling are used to enhance multi-scale visual features. ASPP expands the receptive field through parallel atrous convolutions with different atrous rates to capture richer contextual information. LIP dynamically adjusts pooling according to regional importance to optimize feature expression.
3. The video saliency prediction method based on the audio-visual correlation feature fusion strategy according to claim 2 is characterized in that: The audio data preprocessing is performed to achieve timing synchronization with the visual data, specifically as follows: (1) Segment the audio clips corresponding to the video frames according to the video frame rate and audio sampling rate; (2) Add a Hanning window to alleviate the edge effect caused by segmentation.
4. The video saliency prediction method based on the audio-visual correlation feature fusion strategy according to claim 3 is characterized in that: SoundNet is used as the audio encoder for feature extraction to obtain audio features, as follows: (1) Use the initial convolution layer with large convolution kernels to capture basic audio features and reduce the data dimension through maximum pooling; (2) Through a series of deeper convolutional networks, each layer is followed by batch normalization and ReLU activation function to gradually extract and refine the complex features in the audio.
5. The video saliency prediction method based on the audio-visual correlation feature fusion strategy according to claim 1 is characterized in that: Regarding the loss function, it is as follows: The saliency map predicted by the model is denoted as , and the true saliency map is denoted by , then the expression of the overall loss function is as follows: In the formula and The hyperparameters are all set to -0.1, KL represents Kullback-Leibler divergence, CC represents linear correlation coefficient, Sim represents similarity measure, and the specific calculation method is as follows: In the formula is the total number of pixels in the image, is a small positive number that prevents division by zero, and They are the normalized model prediction and true value saliency maps respectively; In the formula and is the normalized value of each pixel: In the formula and They are and The mean of .
6. A video saliency prediction system using a video-audio correlation feature fusion strategy, used to implement a video saliency prediction method using a video-audio correlation feature fusion strategy according to any one of claims 1 to 5, characterized in that: include: A receiving unit, used for receiving video and audio data, preprocessing the video data, and obtaining continuous video frames; The video feature extraction unit is used to use the pre-trained S3D as the visual encoder, combined with the hollow space pyramid pooling and the local importance pooling, to extract multi-scale visual spatiotemporal features according to the video frames; The feature enhancement unit is used to input the multi-scale visual spatiotemporal features into the multi-scale feature collaboration module, and obtain enhanced features by extracting and fusing multi-scale features at different levels of the network to enrich its representation capabilities for objects of different sizes; The audio feature extraction unit is used to pre-process the audio data to achieve time synchronization with the visual data, and uses SoundNet as an audio encoder to extract features to obtain audio features; A fusion unit is used to construct a relevance-guided audio-visual feature fusion module, which calculates the semantic relevance of audio features and video features with the smallest spatial scale through a relevance-aware multi-head cross-attention mechanism, and selectively performs multimodal fusion of video features and audio features based on this relevance to obtain fused features; The balancing unit is used to construct a multi-scale adjustment gating module, filter important information in the fusion features and pass it to other visual features to improve the utilization of multi-scale video features; The prediction unit is used to train the overall model composed of the above units according to the loss function until the prediction accuracy requirement is met, and then use the trained overall model to perform significance prediction.
7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: The memory stores a computer program that can be run on the processor. When the processor loads and executes the computer program, the video saliency prediction method of the audio-visual correlation feature fusion strategy according to any one of claims 1 to 5 is adopted.
Citation Information
Patent Citations
Cooperative saliency detection method based on deep learning
CN114998615A
Transferable audio-visual text generation method and system based on audio supervision
CN116089654A
Cited By
Cross-modal saliency prediction method and device for audio visual touch
CN121278634A
