U-shaped multi-modal fusion segmentation method based on combination of graph neural network and Mamba model
Through the U-shaped multimodal fusion segmentation method combined with graph neural network and Mamba model, the problems of insufficient global-local modeling capabilities and high computational complexity in remote sensing image processing are solved, and efficient remote sensing image segmentation is achieved, reducing the problem of The dependence of hardware and parameter adjustment improves segmentation performance.
Patent Information
- Application Number
- CN202411067820.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing multimodal fusion segmentation method has problems such as insufficient global-local modeling capabilities, high computational complexity, large dependence on labeled data and difficulty in parameter optimization in remote sensing image processing, resulting in a degradation of segmentation performance.
Using the U-shaped multimodal fusion segmentation method combined with the Mamba model, the global information is captured through the Mamba-Graph encoder, the graph neural network is locally modeled, and a parallel fusion module is used to establish cross-modal long-distance dependence to reduce Calculate complexity and parameter adjustment dependencies.
It realizes efficient application in large-scale remote sensing image segmentation tasks, reduces the dependence of hardware configuration and computing resources, and improves segmentation performance and practicality.
Smart Images

Figure CN119006813A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of multimodal fusion segmentation of remote sensing images, and more specifically relates to a U-shaped multimodal fusion segmentation method combining a graph neural network with a Mamba model. Background Art
[0002] Remote sensing, as an important means of earth observation, collects a large amount of ground data. Accurate semantic segmentation of remote sensing images is the key to utilizing this data. Multimodal fusion segmentation methods have attracted widespread attention because they can make full use of existing data and achieve better performance than traditional single-modal technologies. However, most existing methods are based on CNN and Transformer architectures, which results in limited global-local modeling capabilities and high computational complexity, and cannot support the input of larger images.
[0003] In addition, there are some other problems with existing multimodal fusion segmentation methods. For example, such methods often rely on a large amount of labeled data, while in actual remote sensing image processing tasks, it is very difficult to obtain a large amount of high-quality labeled data. On the other hand, most existing multimodal fusion segmentation methods use manual adjustment to optimize parameters, which is not only labor-intensive but also may lead to a decrease in segmentation performance. Summary of the invention
[0004] The present invention proposes a U-shaped multimodal fusion segmentation method combining a graph neural network with a Mamba model. It can solve the following problems: insufficient global modeling capability based on pure CNN methods. The CNN+Transformer method is limited by a computational complexity that is exponentially times the input length. Fusion is difficult due to large differences between modalities, or the information of each modality is not fully utilized after fusion, resulting in reduced accuracy.
[0005] In order to achieve the above object, the present invention is implemented by adopting the following technical scheme: the method comprises:
[0006] Obtain a remote sensing image set, annotate it to obtain a category label set, cut the remote sensing image set and the category label set into fixed sizes, and then divide the cut data set into a training set and a validation set;
[0007] Construct a multimodal fusion segmentation network, the main architecture of which consists of an encoder, a fusion layer, a decoder, and a segmentation head;
[0008] The training set and validation set are balanced and enhanced in categories, and input into the multimodal fusion segmentation network for training, taking the parameter weights with the highest accuracy; the entire set of remote sensing images is divided and input into the multimodal fusion segmentation network to obtain the semantic segmentation results of remote sensing image ground object interpretation.
[0009] In one solution, the encoding part of constructing the multimodal fusion segmentation network adopts a Mamba-Graph combination method;
[0010] The decoder uses multiple upsampling modules to restore the hidden fusion features for the final segmentation process; the segmentation head processes the output of the decoder through two layers of fully connected MLP to obtain the final output.
[0011] In one embodiment, the construction of a multimodal fusion segmentation network includes the following steps:
[0012] The training set including RGB and DSM remote sensing images is sequentially input into the encoder, and the current feature representation is retained before each downsampling, and 4 feature representations of different resolutions of RGB and DSM are obtained in turn;
[0013] The feature representations RGB4 and DSM4 output by the last layer of the encoder are used as the input of the parallel fusion module to obtain Fusion4, and so on to obtain Fusion1, Fusion2, and Fusion3;
[0014] The first layer of the decoder is Fusion 4 ∈R C*H / 16*W / 16 As input, where H*W is the original input image size, C is the number of channels, and the number of channels in the first layer of the decoder is The number of channels in the last layer of the encoder Corresponding, and so on The first layer of the decoder consists of residual blocks, specifically C onv 3x3 +BN+ReLU)+X, from the second layer of the decoder, the decoder is integrated into Fusion i After the features are obtained, they are input into the residual block.
[0015] In one solution, the first three layers of the encoder are composed of Mamba, the last layer of the encoder is composed of Graph; and the fusion layer is composed of parallel fusion modules.
[0016] In one embodiment, the training set includes RGB and DSM remote sensing images.
[0017] In one embodiment, the ratio of the training set to the validation set is 7:3.
[0018] Beneficial effects of the present invention:
[0019] In the U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model of the present invention, the Mamba (first three layers) and Graph (last three layers) encoders described in the multimodal fusion segmentation network take into account the global-local idea. The first three layers of encoders are composed of Mamba to capture global information, and the last layer of encoders is composed of Graph to capture irregular local details.
[0020] In the U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model of the present invention, the parallel fusion module described in the multimodal fusion segmentation network fully considers the characteristics of different modalities, uses parallel cross and concatMamba blocks to establish long-distance dependencies across modalities and limit parameters to an acceptable range, and on this basis uses graph neural network technology to allow deep fusion of modalities.
[0021] In a U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model of the present invention, the decoder module of the multimodal fusion segmentation network uses adaptive weights to fuse the features output by the decoder and the fusion features starting from the second layer of the decoder, and uses residual blocks to alleviate overfitting caused by the excessive depth of the network.
[0022] Compared with the prior art, the method of the present invention reduces the dependence on hardware configuration and computing resources, realizes the application in actual large-scale remote sensing image segmentation tasks, and has high practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of the method of the present invention;
[0024] Figure 2 It is a schematic diagram of the overall network structure of the present invention;
[0025] Figure 3 This is a schematic diagram of the Mamba-graph Fusion (MGF) structure proposed in the present invention. DETAILED DESCRIPTION
[0026] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Typical embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in the present invention. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0027] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0028] The general concept of the present invention is as follows: In this patent, a U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is proposed. First, this paper introduces the Mamba modality to capture global information. Compared with Transformer, the complexity of the Mamba modality is not limited to the size of the input, and it can capture longer-range contextual dependencies; secondly, this paper introduces a graph neural network for local modeling. Compared with CNN, the graph neural network updates node information in a nearest neighbor manner, which can locally model irregular objects in remote sensing images, rather than a fixed convolution kernel size receptive field; finally, this paper proposes a parallel fusion module, which uses parallel cross and concatMamba blocks to establish long-distance dependencies between cross-modalities and limit parameters to an acceptable range while fully considering the characteristics of different modalities, and on this basis, uses graph neural network technology to allow deep fusion of modalities.
[0029] like Figure 1 As shown in FIG. 1 , a U-shaped multimodal fusion segmentation method combining a graph neural network with Mamba includes the following steps:
[0030] S1. Get the remote sensing image set Dataset (RGB_Dataset, DSM_Dataset), and take a subset of the Dataset
[0031] Dataset_part (RGB_Dataset_part, DSM_Dataset_part), label Dataset_part to get the category label set Dataset_part_Label, cut the remote sensing image set Dataset_part and the category label set Dataset_part_Label into fixed size tokens (such as 1024x1024), and then divide the cut data sets into training set train_data and validation set val_data according to a certain ratio.
[0032] like Figure 2 and Figure 3As shown in Figure 1, S2, a multimodal fusion segmentation network is constructed. The main body of the network follows a U-shaped architecture and consists of an encoder, a fusion layer, a decoder and a segmentation head. The encoding part adopts a Mamba-Graph combination, in which the first three layers of encoders are composed of Mamba to capture global information, and the last layer of encoder is composed of Graph to capture irregular local details. The fusion layer is composed of carefully designed parallel fusion modules, which fully considers the characteristics of different modalities. Parallel cross and concatMamba blocks are used to establish long-distance dependencies between cross-modalities and limit parameters to an acceptable range. On this basis, graph neural network technology is used to allow modal deep fusion. The decoder uses multiple upsampling modules to restore hidden fusion features for the final segmentation process. The segmentation head processes the output of the decoder through two fully connected layers (Mlp) to obtain the final output.
[0033] The encoding part adopts the Mamba-Graph combination, where the first three layers of encoders are composed of Mamba to capture global information. Mamba is inspired by the continuous system and maps the one-dimensional function x(t)→y(t) through the hidden state h(t). The system uses A as the evolution parameter, B and C as the projection parameters, and D as the skip connection as shown in the following formula:
[0034] h′(t)=A h(t)+Bx(t)
[0035] y(t)=C h(t)+Dx(t)
[0036] Among them, A∈R N×N ,BC∈R N ,D∈R 1 .
[0037] Image grayscale is discrete information. Mamba discretizes the above continuous system, as shown in the following formula:
[0038]
[0039] y t =Ch t +Dx t
[0040] Among them, Δ represents the time scale parameters A and B, which are the discretized A and B.
[0041] The last layer of encoder is composed of Graph, which is used to capture irregular local details; for the feature representation F∈R input from the Mamba encoder to the Graph encoder C×H×W , we first divide it into N parts and use Transformer∈R for each part D, constructing a node V of the graph, connecting the nearest K neighbors of each copy as the edge E of the graph, and obtaining the graph Graph = (V, E). The graph convolution layer can exchange information between nodes by aggregating features from its neighboring nodes, as shown in the following formula:
[0042] x i =h(x i ,g(x i ,Neightbor(x i ),W agg ),W update )
[0043] g(·)=[x i ,max(Neightbor(x i )-x i )]
[0044] h(·)=g(·)W update
[0045] Among them, Neightbor(x i ) represents x i The set of K nearest neighbor nodes, W agg , W update are the adaptive learning weights for aggregation and update, respectively.
[0046] The fusion layer consists of carefully designed parallel fusion modules, which fully consider the characteristics of different modalities. It uses parallel cross and concatMamba blocks to establish long-distance dependencies across modalities and limit parameters to an acceptable range. On this basis, graph neural network technology is used to achieve deep fusion of modalities.
[0047] First, the feature RGB is input into the parallel fusion module i 、DSM i ∈R Channel×H×W
[0048] First divide the channel into 4 groups 4 Fusion i The weights of the crossMamba block are shared (using the same set). The operation of crossMamba is to calculate y in the encoder Mamba detailed above (the Mamba encoder is described in detail above). t Exchange RGB with C of DSM, as shown in the following formula:
[0049]
[0050] Secondly, the 4 fusions of RGB and DSM obtained from the crossMamba block are shuffled and concatenated in the channel dimension and passed to the graph convolution layer (described in detail in the graph encoder above). Finally, the output of the graph convolution layer is passed to the concatMamba block. The operation of the concatMamba block is to concatenate the input data channel dimension and copy it in reverse order, and pass it to the Mamba operation in the form of two channels (described in detail in the Mamba encoder above). The result of the operation will be restored to the positive order and directly added bit by bit.
[0051] The decoder uses multiple upsampling modules to restore the hidden fusion features for the final segmentation process; the segmentation head processes the output of the decoder through two layers of full connection (MLP) to obtain the final output; the feature representation dimension of each layer of the decoder is shown in the following formula:
[0052]
[0053] in, H×W is the input remote sensing image size, I∈(1,4).
[0054] Decoder Fusion i The feature is as shown in the following formula:
[0055] Decoder i =ConvBnRelu(W 1 ×Upsample(Decoder i-1 )+W 2 ×Fusion i )
[0056] Among them, Decoder i represents the decoder feature representation of the i-th layer, W 1 ,W 2 represents the adaptive weight, W 1 +W 2 =1, ConvBnRelu represents (Conv 3×3 +BN+ReLu), Upsample stands for bilinear interpolation upsampling.
[0057] S301. Cut the training set (RGB and DSM remote sensing images) obtained from the Dataset in S1 into token-sized sets, and sequentially input them into the Mamba (first three layers) and Graph (last three layers) encoders. Keep the current feature representation before each downsampling, and obtain RGB1, RGB2, RGB3, RGB4, DSM1, DSM2, DSM3, DSM4 and other RGB and DSM feature representations of 4 different resolutions.
[0058] S302, the feature representations RGB4 and DSM4 output by the last layer of the encoder (Graph encoder) are used as inputs of the parallel fusion module to obtain Fusion4, and so on to obtain Fusion1, Fusion2, and Fusion3.
[0059] S303, the first layer of the decoder is Fusion 4 ∈R C*H / 16*W / 16 As input, where H*W is the original input image size, C is the number of channels, and the number of channels in the first layer of the decoder is The number of channels in the last layer of the encoder Corresponding, and so on The first layer of the decoder consists of residual blocks, specifically C onv 3x3 +BN+ReLU)+X, from the second layer of the decoder, the decoder is integrated into Fusion i After the features are obtained, they are input into the residual block.
[0060] S3, balance and enhance the training set and validation set obtained by Dataset_part in S1, input them into S2 to build multimodal fusion segmentation network training, and take the parameter weights (.pth, .checkpoint files) with the highest accuracy in the verification stage; divide the remote sensing image dataset into token sizes, input them into the multimodal fusion segmentation network after loading the parameter weights, and obtain the semantic segmentation results of remote sensing image object interpretation.
[0061] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0062] It should be understood that the detailed description of the technical solutions of the present invention by means of the preferred embodiments is illustrative rather than restrictive. A person skilled in the art may modify the technical solutions described in the embodiments, or replace some of the technical features by equivalents, based on reading the specification of the present invention; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model, characterized by: The method includes: Obtain a remote sensing image set, annotate it to obtain a category label set, cut the remote sensing image set and the category label set into fixed sizes, and then divide the cut data set into a training set and a validation set; Construct a multimodal fusion segmentation network, the main architecture of which consists of an encoder, a fusion layer, a decoder, and a segmentation head; The training set and validation set are balanced and enhanced in categories, and input into the multimodal fusion segmentation network for training, taking the parameter weights with the highest accuracy; the entire set of remote sensing images is divided and input into the multimodal fusion segmentation network to obtain the semantic segmentation results of remote sensing image ground object interpretation.
2. According to claim 1, a U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is characterized by: The encoding part of constructing the multimodal fusion segmentation network adopts the Mamba-Graph combination method; The decoder recovers the hidden fusion features for the final segmentation process by utilizing multiple upsampling modules; The output of the decoder is processed by the segmentation head through two layers of fully connected MLP to obtain the final output.
3. According to claim 1, a U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is characterized by: The construction of the multimodal fusion segmentation network includes the following steps: (1) The training set including RGB and DSM remote sensing images is sequentially input into the encoder, and the current feature representation is retained before each downsampling, so as to obtain 4 feature representations of different resolutions for RGB and DSM respectively; (2) The feature representations RGB4 and DSM4 output by the last layer of the encoder are used as the input of the parallel fusion module to obtain Fusion4, and so on to obtain Fusion1, Fusion2, and Fusion3; (3) The first layer of the decoder is Fusion4∈R C*H / 16*W / 16 As input, where H*W is the original input image size, C is the number of channels, and the number of channels in the first layer of the decoder is The number of channels in the last layer of the encoder Corresponding, and so on The first layer of the decoder consists of residual blocks, specifically Co nv 3x3 +BN+ReLU)+X, from the second layer of the decoder, the decoder is integrated into Fusion i After the features are obtained, they are input into the residual block.
4. According to claim 1, the U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is characterized by: The first three layers of the encoder are composed of Mamba, the last layer of the encoder is composed of Graph; the fusion layer is composed of parallel fusion modules.
5. According to claim 1, the U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is characterized by: The training set includes RGB and DSM remote sensing images.
6. According to claim 1, the U-shaped multimodal fusion segmentation method combining a graph neural network and a Mamba model is characterized by: The ratio of the training set to the validation set is 7:3.
Citation Information
Patent Citations
Cross-modal double-branch complementary fusion image segmentation method and device
CN115482241A
Coding and decoding structure-based multi-modal remote sensing image semantic segmentation method
CN115984701A
Deep learning-based multi-modal fusion remote sensing image semantic segmentation method
CN117456182A
Mama-based north pole sea ice concentration prediction method
CN118298327A
Remote sensing image road segmentation method combining channel attention mechanism and multilayer axial Transform feature fusion structure
CN118351538A
Cited By
Reconstruction spectrum denoising method based on Mama
CN119205967A
Ultra-dense networking CDS hotspot active prediction method, device and equipment considering spatio-temporal information
CN119743446A
Multi-modal image fusion method and system based on cross-modal interactive perception
CN119810606A
Magnetic nanoparticle time sequence image reconstruction method based on double-domain cooperative processing
CN119919684A
A method for time-series image reconstruction of magnetic nanoparticles based on dual-domain collaborative processing
CN119919684B
