RGB-D salient target detection method based on multi-modal attention perception and adjacent scale modeling

The RGB-D salient target detection method through multi-modal attention perception and adjacent scale modeling solves the problems of incomplete salient objects and loss of edge information, achieving the integrity of salient targets and enhancement of edge details.

CN118823536AActive Publication Date: 2024-10-22XIAN UNIV OF TECH

Patent Information

Application Number
CN202410892941.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-22
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing salient object detection methods suffer from incomplete salient objects and loss of edge information when facing complex scenes.

Method used

The RGB-D salient target detection method uses multi-modal attention perception and adjacent scale modeling. By constructing a multi-modal attention fusion module and an adjacent scale modeling module, it combines spatial attention, channel attention and self-attention. Force operation, mining the complementary information between RGB and depth features, and gradually merging features through the adjacent scale modeling module to enhance the edge details of the target.

Benefits of technology

To ensure the integrity of salient objects while enhancing the edge details of the objects, the generated saliency map contains both the semantic information of high-level features and the edge and texture details of low-level features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823536A_ABST
    Figure CN118823536A_ABST
Patent Text Reader

Abstract

The invention discloses an RGB-D salient target detection method based on multi-modal attention perception and adjacent scale modeling. The RGB-D salient target detection method specifically comprises the following steps: step 1, data preprocessing; step 2, constructing a multi-modal attention fusion module; and step 3, constructing an adjacent scale modeling module. According to the method, the edge details of the target can be enhanced while the integrity of the significant target can be ensured, two pyramid pool transformers (P2T) with multi-scale pooling are adopted as a multi-modal encoder, multi-scale features are extracted from two modals, and a multi-modal attention fusion module is used for carrying out multi-scale feature fusion on the target. Complementary information between two modes is mined by combining space attention, channel attention and self-attention operation, and the same feed-forward block is used to explore the consistency of the modes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision and artificial intelligence technology, and specifically relates to an RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling. Background Art

[0002] Salient object detection (SOD) is a hot research topic in the field of computer vision, which aims to detect and segment the most visually attractive regions or objects in an image. As an effective image preprocessing technology, SOD has been widely used in target tracking, target recognition, video analysis, image captioning, image segmentation, and image reconstruction.

[0003] In recent years, due to the rapid progress and good performance of deep learning in the field of saliency detection images, many SOD models based on deep learning have been proposed. With the continuous development of deep learning, the Transformer-based SOD method has surpassed the convolution-based method and reached an important milestone. The existing SOD methods have achieved good results, but when faced with challenging complex scenes (such as illumination changes and low contrast), these SOD methods still have problems such as incomplete salient objects and loss of edge information. Summary of the invention

[0004] The purpose of the present invention is to provide an RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling, which solves the problems of incomplete salient objects and loss of edge information in existing detection methods.

[0005] The technical solution adopted by the present invention is an RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling, which is specifically implemented in the following steps:

[0006] Step 1, data preprocessing;

[0007] Step 2: construct a multimodal attention fusion module;

[0008] Step 3: Construct adjacent scale modeling module.

[0009] The present invention is also characterized in that:

[0010] The data in step 1 include NLPR, NJUD, STERE, SIP and DUT-RGBD. The input size of RGB and depth maps is adjusted to 384×384, and various data enhancement techniques are used to avoid overfitting.

[0011] In step 1, the P2T backbone is pre-trained on ImageNet, and the rest of the model parameters are initialized according to PyTorch. The model is trained using the Adam optimizer with a batch size of 2 and an initial learning rate of 5e-5, which is reduced by a factor of 10 every 100 epochs.

[0012] Step 2 is implemented as follows:

[0013] Step 2.1: Use spatial attention operation to mine complementary information clues from RGB features and depth features, and pass complementary information to each other. At the same time, apply spatial attention operation to itself to improve feature expression ability and reduce computational complexity. Then use channel attention operation to screen important channels.

[0014] Step 2.2, multiply the two modal features to obtain a shared attention matrix and pass it to the shared attention operation of the two branches to enhance the multimodal consistency;

[0015] In step 2.3, the inverse residual block feed-forward network is used to combine the information of the two branches to make the multimodal information consistent.

[0016] Step 2.1 is implemented as follows:

[0017] Step 2.1.1, for a given feature and Perform the spatial attention operation as shown below:

[0018]

[0019] SA(X i )=σ(Conv 7×7 (gmp c (X i ))) (2)

