Multi-modal remote sensing semantic segmentation method based on geometric prior guidance and style correction

By introducing geometric priors and style correction methods, and combining RGB and DSM features, the spectral ambiguity problem in multimodal remote sensing semantic segmentation is solved, and the semantic segmentation performance of remote sensing images is improved, especially the ability to distinguish targets with similar spectra but different spatial geometric attributes in complex urban scenes.

CN123182229APending Publication Date: 2026-11-27CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611428846.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multimodal remote sensing semantic segmentation methods fail to effectively utilize the geometric prior information in digital surface models (DSMs), resulting in severe spectral ambiguity in complex urban scenes. Furthermore, simple fusion methods fail to fully explore the complementary value of RGB and DSM features.

Method used

By constructing a multimodal remote sensing semantic segmentation method guided by geometric priors and style correction, the gradient and curvature information of DSM are used to reconstruct RGB features with weights. Feature fusion is achieved through a global attention mechanism and a style correction module. Combined with the Transformer structure to capture global contextual information, refined pixel-level building extraction results are generated step by step.

Benefits of technology

It improves the feature representation and semantic discrimination capabilities in complex urban scenarios, reduces misclassification and omission, enhances the boundary integrity and category recognition accuracy of semantic segmentation results, and strengthens the stability and consistency of multimodal feature fusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182229A_ABST
    Figure CN123182229A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of multi-modal remote sensing semantic segmentation method based on geometric prior guidance and style correction, belong to remote sensing image recognition technical field.The data preprocessing and data enhancement are carried out to the obtained remote sensing optical image and digital surface model, then according to four stages, the feature map of different scales is extracted, for the elevation and structure information contained in DSM, in the coding stage, introduce geometric prior perception module, to explicitly model the geometric features in DSM data, between the output feature map of encoder, through style correction and fusion mechanism, the alignment and consistency modeling of different modal features is realized;Introduce the structure of transformer to capture global context information, decoder gradually combines the low-level features of each stage encoder, finally generates the refined pixel-level building extraction result.The present application method can accurately distinguish the ground object that spectrum is similar but geometric difference is significant, improve the precision of remote sensing image building extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of remote sensing image recognition technology, and relates to a multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction. Background Technology

[0002] High-resolution remote sensing imagery provides a rich data foundation for surface information extraction, but its complex spatial structure and multi-scale characteristics also place higher demands on semantic understanding methods. Semantic segmentation, as a pixel-level image understanding task, enables refined annotation of ground features in remote sensing images, playing a crucial role in applications such as land use classification, environmental monitoring, and disaster assessment. With the development of deep learning technology, designing models with stronger feature representation capabilities to improve the accuracy and robustness of remote sensing image semantic segmentation has gradually become a research focus. In recent years, deep learning technologies, represented by convolutional neural networks (CNNs), have greatly promoted the development of semantic segmentation technology. From the pioneering fully convolutional networks (FCNs) to U-Net with its encoder-decoder structure and skip connections, these models have achieved significant results in remote sensing image segmentation tasks thanks to the powerful local feature extraction capabilities of CNNs. However, limited by the local receptive field of convolutional operations, CNNs struggle to effectively model long-range dependencies and global contextual information in images, limiting their ability to handle remote sensing scenes with complex spatial distributions and large-scale ground features. The rise of the Transformer architecture provides a new approach to solving these problems. Its core self-attention mechanism can directly model the relationship between all pixel pairs in an image, thereby achieving effective capture of global information. Vision Transformer (ViT) and a series of improved models for dense prediction tasks, such as Pyramid Vision Transformer (PVT) and Swin Transformer, have shown good performance potential in tasks such as remote sensing image segmentation.

