Double-branch remote sensing image semantic segmentation method and device based on visual converter and Mama

By adopting dual -branch networks in the semantic segmentation of remote sensing images, combined with the advantages of VIT and MAMBA, a high -precision semantic segmentation is realized, the problem of feeling the retention of the field and the details is solved, and the model is further enhanced through cross -domain fusion modules and loss functions. Performance.

CN119360026AActive Publication Date: 2025-01-24BEIJING INST OF TECH

Patent Information

Application Number
CN202411531156.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-24
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

The prior art is difficult to solve the paradox and the problem of receptive fields in semantic segmentation of remote sensing images at the same time, especially in high-resolution image processing, where there are challenges in computing complexity and global modeling capabilities.

Method used

Using a dual -branch network based on visual converters and MAMBA, the local semantic information retained through the VIT branch of Swin Transformer, the MAMBA branch capture global semantic information efficiently, and realizes the fusion of dual -space semantic information through cross -domain fusion modules.

Benefits of technology

The semantic segmentation of high -precision remote sensing images is achieved. Through effective integration of local details and global semantic information, it has overcome the shortcomings of a single network in the retention of the field and details, and enhance the consistency of the features through the related loss of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360026A_ABST
    Figure CN119360026A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of optical image imaging, and particularly relates to a double-branch remote sensing image semantic segmentation method and device based on a visual converter and Mama. The method specifically comprises the following steps of: firstly, giving an input image of RGB (Red, Green and Blue) coding, and sending the image to a ViT branch and a Mamba branch for parallel processing; secondly, the ViT branch and the Mamba branch respectively generate four feature mappings through a layered Block structure and a down-sampling mode, and the four feature mappings are respectively expressed as a set S = {FSii = 1, 2, 3 and 4} and a set M = {FMii = 1, 2, 3 and 4}; thirdly, performing consistency fusion on different features of the ViT branch and the Mamba branch in the second stage and the fourth stage by using a cross-domain fusion module, and adding a fusion feature map in the second stage into a fusion feature map in the fourth stage through down-sampling; and finally, using the feature representation after cross-domain fusion in the fourth stage as a segmentation head to realize semantic segmentation of the input image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of optical image imaging, and in particular relates to a dual-branch remote sensing image semantic segmentation method and device based on visual converter and Mamba. Background Art

[0002] Remote sensing image semantic segmentation is to use deep learning technology to classify and segment different objects or targets in remote sensing images at the pixel level to achieve accurate object recognition and positioning. This technology has important application value in environmental monitoring, urban planning, agricultural management and other fields, and can provide accurate spatial data support for geographic information systems, intelligent transportation and other fields, and has important practical significance and research value.

[0003] Remote sensing image semantic segmentation based on deep learning has made significant progress in recent years, mainly due to the rapid development of deep learning technology. Among them, convolutional neural network (CNN), as a powerful feature extraction and classification model, has become the cornerstone of many image processing tasks. However, CNN has a limited receptive field when extracting features based on convolution operations, especially when processing high-resolution images such as remote sensing images.

[0004] Aiming at the bottleneck of CNN's receptive field, with the introduction of the attention mechanism, Vision Transformer (ViT) has gradually emerged in semantic segmentation tasks. With its powerful long-distance modeling ability, ViT overcomes the limitations of the receptive field and shows remarkable performance in a variety of image tasks. However, due to the need to calculate the attention between patch sequences, the computational complexity of ViT increases exponentially with the increase of image resolution. Therefore, the stringent requirements of remote sensing image semantic segmentation tasks on the number of model parameters and computational complexity pose a severe challenge to the application of ViT in remote sensing tasks. At present, the representative solution to this problem is Swin-Transformer, which introduces a pioneering sliding window mechanism, which significantly reduces the computational complexity of ViT. However, Swin-Transformer limits the attention calculation to a window of limited size, and its lightweight cost is the inevitable loss of global long-distance modeling ability. Therefore, it is necessary to find an effective solution to supplement the global modeling ability of Swin-Transformer loss within an acceptable computational complexity.