[0020] In the formula, represents the RGB feature map, represents the deep feature map, SA(·) is the spatial attention operation, X i is the input feature map, σ(·) is the sigmoid function, gmp c (·) is the global maximum pooling operation along the channel dimension, Conv n×n (·) denotes a convolutional layer with a kernel size of n×n;

[0021] Step 2.1.2, for the generated Respectively and The combination transfers the information-rich RGB / depth clues into RGB / depth features and reduces the computational complexity, as shown in the following formula:

[0022]

[0023] In the formula, represents element-wise multiplication;

[0024] Step 2.1.3, apply channel attention to highlight important channels for further optimization, as shown in the following formula:

[0025]

[0026] CA(X s )=σ(Conv 1×1 (Conv 1×1 (gmp s (X s )))) (6)

[0027] Where CA(·) represents the channel attention operation, gmp s (·) represents the global maximum pooling operation along the spatial dimension, X rs and X ds They represent the RGB features and depth features after enhanced complementarity, X s Refers to X rs or X ds .

[0028] Step 2.2 is implemented as follows:

[0029] Step 2.2.1, perform layer normalization and linear projection operations, as shown in formula (7):

[0030]

[0031] Where LN(·) represents the layer normalization operation, ψ(·) represents the linear projection operation, Q, V r , K and V d is the shared attention variable, and then matrix multiplication is performed between Q and K to obtain the shared attention matrix M for the RGB modality branch s ;

[0032] Step 2.2.2, shared attention matrix M for the RGB modality branch s Perform a transposition operation to obtain the attention matrix of the deep modality As shown in the following formula (8):

[0033]

[0034] Where D represents the length of the feature dimension, N represents the number of heads in the multi-head operation; K T is the transpose of the shared attention variable K;

[0035] Step 2.2.3, obtain the shared attention matrix M s After that, the remaining attention operations of the two branches are shown in formula (9):

[0036]

[0037] Among them, δ(·) is the Softmax activation function, and Respectively represent the results of each branch after the shared attention operation, V r and V d For shared variables, and Represent the RGB features and depth features after spatial and channel attention enhancement, respectively.

[0038] Step 2.3 is implemented as follows:

[0039] Step 2.3.1, in the feedforward network, first connect the two modal features along the channel dimension and fuse them using IRB with an expansion ratio of 2, as shown in the following formula:

[0040]

[0041] fuse′=IRB(fuse)+fuse (11)

[0042] Among them, Cat(·) is the cascade operation, fuse represents the features initially fused through the cascade operation, and fuse′ represents the enhanced fused features;

[0043] In step 2.3.2, a 3×3 convolutional layer is used to halve the number of feature channels, as shown in formula (12):

[0044] F i =Conv 3×3 (fuse′) (12).

[0045] Step 3 is implemented as follows:

[0046] In step 3.1, the low-resolution features are first upsampled by bilinear interpolation, and then the two features of adjacent scales are concatenated and a 3×3 convolution is applied to halve the number of feature channels, as shown in formula (13):

[0047]

[0048] Among them, F i represents the high-resolution features of the current layer, F i+1 represents the low-resolution features of the previous layer, Bi(·) represents bilinear interpolation, represents the preliminary fusion features;

[0049] In step 3.2, a G-ECA and IRB submodule is used to explore the interdependence between features at different scales, as shown in formula (14):

[0050]

[0051] Step 3.3, use multi-head self-attention operation to enhance the multi-scale and multi-modal information in the fusion features, as shown in the following formula:

[0052]

[0053] in, is the enhanced fusion feature;

[0054] Step 3.4, to prevent loss of F i The important information in is converted into With F i Multiply, as shown in formula (18):

[0055]

[0056] Among them, F i ′ is the final output of the adjacent scale modeling module.

[0057] The beneficial effects of the present invention are:

[0058] The RGB-D salient target detection method of the present invention with multimodal attention perception and adjacent scale modeling can ensure the integrity of the salient target while enhancing the edge details of the target. Two pyramid pool transformers (P2T) with multi-scale pooling are used as multimodal encoders to extract multi-scale features from the two modalities. The multimodal attention fusion module combines spatial attention, channel attention, and self-attention operations to mine the complementary information between the two modalities, and uses the same feedforward block to explore modal consistency. By gradually fusing adjacent scale features from high to low, the diversity and complementarity of features between different scales can be fully utilized, so that the final fused features contain both semantic and global context information in high-level features and detail information such as edges and textures in low-level features. Therefore, the salient map finally generated can ensure the integrity of the salient target and enhance the edge details of the target. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is an overall model framework diagram of the RGB-D salient object detection method of the present invention with multimodal attention perception and adjacent scale modeling;

