Method and device for multi-source remote sensing image semantic segmentation based on noise reduction diffusion probability model
By employing a semantic segmentation method for multi-source remote sensing images based on a noise reduction diffusion probability model, and utilizing the Mamba feature extraction network and the DDPM model to perform feature fusion and noise reduction on optical images and synthetic aperture radar images, the data integration problem in multi-source remote sensing image detection is solved, and high-precision semantic segmentation results are achieved.
Patent Information
- Application Number
- CN202410727672.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing remote sensing image detection methods mostly process a single data source, which cannot meet actual needs. Furthermore, passive sensors are easily affected by weather, and the integration of multi-source data is difficult, resulting in unsatisfactory detection results.
A semantic segmentation method for multi-source remote sensing images based on a noise reduction diffusion probability model is adopted. The Mamba feature extraction network and DDPM model are used to extract and fuse features from optical images and synthetic aperture radar images, and a noise decoder is used for denoising to improve the segmentation accuracy.
It achieves detailed fusion and high-precision semantic segmentation of multi-source remote sensing image information, improves segmentation accuracy and the precision of detailed information, and overcomes the challenge of multi-source data integration.
Smart Images

Figure CN118587439B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and apparatus for multi-source remote sensing image fusion and semantic segmentation based on a noise reduction diffusion probability model, belonging to the field of multi-source remote sensing image fusion and segmentation technology. Background Technology
[0002] Over the past few decades, human activities have posed serious threats to the environment, such as over-logging, over-excavation, illegal hunting, and plastic pollution. This makes monitoring the Earth to prevent environmental damage essential. With the rapid development of remote sensing technology, various spaceborne and airborne remote sensing sensors have been developed to provide useful information about the Earth, such as forest cover, glacial conditions, ocean surface, and urban development. Remote sensing technology, due to its advantages of low cost, wide coverage, short data acquisition cycle, and large spatial scale, has made environmental monitoring using remote sensing images a viable solution. With improvements in spatial resolution and imaging quality, using optical images for detection and analysis is currently the mainstream method.
[0003] Existing methods for environmental detection using remote sensing images mostly process only a single remote sensing data source, which does not always meet practical needs. To overcome these difficulties and challenges, utilizing complementary features provided by different types of remote sensing images is a potential solution. By extracting common features from multi-modal remote sensing images and fusing them, downstream remote sensing image processing tasks, such as land cover classification and urban building detection, can be effectively improved. With the continuous development of remote sensing observation technology, different information from multiple perspectives can be used to represent the same scene. For example, optical images with spectral information can be fused with synthetic aperture radar (SAR) data that describes the target surface using radar backscattered electromagnetic waves, thereby improving the quality of remote sensing observations.
[0004] For optical remote sensing imagery, spatial resolution is often reduced to maintain acceptable bandwidth in order to provide multispectral information. Furthermore, this type of sensor is affected by weather conditions, providing useful information only during the day and in clear weather. Unlike optical sensors, SAR is an active sensor used to detect backscattered information from ground objects. Due to its unique imaging mechanism, SAR is almost unaffected by lighting and weather conditions, can operate under any conditions, and obtains high-resolution observation data. It is also sensitive to the geometric and physical characteristics of ground objects, typically providing sufficient texture and structural information. However, SAR mostly cannot collect color and spectral information. And because SAR images are obtained through wave reflection, speckle noise exists, which is a significant problem for reducing statistical inference. Considering all these advantages and disadvantages, exploring remote sensing data from different modes by leveraging the complementary strengths of each sensor is crucial for many environmental applications. In remote sensing image processing, using SAR data as complementary data to optical images can, to some extent, avoid weather interference, preserving the rich image information of optical images while possessing the inherent advantages of radar data. However, due to the heterogeneity of multi-source data, it is still difficult to directly integrate it into existing remote sensing detection methods, or it may not achieve the expected performance.
[0005] Existing methods still face many challenges, such as: 1. Acquiring and analyzing high-resolution images of all potentially problematic areas is extremely costly; 2. Passive remote sensing sensors (such as optical sensors) are easily affected by clouds, fog, and lighting conditions, impacting their detection results; 3. Most remote sensing images are too general, making the process of extracting useful information complex. Summary of the Invention
[0006] Purpose of the invention: In order to overcome the shortcomings of the existing technology, the present invention provides a semantic segmentation method for multi-source remote sensing images based on a noise reduction diffusion probability model, which comprehensively utilizes multi-source remote sensing image information to improve segmentation accuracy.
[0007] Technical solution: To achieve the above objectives, the technical solution adopted by this invention is as follows:
[0008] A semantic segmentation method for multi-source remote sensing images based on a noise reduction diffusion probability model includes the following steps:
[0009] Step 1: Acquire multi-source remote sensing images, including optical images, synthetic aperture radar (SAR) images, and semantic segmentation labels (masks) for training. Crop and standardize the multi-source remote sensing images to obtain original multi-source remote sensing images of the same size for easy subsequent processing.
[0010] Step 2: Divide the original multi-source remote sensing images into training and test sets according to the specified proportions. The training set includes the original optical images O train Original synthetic aperture radar image S train and the original semantic segmentation label M train The test set includes raw optical images O test And the original synthetic aperture radar image S test ;
[0011] Step 3: Construct a Mamba-based dual-branch backbone network, comprising two parallel Mamba feature extraction networks and one feature fusion network. The two Mamba feature extraction networks are denoted as Mamba Feature Extraction Network I and Mamba Feature Extraction Network II, respectively. The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The four stages of the Mamba feature extraction module include 2, 2, 15, and 2 cascaded VSS feature extraction modules and a downsampling module, respectively. The feature fusion network includes a four-stage multi-source feature fusion module and a multi-scale feature fusion module.
[0012] O train The input is fed into the Mamba feature extraction network I, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature feature1 is obtained. O_0 feature1 O_0 As input to the first-stage Mamba feature extraction module in Mamba feature extraction network I; i = 1, 2, 3, 4;
[0013] S train The input is fed into the Mamba feature extraction network II, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature 1 is obtained. S_0 feature1 S_0 As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network II;
[0014] feature1 O_i-1 The input is the i-th stage Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. O_i feature1 S_i-1 The input stage i is the Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. S_i ;
[0015] Out1 O_i and Out1 S_iThe inputs are fed into the i-stage multi-source feature fusion module for multi-source feature cross-extraction to obtain the cross-feature Out2. O_i and cross features Out2 S_i For Out1 O_i and Out2 O_i Perform residual connections to obtain multi-source features (Out). O_i For Out1 S_i and Out2 S_i Perform residual connections to obtain multi-source features (Out). S_i ;
[0016] For Out O_i Downsampling is performed to obtain the output feature1 of the i-stage Mamba feature extraction module. O_i , for Out S_i The output feature1 of the i-stage Mamba feature extraction module is obtained by downsampling. S_i ;
[0017] In the i-stage multi-source feature fusion module, Out O_i With Out S_i Adding them together yields the multi-source fusion feature Out. f_i ;
[0018] Out f_1 Out f_2 Out f_3 Out f_4 The input to the multi-scale feature fusion module is first standardized in size and then stitched together to obtain the multi-scale fused feature output. train ;
[0019] Step 4: Use the nearest neighbor algorithm to select M train Adjust the size to match Out train The same, and through feature embedding operations, M train The number of channels is adjusted to match the Out channel. train The same, resulting in label M. down ;
[0020] Step 5: Randomly sample from a uniform distribution in the interval [0, 0.999) to obtain a noise intensity weight t. Generate a vector of noise ∈ that conforms to a normal distribution based on the noise intensity weight t. The shape of the vector is similar to that of M. down same;
[0021] Step 6: Based on the DDPM noise addition algorithm, and combined with the noise intensity weight t, use noise ∈ to add noise to the label M. down Perform a noise-adding operation to obtain the noise-added label M. noise ;
[0022] Step 7: Outputtrain With M noise After concatenation, the data is input into a noise decoder, where it undergoes denoising using the DDPM denoising algorithm to obtain a predicted label M for the noise intensity weight t. hat ;
[0023] Step 8: Use bilinear interpolation to calculate M hat Adjust the size to match M train Consistent, calculate the loss value;
[0024] Step 9: Repeat steps 5 to 8 until the loss value converges, completing the training of the dual-branch backbone network;
[0025] Step 10: Place O test and S test The input is fed into a trained dual-branch backbone network, and the output is a multi-scale fused feature. test Generate noise ∈ that conforms to a normal distribution, and output Out test The concatenation of ∈ is input into the noise decoder, which performs stepwise denoising according to the DDPM denoising algorithm. After repeating the denoising operation T times, the predicted label is output.
[0026] Specifically, in the Mamba feature extraction network, the number of channels in the first-stage Mamba feature extraction module, the second-stage Mamba feature extraction module, the third-stage Mamba feature extraction module, and the fourth-stage Mamba feature extraction module are 128, 256, 512, and 1024, respectively.
[0027] Specifically, in the Mamba feature extraction module, the VSS feature extraction module includes a normalization layer, an SS2D module, and a feedforward neural network. The normalization layer performs layer normalization on the input image. The SS2D module includes a cross-scan module and an S6 module. The cross-scan module first expands the input image into four scan sequences Scan1, Scan2, Scan3, and Scan4 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. Then, Scan1, Scan2, Scan3, and Scan4 are concatenated into a four-channel vector and input into the S6 module. The Mamba discretized state-space equation in the S6 module is used to extract features to obtain the output features. The feedforward neural network includes an input layer, two intermediate hidden layers, and an output layer.
[0028] Specifically, the Mamba discretized state-space equation is expressed as:
[0029] h′(t)=Ah(t)+Bu(t)
[0030] y(t) = Ch(t) + Du(t)
[0031] in: Let h'(t) be the hidden input at time t, and h′(t) be the derivative of h(t). Let be the input stimulus at time t. The output response at time t; The weight matrix of the state-space equation is... is the weighting parameter; N is the dimension of the hidden input, and L is the length of the input stimulus.
[0032] Specifically, the multi-source feature fusion module includes two fusion sub-modules, referred to as fusion sub-module I and fusion sub-module II, respectively; each fusion sub-module includes a scanning module, a cross-stitching module, an S6 module, and a residual connection module.
[0033] Out1 O_i The input fusion submodule I is used by the scanning module to expand the input features into four scanning sequences Scan1 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. O Scan2 O Scan3 O Scan4 O ; will Out1 S_i The input fusion submodule II and the scanning module expand the input features into four scanning sequences Scan1 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. S Scan2 S Scan3 S Scan4 S ;
[0034] The cross-stitching module in fusion submodule I will use Scan1 O Scan2 O Scan3 S Scan4 S Concatenate them into a four-channel vector Scan O Scan O The input is fed into module S6 of the fusion submodule I. The Mamba discretized state-space equation in module S6 is used to extract features and obtain the output feature Out2. O_i ; For Out1 O_i and Out2 O_i Perform residual connections to obtain multi-source features (Out). O_i ;
[0035] The cross-stitching module in Fusion Submodule II will integrate Scan1 S Scan2S Scan3 O Scan4 O Concatenate them into a four-channel vector Scan S Scan S The input is fed into module S6 of the fusion submodule II, where the Mamba discretized state-space equations are used for feature extraction to obtain the output feature Out2. S_i ; For Out1 S_i and Out2 S_i Perform residual connections to obtain multi-source features (Out). S_i .
[0036] Specifically, Out f_1 Out f_2 Out f_3 Out f_4 The dimensions are respectively Where H and W are the height and width of the original source remote sensing image, respectively; Out f_1 Out f_2 Out f_3 Out f_4 After inputting the multi-scale feature fusion module, first unify the dimensions of the four input features to... Then splice them together along the channel direction to form a size of The features are then used to adjust the size using a 1×1 convolution kernel. That is, the multi-scale fusion feature Out is obtained. train .
[0037] Specifically, the noise decoder adopts a DETR structure, including a position encoder, a Transformer encoder, and a Transformer decoder. The multi-scale fusion module outputs multi-scale fused features. train With the added noise label M noise After splicing, feature1 is generated;
[0038] The position encoder is used to generate a position code pel, which is added to feature1 to obtain a two-dimensional index feature feature1 with position code information. pel feature1 pel The data is converted into one-dimensional indexed features (feature2). Feature2 is then input into the Transformer encoder to obtain encoded features (feature3). Feature3, along with the noise intensity weights t, is then input into the Transformer decoder to obtain the predicted label M for the noise intensity weights t. hat ;
[0039] Using bilinear interpolation, M hat Adjust the size to match M train Consistent, calculate the mean squared error loss value:
[0040]
[0041] Where: y j M represents the j-th original semantic segmentation label. train , M represents the j-th original semantic segmentation label. train Predicted label M hat , where n represents the number of samples.
[0042] A semantic segmentation device for multi-source remote sensing images based on a noise reduction and diffusion probability model includes a multi-source remote sensing image acquisition unit, a Mamba-based dual-branch backbone network, a noise reduction and diffusion probability model network, a training unit, and a testing unit.
[0043] The multi-source remote sensing image acquisition unit is used to acquire original optical images, original synthetic aperture radar images, and original semantic segmentation labels that are the same size and geometrically aligned.
[0044] The Mamba-based dual-branch backbone network comprises two parallel Mamba feature extraction networks and one feature fusion network. The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The two parallel Mamba feature extraction networks extract features from the original optical image and the original synthetic aperture radar image in stages, respectively. The feature fusion network includes a four-stage multi-source feature fusion module and a multi-scale feature fusion module. The multi-source feature fusion module fuses the extracted features from the original optical image and the original synthetic aperture radar image at each stage to obtain multi-source fused features for each stage. The multi-scale feature fusion module then concatenates the four stages of multi-source fused features into a single multi-scale fused feature.
[0045] The denoising diffusion probability model network includes a forward denoising module based on the DDPM denoising algorithm and a noise decoder based on the DDPM denoising algorithm. The forward denoising module adds noise to the original semantic segmentation label using noise based on a normal distribution, and then concatenates the multi-scale fused features with the denoised original semantic segmentation label as the output of the forward denoising module. The noise decoder performs denoising on the input features based on the same noise intensity weights and predicts the semantic segmentation label of the input features.
[0046] The training unit uses a loss function to supervise the training of the Mamba-based dual-branch backbone network and the noise reduction diffusion probability model network.
[0047] The test unit uses a trained Mamba-based dual-branch backbone network and a noise reduction diffusion probability model network to predict semantic segmentation labels for pairs of raw optical images and raw synthetic aperture radar images.
[0048] Specifically, in the Mamba-based dual-branch backbone network:
[0049] The original optical image O train The input is fed into the Mamba feature extraction network I, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature feature1 is obtained. O_0 feature1 O_0 As input to the first-stage Mamba feature extraction module in Mamba feature extraction network I; i = 1, 2, 3, 4;
[0050] The original synthetic aperture radar image S train The input is fed into the Mamba feature extraction network II, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature 1 is obtained. S_0 feature1 S_0 As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network II;
[0051] feature1 O i-1 The input is the i-th stage Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. O_i feature1 S_i-1 The input stage i is the Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. S_i ;
[0052] Out1 O_i and Out1 S_i The inputs are fed into the i-stage multi-source feature fusion module for multi-source feature cross-extraction to obtain the cross-feature Out2. O_i and cross features Out2 S_i For Out1 O_i and Out2 O_i Perform residual connections to obtain multi-source features (Out). O_i For Out1 S_i and Out2 S_i Perform residual connections to obtain multi-source features (Out). S_i ;
[0053] For Out O_iDownsampling is performed to obtain the output feature1 of the i-stage Mamba feature extraction module. O_i , for Out S_i The output feature1 of the i-stage Mamba feature extraction module is obtained by downsampling. S_i ;
[0054] In the i-stage multi-source feature fusion module, Out O_i With Out S_i Adding them together yields the multi-source fusion feature Out. f_i ;
[0055] Out f_1 Out f_2 Out f_3 Out f_4 The input to the multi-scale feature fusion module is first standardized in size and then stitched together to obtain the multi-scale fused feature output. train .
[0056] Specifically, in the Mamba feature extraction module, the VSS feature extraction module includes a normalization layer, an SS2D module, and a feedforward neural network; the normalization layer performs layer normalization on the input image; the SS2D module includes a cross-scan module and an S6 module; the cross-scan module first expands the input image into four scan sequences Scan1, Scan2, Scan3, and Scan4 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left; then, Scan1, Scan2, Scan3, and Scan4 are concatenated into a four-channel vector and input into the S6 module, where the Mamba discretized state-space equation in the S6 module is used to extract features to obtain the output features; the feedforward neural network includes an input layer, two intermediate hidden layers, and an output layer.
[0057] Beneficial effects: The semantic segmentation method and apparatus for multi-source remote sensing images based on the denoising diffusion probability model provided by this invention establishes a joint segmentation model by introducing a feature extraction framework based on Mamba and the denoising diffusion probability model (DDPM) to perform semantic segmentation on multi-source remote sensing images. This results in more detailed information fusion, higher semantic segmentation accuracy, and more precise detail information for multi-source remote sensing images. Attached Figure Description
[0058] Figure 1 This is a schematic diagram of the frame structure of the device of the present invention;
[0059] Figure 2 This is a flowchart illustrating the implementation of the method of the present invention;
[0060] Figure 3 The original optical image and the original synthetic aperture radar image are paired, along with the original semantic segmentation labels;
[0061] Figure 4 The label prediction performance of the trained dual-branch backbone network and the noise-reduced diffusion probability model network is shown. Detailed Implementation
[0062] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0063] like Figure 1 The image shown is a semantic segmentation device for multi-source remote sensing images based on a noise reduction and diffusion probability model, which includes a multi-source remote sensing image acquisition unit, a Mamba-based dual-branch backbone network, a noise reduction and diffusion probability model network, a training unit, and a testing unit.
[0064] The multi-source remote sensing image acquisition unit is used to acquire original optical images, original synthetic aperture radar images, and original semantic segmentation labels that are the same size and geometrically aligned.
[0065] The Mamba-based dual-branch backbone network includes two parallel Mamba feature extraction networks and one feature fusion network. The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The two parallel Mamba feature extraction networks extract features from the original optical image and the original synthetic aperture radar image in stages, respectively. The feature fusion network includes a four-stage multi-source feature fusion module and a multi-scale feature fusion module. The multi-source feature fusion module fuses the extracted features from the original optical image and the original synthetic aperture radar image at each stage to obtain multi-source fused features at each stage. The multi-scale feature fusion module concatenates the multi-source fused features from the four stages into a single multi-scale fused feature.
[0066] The denoising diffusion probability model network includes a forward denoising module based on the DDPM denoising algorithm and a noise decoder based on the DDPM denoising algorithm. The forward denoising module adds noise to the original semantic segmentation label using noise based on a normal distribution, and then concatenates the multi-scale fused features with the original semantic segmentation label after denoising as the output of the forward denoising module. The noise decoder performs denoising on the input features based on the same noise intensity weights and predicts the semantic segmentation label of the input features.
[0067] The training unit uses a loss function to supervise the training of the Mamba-based dual-branch backbone network and the noise reduction diffusion probability model network.
[0068] The test unit uses a trained Mamba-based dual-branch backbone network and a noise reduction diffusion probability model network to predict semantic segmentation labels for pairs of raw optical images and raw synthetic aperture radar images.
[0069] use Figure 1 The multi-source remote sensing image semantic segmentation device based on the noise reduction diffusion probability model shown performs multi-source remote sensing image semantic segmentation, and the process is as follows: Figure 2 As shown below, the specific steps will be explained in detail.
[0070] Step 1: Acquire multi-source remote sensing images
[0071] Multi-source remote sensing images include optical images, synthetic aperture radar (SAR) images, and semantic segmentation labels (masks) used for training. Cropping and standardizing these multi-source remote sensing images yields original multi-source remote sensing images of the same size, facilitating subsequent processing. For example... Figure 3 The image shows the acquired pairs of raw optical images and raw synthetic aperture radar images, along with the raw semantic segmentation labels.
[0072] Step 2: Divide the training set and the test set
[0073] The original multi-source remote sensing images were divided into a training set and a test set in a 7:3 ratio, whereby the training set included the original optical images O train Original synthetic aperture radar image S train and the original semantic segmentation label M train The test set includes raw optical images O test And the original synthetic aperture radar image S test .
[0074] Step 3: Build a Mamba-based dual-branch backbone network
[0075] The Mamba-based dual-branch backbone network consists of two parallel Mamba feature extraction networks and a feature fusion network. The two Mamba feature extraction networks are denoted as Mamba Feature Extraction Network I and Mamba Feature Extraction Network II, respectively.
[0076] 3.1 Structure of the Mamba Feature Extraction Network
[0077] The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The four stages of the Mamba feature extraction module include 2, 2, 15, and 2 cascaded VSS feature extraction modules and a downsampling module, respectively, with 128, 256, 512, and 1024 channels, respectively.
[0078] The Mamba feature extraction module includes a VSS feature extraction module comprising a normalization layer, an SS2D module, and a feedforward neural network. The normalization layer performs layer normalization on the input image. The SS2D module includes a cross-scan module and an S6 module. The cross-scan module first expands the input image into four scan sequences Scan1, Scan2, Scan3, and Scan4 along four different traversal paths: top-left to bottom-right, bottom-left to top-right, top-right to bottom-left, and bottom-right to top-left. Then, Scan1, Scan2, Scan3, and Scan4 are concatenated into a four-channel vector and input into the S6 module. The Mamba discretized state-space equation in the S6 module is used for feature extraction to obtain the output features. The feedforward neural network includes an input layer, two intermediate hidden layers, and an output layer. The Mamba discretized state-space equation is expressed as:
[0079] h′(t)=Ah(t)+Bu(t)
[0080] y(t) = Ch(t) + Du(t)
[0081] in: Let h'(t) be the hidden input at time t, and h′(t) be the derivative of h(t). Let be the input stimulus at time t. The output response at time t; The weight matrix of the state-space equation is... is the weighting parameter; N is the dimension of the hidden input, and L is the length of the input stimulus.
[0082] 3.2 Structure of Feature Fusion Network
[0083] The feature fusion network consists of a four-stage multi-source feature fusion module and a multi-scale feature fusion module.
[0084] 3.2.1 Structure of the Multi-Source Feature Fusion Module
[0085] The multi-source feature fusion module includes two fusion sub-modules, referred to as fusion sub-module I and fusion sub-module II, respectively; each fusion sub-module includes a scanning module, a cross-stitching module, an S6 module and a residual connection module.
[0086] Out1 O_i The input fusion submodule I is used by the scanning module to expand the input features into four scanning sequences Scan1 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. O Scan2 O Scan3 O Scan4 O ; will Out1S_i The input fusion submodule II and the scanning module expand the input features into four scanning sequences Scan1 along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. S Scan2 S Scan3 S Scan4 S .
[0087] The cross-stitching module in fusion submodule I will use Scan1 O Scan2 O Scan3 S Scan4 S Concatenate them into a four-channel vector Scan O Scan O The input is fed into module S6 of the fusion submodule I. The Mamba discretized state-space equation in module S6 is used to extract features and obtain the output feature Out2. O_i ; For Out1 O_i and Out2 O_i Perform residual connections to obtain multi-source features (Out). O_i .
[0088] The cross-stitching module in Fusion Submodule II will integrate Scan1 S Scan2 S Scan3 O Scan4 O Concatenate them into a four-channel vector Scan S Scan S The input is fed into module S6 of the fusion submodule II, where the Mamba discretized state-space equations are used for feature extraction to obtain the output feature Out2. S_i ; For Out1 S_i and Out2 S_i Perform residual connections to obtain multi-source features (Out). S_i .
[0089] 3.2.2 Structure of the Multi-Scale Feature Fusion Module
[0090] Out f_1 Out f_2 Out f_3 Out f_4 The dimensions are respectively Where H and W are the height and width of the original source remote sensing image, respectively; Out f_1 Out f_2 Out f_3 Out f_4After inputting the multi-scale feature fusion module, first unify the dimensions of the four input features to... Then splice them together along the channel direction to form a size of The features are then used to adjust the size using a 1×1 convolution kernel. That is, the multi-scale fusion feature Out is obtained. train .
[0091] 3.3 Execution process of a Mamba-based dual-branch backbone network
[0092] O train The input is fed into the Mamba feature extraction network I, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature feature1 is obtained. O_0 feature1 O_0 As input to the first-stage Mamba feature extraction module in Mamba feature extraction network I; i = 1, 2, 3, 4;
[0093] S train The input is fed into the Mamba feature extraction network II, and after being downsampled fourfold by the Stem convolutional neural network, the convolutional feature 1 is obtained. S_0 feature1 S_0 As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network II;
[0094] feature1 O_i-1 The input is the i-th stage Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. O_i feature1 S_i-1 The input stage i is the Mamba feature extraction module, which, after passing through all the cascaded VSS feature extraction modules in this stage, yields the output feature Out1. S_i ;
[0095] Out1 O_i and Out1 S_i The inputs are fed into the i-stage multi-source feature fusion module for multi-source feature cross-extraction to obtain the cross-feature Out2. O_i and cross features Out2 S_i For Out1 O_i and Out2 O_i Perform residual connections to obtain multi-source features (Out). O_i For Out1 S_i and Out2 S_i Perform residual connections to obtain multi-source features (Out). S_i ;
[0096] For OutO_i Downsampling is performed to obtain the output feature1 of the i-stage Mamba feature extraction module. O_i , for Out S_i The output feature1 of the i-stage Mamba feature extraction module is obtained by downsampling. S_i ;
[0097] In the i-stage multi-source feature fusion module, Out O_i With Out S_i Adding them together yields the multi-source fusion feature Out. f_i ;
[0098] Out f_1 Out f_2 Out f_3 Out f_4 The input to the multi-scale feature fusion module is first standardized in size and then stitched together to obtain the multi-scale fused feature output. train .
[0099] Step 4: Construct the noise reduction and diffusion probability model network
[0100] The noise reduction diffusion probability model network includes a forward noise addition module based on the DDPM noise addition algorithm and a noise decoder based on the DDPM denoising algorithm.
[0101] 4.1 Structure of the Forward Noise Addition Module
[0102] The forward noise module first uses the nearest neighbor algorithm to filter M... train Adjust the size to match Out train The same, and through feature embedding operations, M train The number of channels is adjusted to match the Out channel. train The same, resulting in label M. down Then, a noise intensity weight t is obtained by random sampling in a uniform distribution in the interval [0, 0.999), and a vector shape of noise ∈ that conforms to a normal distribution is generated based on the noise intensity weight t. down Same; finally, based on the DDPM noise addition algorithm, combined with the noise intensity weight t, the noise ∈ is used to label M down Perform a noise-adding operation to obtain the noise-added label M. noise .
[0103] 4.2 Structure of the noise decoder
[0104] The noise decoder adopts a DETR structure, including a position encoder, a Transformer encoder, and a Transformer decoder. The multi-scale feature fusion module outputs multi-scale fused features. train With the added noise label Mnoise After concatenation, feature1 is generated; the position encoder is used to generate position code pel, and pel is added to feature1 to obtain a two-dimensional index feature feature1 with position code information. pel feature1 pel The data is converted into one-dimensional indexed features (feature2). Feature2 is then input into the Transformer encoder to obtain encoded features (feature3). Feature3, along with the noise intensity weights t, is then input into the Transformer decoder to obtain the predicted label M for the noise intensity weights t. hat .
[0105] Step 5: Supervised training using a loss function
[0106] The training unit uses a loss function to supervise the training of the Mamba-based dual-branch backbone network and the denoised diffusion probability model network. During the supervised training of the denoised diffusion probability model network, the output of the Mamba-based dual-branch backbone network first passes through a forward noise-adding module, then through a noise decoder for denoising. The loss value is calculated on the denoised result, and bilinear interpolation is first used to... hat Adjust the size to match M train Consistent, calculate the mean squared error loss (MSE):
[0107]
[0108] Where: y j M represents the j-th original semantic segmentation label. train , M represents the j-th original semantic segmentation label. train Predicted label M hat , where n represents the number of samples.
[0109] If the mean squared error loss (MSE) converges, the training of the dual-branch backbone network and the noise reduction diffusion probability model network is complete; otherwise, a new noise intensity weight t is selected and a new noise ∈ that conforms to a normal distribution is generated. The noise is then passed through the forward noise addition module again, and then through the noise decoder for denoising. The loss value is calculated on the denoised result until the loss value converges.
[0110] Step 6: Test using the trained dual-branch backbone network and the noise reduction diffusion probability model network.
[0111] like Figure 4 As shown, O test and S test Input is fed into a trained dual-branch backbone network, and outputs multi-scale fused features. testGenerate noise ∈ that conforms to a normal distribution, and output Out test The concatenation of ∈ is input into the noise decoder, where it undergoes a stepwise denoising operation using the DDPM denoising algorithm. This denoising operation is repeated T = 50 times, after which the predicted label is output. Figure 4 The comparison between the prediction results and labels shows that this invention performs excellently in terms of detail and boundaries, accurately distinguishing different types of land cover and handling a variety of land cover types, such as forests, grasslands, buildings, and water bodies. Each type of land cover can be accurately segmented and classified, without performing poorly due to the less common nature of certain categories.
[0112] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any way, and all technical solutions obtained by equivalent substitution or equivalent transformation fall within the protection scope of the present invention.
Claims
1. A semantic segmentation method for multi-source remote sensing images based on a noise reduction diffusion probability model, characterized in that: Includes the following steps: Step 1: Acquire multi-source remote sensing images, including optical images, synthetic aperture radar images, and semantic segmentation labels for training. Crop and standardize the multi-source remote sensing images to obtain original multi-source remote sensing images of the same size. Step 2: Divide the original multi-source remote sensing images into training and test sets according to the proportions. The training set includes the original optical images. Original synthetic aperture radar image and original semantic segmentation tags The test set includes raw optical images. and original synthetic aperture radar image ; Step 3: Construct a Mamba-based dual-branch backbone network, comprising two parallel Mamba feature extraction networks and one feature fusion network. The two Mamba feature extraction networks are denoted as Mamba Feature Extraction Network I and Mamba Feature Extraction Network II, respectively. The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The four stages of the Mamba feature extraction module include 2, 2, 15, and 2 cascaded VSS feature extraction modules and a downsampling module, respectively. The feature fusion network includes a four-stage multi-source feature fusion module and a multi-scale feature fusion module. Will The input is fed into the Mamba feature extraction network I, and after being downsampled fourfold by the Stem convolutional neural network, convolutional features are obtained. ,Will As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network I; ; Will The input is fed into the Mamba Feature Extraction Network II, and after being downsampled fourfold by the Stem Convolutional Neural Network, convolutional features are obtained. ,Will As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network II; Will enter The Mamba feature extraction module in this stage outputs features after passing through all the cascaded VSS feature extraction modules in that stage. ,Will enter The Mamba feature extraction module in this stage outputs features through all the cascaded VSS feature extraction modules in that stage. ; Will and Common input The multi-source feature fusion module performs multi-source feature cross-extraction to obtain cross features. and cross features ,right and Multi-source features are obtained by performing residual connections. ,right and Multi-source features are obtained by performing residual connections. ; right Downsampling was performed to obtain Output of the stage Mamba feature extraction module ,right Row downsampling Output of the stage Mamba feature extraction module ; exist In the multi-source feature fusion module of the stage, and Adding them together yields multi-source fusion features. ; Will , , , The input to the multi-scale feature fusion module first unifies the size and then stitches them together to obtain multi-scale fused features. ; Step 4: Use the nearest neighbor algorithm to... Size adjustment to match The same, and through feature embedding operations The number of channels was adjusted to match Same, get the label ; Step 5: In A noise intensity weight is obtained by randomly sampling from a uniform distribution within the interval. Based on noise intensity weights Generate noise that conforms to a normal distribution. , vector shape and same; Step 6: Based on the DDPM noise addition algorithm, combined with noise intensity weights Using noise For tags Perform noise addition to obtain the noisy label. ; Step 7: [The sentence is incomplete and likely refers to a specific step or instruction.] and After concatenation, the data is input into a noise decoder, where it undergoes denoising using the DDPM denoising algorithm to obtain noise intensity weights. Predicted labels ; Step 8: Use bilinear interpolation to... Adjust the size to match Consistent, calculate the loss value; Step 9: Repeat steps 5 to 8 until the loss value converges, completing the training of the dual-branch backbone network; Step 10: [The sentence is incomplete and likely refers to a specific step or instruction.] and The input is fed into a trained dual-branch backbone network, and the output is multi-scale fused features. Generate noise that conforms to a normal distribution. ,Will and After concatenation, the data is input into a noise decoder, where it undergoes a step-by-step denoising process based on the DDPM denoising algorithm. This denoising process is repeated. After that, output the predicted label.
2. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 1, characterized in that: In the Mamba feature extraction network, the number of channels in the first-stage Mamba feature extraction module, the second-stage Mamba feature extraction module, the third-stage Mamba feature extraction module, and the fourth-stage Mamba feature extraction module are 128, 256, 512, and 1024, respectively.
3. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 1, characterized in that: In the Mamba feature extraction module, the VSS feature extraction module includes a normalization layer and an SS2D module; the normalization layer performs layer normalization on the input image; the SS2D module includes a cross-scan module and an S6 module; the cross-scan module first expands the input image into four scan sequences along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. , , , Then , , , The vectors are concatenated into a four-channel vector and input into the S6 module. The Mamba discretized state-space equation in the S6 module is used to extract features and obtain the output features.
4. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 3, characterized in that: The Mamba discretized state-space equation is expressed as follows: , in: for Hidden input at all times for The derivative of for Constant input of stimuli, for Output response at any given moment; , , The weight matrix of the state-space equation is... For weighted parameters; To hide the dimensions of the input, The length of the input stimulus.
5. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 1, characterized in that: The multi-source feature fusion module includes two fusion sub-modules, referred to as fusion sub-module I and fusion sub-module II, respectively; each fusion sub-module includes a scanning module, a cross-stitching module, an S6 module and a residual connection module. Will The input fusion submodule I is used as input. The scanning module expands the input features into four scanning sequences along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. , , , ;Will The input fusion submodule II and the scanning module expand the input features into four scanning sequences along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. , , , ; The cross-stitching module in fusion submodule I will , , , Concatenate into a four-channel vector ,Will The input is fed into module S6 of the fusion submodule I, where the Mamba discretized state-space equations are used for feature extraction to obtain the output features. ;right and Multi-source features are obtained by performing residual connections. ; The cross-stitching module in Fusion Submodule II will , , , Concatenate into a four-channel vector ,Will The input is fed into module S6 of the fusion submodule II, where the Mamba discretized state-space equations are used for feature extraction to obtain the output features. ;right and Multi-source features are obtained by performing residual connections. .
6. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 1, characterized in that: , , , The dimensions are respectively , , , ,in and These represent the height and width of the original source remote sensing image, respectively; , , , After inputting the multi-scale feature fusion module, first unify the dimensions of the four input features to... Then, splice them together along the channel direction to form a size of The features are finally processed by a convolution kernel with a size of [missing information]. The convolution will adjust the size to That is, to obtain multi-scale fusion features .
7. The multi-source remote sensing image semantic segmentation method based on a noise reduction diffusion probability model according to claim 1, characterized in that: The noise decoder adopts a DETR structure, including a position encoder, a Transformer encoder, and a Transformer decoder. The multi-scale feature fusion module outputs multi-scale fused features. With the added noise label Features are generated after splicing. ; The position encoder is used to generate position codes. , and The summation yields a two-dimensional index feature with positional encoding information. ,Will Convert to one-dimensional index features ,Will The input is fed into the Transformer encoder to obtain the encoded features. ,Will With noise intensity weights The noise intensity weights are input together into the Transformer decoder to obtain the noise intensity weights. Predicted labels ; Using bilinear interpolation Adjust the size to match Consistent, calculate the mean squared error loss value: , in: Indicates the first Original semantic segmentation labels , Indicates the first Original semantic segmentation labels Predicted labels , Indicates the number of samples.
8. A semantic segmentation device for multi-source remote sensing images based on a noise reduction diffusion probability model, characterized in that: It includes a multi-source remote sensing image acquisition unit, a Mamba-based dual-branch backbone network, a noise reduction diffusion probability model network, a training unit, and a testing unit; The multi-source remote sensing image acquisition unit is used to acquire original optical images, original synthetic aperture radar images, and original semantic segmentation labels that are the same size and geometrically aligned. The Mamba-based dual-branch backbone network comprises two parallel Mamba feature extraction networks and one feature fusion network. The Mamba feature extraction network includes a Stem convolutional neural network and a four-stage Mamba feature extraction module. The two parallel Mamba feature extraction networks extract features from the original optical image and the original synthetic aperture radar image in stages, respectively. The feature fusion network includes a four-stage multi-source feature fusion module and a multi-scale feature fusion module. The multi-source feature fusion module fuses the extracted features from the original optical image and the original synthetic aperture radar image at each stage to obtain multi-source fused features for each stage. The multi-scale feature fusion module then concatenates the four stages of multi-source fused features into a single multi-scale fused feature. The noise reduction diffusion probability model network includes a forward noise addition module based on the DDPM noise addition algorithm and a noise decoder based on the DDPM denoising algorithm. The forward noise addition module adds noise to the original semantic segmentation label using noise based on a normal distribution, and then the result of concatenating the multi-scale fusion feature with the original semantic segmentation label after noise addition is used as the output of the forward noise addition module. The noise decoder performs noise reduction on the input features based on the same noise intensity weights, and predicts the semantic segmentation label of the input features; The training unit uses a loss function to supervise the training of the Mamba-based dual-branch backbone network and the noise reduction diffusion probability model network. The test unit uses a trained Mamba-based dual-branch backbone network and a noise reduction diffusion probability model network to predict semantic segmentation labels for pairs of raw optical images and raw synthetic aperture radar images. In the Mamba-based dual-branch backbone network: Original optical image The input is fed into the Mamba feature extraction network I, and after being downsampled fourfold by the Stem convolutional neural network, convolutional features are obtained. ,Will As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network I; ; Original synthetic aperture radar image The input is fed into the Mamba Feature Extraction Network II, and after being downsampled fourfold by the Stem Convolutional Neural Network, convolutional features are obtained. ,Will As input to the first-stage Mamba feature extraction module in Mamba Feature Extraction Network II; Will enter The Mamba feature extraction module in this stage outputs features after passing through all the cascaded VSS feature extraction modules in that stage. ,Will enter The Mamba feature extraction module in this stage outputs features through all the cascaded VSS feature extraction modules in that stage. ; Will and Common input The multi-source feature fusion module performs multi-source feature cross-extraction to obtain cross features. and cross features ,right and Multi-source features are obtained by performing residual connections. ,right and Multi-source features are obtained by performing residual connections. ; right Downsampling was performed to obtain Output of the stage Mamba feature extraction module ,right Row downsampling Output of the stage Mamba feature extraction module ; exist In the multi-source feature fusion module of the stage, and Adding them together yields multi-source fusion features. ; Will , , , The input to the multi-scale feature fusion module first unifies the size and then stitches them together to obtain multi-scale fused features. .
9. The multi-source remote sensing image semantic segmentation device based on a noise reduction diffusion probability model according to claim 8, characterized in that: In the Mamba feature extraction module, the VSS feature extraction module includes a normalization layer, an SS2D module, and a feedforward neural network. The normalization layer performs layer normalization on the input image. The SS2D module includes a cross-scan module and an S6 module. The cross-scan module first expands the input image into four scan sequences along four different traversal paths: top left to bottom right, bottom left to top right, top right to bottom left, and bottom right to top left. , , , Then , , , The vectors are concatenated into a four-channel vector and input into the S6 module. The Mamba discretized state-space equation in the S6 module is used to extract features and obtain the output features. The feedforward neural network includes an input layer, two intermediate hidden layers and an output layer.