[0005] Recently, the Mamba architecture based on the state-space model has attracted widespread attention due to its advantage of linear complexity. The state-space model has great potential in modeling long-range dependencies, and Mamba has practical feasibility by introducing a selective parameter learning mechanism. Various structured Mamba models have introduced different architectural enhancements, further demonstrating the versatility and scalability of Mamba. Summary of the invention

[0006] The purpose of the present invention is to solve the problem that specific features in a single network cannot simultaneously solve the paradox of receptive field and detail preservation, and provide a dual-branch remote sensing image semantic segmentation method and device based on visual transformer and Mamba. The ViT branch based on Swin Transformer is used to extract local semantic information with detail preservation, and the Mamba branch is used to efficiently capture global semantic information. The fusion of dual-space semantic information is realized through a cross-domain fusion module to achieve high-precision semantic segmentation.

[0007] To achieve the above object, the present invention is achieved through the following technical solutions:

[0008] In the first aspect, the embodiment of the present application provides a dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba, and the specific process is as follows:

[0009] First, given an RGB-encoded input image, the image is sent to the ViT branch and the Mamba branch for parallel processing;

[0010] Secondly, the ViT branch and the Mamba branch generate four feature maps respectively through the hierarchical Block structure and downsampling, which are represented as the set S = {F Si |i=1,2,3,4} and set M={F Mi |i=1,2,3,4};

[0011] Thirdly, the cross-domain fusion module is used to consistently fuse the different features of the second and fourth stages of the ViT branch and the Mamba branch, and the second-stage fused feature map is added to the fourth-stage fused feature map by downsampling;

[0012] Finally, the feature representation after cross-domain fusion in the fourth stage is used as the segmentation head to achieve semantic segmentation of the input image.

[0013] Furthermore, the process of performing consistency fusion by the cross-domain fusion module of the present invention is as follows:

[0014] First, the fusion feature maps of the two branches in the same stage are flattened;

[0015] Secondly, the linear mapping of Query, Key and Value is independently generated for the fusion features expanded in each branch, and the corresponding elements of the linear mapping results are fused;

[0016] Thirdly, the cross attention weight ω is calculated using the softmax function based on the fusion result, and the result of the cross attention calculation is calculated according to the weight;

[0017] Finally, based on the result of cross attention calculation F o Obtain cross-model fusion feature maps.

[0018] Furthermore, the cross-domain fusion module of the present invention sets the cross-model correlation loss L in the training stage. CMR , using L CMR To update the parameters of the cross-domain fusion module;

[0019]

[0020] Among them, CMRM is the calculation of the cross-model association graph based on the cross-attention weight ω, λ is the set hyperparameter, and L CE represents the cross entropy loss, GT represents the true pixel label value Ground-Truth of (i, j), and W is the weight calculated based on the preliminary prediction results of Ground-Truth and dual-branch features.

[0021] Furthermore, the cross-model association graph CMRM is calculated based on the cross attention weight ω as described in the present invention:

[0022]

[0023] Among them, Conv represents the convolution layer, BN represents the batch normalization operation, and ReLU is the activation layer. Provides matrix addition.

[0024] Furthermore, the present invention for:

[0025]

[0026] Among them, P S and P M The prediction results of the feature fusion calculation of the two branches in the same stage.

[0027] In a second aspect, an embodiment of the present application provides a dual-branch remote sensing image semantic segmentation device based on a visual converter and Mamba, comprising: a ViT branch, a Mamba branch, a cross-domain fusion module, and an image segmentation module;

[0028] The ViT branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set S = {F Si |i=1,2,3,4} and set M={F Mi |i=1,2,3,4};

[0029] The Mamba branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set M = {F Mi |i=1,2,3,4};

[0030] The second-order cross-domain fusion module is used to consistently fuse the different features of the second stage of the ViT branch and the Mamba branch, downsample the second-stage fused feature map and output it to the fourth-order cross-domain fusion module;