[0060] Figure 2It is a system structure diagram of the multimodal attention fusion module in step 2 of the RGB-D salient object detection method of multimodal attention perception and adjacent scale modeling of the present invention;

[0061] Figure 3 It is a system structure diagram of the adjacent scale modeling module in step 3 of the RGB-D salient object detection method of multimodal attention perception and adjacent scale modeling of the present invention;

[0062] Figure 4 This is a detection result diagram of the data set obtained in step 3 of the RGB-D salient target detection method of multimodal attention perception and adjacent scale modeling of the present invention. DETAILED DESCRIPTION

[0063] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] Example 1

[0065] The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling of the present invention is specifically implemented in the following steps:

[0066] Step 1, data preprocessing;

[0067] In step 1, five most representative datasets are used, including NLPR, NJUD, STERE, SIP, and DUT-RGBD. The input size of RGB and depth maps is adjusted to 384×384, and multiple data augmentation techniques are used to avoid overfitting, including random flipping, rotation, and cropping.

[0068] In step 1, the P2T backbone is pre-trained on ImageNet, and the remaining parameters of the model are initialized according to PyTorch. The model is trained using the Adam optimizer with a batch size of 2 and an initial learning rate of 5e-5. The learning rate is reduced by a factor of 10 every 100 epochs. The overall model framework of the present invention is as follows: Figure 1 As shown;

[0069] Step 2: Construct a multimodal attention fusion module. The architecture of this module is as follows: Figure 2 As shown;

[0070] Step 3: construct an adjacent scale modeling module. The architecture of this module is as follows: Figure 3 shown.

[0071] Example 2

[0072] The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling of the present invention, wherein step 2 is specifically implemented according to the following steps:

[0073] Step 2.1: Use spatial attention operation to mine complementary information clues from RGB features and depth features, and pass complementary information to each other. At the same time, apply spatial attention operation to itself to improve feature expression ability and reduce computational complexity. Then use channel attention operation to screen important channels.

[0074] Step 2.1 is implemented as follows:

[0075] Step 2.1.1, for a given feature and Perform the spatial attention operation as shown below:

[0076]

[0077] SA(X i )=σ(Conv 7×7 (gmp c (X i ))) (2)

[0078] In the formula, represents the RGB feature map, represents the deep feature map, SA(·) is the spatial attention operation, X i is the input feature map (i.e. or ), σ(·) is the sigmoid function, gmp c (·) is the global maximum pooling operation along the channel dimension, Conv n×n (·) denotes a convolutional layer with a kernel size of n×n;

[0079] Step 2.1.2, for the generated Respectively and The combination transfers the information-rich RGB / depth clues into RGB / depth features and reduces the computational complexity, as shown in the following formula:

[0080]

[0081] In the formula, represents element-wise multiplication, and They represent the RGB features and depth features enhanced by the spatial attention operation respectively;

[0082] Step 2.1.3, apply channel attention to highlight important channels for further optimization, as shown in the following formula:

[0083]

[0084] CA(xs )=σ(Conv 1×1 (Conv 1×1 (gmp s (X s )))) (6)

[0085] Among them, CA(·) represents the channel attention operation, gmp s (·) represents the global maximum pooling operation along the spatial dimension, X rs and X ds They represent the RGB features and depth features after enhanced complementarity, X s Refers to X rs or X ds .

[0086] Step 2.2, multiply the two modal features to obtain a shared attention matrix and pass it to the shared attention operation of the two branches to enhance the multimodal consistency;

[0087] Step 2.2 is implemented as follows:

[0088] Step 2.2.1, perform layer normalization and linear projection operations, as shown in formula (7):

[0089]

[0090] Where LN(·) represents the layer normalization operation, ψ(·) represents the linear projection operation, Q, V r , K and V d is the shared attention variable, and then matrix multiplication is performed between Q and K to obtain the shared attention matrix M for the RGB modality branch s ;

[0091] Step 2.2.2, shared attention matrix M for the RGB modality branch s Perform a transposition operation to obtain the attention matrix of the deep modality As shown in the following formula (8):

[0092]

[0093] Where D represents the length of the feature dimension, N represents the number of heads in the multi-head operation, and K T is the transpose of the shared attention variable K;

[0094] Step 2.2.3, obtain the shared attention matrix M s After that, the remaining attention operations of the two branches are shown in formula (9):

[0095]

