RGB-D saliency detection method based on progressive weighted decoding
By adopting a progressive weighted decoding method in RGB-D saliency detection, combined with multi-scale self-attention and cross-modal feature fusion modules, the problems of ignored scale differences and insufficient information interaction in existing methods are solved, and the detection efficiency is improved. Accuracy and multi-scale feature extraction capabilities enable more comprehensive information interaction and detection effects.
Patent Information
- Application Number
- CN202410735449.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing RGB-D saliency detection methods tend to ignore differences in different scales during the feature extraction process, making it difficult to effectively extract multi-scale features, resulting in reduced detection results. In addition, insufficient interaction of modal feature information during the decoding process leads to information loss, affecting detection accuracy. .
Using a method based on progressive weighted decoding, through the multi-scale self-attention feature enhancement module and cross-modal feature fusion module, combined with the Swin Transformer network, multi-level RGB and depth features are extracted, and layer by layer through the progressive weighted fusion decoder Decoding, dynamically combines feature information of different modalities to achieve more comprehensive information interaction and feature extraction.
It improves the accuracy and completeness of salient target detection, enhances multi-scale feature extraction capabilities, reduces information loss, and improves detection results.
Smart Images

Figure CN118587449A
Abstract
Description
Technical Field
[0001] The invention relates to an RGB-D saliency detection method based on progressive weighted decoding, and belongs to the field of computer vision. Background Art
[0002] Salient Object Detection (SOD) is a very meaningful task in the field of computer vision. SOD aims to simulate the characteristic that the human eye's visual attention will automatically focus on the most obvious target in the scene, and identify and segment the most salient target or area in the image. It has been widely used in many visual tasks, such as image segmentation, visual tracking, remote sensing images, biomedicine, and sea and land transportation detection. Early saliency detection methods were based only on RGB images, and the task of extracting visual salient areas was completed through the rich color and texture information provided by RGB images. However, in the face of some scenes with complex backgrounds and low contrast between the target and the background, the feature information of a single modality is no longer sufficient to meet the needs of saliency detection. Therefore, with the update of hardware equipment and the development of deep learning algorithms, the popularization of deep image acquisition equipment has made it easier to obtain depth information, and RGB-D-based saliency detection methods have emerged. After adding the depth image corresponding to the RGB image, the model can obtain richer spatial priors and geometric information during the detection process, thereby achieving better performance.
[0003] With the rapid development of deep learning and the significant improvement of computer computing power in recent years, convolutional neural networks have received a lot of attention in the field of computer vision. In the field of RGB-D saliency detection, convolutional neural networks have also achieved good results. However, convolutional neural networks extract feature information in the pixel neighborhood through convolution operations, and it is difficult to learn global semantic information; and its commonly used pooling operation is prone to lose spatial information, which will have a certain impact on the final detection effect.
[0004] Most existing RGB-D saliency detection methods tend to ignore the differences in different scales during feature extraction, making it difficult to effectively extract multi-scale features. The detection effect will be reduced when facing some small-scale or scale-inconsistent scene targets. In addition, many methods have the problem of insufficient interaction of modal feature information during decoding, resulting in information loss, which will lead to incomplete salient target detection and reduced prediction accuracy. Summary of the invention
[0005] In order to further improve the detection accuracy of the salient object detection method, the present invention provides an RGB-D saliency detection algorithm based on progressive weighted decoding, and the technical solution is as follows:
[0006] The first object of the present invention is to provide a salient object detection method, comprising:
[0007] Step 1: Obtain the RGB image and corresponding depth image of the target to be detected;
[0008] Step 2: The multi-level RGB image features and deep image features are extracted through a symmetrical two-stream feature extraction backbone network, denoted as r i and d i , i∈{1,2,…,N}, i is the number of the extracted feature layer, and N is the total number of extracted feature layers;
[0009] Step 3: Use the Multi-scale Self-attentional Feature Enhancement module (MSFE) to enhance the deepest feature r extracted in step 2 N and d N Processing is performed to obtain enhanced high-level features r MSFE and d MSFE ;
[0010] Step 4: Use the cross-modal feature fusion module (CFF) to fusion the high-level features r MSFE and d MSFE , and the first N-1 layers of features r i and d i , i∈{1,2,…,N-1} are fused to obtain the fusion feature f i , i∈{1,2,…,N};
[0011] Step 5: Use the Progressive Weighted Fusion Decoder (PWF) to decode the various features in the RGB branch, depth branch, and fusion branch layer by layer to obtain the predicted salient image S of the RGB branch. r , the predicted salient image S of the deep branch d and the predicted salient image S of the fusion branch f ;
[0012] Step 6: Obtain the predicted salient image S of the fusion branch f As the result of salient target detection.
[0013] Optionally, step 5 includes:
[0014] Step 51: A symmetrically arranged single-modality feature aggregation module (SFA, Single-modality Feature Aggregation) is used to perform preliminary aggregation on one of the single-modality features in the RGB branch and the depth branch respectively. The output of the previous SFA module will become the input of the next SFA module, and finally the predicted salient image S of the RGB branch is obtained. r , the predicted salient image S of the deep branch d ;
[0015] Step 52: The RGB branch features, depth branch features and fusion branch features aggregated by the SFA module are uniformly fused and decoded through the dynamic weighted fusion module (DWF). The dynamic weight k generated by the residual channel attention operation is used to combine the feature information of different modalities according to their importance. The output of each DWF module becomes the input of the next DWF module, completing the progressive fusion and obtaining the initial salient image Sf.
[0016] Optionally, the MSFE module in step 3 performs N and d N The processing process includes:
[0017] Step 31: Use a 3×3 convolutional layer with BatchNorm normalization and PReLU activation to transform the input feature r N and d N to process;
[0018] Step 32: Input the output result of step 31 into five parallel loaded convolution layer branches to extract multi-scale features; wherein, the first branch uses global average pooling to extract global information in high-level features, and connects Conv1×1 convolution and linear upsampling function to adjust the channel and size; the last branch uses 1×1 convolution with BatchNorm normalization and PReLU activation; for the three middle branches, spatially separable convolutions with convolution kernel sizes of 3, 5, and 7 are respectively connected to dilated convolutions with dilated rates of 3, 5, and 7 to capture multi-scale features, and a self-attention mechanism is added after the dilated convolution to extract contextual information;
[0019] Step 33: The output results of the five branches are fused together through a cascade operation to obtain the enhanced high-level feature r MSFE and d MSFE .
[0020] Optionally, the processing process of the CFF module in step 4 includes:
[0021] Step 41: Multiply the input RGB features and depth features, and use the spatial attention mechanism SA to calculate the common spatial attention feature f sa ;
[0022] Step 42: Combine the original RGB features and depth features with f sa Multiply them, and use residual connections to transfer weighted features respectively, and then input the results into the channel attention mechanism CA respectively;
[0023] Step 43: Multiply the features obtained in step 42 with the original RGB features and the depth features to obtain the RGB channel calibration features r ca and depth channel calibration feature d ca ;
[0024] Step 44: Calibrate the RGB channel feature r ca and depth channel calibration feature d ca After element addition, element multiplication and channel cascade operations, the fusion weight m is obtained by normalization using the Sigmoid function;
[0025] Step 45: Combine the two branch features using the fusion weight m, and obtain the fusion feature f through a skip multiplication connection with a channel attention mechanism CA. i , i∈{1,2,…,N}.
[0026] Optionally, the processing process of the SFA module includes: performing a linear upsampling operation on the output features of the previous SFA module, and then concatenating them with the features of the corresponding layer using channel cascade, and finally inputting the concatenated results into a 3×3 convolution with a BatchNorm normalization layer and a ReLU activation layer to obtain modal aggregation features.
[0027] Optionally, the processing of the i-th DWF module includes:
[0028] Aggregate the input RGB features fr i and deep aggregation feature fd i After channel concatenation, the channel is input into the Conv3×3 convolution layer for channel dimension reduction to obtain a fused RGB-D decoder feature f rd ;
[0029] The feature ff exported by the previous DWF module i+1 and the corresponding fusion feature f i Cascade and input into the Conv3×3 convolution layer to obtain the feature f s , the feature f rd and f sCascade, and input the cascade result into a Conv1×1 convolution and a residual structure containing a channel attention mechanism;
[0030] A learnable dynamic weight k is obtained through the Bconv3×3 convolution layer and the sigmoid layer, and the RGB-D decoder feature f rd And the fusion feature f of the previous level s They are combined together through dynamic weights k and pass through two consecutive Bconv3×3 convolutional layers and a linear upsampling layer to output the result ff i .
[0031] Optionally, the method uses a mixed loss function to train the network, and the mixed loss function is obtained by adding a cross entropy loss function, an intersection-union loss function and a structural similarity loss function;
[0032] The total loss function Loss of the network is:
[0033] Loss=L(Sr,GT)+L(Sd,GT)+L(Sf,GT)
[0034] Among them, L(Sr,GT), L(Sd,GT), and L(Sf,GT) represent the mixed loss functions of the RGB branch, depth branch, and fusion branch, respectively. GT represents the corresponding standard truth image, and Sr, Sd, and Sf represent the salient images predicted by the three branches, respectively.
[0035] Optionally, the dual-stream feature extraction backbone network uses a Swin Transformer network.
[0036] A second object of the present invention is to provide an electronic device, comprising a memory and a processor;
[0037] The memory is used to store computer programs;
[0038] The processor is used to implement any of the above-mentioned salient object detection methods when executing the computer program.
[0039] The third object of the present invention is to provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the salient object detection method as described in any one of the above items is implemented.
[0040] The beneficial effects of the present invention are:
[0041] (1) The existing RGB-D saliency detection methods based on encoding and decoding usually have the problem of insufficient interaction of modal feature information during the decoding process, resulting in information loss, which will cause the final prediction result to have incomplete targets and blurred edges. The present invention proposes a progressive weighted fusion decoder, which integrates features at all levels from deep to shallow and from bottom to top to achieve progressive decoding. During the fusion process within the module, the decoder will use the dynamic weight k generated by operations such as residual channel attention to dynamically combine feature information of different modalities according to their importance, fully linking local features and global features, which is conducive to enhancing information interaction between different modalities, and can amplify contributing features, thereby improving the final decoding effect and detection accuracy.
[0042] (2) Most existing RGB-D saliency detection methods tend to ignore the differences in different scales during feature extraction, making it difficult to effectively extract multi-scale features, resulting in low detection accuracy for multiple targets and small targets. To address this problem, the present invention proposes a multi-scale self-attention feature enhancement module, which can use a parallel branch structure to capture receptive fields of different scales, simulate the effect of human visual receptive field, effectively extract multi-scale features of salient objects, and ultimately achieve the purpose of improving the accuracy of saliency detection.
[0043] (3) The present invention uses a cross-modal feature fusion module to perform operations such as spatial attention mechanism and channel attention mechanism on the RGB features and depth features extracted by the backbone network, thereby enhancing the semantic information of the RGB features and the spatial position information of the depth features, and finally completing cross-modal fusion. This method of first enhancing and then fusing fully utilizes the advantages of different modalities, maximizes the utilization of modal features, and provides more valuable information for subsequent decoding.
[0044] (4) In one embodiment of the present invention, Swin Transformer is used as the backbone network to extract features, combining the advantages of Transformer in global modeling and capturing long-distance contextual information with the translation invariance and hierarchy of CNN, so as to better complete the feature extraction of the encoding link, and solve the problem that the existing detection method based on convolutional neural network (CNN) is prone to lose spatial information due to pooling operation and is difficult to learn global long-distance semantic information. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 It is a flow chart of the RGB-D saliency detection method based on progressive weighted decoding of the present invention.
[0047] Figure 2 It is a schematic diagram of the network structure of the RGB-D saliency detection method based on progressive weighted decoding of the present invention.
[0048] Figure 3 It is a structural diagram of the multi-scale self-attention feature enhancement module (MSFE).
[0049] Figure 4 It is a structural diagram of the cross-modal feature fusion module (CFF).
[0050] Figure 5 It is a structural diagram of a progressive weighted fusion decoder (PWF).
[0051] Figure 6 It is a structural diagram of the single-modal feature aggregation module (SFA).
[0052] Figure 7 It is a structural diagram of the dynamic weighted fusion module (DWF).
[0053] Figure 8 This is a comparison chart of the results of the present invention and other RGB-D saliency detection methods. DETAILED DESCRIPTION
[0054] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0055] Embodiment 1:
[0056] This embodiment provides a salient object detection method, including:
[0057] Step 1: Obtain the RGB image and corresponding depth image of the target to be detected;
[0058] Step 2: The multi-level RGB image features and deep image features are extracted through a symmetrical two-stream feature extraction backbone network, denoted as r i and d i , i∈{1,2,…,N}, i is the number of the extracted feature layer, and N is the total number of extracted feature layers;
[0059] Step 3: Use the multi-scale self-attention feature enhancement module MSFE to enhance the deepest feature r extracted in step 2 N and d N Processing is performed to obtain enhanced high-level features r MSFE and d MSFE ;
[0060] Step 4: Use the cross-modal feature fusion module CFF to fusion the high-level features r MSFE and d MSFE , and the first N-1 layers of features r i and d i , i∈{1,2,…,N-1} are fused to obtain the fusion feature f i , i∈{1,2,…,N};
[0061] Step 5: Use the progressive weighted fusion decoder PWF to decode various features in the RGB branch, depth branch, and fusion branch layer by layer to obtain the predicted salient image S of the RGB branch r , the predicted salient image S of the deep branch d and the predicted salient image S of the fusion branch f ;
[0062] Step 6: Get the predicted salient image S of the fusion branch f As the result of salient target detection.
[0063] Embodiment 2:
[0064] This embodiment takes the dual-stream feature extraction backbone network to extract four layers of features as an example to provide an RGB-D saliency detection method based on progressive weighted decoding. The specific implementation process is as follows:
[0065] S1: Obtain an RGBD image dataset, including a training set and a test set consisting of RGB images and their corresponding depth images.
[0066] This embodiment obtains public datasets commonly used for RGB-D saliency detection, including: NJU2K dataset, NLPR dataset, STERE dataset, SSD dataset, SIP dataset, etc., and the images in each dataset include RGB images, depth images, and true value images of salient objects.
[0067] S2: The RGB image and its corresponding depth image are input into the saliency detection model respectively, and the multi-level RGB image features and depth image features are extracted through the symmetrical two-stream feature extraction backbone network, which are denoted as r and i and d i (i∈{1,2,3,4}, i is the extracted feature layer number).
[0068] The feature extraction backbone network used in this embodiment is the Swin Transformer network, and the specific version is the Swin-Base-window12 version. The input image size is 384*384. Two symmetrically arranged two-stream Swin Transformer backbone networks are used to extract the RGB and depth image features in the input data set respectively. The RGB image features r at the first to fourth scale levels are obtained in the first to fourth feature extraction layers of the Swin Transformer network respectively. i and the deep image feature d i (i∈{1,2,3,4}.
[0069] S3: The features r4 and d4 extracted from the deepest layer of S2 are input into the multi-scale self-attention feature enhancement module MSFE respectively. The multi-scale features of the object are effectively captured through spatially separable convolution, and the self-attention mechanism is used to further expand the receptive field, establish long-distance dependencies in a global range, and obtain enhanced high-level features r containing multi-scale information. MSFE and d MSFE .
[0070] Among them, the structure of the MSFE module is as follows Figure 3 As shown in the figure, it includes global average pooling operations, linear upsampling, spatially separable convolutions, dilated convolutions, and self-attention mechanism operations. Its input is the high-level features extracted by the two-stream backbone network, namely, the fourth-layer features r4 and d4 of the RGB branch or the depth branch. It passes through a 3×3 convolution layer with BatchNorm normalization and PReLU activation, and then feeds the results into five parallel-loaded convolution layer branches to extract multi-scale features.
[0071] Among them, the first branch uses global average pooling to extract global information in high-level features, and connects Conv1×1 convolution and linear upsampling function to adjust the channel and size; the last branch uses 1×1 convolution with BatchNorm normalization and PReLU activation; for the three middle branches, spatially separable convolutions with kernel sizes of 3, 5, and 7 are connected to dilated convolutions with dilated rates of 3, 5, and 7 to capture multi-scale features, and a self-attention mechanism is added after the dilated convolution to extract contextual information; the output results of the five branches are fused together through a cascade operation to obtain the enhanced high-level feature r MSFE and d MSFE .
[0072] S4: The first three layers of RGB features and depth features extracted from the backbone network in S2 and the advanced features enhanced by the MSFE module in S3 are input step by step into the cross-modal feature fusion module CFF for fusion to obtain the fused feature f i (i∈{1,2,3,4}).
[0073] Specifically, the structure of the CFF module is as follows Figure 4 As shown in Figure 1, it includes operations such as element-by-element multiplication, element-by-element addition, spatial attention, channel attention, and channel cascading. The input of the CFF module is the first three layers of RGB features extracted by the backbone network. i and the deep feature d i , i∈{1,2,3} and the advanced features r enhanced by the MSFE module MSFE and d MSFE .
[0074] The CFF module first transforms the input RGB feature r i and the deep feature d i Multiply them and use the spatial attention mechanism SA to calculate their common spatial attention features f sa , the original RGB features and depth features are respectively sa The results are then input into the channel attention mechanism CA and multiplied with the original RGB features and depth features to obtain the RGB channel calibration features r. ca and depth channel calibration feature d ca . ca and d ca After performing operations such as element addition, element multiplication, and channel cascading, the fusion weight m is obtained by normalization using the Sigmoid function. The two branch features are combined using the fusion weight m, and the fusion feature f is obtained through a skip multiplication connection with a channel attention mechanism CA. i .
[0075] S5: Input various features in the RGB branch, depth branch and fusion branch step by step into the progressive weighted fusion decoder PWF for layer-by-layer decoding to obtain the initial predicted saliency map. The structure of the progressive weighted fusion decoder is as follows: Figure 5 As shown in the figure, it is mainly composed of a single-modal feature aggregation module SFA and a dynamic weighted fusion module DWF.
[0076] The specific decoding method includes: using symmetrically arranged SFA modules to perform preliminary aggregation of one of the single-modal features in the RGB branch and the depth branch respectively. Its characteristics are that the output of the previous SFA module will become the input of the next SFA module, and the high-level features will be gradually integrated into the low-level features, providing the corresponding level of modal features for the decoder of each subsequent layer, and finally outputting the initial saliency maps Sr and Sd predicted based on the single-modal features; through the dynamic weighted fusion module DWF, the RGB branch features and depth branch features aggregated by the SFA module and the fusion branch features are uniformly fused and decoded. In the fusion process within the module, the dynamic weight k generated by operations such as residual channel attention is used to dynamically combine the feature information of different modalities according to their importance. The output of each DWF module will become the input of the next DWF module, completing the progressive fusion and obtaining the initial saliency image Sf.
[0077] At the end of the RGB branch, depth branch and dynamic weighted fusion branch of the decoder, that is, at the last two symmetrically arranged SFA modules and the last DWF module, the channel dimension reduction is performed through the Conv3×3 convolution layer to predict the initial salient images, which are recorded as Sr, Sd and Sf respectively. Finally, the predicted salient map Sf of the dynamic weighted fusion branch is selected as the final saliency prediction result.
[0078] The structure of the SFA module is as follows Figure 6 As shown in the figure, the input of the SFA module is the output r of each layer of the RGB feature extraction branch and the depth feature extraction branch in the backbone network. i and d i (i∈{1,2,3,4}), and the output fr of the previous SFA module i+1 , in particular, when i = 4, fr i+1 and fd i+1 They represent the high-level features r after the feature enhancement module. MSFE and d MSFE ; Taking the RGB feature branch as an example, the output fr of the previous feature aggregation module i+1 Perform linear upsampling and then add the feature r of the corresponding layer i Use channel cascade to initially aggregate the feature information of adjacent layers, and then input the results into a Conv1×1 convolution layer and a Bconv3×3 convolution layer, that is, a 3×3 convolution with BatchNorm and ReLU activation, to obtain the RGB modality aggregate feature fr i .
[0079] The unimodal feature aggregation process is as follows:
[0080]
[0081] in, represents a linear upsampling operation, cat represents channel concatenation, BConv 3×3 represents a 3×3 convolution with BatchNorm and ReLU activation; r i and d i Represents the RGB features and depth features of the i-th layer respectively, fr i and fd i They represent the RGB modality aggregation features and the depth modality aggregation features of the i-th layer, respectively. In particular, when i=4, fr i+1 and fd i+1 They represent the high-level features r after the feature enhancement module. MSFE and d MSFE .
[0082] The structure of the DWF module is as follows Figure 7 As shown, the input is the fusion feature f output by the CFF module i , the RGB aggregate feature fr output by the corresponding SFA module i and deep aggregation feature fd i Taking the i-th DWF module as an example, the input RGB aggregation feature fr i and deep aggregation feature fd i After channel concatenation, the channel is input into the Conv3×3 convolution layer for channel dimension reduction to obtain a fused RGB-D decoder feature f rd ; Then the feature ff output from the previous DWF module i+1 and the corresponding fusion feature f i Cascade and input into the Conv3×3 convolution layer to obtain the feature f s :
[0083] f rd =Conv 3×3 (cat(fr i , fd i )), i=4,3,2,1 (3)
[0084] f s =Conv 3×3 (cat(f i , ff i+1 )), i=4,3,2,1 (4)
[0085] Among them, cat represents channel cascade, Conv 3×3 represents 3×3 convolution, ff i+1 Indicates the output of the previous DWF module, f i represents the fusion feature of the i-th layer. In particular, when i=4, there is no ff i+1 .
[0086] The feature f rd and f s Cascade, and input the cascade result into a Conv1×1 convolution and a residual structure containing a channel attention mechanism; then pass the Bconv3×3 convolution layer and the sigmoid layer to obtain a learnable dynamic weight k:
[0087] f ca =Conv 1×1 (cat(f rd ,f s )) (5)
[0088]
[0089] Among them, Conv 1×1 represents 1×1 convolution, CA represents channel attention operation, represents element-wise multiplication, and σ represents the sigmoid activation function.
[0090] Finally, the previously obtained RGB-D decoder feature f rd And the fusion feature f of the previous level s They are combined together through dynamic weights k and pass through two consecutive Bconv3×3 convolutional layers and a linear upsampling layer to output the result ff i :
[0091]
[0092] in, represents a linear upsampling operation, which doubles the original size, and k represents a dynamic weight.
[0093] S6: The predicted salient images Sr, Sd and Sf of the three branches of RGB, depth and dynamic weighted fusion in the progressive weighted fusion decoder are calculated using a hybrid loss function, and supervision is implemented through the corresponding true value images to complete the optimization training of the network model.
[0094] The hybrid loss function L is composed of the cross entropy loss function L bce , the intersection loss function L iou And the structural similarity loss function L ssim The specific calculation method is as follows:
[0095] L(S,GT)=L bce (S,GT)+L iou (S,GT)+L ssim (S,GT) (8)
[0096] Among them, L represents the mixed loss function, L bcerepresents the BCE cross entropy loss function, L iou represents the IOU intersection-union loss function, L ssim represents the SSIM structural similarity loss function, S represents the salient image predicted by the network, and GT represents the corresponding standard truth image.
[0097] To calculate the total network loss, it is necessary to use a mixed loss function to calculate the loss for the final predicted image of each branch, and implement supervision through the corresponding true value image to accelerate network convergence. The total network loss calculation method is as follows:
[0098] Loss=L(Sr,GT)+L(Sd,GT)+L(Sf,GT) (9)
[0099] Among them, Loss represents the total loss function of the network.
[0100] The overall saliency detection network is trained and optimized. The mixed loss function is used to calculate the loss sum of the initial saliency maps output by the three branches of the decoder. The Adam optimization training model is used. The batch size is set to 8, the initial learning rate is set to 5e-5, and the learning rate is divided by 10 every 100 rounds. The model needs to be trained for 150 rounds to complete the RGB-D saliency detection based on progressive weighted decoding.
[0101] Embodiment three:
[0102] In order to demonstrate the effect and superiority of the saliency detection method of the present invention, this example compares the detection results of the present invention with those of 8 other advanced RGB-D saliency detection algorithms, including 4 CNN-based saliency detection algorithms (D3Net, SPNet, HAINet, SPSN) and 4 Transformer-based saliency detection algorithms (VST, TriTransNet, SwinNet, CAVER). The comparison results are shown in Figure 2. Figure 8 shown.
[0103] First, (a) and (b) show the situation where the foreground and background are similar and the contrast is low. The base of the sculpture in (a) is very similar to the background wall, which causes missed detection in the existing method and makes it difficult to detect the overall salient target. The method proposed in the present invention can completely complete the salient target detection.
[0104] (c) and (d) show situations with complex backgrounds. The background of (c) is complex and bright, and is almost on the same plane, which leads to multiple detections and false detections in most comparison methods. The salient target in (d) is smaller, the background is complex and close to the foreground color, and the comparison method fails to detect the details of the salient target. The target detected by the present invention is relatively complete.
[0105] (e), (f), and (g) show the cases where the depth map quality is low. The horse tail in (e) has high granularity and most comparison methods have difficulty detecting it. The depth map of (f) fails to provide useful information, and the salient target has a complex shape and interferes with the background. The depth map of (g) provides interference information, causing the comparison method to have false detections and multiple detections. The present invention can completely and accurately predict the salient target.
[0106] (h) and (i) show the situation of multiple targets. In (h), three targets to be detected appear at the same time, and the depth map has certain interference. Some comparison methods can only detect two targets or the detection is incomplete. The two targets in (i) are brightly colored and large in area, with a complex and messy background, and the water cup in the lower right corner introduces misleading information. The comparison method has a poor detection result for this. In comparison, the present invention produces satisfactory results.
[0107] (j) and (k) show the situation of small target objects. Compared with other comparison methods, the present invention can more accurately identify the outline of small targets.
[0108] (i) shows a serious case of uneven lighting. The lower body of the prominent figure is strongly affected by the lighting, and the contrast method cannot accurately detect it.
[0109] (m) shows the situation where the colors inside the salient object are clearly distinguished and the contrast is high, resulting in the inability of the contrast method to detect the target completely and continuously.
[0110] In summary, the present invention can produce relatively reliable detection results in these cases. Therefore, the salient object detection method of the present invention has higher detection accuracy and better salient detection performance than the prior art.
[0111] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.
[0112] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting a salient object, characterized in that: The method comprises: Step 1: Obtain the RGB image and corresponding depth image of the target to be detected; Step 2: The multi-level RGB image features and deep image features are extracted through a symmetrical two-stream feature extraction backbone network, denoted as r i and d i , i∈{1,2,…,N}, i is the number of the extracted feature layer, and N is the total number of extracted feature layers; Step 3: Use the multi-scale self-attention feature enhancement module MSFE to enhance the deepest feature r extracted in step 2 N and d N Processing is performed to obtain enhanced high-level features r MSFE and d MSFE ; Step 4: Use the cross-modal feature fusion module CFF to fusion the high-level features r MSFE and d MSFE , and the first N-1 layers of features r i and d i , i∈{1,2,…,N-1} are fused to obtain the fusion feature f i , i∈{1,2,…,N}; Step 5: Use the progressive weighted fusion decoder PWF to decode various features in the RGB branch, depth branch, and fusion branch layer by layer to obtain the predicted salient image S of the RGB branch r , the predicted salient image S of the deep branch d and the predicted salient image S of the fusion branch f ; Step 6: Obtain the predicted salient image S of the fusion branch f As the result of salient target detection.
2. The method for detecting a salient object according to claim 1, characterized in that: The step 5 comprises: Step 51: Preliminary aggregation of one of the unimodal features in the RGB branch and the depth branch is performed through the symmetrically arranged unimodal feature aggregation modules SFA. The output of the previous SFA module will become the input of the next SFA module, and finally the predicted salient image S of the RGB branch is obtained. r , the predicted salient image S of the deep branch d ; Step 52: The RGB branch features and depth branch features aggregated by the SFA module and the fusion branch features are uniformly fused and decoded through the dynamic weighted fusion module DWF. The feature information of different modalities is combined according to the importance through the dynamic weight k generated by the residual channel attention operation. The output of each DWF module will become the input of the next DWF module, completing the progressive fusion and obtaining the initial salient image Sf.
3. The method for detecting a salient object according to claim 1, wherein: The MSFE module in step 3 performs the feature r N and d N The processing process includes: Step 31: Use a 3×3 convolutional layer with BatchNorm normalization and PReLU activation to transform the input feature r N and d N to process; Step 32: Input the output result of step 31 into five parallel loaded convolution layer branches to extract multi-scale features; wherein, the first branch uses global average pooling to extract global information in high-level features, and connects Conv1×1 convolution and linear upsampling function to adjust the channel and size; the last branch uses 1×1 convolution with BatchNorm normalization and PReLU activation; for the three middle branches, spatially separable convolutions with convolution kernel sizes of 3, 5, and 7 are respectively connected to dilated convolutions with dilated rates of 3, 5, and 7 to capture multi-scale features, and a self-attention mechanism is added after the dilated convolution to extract contextual information; Step 33: The output results of the five branches are fused together through a cascade operation to obtain the enhanced high-level feature r MSFE and d MSFE .
4. The salient object detection method according to claim 1, characterized in that: The processing process of the CFF module in step 4 includes: Step 41: Multiply the input RGB features and depth features, and use the spatial attention mechanism SA to calculate the common spatial attention feature f sa ; Step 42: Combine the original RGB features and depth features with f sa Multiply them, and use residual connections to transfer weighted features respectively, and then input the results into the channel attention mechanism CA respectively; Step 43: Multiply the features obtained in step 42 with the original RGB features and the depth features to obtain the RGB channel calibration features r ca and depth channel calibration feature d ca ; Step 44: Calibrate the RGB channel feature r ca and depth channel calibration feature d ca After performing element addition, element multiplication and channel cascade operations, the fusion weight m is obtained by normalization using the Sigmoid function; Step 45: Combine the two branch features using the fusion weight m, and obtain the fusion feature f through a skip multiplication connection with a channel attention mechanism CA. i , i∈{1,2,…,N}.
5. The method for detecting a salient object according to claim 2, wherein: The processing process of the SFA module includes: performing a linear upsampling operation on the output features of the previous SFA module, and then concatenating them with the features of the corresponding layer using channel cascade, and finally inputting the concatenated results into a 3×3 convolution with a BatchNorm normalization layer and a ReLU activation layer to obtain modal aggregation features.
6. The method for detecting a salient object according to claim 2, wherein: The processing of the i-th DWF module includes: Aggregate the input RGB features fr i and deep aggregation feature fd i After channel concatenation, the channel is input into the Conv3×3 convolution layer for channel dimension reduction to obtain a fused RGB-D decoder feature f rd ; The feature ff exported by the previous DWF module i+1 and the corresponding fusion feature f i Cascade and input into the Conv3×3 convolution layer to obtain the feature f s , the feature f rd and f s Cascade, and input the cascade result into a Conv1×1 convolution and a residual structure containing a channel attention mechanism; A learnable dynamic weight k is obtained through the Bconv3×3 convolution layer and the sigmoid layer, and the RGB-D decoder feature f rd And the fusion feature f of the previous level s They are combined together through dynamic weights k and pass through two consecutive Bconv3×3 convolutional layers and a linear upsampling layer to output the result ff i .
7. The method for detecting a salient object according to claim 1, wherein: The method adopts a mixed loss function to train the network, and the mixed loss function is obtained by adding a cross entropy loss function, an intersection-union loss function and a structural similarity loss function; The total loss function Loss of the network is: Loss=L(Sr,GT)+L(Sd,GT)+L(Sf,GT) Among them, L(Sr,GT), L(Sd,GT), and L(Sf,GT) represent the mixed loss functions of the RGB branch, depth branch, and fusion branch, respectively. GT represents the corresponding standard truth image, and Sr, Sd, and Sf represent the salient images predicted by the three branches, respectively.
8. The method for detecting a salient object according to claim 1, wherein: The dual-stream feature extraction backbone network uses the Swin Transformer network.
9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the salient object detection method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the salient object detection method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
RGBD image saliency detection method based on depth estimation
CN115272268A
Cross-modal feature fusion and asymptotic decoding saliency target detection method and device
CN115908789A
Three-stream RGB-D saliency target detection based on cross-level cross-modal double-attention fusion
CN116051950A
RGB-D saliency target detection method
CN116206133A
Salient target detection method and device
CN116310394A
Cited By
Salient target detection method and system, storage medium and product
CN118968041A
Polyp image segmentation method based on double-branch feature progressive fusion network
CN119360031A
RGB-D salient target detection method and system based on cross-modal correlation learning
CN119360177A
RGB-D saliency detection method based on progressive multi-scale feature fusion
CN119810423A
Video time retrieval and highlight segment detection method and system
CN119862304A