[0031] The 4th-order cross-domain fusion module is used to consistently fuse the different features of the 4th stage of the ViT branch and the Mamba branch, and superimpose them with the fused feature map of the 2nd stage to achieve cross-domain fusion;

[0032] The image segmentation module is used to use the feature representation after superimposing the cross-domain fusion module in the fourth stage as the segmentation head to realize the semantic segmentation of the RGB-encoded remote sensing image input by the network.

[0033] Beneficial effects:

[0034] First, unlike the existing single network that cannot solve the receptive field paradox and detail preservation features, the present invention designs a dual-branch network combining the ViT branch and the Mamba branch. The ViT extracts the local information of detail preservation, and the Mamba branch captures the global semantic information. At the same time, the network realizes the effective fusion of the two semantic features through the cross-domain fusion module, and realizes the fusion of the local information of dual-space detail preservation and the global semantic information. Finally, the semantic segmentation of high-resolution remote sensing images is realized. The feature fusion effect is further enhanced through the cross-model correlation loss.

[0035] Second, cross-model correlation loss is introduced to enhance the feature consistency between different architectures and effectively suppress the noise in the cross-domain fusion process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1A schematic diagram of the overall structure of a dual-branch remote sensing image semantic segmentation method based on a visual converter and Mamba provided by the present invention. DETAILED DESCRIPTION

[0038] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0039] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.

[0040] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0041] In view of the fact that specific features in a single ViT network cannot simultaneously solve the paradox of receptive field and the problem of detail preservation, inspired by Mamba, the present invention proposes a dual-branch network composed of ViT and Mamba to jointly and efficiently model image features. This invention rethinks the dual-branch architecture and uses a ViT branch based on Swin Transformer to extract local semantic information with detail preservation; at the same time, the Mamba calculation mechanism is used in the Mamba branch to replace the multi-head self-attention in ViT, and combined with multiple multi-layer perceptrons (MLPs) to efficiently capture global semantic information from image data. In addition, although the dual-branch network defined above is already capable of extracting effective features with dual spatial size, the final features obtained are suboptimal due to the inherent inconsistency of the feature extraction architecture. Therefore, the present invention designs a cross-model fusion module based on the attention mechanism, and proposes an attention-guided loss to further guide consistent fusion.

[0042] like Figure 1As shown, the embodiment of the present application provides a dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba. The local semantic features and global semantic features of the input image are extracted through the ViT and Mamba branches respectively; at the same time, the cross-domain fusion module is used to realize the effective fusion of the two local features and the global features, and the feature fusion effect is further enhanced through the cross-model related loss, and finally the high-resolution remote sensing image semantic segmentation is realized. The specific process is:

[0043] Step 0: Get the source data

[0044] Take more than 500 high-resolution optical images and manually classify and label the target area pixel by pixel to form the data set for the subsequent semantic segmentation model. Here, manual classification labeling means that the data labeler determines the target category to which the pixel belongs based on the image content and labels the corresponding label. For example, if the pixel belongs to category 1, it is labeled with label 1; if the pixel does not belong to any category of target, it is usually labeled as 0 (background).

[0045] Step 1: ViT branch local feature extraction

[0046] like Figure 1 As shown, given an RGB input image I∈R 3×H×W First, the ViT backbone network module based on Swin-Transformer is used to hierarchically extract 4 local semantic feature maps S of different sizes from the input image in RGB form through a hierarchical Block structure:

[0047] S={F Si |i=1,2,3,4}

[0048] Where H and W represent the height and width of the image, respectively, i represents the stage number of the progressive layered downsampling process, and F Si The size is The local semantic feature map S extracted in this step retains the detail information of the RGB image.

[0049] Step 2: Mamba branch global feature extraction

[0050] like Figure 1 As shown, the Mamba branch uses downsampling operations to extract four global semantic feature maps M at different depths:

[0051] M={F Mi |i=1,2,3,4}

[0052] Where i represents the stage number of the progressive layered downsampling process, F Mi The size is The global semantic feature map M extracted in this step retains the global semantic information of the image.

