RGB-D underwater saliency target detection method based on semantic guidance fusion
Through deep learning technology, combined with lightweight backbone network and semantic perception modal fusion, it solves the problem of large parameters and computational complexity of underwater salient target detection models, and achieves efficient underwater salient target detection on mobile platforms. , significantly improving detection accuracy.
Patent Information
- Application Number
- CN202410673247.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing underwater salient target detection models have large parameter quantities and computational complexity, making them difficult to deploy efficiently on mobile platforms. In particular, the detection results are poor in underwater scenes with low brightness, multiple salient targets, and complex backgrounds.
A lightweight RGB-D underwater salient target detection method based on deep learning is adopted, a lightweight backbone network is used to extract modal features, and advanced feature information is obtained through the semantic perception module, combined with a multi-scale modal fusion module to perform two-modal information interaction and fusion, reducing the amount of parameters and improving computational efficiency.
It achieves the acquisition of different modal features and effective fusion with lower computational complexity and fewer parameters, significantly improving the accuracy of underwater salient target detection and the generalization ability of the model.
Smart Images

Figure CN118570623A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision and multimodal image processing, and specifically relates to a lightweight RGB-D underwater salient target detection method based on deep learning technology. Background Art
[0002] The underwater salient object detection (USOD) task is an important branch of the salient object detection (SOD) task. Its core purpose is to imitate the human visual attention mechanism to identify and highlight the most eye-catching objects in underwater scenes. The development history of USOD is relatively short. Early underwater detection methods mainly rely on traditional hand-crafted feature-based techniques, which identify salient objects by analyzing basic visual features such as color and texture of images. With the emergence of convolutional neural networks (CNNs) and their remarkable ability in feature extraction, many researchers have begun to apply CNNs to salient object detection. In traditional SOD tasks, RGB images are mainly processed. However, relying solely on RGB images is often unsatisfactory when dealing with challenging scenes with low brightness, multiple salient objects, and complex backgrounds. At present, with the rapid development and widespread popularity of depth sensors, depth maps have begun to be introduced in the USOD field. The spatial information of depth maps can help improve the accuracy of detection and positioning of RGB images in complex underwater scenes. However, with the increase in the number of input image types, the parameters and computational complexity of the model have also increased dramatically. In the specific environment of underwater, the deployment of models on mobile platforms has become particularly urgent. Therefore, it is particularly important to develop a lightweight and efficient multimodal salient object detection technology for the USOD task. Summary of the invention
[0003] Technical problem to be solved: In view of the problem that the above-mentioned underwater salient target detection model has a large number of parameters and computational complexity, the present invention provides an RGB-D underwater salient target detection method based on semantically guided fusion.
[0004] This paper proposes a lightweight RGB-D underwater salient target detection model based on deep learning. Specifically, a lightweight backbone is first used as an encoder to extract modal features of 5 levels respectively, and then a semantic perception (SP) module is used to obtain the semantic information of high-level features. In order to use semantic information to guide high-level modal fusion, we propose a multi-scale modal fusion (MMF) module for two-modal fusion, extracting scale information of different modalities and performing modal interaction. This module aims to fully fuse information between different modalities and minimize the number of parameters. Finally, in the decoding process, we combine the fused features of different levels by absorbing shallow features with deep features and generate the final saliency prediction map.
[0005] A semantically guided fusion-based RGB-D underwater salient object detection method is proposed. The basic steps are:
[0006] Step 1: Obtain the RGB-D underwater salient object detection dataset for training and testing the task, and preprocess the image dataset;
[0007] Step 2: Build and use the training dataset to train a lightweight RGB-D underwater salient object detection model based on deep learning;
[0008] Step 3: Use the trained network model to receive the test data set for salient object detection;
[0009] Furthermore, the specific method of step 1 is as follows:
[0010] Download the public dataset USOD10K dataset. The original USOD10k dataset contains 10,255 sets of underwater images. The training set, validation set, and test set include 7,178, 2,051, and 1,026 sets of images, respectively. Each set of images contains 3 images, namely, RGB images, depth images, and saliency true images. The model is trained using the entire training set, and the validation set is used to test the trained model. In order to improve the generalization ability of the model, the image dataset is randomly cropped, horizontally inverted, and randomly rotated.
[0011] Furthermore, the specific method of step 2 is as follows:
[0012] The lightweight RGB-D underwater salient target detection model based on deep learning includes an encoder, a semantic perception module, a multi-scale modality fusion module and a decoder.
[0013] Step 2.1: The two-stream encoder extracts features;
[0014] The lightweight backbone MobileNet-v2 network is used as the encoder to extract RGB features and depth image features respectively. The RGB image and the depth image are input into the encoder, and each generates a 5-level feature map, which is expressed as and where i∈{1,2,3,4,5}.
[0015] Step 2.2: Semantic perception module;
[0016] The semantic perception (SP) module uses the RGB image features output by the 5th layer of the encoder and deep image features The semantically aware information is obtained through the attention mechanism, and then used as a guide to optimize the modal fusion of the encoder's 3rd, 4th, and 5th layer outputs.
[0017] The semantic perception module first concatenates the RGB features and the depth features to obtain cross-modal complementary information:
[0018]
[0019] Among them: Cat(,) represents channel concatenation, and then the average pooling and maximum pooling along the channel dimension are used to obtain the deep semantic weight, and the RGB semantic weight is obtained through the spatial attention mechanism. The two weights are added to the cross-modal complementary information through element-by-element multiplication to obtain the semantic perception information (SPW). The details are as follows:
[0020]
[0021] Where: Conv 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, UP() indicates an upsampling operation, and CP avg () and CP max () represent average channel pooling and maximum channel pooling respectively, SA() represents spatial attention, Sigmoid() represents the use of Sigmoid activation function, represents element-by-element addition, and ⊙ represents element-by-element multiplication.
[0022] Step 2.3: Multi-scale modality fusion module;
[0023] The multi-scale modal fusion module fuses the outputs of each level of the encoder respectively. The input of the multi-scale modal fusion module at the 3rd, 4th and 5th levels of the encoder includes the RGB features, depth features and semantic perception information SPW of the corresponding levels, while the input of the remaining levels does not have semantic perception information SPW. The input RGB features are respectively subjected to two 3×3 dilated convolution operations with the convolution kernel, and the filling rates are set to 1 and 3 respectively, while the depth features are also respectively subjected to two 3×3 dilated convolution operations with the convolution kernel, and the filling rates are 5 and 7 respectively. The outputs of the four branches are connected in series to obtain multi-scale cross-modal information MSF:
[0024]
[0025] Where: C 1 (), C 3 (), C 5 () and C 7 () represent the dilation rates of 1, 3, 5 and 7 respectively. Conv 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, and Cat(,) indicates channel concatenation. In order to preserve the unique information of the two modalities, the MSF is combined with the two modal features of the corresponding level. and Integrate and finally obtain the two-modal fusion features
[0026]
[0027] Among them: SPW represents semantic perception information, represents element-by-element addition, and ⊙ represents element-by-element multiplication.
[0028] Step 2.4: Decoder;
[0029] The two-modal features at different stages of the encoder Input to the decoder, which extracts the features from the 5th layer At the beginning, the features are upsampled and then connected in series with the features of the previous layer to interact hierarchically and restore the resolution. The results are then interacted with the features of the next layer until they are connected with the bimodal features of the first layer of the encoder. The interaction is completed, and the predicted saliency map P is finally obtained. vd , the formula is as follows:
[0030]
[0031] Among them: CBG includes 3×3 convolution operation, batch normalization operation and GELU activation function.
[0032] Step 2.5: Train a lightweight RGB-D underwater salient object detection model based on deep learning using the dataset obtained in step 1;
[0033] The training set data obtained in step 1 is input into the constructed lightweight RGB-D underwater salient target detection model based on deep learning, and the predicted salient map P vd The mixed loss function is calculated with the truth graph G, optimized by the Adam algorithm, and the learning rate is adjusted using the cosine annealing strategy. A total of 200 rounds of training are performed. The mixed loss function includes the binary cross entropy (BCE) loss function, the IoU loss function, and the SSIM loss function. The calculation formula is as follows:
[0034]
[0035] Among them, x and y represent the salient object and the true value respectively, μ x and μ y are the average values of images x and y, respectively. and are the variances of images x and y, σ xy is the covariance of images x and y, c 1 and c 2 is a small constant. The final loss function is defined as:
[0036] L all=L BCE (P vd ,G)+L IoU (P vd ,G)+L SSIM (P vd ,G) (7)
[0037] Furthermore, the specific method of step 3 is as follows:
[0038] First, load the network model weights trained in step 2.5 and update the parameters in the lightweight RGB-D underwater salient object detection model. Secondly, pass the validation set obtained in step 1 as input data into the network model to obtain the final saliency prediction map P for detection. vd The significance prediction map is evaluated by MAE, E-measure, F-measure and S-measure evaluation indicators.
[0039] The beneficial effects of the present invention are as follows:
[0040] The present invention proposes a lightweight RGB-D underwater salient target detection model based on deep learning. Specifically, the network model acquires and fuses features of different modalities with lower computational complexity and fewer parameters, and the proposed semantic perception module guides the interaction of high-level bimodal features. After training, the lightweight network model proposed by the present invention has high accuracy in salient target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of the network model structure of the present invention;
[0042] Figure 2 This is a structural diagram of the semantic perception module of the present invention;
[0043] Figure 3 This is a structural diagram of the multi-scale modality fusion module of the present invention;
[0044] Figure 4 Result comparison diagram of the embodiment of the present invention. DETAILED DESCRIPTION
[0045] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0046] Reference Figure 1 , a semantically guided fusion-based RGB-D underwater salient object detection method, the basic steps are:
[0047] Step 1: Dataset acquisition;
[0048] Get the image dataset required for network training in step 2.
[0049] Download the public dataset USOD10K dataset. The original USOD10k dataset contains 10,255 sets of underwater images. The training set, validation set, and test set include 7,178, 2,051, and 1,026 sets of images, respectively. Each set of images contains 3 images, namely, RGB images, depth images, and saliency true images. We use all the training sets to train the model, and use the validation set with a large number of images to test the trained model. In order to improve the generalization ability of the model, we perform preprocessing operations such as random cropping, horizontal inversion, and random rotation on the image dataset.
[0050] Step 2: Build and use the training dataset to train a lightweight RGB-D underwater salient object detection model based on deep learning;
[0051] The lightweight RGB-D underwater salient target detection model based on deep learning includes an encoder, a semantic perception module, a multi-scale modality fusion module and a decoder.
[0052] Step 2.1: The two-stream encoder extracts features;
[0053] In order to reduce the number of model parameters, this paper uses a lightweight backbone MobileNet-v2 network as an encoder to extract RGB features and depth image features respectively. The RGB image and the depth image are input into the encoder, and each generates a 5-level feature map, which is expressed as and where i∈{1,2,3,4,5}.
[0054] Step 2.2: Semantic perception module;
[0055] High-level features have good semantic information. The semantic perception (SP) module uses the RGB image features output by the 5th layer of the encoder. and deep image features The semantic perception information is obtained through the attention mechanism, and then the semantic perception information is used as a guide to optimize the modal fusion of the encoder's 3rd, 4th and 5th layer outputs. Since the underlying noise contains details and edge information, we do not provide guidance for it.
[0056] like Figure 2 As shown in Figure 1, the semantic perception module first concatenates the RGB features with the depth features to obtain cross-modal complementary information:
[0057]
[0058] Among them: Cat(,) represents channel concatenation, and then the average pooling and maximum pooling along the channel dimension are used to obtain the deep semantic weight, and the RGB semantic weight is obtained through the spatial attention mechanism. The two weights are added to the cross-modal complementary information through element-by-element multiplication to obtain the semantic perception information (SPW). The details are as follows:
[0059]
[0060] Where: Conv 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, UP() indicates an upsampling operation, and CP avg () and CP max () represent average channel pooling and maximum channel pooling respectively, SA() represents spatial attention, Sigmoid() represents the use of Sigmoid activation function, represents element-by-element addition, and ⊙ represents element-by-element multiplication.
[0061] Step 2.3: Multi-scale modality fusion module;
[0062] The multi-scale modal fusion module fuses the outputs of each level of the encoder respectively. The input of the multi-scale modal fusion module at the 3rd, 4th and 5th levels of the encoder includes the RGB features, depth features and semantic perception information SPW of the corresponding levels, while the input of the remaining levels does not have semantic perception information SPW. The input RGB features are respectively subjected to two 3×3 dilated convolution operations with the convolution kernel, and the filling rates are set to 1 and 3 respectively, while the depth features are also respectively subjected to two 3×3 dilated convolution operations with the convolution kernel, and the filling rates are 5 and 7 respectively. The outputs of the four branches are connected in series to obtain multi-scale cross-modal information MSF:
[0063]
[0064] Where: C 1 (), C 3 (), C 5 () and C 7 () represent the dilation rates of 1, 3, 5 and 7 respectively. Conv 3×3 () represents the convolution operation with a convolution kernel size of 3×3, and Cat(,) represents channel concatenation. In order to preserve the unique information of the two modalities, we combine the MSF with the two-modal features of the corresponding level. and Integrate and finally obtain the two-modal fusion features
[0065]
[0066] Among them: SPW represents semantic perception information, represents element-by-element addition, and ⊙ represents element-by-element multiplication. Figure 3 This is a structural diagram of the multi-scale modality fusion module of the present invention;
[0067] Step 2.4: Decoder;
[0068] The two-modal features at different stages of the encoder Input to the decoder, which extracts the features from the 5th layer At the beginning, the features are upsampled and then connected in series with the features of the previous layer to interact hierarchically and restore the resolution. The results are then interacted with the features of the next layer until they are connected with the bimodal features of the first layer of the encoder. The interaction is completed, and the predicted saliency map P is finally obtained. vd , the formula is as follows:
[0069]
[0070] Among them: CBG includes 3×3 convolution operation, batch normalization operation and GELU activation function.
[0071] Step 2.5: Train a lightweight RGB-D underwater salient object detection model based on deep learning using the dataset obtained in step 1;
[0072] The training set data obtained in step 1 is input into the constructed lightweight RGB-D underwater salient target detection model based on deep learning, and the predicted salient map P vd The mixed loss function is calculated with the truth graph G, optimized by the Adam algorithm, and the learning rate is adjusted using the cosine annealing strategy. A total of 200 rounds of training are performed. The mixed loss function includes the binary cross entropy (BCE) loss function, the IoU loss function, and the SSIM loss function. The calculation formula is as follows:
[0073]
[0074] Among them, x and y represent the salient object and the true value respectively, μ x and μ y are the average values of images x and y, respectively. and are the variances of images x and y, σ xy is the covariance of images x and y, c 1 and c 2 is a small constant. The final loss function is defined as:
[0075] L all =L BCE (P vd ,G)+L IoU (P vd ,G)+LSSIM (P vd ,G) (7)
[0076] Step 3: Use the trained network model to receive the test data set for salient object detection;
[0077] First, load the network model weights trained in step 2.5 and update the parameters in the lightweight RGB-D underwater salient object detection model. Secondly, pass the validation set obtained in step 1 as input data into the network model to obtain the final saliency prediction map P for detection. vd The significance prediction map is evaluated by MAE, E-measure, F-measure and S-measure evaluation indicators.
[0078] Figure 4 The effect diagram of the present invention is shown. The saliency prediction diagram is evaluated by MAE, E-measure, F-measure and S-measure evaluation indicators. Table 1 shows the quantitative comparison of the saliency target detection algorithm proposed in the present invention with the current mainstream algorithm. The algorithm proposed in this patent is significantly better than the existing algorithms in terms of MAE, E-measure, F-measure and S-measure evaluation indicators.
[0079] Table 1
[0080] method MAE E-measure F-measure S-measure CIRNet 0.0347 0.9213 0.8621 0.9044 BBSNet 0.0272 0.9382 0.8860 0.9155 HAINet 0.0302 0.9401 0.8852 0.9091 Ours 0.0255 0.9509 0.8966 0.9119
[0081] The above contents are further detailed descriptions of the present invention in combination with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, they can also make several substitutions or modifications to these described embodiments without departing from the concept of the present invention, and these substitutions or modifications should be regarded as belonging to the protection scope of the present invention.
[0082] Parts of the present invention that are not described in detail belong to the well-known technologies of those skilled in the art.
Claims
1. A method for underwater salient object detection based on RGB-D semantic guided fusion, characterized in that: The basic steps are: Step 1: Obtain the RGB-D underwater salient object detection dataset for training and testing the task, and preprocess the image dataset; Step 2: Build and use the training dataset to train a lightweight RGB-D underwater salient object detection model based on deep learning; The lightweight RGB-D underwater salient target detection model based on deep learning includes an encoder, a semantic perception module, a multi-scale modality fusion module and a decoder; Step 3: Use the trained network model to receive the test dataset for salient object detection.
2. The RGB-D underwater salient target detection method based on semantic guidance fusion according to claim 1 is characterized in that: Step 1: Download the public dataset USOD10K dataset. The original USOD10k dataset contains 10255 sets of underwater pictures. The training set, validation set and test set include 7178, 2051 and 1026 sets of pictures respectively. Each set of pictures contains 3 images, namely RGB image, depth image and saliency true image. The model is trained using all the training sets, and the validation set is used to test the trained model. In order to improve the generalization ability of the model, the image dataset is randomly cropped, horizontally inverted and randomly rotated.
3. The RGB-D underwater salient target detection method based on semantic guidance fusion according to claim 1 or 2, characterized in that: Step 2: Step 2.1: The two-stream encoder extracts features; The lightweight backbone MobileNet-v2 network is used as the encoder to extract RGB features and depth image features respectively; the RGB image and the depth image are input into the encoder to generate 5 levels of feature maps respectively, which are expressed as and where i∈{1,2,3,4,5}; Step 2.2: Semantic perception module; The semantic perception module uses the RGB image features output by the 5th layer of the encoder and deep image features The semantic perception information is obtained through the attention mechanism, and then the semantic perception information is used as a guide to optimize the modal fusion of the encoder layer 3, 4 and 5 outputs; The semantic perception module first concatenates the RGB features and the depth features to obtain cross-modal complementary information: Among them: Cat(,) represents channel concatenation, and then the average pooling and maximum pooling along the channel dimension are used to obtain the deep semantic weight, and the RGB semantic weight is obtained through the spatial attention mechanism. The two weights are added to the cross-modal complementary information through element-by-element multiplication to obtain the semantic perception information (SPW); the details are as follows: Where: Conv 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, UP() indicates an upsampling operation, and CP avg () and CP max () represent average channel pooling and maximum channel pooling respectively, SA() represents spatial attention, Sigmoid() represents the use of Sigmoid activation function, represents element-by-element addition, ⊙ represents element-by-element multiplication; Step 2.3: Multi-scale modality fusion module; The multi-scale modal fusion module fuses the outputs of each level of the encoder respectively. The input of the multi-scale modal fusion module at the 3rd, 4th and 5th levels of the encoder includes the RGB features, depth features and semantic perception information SPW of the corresponding levels, while the input of the remaining levels does not have the semantic perception information SPW; the input RGB features are respectively subjected to two 3×3 dilated convolution operations with the convolution kernels, and the filling rates are set to 1 and 3 respectively, while the depth features are also respectively subjected to two 3×3 dilated convolution operations with the convolution kernels, and the filling rates are 5 and 7 respectively; the outputs of the four branches are connected in series to obtain multi-scale cross-modal information MSF: Among them: C1(), C3(), C5() and C7() represent the dilation rates of 1, 3, 5 and 7 respectively. 3×3 () represents the convolution operation with a convolution kernel size of 3×3, and Cat(,) represents channel concatenation; in order to retain the unique information of the two modalities, the MSF and the two modal features of the corresponding level are combined. and Integrate and finally obtain the two-modal fusion features Among them: SPW represents semantic perception information, represents element-by-element addition, ⊙ represents element-by-element multiplication; Step 2.4: Decoder; The two-modal features at different stages of the encoder Input to the decoder, which extracts the features from the 5th layer At the beginning, the features are upsampled and then connected in series with the features of the previous layer to interact hierarchically and restore the resolution. The results are then interacted with the features of the next layer until they are connected with the bimodal features of the first layer of the encoder. The interaction is completed, and the predicted saliency map P is finally obtained. vd , the formula is as follows: Among them: CBG includes 3×3 convolution operation, batch normalization operation and GELU activation function; Step 2.5: Train a lightweight RGB-D underwater salient object detection model based on deep learning using the dataset obtained in step 1; The training set data obtained in step 1 is input into the constructed lightweight RGB-D underwater salient target detection model based on deep learning, and the predicted salient map P vd The mixed loss function is calculated with the truth graph G, optimized by the Adam algorithm, and the learning rate is adjusted using the cosine annealing strategy. A total of 200 rounds of training are performed; the mixed loss function includes the binary cross entropy BCE loss function, the IoU loss function, and the SSIM loss function. The calculation formula is as follows: Among them, x and y represent the salient object and the true value respectively, μ x and μ y are the average values of images x and y, respectively. and are the variances of images x and y, σ xy is the covariance of images x and y, c1 and c2 are small constants; the final loss function is defined as: L all =L BCE (P vd ,G)+L IoU (P vd ,G)+L SSIM (P vd ,G) (7)。 4. The RGB-D underwater salient target detection method based on semantic guidance fusion according to claim 3 is characterized in that: Step 3: First, load the network model weights trained in step 2.5 and update the parameters in the lightweight RGB-D underwater salient object detection model; secondly, pass the validation set obtained in step 1 as input data into the network model to obtain the final saliency prediction map P for detection. vd ; The significance prediction map is evaluated by MAE, E-measure, F-measure and S-measure evaluation indicators.
Citation Information
Patent Citations
Saliency target detection method based on residual fusion
CN112348870A
Significant target detection method based on weight pruning multi-scale network
CN116070679A
RGB-D salient object detection method
GB202403824D0
Semantically-aware image-based visual localization
US20200357143A1
Cited By
RGB-D-oriented fusion model and target detection method thereof
CN119963807A
RGB-D oriented fusion model and target detection method thereof
CN119963807B
Surface defect detection method based on lightweight neural network
CN119991662A
Lightweight multi-modal foundation cloud picture recognition and prediction method
CN119992190A
Flat material surface quality detection method and device based on lightweight significance detection model and medium
CN120635076A