[0003] While these methods have made significant progress in single-modal segmentation (such as RGB images), they still struggle to fully characterize the three-dimensional structural differences of ground features in increasingly complex remote sensing applications. In fact, different modalities, due to their varying imaging mechanisms, provide complementary and irreplaceable information dimensions in Earth observation scenarios. Optical images can intuitively capture the rich spectral and textural features of ground features, conforming to human visual perception. However, for deep learning models, this "spectral ambiguity" problem, purely based on two-dimensional spectral information, is highly prone to misjudgment. Synthetic Aperture Radar (SAR) images are highly sensitive to the geometric structure and dielectric properties of ground features; hyperspectral images can distinguish substances that are unidentifiable in the broadband band through "spectral fingerprints"; and digital surface models (DSMs) directly provide three-dimensional elevation and spatial structure information of ground features, providing crucial evidence for distinguishing ground features in the vertical dimension. Therefore, fully exploring the complementary information between different modalities, especially combining two-dimensional spectral information with three-dimensional geometric information, provides an important way to overcome the information bottleneck of single modalities in complex urban scenarios. Among numerous multimodal combinations, the fusion of RGB images and DSM has attracted widespread attention due to its high complementarity in spectral and geometric information. RGB images can provide rich texture and appearance details, while the explicit elevation information provided by DSM helps alleviate the spectral ambiguity problem commonly found in two-dimensional images from a three-dimensional spatial dimension, which is particularly important in distinguishing spectrally similar features such as trees and low vegetation. However, most existing mainstream RGB-DSM semantic segmentation methods use simple feature concatenation or weighted summation, which has at least two major blind spots: First, it ignores the hierarchical nature of geometric information in DSM, that is, shallow geometric details (such as edges) and deep geometric priors (such as elevation values) contribute differently to the understanding of RGB features, and simple fusion cannot tap into their deeper value; second, it ignores the "style gap" of multimodal features, as the statistical distribution and expression style of RGB features and DSM features differ significantly, which prevents the potential advantages of geometric priors from being fully explored.

[0004] Therefore, how to introduce and utilize the geometric prior information contained in DSM and effectively fuse it with RGB features has become a key challenge in multimodal remote sensing semantic segmentation. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction, which optimizes the method from three dimensions: geometric knowledge guidance, modal feature alignment, and global semantic perception, so as to effectively improve the semantic segmentation performance of high-resolution remote sensing images.

[0006] To achieve the above objectives, the present invention provides the following technical solution: A multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction, comprising the following steps: S1. Acquire remote sensing optical images of the target area and the corresponding digital surface model, and perform data preprocessing and data augmentation. S2. Multi-scale feature extraction is performed on the processed remote sensing optical image and digital surface model respectively. Gradient and curvature information are extracted from the digital surface model features to perform weighted reconstruction of the remote sensing optical image features, so as to obtain the reconstructed optical features at each scale. S3. Adaptively align the statistical distribution of digital surface model features and reconstructed optical features and fuse them. First, the neighborhood information is reorganized by the convolution operator to obtain local refinement features. Then, the global attention mechanism is used to obtain the corresponding global dependency features. Next, style correction is performed on the global dependency features. Finally, the two are fused to obtain the final fused features. S4. Introduce the Transformer structure to capture global contextual information and enhance the collaborative modeling between local features and global semantics through a self-attention mechanism; S5. The low-level features at each scale are combined step by step to generate a refined pixel-level building extraction result.

[0007] Furthermore, in step S1, the remote sensing optical image of the target area is acquired through airborne aerial photography, and the digital surface model (DSM) is generated by dense matching of stereo pairs of the aerial image. Image preprocessing includes image normalization and noise removal; data augmentation includes random flipping and mirroring; and the final processed remote sensing optical image is obtained. and digital surface model .

[0008] Furthermore, in step S2, the remote sensing optical image is... and digital surface model The input consists of a two-branch parallel encoder with RGB and DSM branches. Each branch performs convolutional downsampling and residual learning step by step to extract features at different scales, thus obtaining a scale feature set. ,in, This refers to the current scale feature level.

[0009] Furthermore, in step S2, the extracted optical features are... and digital surface model features First, from the characteristics of digital surface models Extract gradient and curvature information from it, and assume... and Let the gradients be in the horizontal and vertical directions, respectively. Then, the magnitude of the gradient is:

[0010] In the formula, ; ; These represent the horizontal and vertical directions, respectively. It is a numerically stable term; Then, depthwise separable convolution with a fixed Laplacian operator is used to model the curvature:

[0011] in This represents the convolution operation of the Laplacian operator; This yields the characteristics of the digital surface model. Corresponding geometric prior graph:

[0012]

[0013] The geometric prior map is then used to enhance the corresponding optical features. :

[0014] in, Used to limit the overall amplitude of geometric modulation For learnable gating parameters; Finally, the enhanced optical features are fused with the original optical features to obtain the reconstructed optical features:

[0015] in The residual coefficient is used to control the degree of fusion between the original features and the modulation features.

[0016] Furthermore, in step S3, firstly, the remote sensing optical image features and digital surface model features output by the encoder are recombined using convolution operators to obtain local refined features:

[0017] in, This represents the m-th modal feature output by the encoder. This represents the corresponding local refinement feature. This represents a local mapping function consisting of convolution and nonlinear activation.

[0018] Furthermore, in step S3, the locally refined features are then... Flattening is a characteristic sequence The query matrix is ​​obtained through linear mapping. Key matrix Sum matrix And calculate global attention features:

[0019]

[0020] in, The attention weights between spatial locations are represented by d, where d represents the feature dimensions of the query matrix and the key matrix. Represents the learnable residual coefficients. This represents the features after global attention modeling.

[0021] Furthermore, in step S3, style correction is then performed on the features. For any feature... The channel mean and standard deviation are defined as follows:

[0022]

[0023] in, It is a numerically stable term; Through standardized operations Eliminate the differences in amplitude scale between different modes; Subsequently, a learnable target statistic is introduced. Recalibrate the features:

[0024] Introducing the mixing coefficient These are learnable global scalar parameters, constrained by the Sigmoid function. The interval is used to stabilize the style correction process while maintaining discriminative power, namely:

[0025] Finally, a channel-level gating mechanism is introduced to achieve adaptive fusion; let the gating weight be... The final fusion feature is represented as .

[0026] Furthermore, in step S4, the fused features obtained in step S3 are introduced into the remote sensing optical image features through a residual method to obtain enhanced remote sensing optical image features:

[0027] in, This represents the style correction fusion feature obtained in step S3. Represents the learnable fusion coefficient; Subsequently, respectively and The corresponding convolutional mapping is used to create a token sequence, and learnable positional encoding is added:

[0028]

[0029] Where P represents the learnable location code. and These represent the token sequences corresponding to RGB and DSM, respectively. The two token sequences are input into their respective Transformer attention branches, and queries, keys, and values ​​are generated through independent linear mappings. Global semantic modeling is then performed using scaled dot product self-attention.

[0030]

[0031] in, This represents the features of the corresponding modality after self-attention modeling; for some Transformer layers, cross-modal attention is calculated using the keys and values ​​of another modality, and then weighted and fused with the self-attention features to achieve deep semantic interaction between the two modalities; For any Transformer layer, the core update form is:

[0032]

[0033] in, X This represents the token feature sequence input to the current layer. This indicates the bulls' self-attention. It is a feedforward network. This is a layer normalization operation.

[0034] Furthermore, in step S5, the decoder is used to fuse the high-level semantic features with the multi-scale features saved in the encoding stage step by step. In each decoding stage, the current feature is connected to the corresponding level of the encoder features in a skip connection and fused through convolution operation, thereby gradually restoring the spatial structure and details of the image. After decoding, the prediction head maps the fused features into a class prediction map; through a 1×1 convolutional layer, the high-dimensional features of each pixel are converted into class predictions, and the class probability of each pixel is output using the Softmax function, thus obtaining the semantic segmentation result.

[0035] Furthermore, this method uses the cross-entropy loss function as the loss function for semantic segmentation during training. Given an input image, the network outputs a shape... The pixel-level prediction probability map, where Let be the number of categories; and let the true label be the category index of each pixel. Then the basic form of the loss function is:

[0036] in, The total number of pixels in the image. As an indicator variable, if pixel The true category is If the value is 1, then the value is 0; otherwise, the value is 0. For the network to pixel Category The predicted probability.

[0037] The beneficial effects of this invention are as follows: This invention constructs a multimodal bi-branch semantic segmentation framework that combines geometric prior guidance with style correction. It collaboratively models the elevation and spatial structure information contained in the DSM (Digital Structural Model) with the spectral, texture, and global semantic information of remote sensing imagery. This allows the network to simultaneously utilize the appearance features and geometric attributes of ground objects, improving feature representation and semantic discrimination capabilities in complex urban scenes. By introducing a geometric prior perception module during the encoding stage, the height and structural differences between different categories of ground objects are amplified, particularly beneficial for distinguishing targets with similar spectral features but different spatial geometric attributes, reducing misclassification and omissions. Simultaneously, through local feature refinement, global attention, and style correction, features of different modalities and scales are processed uniformly, reducing feature distribution offsets between multi-source data and improving the stability and consistency of multimodal feature fusion. This provides a more reliable feature foundation for subsequent global semantic modeling, thereby improving the boundary integrity, category recognition accuracy, and overall robustness of the semantic segmentation results.