[0053] Step 3: Use the cross-domain fusion module to consistently fuse the different features of the 2nd and 4th stages of the ViT branch and the Mamba branch, and add the fused feature map of the 2nd stage to the fused feature map of the 4th stage through downsampling;

[0054] like Figure 1 As shown, the present invention designs a Cross-Model Fusion Module (CMFM) to consistently fuse the second and fourth stage features captured in steps 1 and 2, and adds the second stage fusion features to the fourth stage fusion results through downsampling, enhances the consistency of different architecture features through cross-model correlation loss, and suppresses cross-domain fusion noise.

[0055] Taking the second stage feature fusion as an example, the feature F obtained by the Swin-Transformer sliding window attention mechanism in step 1 S2 With rich local detail information, the F obtained in step 2 M2 This step uses the cross attention mechanism to remodel F S2 and F M2 Based on the similarity relationship between them, the key global semantics and spatial detail features of each branch are emphasized, while irrelevant noise and contradictory information are suppressed, thereby improving the performance of semantic segmentation. The specific process is as follows:

[0056] First, F S2 and F M2 Flatten to get and

[0057] Secondly, a linear map of Query, Key, and Value is generated independently for each branch, and the corresponding elements are merged:

[0058]

[0059] Among them, Q, K, and V represent the corresponding linear mapping layers, and LN represents layer normalization.

[0060] Again, the softmax function is used to obtain the cross attention weights:

[0061]

[0062] Where d is the dimension of Q and K, represents matrix multiplication, ω represents the cross attention weight, F o is the result of cross attention calculation.

[0063] Finally, the result of the cross attention calculation Fo The input is sent to the MLP layer to enhance the learning ability to produce consistent cross-model fusion output. The cross-domain fusion output of the second stage is downsampled to a size of The feature map is added to the output of the cross-domain fusion module in the fourth stage to obtain the final cross-domain fusion feature map.

[0064] In the process of cross attention, the present invention calculates the cross-model relationship map CMRM based on the cross attention weight ω:

[0065]

[0066] Among them, Conv represents the convolution layer, BN represents the batch normalization operation, and ReLU is the activation layer. Provides matrix addition.

[0067] In order to better achieve the consistent fusion of the two branch features, the present invention designs a cross-model correlation loss CMRLoss to supervise CMRM:

[0068]

[0069] Among them, λ is a hyperparameter used to adjust The impact of L CE Represents the cross entropy loss, and GT represents the true pixel label value Ground-Truth of (i, j). It is a ground-truth and dual-branch feature F S2 、F M2 Weights calculated for preliminary forecast results:

[0070]

[0071] Among them, P S and P M According to F S2 and F M2 The predicted results of the calculation. CMR Used to update the parameters of the cross-domain fusion module.

[0072] Step 4: Use cross-domain fusion feature representation to achieve semantic segmentation

[0073] like Figure 1 As shown, the present invention finally uses the feature representation after cross-domain fusion in the fourth stage as a segmentation head to achieve semantic segmentation of the input high-resolution remote sensing image.

[0074] In a second aspect, an embodiment of the present application provides a dual-branch remote sensing image semantic segmentation device based on a visual converter and Mamba, comprising: a ViT branch, a Mamba branch, a cross-domain fusion module, and an image segmentation module;

[0075] The ViT branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set S = {F Si |i=1,2,3,4} and set M={F Mi |i=1,2,3,4};

[0076] The Mamba branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set M = {F Mi |i=1,2,3,4};

[0077] The second-order cross-domain fusion module is used to consistently fuse the different features of the second stage of the ViT branch and the Mamba branch, downsample the second-stage fused feature map and output it to the fourth-order cross-domain fusion module;

[0078] The 4th-order cross-domain fusion module is used to consistently fuse the different features of the 4th stage of the ViT branch and the Mamba branch, and superimpose them with the fused feature map of the 2nd stage to achieve cross-domain fusion;

[0079] The image segmentation module is used to input the feature representation after superimposing the cross-domain fusion module in the fourth stage as the segmentation head into the high-resolution remote sensing image to achieve semantic segmentation of the input image.