[0096] Among them, δ(·) is the Softmax activation function, and Respectively represent the results of each branch after the shared attention operation, V r and V d For shared variables, and Represent the RGB features and depth features after spatial and channel attention enhancement, respectively.

[0097] Step 2.3, use the inverse residual block feed-forward network to combine the two branch information to make the multimodal information consistent;

[0098] Step 2.3 is implemented as follows:

[0099] Step 2.3.1, in the feedforward network, first connect the two modal features along the channel dimension and fuse them using IRB with an expansion ratio of 2, as shown in the following formula:

[0100]

[0101] fuse′=IRB(fuse)+fuse (11)

[0102] Among them, Cat(·) is the cascade operation, fuse represents the features initially fused through the cascade operation, and fuse′ represents the enhanced fused features;

[0103] In step 2.3.2, a 3×3 convolutional layer is used to halve the number of feature channels, as shown in formula (12):

[0104] F i =Conv 3×3 (fuse′) (12)

[0105] Step 3 is implemented as follows:

[0106] In step 3.1, the low-resolution features are first upsampled by bilinear interpolation, and then the two features of adjacent scales are connected. Since the number of feature channels is doubled after the connection, a 3×3 convolution is applied to halve the number of feature channels, as shown in formula (13):

[0107]

[0108] Among them, F i represents the high-resolution features of the current layer, F i+1 represents the low-resolution features of the previous layer, Bi(·) represents bilinear interpolation, represents the preliminary fusion features;

[0109] In step 3.2, a G-ECA and IRB submodule is used to explore the interdependence between features at different scales, as shown in formula (14):

[0110]

[0111] Step 3.3, use multi-head self-attention operation to enhance the multi-scale and multi-modal information in the fusion features, as shown in the following formula:

[0112]

[0113] in, is the enhanced fusion feature;

[0114] Step 3.4, to prevent loss of F i The important information in is converted into With F i Multiply, as shown in formula (18):

[0115]

[0116] Among them, F i ′ is the final output of the adjacent scale modeling module. Its detection results are as follows Figure 4 shown.

[0117] Example 3

[0118] The experimental results of the RGB-D salient object detection method using multimodal attention perception and adjacent scale modeling are shown in Table 1 below. The results show that the network model trained by the method proposed in the present invention has good performance on all five challenging datasets in terms of four most representative evaluation indicators (i.e., S-measure (S α ),F-measure(F β ),E-measure(E ξ )and MAE(M)) are better than the other 15 methods.

[0119] Table 1. Comparison of the results of the method of the present invention and the traditional method, where the bold ones are the best results

[0120]

[0121]

[0122]

[0123] The RGB-D salient target detection method of multimodal attention perception and adjacent scale modeling of the present invention adopts two pyramid pool transformers (P2T) with multi-scale pooling as multimodal encoders to extract multi-scale features from two modalities. Secondly, the present invention proposes a new multimodal attention fusion module, which combines spatial attention, channel attention, and self-attention operations to mine the complementary information between the two modalities, and uses the same feedforward block to explore modal consistency. In addition, the present invention designs a new adjacent scale modeling module to fuse multi-scale features. By gradually fusing adjacent scale features from high to bottom, the diversity and complementarity of features between different scales can be fully utilized, so that the final fused features contain both semantic and global context information in high-level features and detail information such as edges and textures in low-level features. Therefore, the salient map finally generated can not only ensure the integrity of the salient target, but also enhance the edge details of the target.

Claims

1. An RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling, characterized in that: Follow the steps below to implement it: Step 1, data preprocessing; Step 2: construct a multimodal attention fusion module; Step 3: Construct adjacent scale modeling module.

2. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 1, characterized in that: The data in step 1 include NLPR, NJUD, STERE, SIP and DUT-RGBD. The input sizes of RGB and depth maps are adjusted to 384×384, and multiple data enhancement techniques are used to avoid overfitting.

3. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 1, characterized in that: In step 1, the P2T backbone is pre-trained on ImageNet, the remaining parameters of the model are initialized according to PyTorch, and the model is trained using the Adam optimizer with a batch size of 2 and an initial learning rate of 5e-5, and the learning rate is reduced by a factor of 10 every 100 epochs.

4. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 1, characterized in that: The step 2 is specifically implemented according to the following steps: Step 2.1: Use spatial attention operation to mine complementary information clues from RGB features and depth features, and pass complementary information to each other. At the same time, apply spatial attention operation to itself to improve feature expression ability and reduce computational complexity. Then use channel attention operation to screen important channels. Step 2.2, multiply the two modal features to obtain a shared attention matrix and pass it to the shared attention operation of the two branches to enhance the multimodal consistency; In step 2.3, the inverse residual block feed-forward network is used to combine the information of the two branches to make the multimodal information consistent.

5. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 4, characterized in that: The step 2.1 is specifically implemented according to the following steps: Step 2.1.1, for a given feature and Perform the spatial attention operation as shown below: IN(X i )=σ(Conv 7×7 (gmp c (X i ))) (2) In the formula, represents the RGB feature map, represents the deep feature map, SA(·) is the spatial attention operation, X i is the input feature map, σ(·) is the sigmoid function, gmp c (·) is the global maximum pooling operation along the channel dimension, Conv n×n (·) denotes a convolutional layer with a kernel size of n×n; Step 2.1.2, for the generated Respectively and The combination transfers the information-rich RGB / depth clues into RGB / depth features and reduces the computational complexity, as shown in the following formula: In the formula, represents element-wise multiplication, and They represent the RGB features and depth features enhanced by the spatial attention operation respectively; Step 2.1.3, apply channel attention to highlight important channels for further optimization, as shown in the following formula: CA(X s )=σ(Conv 1×1 (Conv 1×1 (gmp s (X s )))) (6) Among them, CA(·) represents the channel attention operation, gmp s (·) represents the global maximum pooling operation along the spatial dimension, X rs and X ds They represent the RGB features and depth features after enhanced complementarity, X s Refers to X rs or X ds .

6. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 4, characterized in that: The step 2.2 is specifically implemented according to the following steps: Step 2.2.1, perform layer normalization and linear projection operations, as shown in formula (7): Where LN(·) represents the layer normalization operation, ψ(·) represents the linear projection operation, Q, V r , K and V d is the shared attention variable, and then matrix multiplication is performed between Q and K to obtain the shared attention matrix M for the RGB modality branch s ; Step 2.2.2, shared attention matrix M for the RGB modality branch s Perform a transposition operation to obtain the attention matrix of the deep modality As shown in the following formula (8): Where D represents the length of the feature dimension, N represents the number of heads in the multi-head operation, and K T is the transpose of the shared attention variable K; Step 2.2.3, obtain the shared attention matrix M s After that, the remaining attention operations of the two branches are shown in formula (9): Among them, 6(·) is the Softmax activation function, and Respectively represent the results of each branch after the shared attention operation, V r and V d For shared variables, and Represent the RGB features and depth features after spatial and channel attention enhancement, respectively.

7. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 4, characterized in that: The step 2.3 is specifically implemented according to the following steps: Step 2.3.1, in the feedforward network, first connect the two modal features along the channel dimension and fuse them using IRB with an expansion ratio of 2, as shown in the following formula: fuse′=IRB(fuse)+fuse (11) Among them, Cat(·) is the cascade operation, fuse represents the features initially fused through the cascade operation, and fuse′ represents the enhanced fused features; In step 2.3.2, a 3×3 convolutional layer is used to halve the number of feature channels, as shown in formula (12): F i =Conv 3×3 (fuse′) (12)。 8. The RGB-D salient object detection method based on multimodal attention perception and adjacent scale modeling according to claim 1, characterized in that: The step 3 is specifically implemented according to the following steps: In step 3.1, the low-resolution features are first upsampled by bilinear interpolation, and then the two features of adjacent scales are concatenated and a 3×3 convolution is applied to halve the number of feature channels, as shown in formula (13): Among them, F i represents the high-resolution features of the current layer, F i+1 represents the low-resolution features of the previous layer, Bi(·) represents bilinear interpolation, represents the preliminary fusion features; In step 3.2, a G-ECA and IRB submodule is used to explore the interdependence between features at different scales, as shown in formula (14): Step 3.3, use multi-head self-attention operation to enhance the multi-scale and multi-modal information in the fusion features, as shown in the following formula: in, is the enhanced fusion feature; Step 3.4, to prevent loss of F i The important information in is converted into With F i Multiply, as shown in formula (18): Among them, F′ i It is the final output of the adjacent scale modeling module.

Citation Information

Patent Citations

  • RGB-D saliency target detection method based on boundary deformable convolution guidance

    CN115830420A

  • Cross-modal feature pyramid attention network structure and saliency object detection method

    CN117392502A

  • Multi-modal saliency target detection method based on fine-grained decision-making mechanism

    CN117765236A

  • RGB-D saliency target detection method based on layered cross-modal attention and cascade aggregation decoding

    CN118262093A

Cited By

  • Road segmentation method based on multi-modal feature adaptive progressive fusion

    CN119399478A