[0038] Other advantages, objectives, and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description

[0039] To make the objectives, technical solutions, and advantages of the present invention clearer, the preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, wherein: Figure 1 This is a schematic diagram of the overall process of the multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the overall network architecture of the multimodal remote sensing semantic segmentation method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the network structure of the geometric prior perception module in an embodiment of the present invention; Figure 4 This is a schematic diagram of the network structure of the style correction and fusion mechanism in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the semantic segmentation effect under an embodiment of the present invention. Detailed Implementation

[0040] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0041] The accompanying drawings are for illustrative purposes only and are schematic diagrams, not actual pictures. They should not be construed as limiting the invention. To better illustrate the embodiments of the invention, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions. It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0042] In the accompanying drawings of the embodiments of the present invention, the same or similar reference numerals correspond to the same or similar components. In the description of the present invention, it should be understood that if terms such as "upper," "lower," "left," "right," "front," and "rear" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, the terms used to describe positional relationships in the drawings are only for illustrative purposes and should not be construed as limiting the present invention. For those skilled in the art, the specific meaning of the above terms can be understood according to the specific circumstances.

[0043] Please see Figures 1-5 This is a multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction.

[0044] Example This embodiment details the implementation process of a multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction, such as... Figure 1 As shown, it mainly includes the following steps: S1: Acquire remote sensing optical images of the target area and the corresponding digital surface model, and perform data preprocessing and data augmentation. In this embodiment, the remote sensing optical image of the target area is acquired through airborne aerial photography, and the digital surface model (DSM) is generated by dense matching of stereo pairs from the aerial image. This embodiment uses the vaihingen dataset as the data sample.

[0045] The acquired remote sensing optical images and DSM (Digital Sensor Image) were used to generate 256×256 training samples using a random cropping strategy. Random flipping and mirroring enhancements were then performed to improve the model's generalization ability. Specifically, image normalization, noise removal, and data augmentation were employed. Image normalization scaled all image pixel values ​​to a uniform range to ensure data consistency. Noise removal effectively reduced the impact of sensor noise on image quality. Data augmentation operations (such as random flipping and mirroring) increased the diversity of training data, improving the model's robustness and generalization ability.

[0046] S2: As Figure 2 As shown, the processed training data is input into a ResNet encoder, and feature maps at different scales are extracted in four stages. To address the elevation and structural information inherent in the Digital Surface Model (DSM), a geometric prior perception module is introduced in the encoding stage. Specifically, this method employs a dual-branch parallel encoder, where the RGB branch and the DSM branch each extract features through two independent ResNet50 networks. Each branch performs convolutional downsampling and residual learning step-by-step to extract features at different scales. For RGB images... and DSM images Through this structure, each branch extracts multi-scale feature sets at different levels (Layer 1 to Layer 4). This allows the network to model the characteristics of different modalities specifically, avoiding information conflicts caused by simple fusion.

[0047] Geometric prior perception module, such as Figure 3 As shown, by extracting gradient and curvature information from the DSM, a geometric prior response map is constructed, explicitly injecting the geometric structure information of ground features, and weighted reconstruction of RGB features. First, from the DSM features... Gradient information is extracted to describe changes in ground feature boundaries. Let... and These are the gradients in the horizontal and vertical directions, respectively.

[0048]

[0049] Next, the gradient magnitude is calculated and obtained:

[0050] in This is a numerically stable term. To further capture the curvature information of the DSM, this embodiment uses depthwise convolution with a fixed Laplace kernel to model the curvature:

[0051] in This represents the convolution operation of the Laplacian operator. Combining the gradient and curvature information above, the geometric prior response is obtained. To standardize the numerical range, this embodiment maps it to [ ] using a 3×3 convolution and a Tanh activation function. Within the range of [1,1], the final geometric prior graph is obtained:

[0052]

[0053] Use geometric priors to enhance the corresponding RGB features:

[0054] in, Used to limit the overall amplitude of geometric modulation These are learnable gating parameters. Finally, to preserve the original semantic information and avoid over-enhancement, residual connections are used to output the final features:

[0055] in The residual coefficient is used to control the degree of fusion between the original features and the modulation features.

[0056] S3: Addressing the differences in statistical distribution and expressive style between RGB and DSM features, a style correction and fusion module is proposed. For example... Figure 4 As shown, this module first performs local refinement mapping on the two feature paths to enhance discriminative structures such as texture and edges, while suppressing noise interference. The local refinement process reorganizes neighborhood information through convolution operators, forming the following mapping:

[0057] in, This represents a local mapping function consisting of convolution and nonlinear activation.

[0058] Subsequently, the Style Correction and Fusion (SCF) module introduces a global attention mechanism to model long-range spatial dependencies in remote sensing images. This refines the locally derived features... Flattened (in And, through linear mapping, we obtain the query, key, and value:

[0059]

[0060]

[0061] in, This is the learnable parameter matrix. Based on scaled dot product attention, the global context aggregation result is obtained:

[0062] in, is the scaling factor for the feature dimension. This attention mechanism can explicitly model the relationships between arbitrary spatial locations and fuse them with the original features through residual connections, thereby obtaining a feature representation with global dependencies.

[0063]

[0064] in, The attention weights between spatial locations are represented by d, where d represents the feature dimensions of the query matrix and the key matrix. Represents the learnable residual coefficients. This represents the features after global attention modeling.

[0065] To further address the issue of inconsistent cross-modal feature distributions, the SCF module performs style correction on the features. Through adaptive adjustment of channel statistics, it makes the distributions of RGB and DSM features more consistent. For any feature... The channel mean and standard deviation are defined as follows:

[0066]

[0067] in, This is a numerically stable term. It is obtained through standardization. This eliminates the differences in amplitude scales between different modes. Subsequently, a learnable target statistic is introduced. Recalibrate the features:

[0068] This approach adaptively adjusts the distribution style of features while maintaining the spatial structure, thereby mitigating statistical shifts between modalities. To avoid excessive style correction leading to loss of discriminative information, a mixing coefficient is introduced. These are learnable global scalar parameters, constrained by the Sigmoid function. The interval is used to stabilize the style correction process while maintaining discriminativeness.

[0069]

[0070] After refinement and correction, the statistical distributions of RGB and DSM features tend to be consistent, but their contributions to the segmentation task may differ in different scenarios. Therefore, the SCF module introduces a channel-level gating mechanism to achieve adaptive fusion. Let the gating weight be... The final fusion feature is represented as:

[0071] This gating mechanism dynamically adjusts the contribution ratio of the two modalities according to the current scene, making full use of the complementary advantages of RGB and DSM, and outputs the feature transfer in the form of residuals to ensure the stability of feature transfer.

[0072] S4: After obtaining stable and consistent fused features in stage S3, the Transformer performs global semantic modeling. The fused features are mapped to a token sequence with positional encoding, input into the Transformer, and spatial dependencies are modeled globally using a multi-head self-attention mechanism. RGB and DSM features are input to independent attention branches and generate queries, keys, and values ​​through independent linear mappings. Within each branch, a standard scaled dot product self-attention mechanism is used to calculate the feature response. Attention weights are obtained through Softmax, and then the values ​​are weighted and summed, generating the final attention features through the output projection layer, thus achieving global information interaction across spatial locations. The two modalities are modeled in the Transformer using structurally consistent but parameter-independent attention branches to avoid cross-modal interference and maintain their respective semantic expressive capabilities. For any Transformer layer, its core update form is:

[0073]

[0074] in, X This represents the token feature sequence input to the current layer. This indicates the bulls' self-attention. It is a feedforward network. This is a layer normalization operation. This structure enables the model to model global contextual relationships in parallel across multiple subspaces, thereby effectively capturing semantic associations between features across scales in remote sensing images.

[0075] S5: The features obtained in stage S4 are input into the decoder. The decoder progressively fuses the high-level semantic features with the multi-scale features saved in the encoding stage, thereby preserving both spectral and geometric information during detail restoration. Specifically, the decoder gradually restores the spatial resolution of the features through upsampling operations. In each decoding stage, the current feature is skipped with the corresponding level of features from the encoder and fused through convolution operations, thus gradually restoring the spatial structure and details of the image. After decoding, the prediction head maps the fused features into a class prediction map. A 1×1 convolutional layer converts the high-dimensional features of each pixel into a class prediction, and the Softmax function is used to output the class probability of each pixel, thus obtaining the semantic segmentation result.

[0076] S6: During the training phase, set the batch size to 16, select stochastic gradient descent (SGD) as the optimizer, set the momentum coefficient to 0.9, and the weight decay coefficient to 5 × 10⁻⁶. -4 A group learning rate strategy is adopted, with the decoder parameters using a base learning rate of 1×10⁻⁶. -2 The encoder and Transformer parameters use half the learning rate, while the geometry modeling and fusion-related modules use a smaller learning rate to avoid excessive geometric constraints. The learning rate scheduling employs a multi-step decay strategy, reducing the learning rate to 0.1 of its original value at epochs 25, 35, and 45.

[0077] The cross-entropy loss function is used as the main loss function for the semantic segmentation task. Given an input image, the network outputs a shape... The pixel-level prediction probability map (after softmax normalization), where This represents the number of categories. The true label is the category index for each pixel. Its basic form is:

[0078] in, The total number of pixels in the image. For indicator variables (if pixels) The true category is If the value is 1, then the value is 0; otherwise, the value is 0. For the network to pixel Category The predicted probability. In actual training, remote sensing images often face the problem of class imbalance. To alleviate this problem, class weights can be introduced. Weight the loss terms for each category:

[0079] in Typically, the gradient is set based on the reciprocal of the pixel frequency of each category in the training set, so that rare categories receive a higher penalty gradient.

[0080] In this embodiment, OA, Precision, F1_Score, and Iou are selected as evaluation metrics, and the test data is input into the trained model for testing.

[0081] Specifically: The evaluation metric OA is global accuracy, and the equation is:

[0082] The evaluation metric, Precision, is the accuracy rate, and the equation is:

[0083] The evaluation metric F1_Score is the harmonic mean of precision and recall, and its equation is:

[0084] The evaluation index Iou is the intersection-union ratio, and the equation is:

[0085] In the equation, TP, TN, FP, and FN represent the following: TP is the number of samples correctly predicted as positive; TN is the number of samples correctly predicted as negative; FP is the number of samples incorrectly predicted as positive; and FN is the number of samples incorrectly predicted as negative.

[0086] Four test images were selected using the test set data to perform the test, and the final building extraction results were obtained, such as... Figure 5 As shown, the prediction results of each test sample and the corresponding label have a high degree of consistency in terms of building location, shape and outline. It can extract building areas of different scales and shapes relatively completely. At the same time, it has a good ability to distinguish the boundaries between buildings and surrounding vegetation, roads and other features. This shows that the method of the present invention can make full use of the complementary information of optical images and digital surface models to achieve relatively accurate building area extraction.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction, characterized in that: The method includes the following steps: S1. Acquire remote sensing optical images of the target area and the corresponding digital surface model, and perform data preprocessing and data augmentation. S2. Multi-scale feature extraction is performed on the processed remote sensing optical image and digital surface model respectively. Gradient and curvature information are extracted from the digital surface model features to perform weighted reconstruction of the remote sensing optical image features, so as to obtain the reconstructed optical features at each scale. S3. Adaptively align the statistical distribution of digital surface model features and reconstructed optical features and fuse them. First, the neighborhood information is reorganized by the convolution operator to obtain local refinement features. Then, the global attention mechanism is used to obtain the corresponding global dependency features. Next, style correction is performed on the global dependency features. Finally, the two are fused to obtain the final fused features. S4. Introduce the Transformer structure to capture global contextual information and enhance the collaborative modeling between local features and global semantics through a self-attention mechanism; S5. The low-level features at each scale are combined step by step to generate a refined pixel-level building extraction result.

2. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 1, characterized in that: In step S1, the remote sensing optical image of the target area is acquired through airborne aerial photography, and the digital surface model (DSM) is generated by dense matching of stereo pairs of the aerial image. Image preprocessing includes image normalization and noise removal; data augmentation includes random flipping and mirroring; and the final processed remote sensing optical image is obtained. and digital surface model .

3. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 2, characterized in that: In step S2, the remote sensing optical image and digital surface model The input consists of a two-branch parallel encoder with RGB and DSM branches. Each branch performs convolutional downsampling and residual learning step by step to extract features at different scales, thus obtaining a scale feature set. ,in, This refers to the current scale feature level.

4. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 3, characterized in that: In step S2, the extracted optical features are... and digital surface model features First, from the characteristics of digital surface models Extract gradient and curvature information from it, and assume... and Let the gradients be in the horizontal and vertical directions, respectively. Then, the magnitude of the gradient is: In the formula, ; ; These represent the horizontal and vertical directions, respectively. It is a numerically stable term; Then, depthwise separable convolution with a fixed Laplacian operator is used to model the curvature: in This represents the convolution operation of the Laplacian operator; This yields the characteristics of the digital surface model. Corresponding geometric prior graph: The geometric prior map is then used to enhance the corresponding optical features. : in, Used to limit the overall amplitude of geometric modulation For learnable gating parameters; Finally, the enhanced optical features are fused with the original optical features to obtain the reconstructed optical features: in The residual coefficient is used to control the degree of fusion between the original features and the modulation features.

5. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 4, characterized in that: In step S3, firstly, the remote sensing optical image features and digital surface model features output by the encoder are recombined using convolution operators to obtain local refined features: in, This represents the m-th modal feature output by the encoder. This represents the corresponding local refinement feature. This represents a local mapping function consisting of convolution and nonlinear activation.

6. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 5, characterized in that: In step S3, the locally refined features are then... Flattening is a characteristic sequence The query matrix is ​​obtained through linear mapping. Key matrix Sum matrix And calculate global attention features: in, The attention weights between spatial locations are represented by d, where d represents the feature dimensions of the query matrix and the key matrix. Represents the learnable residual coefficients. This represents the features after global attention modeling.

7. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 6, characterized in that: In step S3, style correction is then performed on the features. For any feature... The channel mean and standard deviation are defined as follows: in, It is a numerically stable term; Through standardized operations Eliminate the differences in amplitude scale between different modes; Subsequently, a learnable target statistic is introduced. Recalibrate the features: Introducing the mixing coefficient These are learnable global scalar parameters, constrained by the Sigmoid function. The interval is used to stabilize the style correction process while maintaining discriminative power, namely: Finally, a channel-level gating mechanism is introduced to achieve adaptive fusion; let the gating weight be... The final fusion feature is represented as .

8. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 7, characterized in that: In step S4, the fused features obtained in step S3 are introduced into the remote sensing optical image features through a residual method to obtain enhanced remote sensing optical image features: in, This represents the style correction fusion feature obtained in step S3. Represents the learnable fusion coefficient; Subsequently, respectively and The corresponding convolutional mapping is used to create a token sequence, and learnable positional encoding is added: Where P represents the learnable location code. and These represent the token sequences corresponding to RGB and DSM, respectively. The two token sequences are input into their respective Transformer attention branches, and queries, keys, and values ​​are generated through independent linear mappings. Global semantic modeling is then performed using scaled dot product self-attention. in, This represents the features of the corresponding modality after self-attention modeling; for some Transformer layers, cross-modal attention is calculated using the keys and values ​​of another modality, and then weighted and fused with the self-attention features to achieve deep semantic interaction between the two modalities; For any Transformer layer, the core update form is: in, X This represents the token feature sequence input to the current layer. This indicates the bulls' self-attention. It is a feedforward network. This is a layer normalization operation.

9. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 8, characterized in that: In step S5, the decoder is used to fuse the high-level semantic features with the multi-scale features saved in the encoding stage step by step. In each decoding stage, the current feature is connected to the corresponding level of the encoder features in a skip connection and fused through convolution operation, thereby gradually restoring the spatial structure and details of the image. After decoding, the prediction head maps the fused features into a class prediction map; through a 1×1 convolutional layer, the high-dimensional features of each pixel are converted into class predictions, and the class probability of each pixel is output using the Softmax function, thus obtaining the semantic segmentation result.

10. The multimodal remote sensing semantic segmentation method based on geometric prior guidance and style correction according to claim 1, characterized in that: The method employs the cross-entropy loss function as the loss function for semantic segmentation during training. Given an input image, the network outputs a shape... The pixel-level prediction probability map, where Let be the number of categories; and let the true label be the category index of each pixel. Then the basic form of the loss function is: in, The total number of pixels in the image. As an indicator variable, if pixel The true category is If the value is 1, then the value is 0; otherwise, the value is 0. For the network to pixel Category The predicted probability.