[0080] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba, characterized in that: The specific process is: First, given an RGB-encoded input image, the image is sent to the ViT branch and the Mamba branch for parallel processing; Secondly, the ViT branch and the Mamba branch generate four feature maps respectively through the hierarchical Block structure and downsampling, which are represented as the set S = {F Si |i=1,2,3,4} and set M={F Mi |i=1,2,3,4}; Thirdly, the cross-domain fusion module is used to consistently fuse the different features of the second and fourth stages of the ViT branch and the Mamba branch, and the second-stage fused feature map is added to the fourth-stage fused feature map by downsampling; Finally, the feature representation after cross-domain fusion in the fourth stage is used as the segmentation head to achieve semantic segmentation of the input image.

2. The dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba according to claim 1, characterized in that: The process of the cross-domain fusion module performing consistency fusion is as follows: First, the fusion feature maps of the two branches in the same stage are flattened; Secondly, the linear mapping of Query, Key and Value is independently generated for the fusion features expanded in each branch, and the corresponding elements of the linear mapping results are fused; Thirdly, the cross attention weight ω is calculated using the softmax function based on the fusion result, and the result of the cross attention calculation is calculated according to the weight; Finally, based on the result of cross attention calculation F o Obtain cross-model fusion feature maps.

3. The dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba according to claim 1, characterized in that: The cross-domain fusion module sets the cross-model correlation loss L during the training phase. CMR , using L CMR To update the parameters of the cross-domain fusion module; Among them, CMRM is the calculation of the cross-model association graph based on the cross-attention weight ω, λ is the set hyperparameter, and L CE Represents the cross entropy loss, GT represents the ground-truth value of the true pixel label of (i, j), The weights calculated based on the preliminary prediction results of Ground-Truth and dual-branch features.

4. The dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba according to claim 3, characterized in that: The cross-model association graph CMRM is calculated based on the cross attention weight ω: Among them, Conv represents the convolution layer, BN represents the batch normalization operation, and ReLU is the activation layer. Provides matrix addition.

5. The dual-branch remote sensing image semantic segmentation method based on visual converter and Mamba according to claim 3, characterized in that: Said for: Among them, P S and P M The prediction results of the feature fusion calculation of the two branches in the same stage.

6. A dual-branch remote sensing image semantic segmentation device based on visual converter and Mamba, characterized in that: include: ViT branch, Mamba branch, cross-domain fusion module and image segmentation module; The ViT branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set S = {F Si |i=1,2,3,4} and set M={F Mi |i=1,2,3,4}; The Mamba branch is used to generate four feature maps for the input RGB encoded image through a hierarchical Block structure and downsampling, which is represented as a set M = {F Mi |i=1,2,3,4}; The second-order cross-domain fusion module is used to consistently fuse the different features of the second stage of the ViT branch and the Mamba branch, downsample the second-stage fused feature map and output it to the fourth-order cross-domain fusion module; The 4th-order cross-domain fusion module is used to consistently fuse the different features of the 4th stage of the ViT branch and the Mamba branch, and superimpose them with the fused feature map of the 2nd stage to achieve cross-domain fusion; The image segmentation module is used to use the feature representation after superimposing the cross-domain fusion module in the fourth stage as the segmentation head to realize the semantic segmentation of the RGB-encoded remote sensing image input by the network.

Citation Information

Patent Citations

  • Image processing method and system based on double-branch multi-scale semantic segmentation network

    CN116580241A

  • Super-resolution processing method of remote sensing image and related equipment

    CN118761907A

  • Medical image semantic segmentation method and apparatus

    WO2023231329A1

Cited By

  • Double-encoder semi-supervised heart MRI double-ventricle segmentation method based on improved SAM

    CN119624999A

  • Dual-encoder semi-supervised cardiac mri biventricular segmentation method based on improved sam

    CN119624999B

  • Remote sensing image segmentation method and system based on convolution-state space fusion and position trigger

    CN120635462A

  • Video analysis model generation method and device, video analysis method and device, equipment and medium

    CN120877174A