1. Introduction
High-resolution remote sensing semantic segmentation provides important technical support for urban object mapping, land-cover monitoring, and fine-grained spatial analysis. Remote sensing data have been widely used in urban planning and ecological assessment [
1], and they also play a sustained role in agricultural monitoring and related applications [
2]. In these applications, semantic segmentation assigns a semantic label to each pixel and is therefore one of the fundamental tasks in the intelligent interpretation of remote sensing imagery [
3]. However, high-resolution urban imagery not only provides richer spatial details but also amplifies challenges such as scale variation, intra-class diversity, inter-class similarity, shadow occlusion, and fragmented boundaries. Diakogiannis et al. noted that high-resolution remote sensing segmentation needs to handle complex object geometries and pronounced class differences [
4], while Wang et al. further emphasized the importance of jointly modeling global semantics and local details [
5]. Therefore, models for high-resolution remote sensing semantic segmentation should not only produce accurate pixel-level labels, but also extract dense feature representations that support the discrimination of fine boundaries, small objects, and confusing regions.
Advances in computer vision have substantially promoted semantic segmentation. FCN established an end-to-end pixel-level prediction paradigm [
6], and U-Net improved spatial detail recovery through an encoder–decoder structure with skip connections [
7]. CNN-based methods provide useful local inductive biases for extracting textures, edges, and morphology, but their local receptive fields limit the modeling of large-scale semantic relationships. DeepLabv3+ introduced multiscale context aggregation through atrous convolution and decoder refinement [
8], while PSPNet enlarged scene-level context through pyramid pooling [
9]. Transformer-based models further use self-attention to capture long-range dependencies, as demonstrated by ViT [
10] and Swin Transformer [
11]. Mamba offers an efficient state-space route for long-range sequence modeling [
12], and VMamba extends this idea to visual feature maps [
13]. These developments strengthen feature extraction from optical imagery, including local detail recovery, contextual reasoning, and global representation. However, the resulting dense features are still dominated by two-dimensional appearance cues and cannot directly encode height-derived structures. This limitation can lead to unstable pixel-level discrimination in spectrally similar regions, such as buildings and impervious surfaces, trees and low vegetation, or cars and road backgrounds.
Multimodal optical–DSM fusion is therefore a natural way to introduce complementary geometric information. As shown in
Figure 1, optical imagery provides color, texture, and architectural details, whereas digital surface models (DSMs) and their normalized form, normalized digital surface models (nDSMs), describe height variations, local height differences, and structural boundaries. Although optical imagery and nDSM share the same raster format, they describe different physical properties. Optical imagery mainly records spectral and radiometric responses in addition to surface appearance, whereas nDSM is derived from elevation data and represents relative object height and three-dimensional geometric structure. Therefore, we treat optical imagery and nDSM as heterogeneous modalities in this study. FuseNet demonstrated the value of depth cues for RGB-D segmentation [
14], and CMFNet extended cross-modal multiscale fusion to remote sensing data [
15]. FTransUNet strengthens long-range inter-modal interaction through multilevel fusion [
16], and FTransDeepLab improves feature alignment through rectification and cross-attention [
17]. Recent works also explore feature compensation [
18], graph reasoning with Mamba-aided interaction [
19], Mamba-assisted fusion [
20], multimodal state space modeling [
21], and frequency-domain representation [
22]. These studies confirm that height information can complement optical appearance features, but they also point to a more specific issue: elevation data should not merely be fused with optical features; its encoded structural cues should guide which cross-modal information is injected into dense representations.
Accordingly, a central question is how to perform discriminative cross-modal interaction according to height-derived geometric cues. Many fusion strategies rely on concatenation, general gating, or dense attention, but they do not always distinguish which height context, local height differences, and structural edges are useful for the current pixel-level decision. Uniform updates over all spatial locations may allow irrelevant height responses, local noise, and modality conflicts to enter the fused dense features. Dynamic sparse fusion in RGB + X interaction [
23] and asymmetric cross-modal representation learning [
24] suggest that selective interaction can reduce redundancy and modality imbalance. However, these designs do not directly convert the three nDSM-derived structural cues into explicit guidance for cross-modal fusion in remote sensing semantic segmentation. In addition, even enhanced fused features may still produce locally inconsistent outputs. OCR shows that object-level context can improve pixel representation consistency [
25], and the Dynamic Prototype Guided head designed by Ni et al. indicates that explicit class embeddings can strengthen foreground discrimination at the output stage [
26]. These observations motivate geometry-guided selective fusion as the primary design objective, with classifier-conditioned output refinement serving as a complementary step.
To address these challenges, we propose HDSMNet, a framework that integrates modality-specific feature extraction, height-guided sparse fusion, and output refinement. The optical branch adopts ConvNeXt V2 to extract textural and semantic appearance features [
27], while the height branch uses a VSSMEncoder inspired by VMamba to model nDSM structural representations [
13]. The central component is the Height-Guided Sparse Cross-Modal Fusion (HGSCF) module, which derives the three nDSM structural cues and uses them to guide sparse cross-modal interaction. After fusion and decoding, an adapted Context-Guided Refinement (CGR) path provides supplementary calibration of pixel-level predictions.
HDSMNet achieves mIoU values of 86.57% and 84.22% on the ISPRS Potsdam and Vaihingen datasets, respectively. Ablation experiments show that HGSCF provides the larger individual gains, while the adapted CGR component supplies smaller complementary improvements at the output stage. The main contributions are summarized as follows:
- 1.
We construct HDSMNet, a dual-branch framework that preserves modality-specific optical appearance and nDSM height–structural representations for high-resolution remote sensing semantic segmentation.
- 2.
We propose HGSCF as the main technical contribution. It derives three complementary structural cues from encoded nDSM features and uses geometry-aware gating and soft sparse anchors to guide selective cross-modal fusion.
- 3.
Experiments on the ISPRS Potsdam and Vaihingen datasets validate HDSMNet. Ablation studies identify HGSCF as the larger source of individual improvement and show that the adapted output refinement path supplies a smaller complementary gain.
4. Results
4.1. Dataset Description
4.1.1. Potsdam Dataset
The Potsdam dataset consists of 24 high-resolution true orthophotos, each with a size of
pixels. It provides multiple spectral bands, including near-infrared, red, green, and blue bands, together with a normalized digital surface model (nDSM) at a ground sampling distance (GSD) of 5 cm. The dataset contains five foreground classes, namely, buildings (Bui.), trees (Tre.), low vegetation (Low.), cars (Car), and impervious surfaces (Imp.), in addition to one background class, namely, clutter. Following the protocol of FTransUNet [
16], the 24 orthophotos are divided into 18 training images and 6 test images. The training set includes the images with indices 6_10, 7_10, 2_12, 3_11, 2_10, 7_8, 5_10, 3_12, 5_12, 7_11, 7_9, 6_9, 7_7, 4_12, 6_8, 6_12, 6_7, and 4_11, while the test set contains six images with indices 4_10, 5_11, 2_11, 3_10, 6_11, and 7_12.
4.1.2. Vaihingen Dataset
The Vaihingen dataset consists of 16 high-resolution true orthophotos, with an average image size of approximately
pixels. Each orthophoto contains three spectral channels, namely, near-infrared (NIR), red, and green (IRRG), and is accompanied by an nDSM with a GSD of 9 cm. The foreground classes are the same as those in the Potsdam dataset, but the class distribution differs due to the different geographic scenes. Compared with Potsdam, Vaihingen contains fewer images, has a lower spatial resolution, and presents more compact urban structures, including dense buildings, complex vegetation, and fragmented road networks. Therefore, it is a challenging benchmark for semantic segmentation. Following the protocol of FTransUNet [
16], the dataset is divided into a training set with 12 orthophotos and a test set with 4 orthophotos. The training set contains the images with indices 1, 3, 23, 26, 7, 11, 13, 28, 17, 32, 34, and 37, while the test set contains the images with indices 5, 21, 15, and 30.
4.2. Evaluation Metrics
We evaluate all methods using overall accuracy (OA), mean F1-score (mF1), and mean intersection over union (mIoU). OA reflects the overall classification accuracy over valid pixels, mF1 measures the balance between class-wise precision and recall, and mIoU focuses on the overlap quality between predicted regions and ground-truth regions. For class-specific analysis, both the Potsdam and Vaihingen comparisons report class-wise IoU for the five foreground classes: buildings, trees, low vegetation, cars, and impervious surfaces.
Let
denote the confusion matrix, where
represents the number of pixels whose ground-truth class is
i and predicted class is
j. The total OA is calculated from the global confusion matrix as follows:
where
denotes the number of semantic classes considered in the confusion matrix. For the metrics of a specific class, we adopt a one-vs-rest strategy, where the
c-th class is regarded as the positive class and all remaining classes are regarded as negative.
For the
c-th foreground class, the F1-score is defined as
where
and
denote the precision and recall of class
c, respectively. They are calculated as follows:
Here, , , and denote the numbers of true positive, false positive, and false negative pixels for class c, respectively.
IoU measures the intersection-over-union ratio between the predicted region and the ground-truth region. For the
c-th foreground class, it is defined as
The Bui., Tre., Low., Car, and Imp. columns in
Table 1 and
Table 2 report this class-wise IoU, enabling direct analysis of the overlap quality for each foreground category.
After obtaining
and
for each foreground class, we further compute the mean F1-score and mean IoU as follows:
where
denotes the number of foreground classes included in the average. In our experiments,
, which means that the clutter class is not included in the calculation of mF1 and mIoU. As mIoU is more sensitive to the segmentation quality of each class, the following experimental analysis mainly focuses on mIoU, together with total OA, mF1, and class-wise IoU.
4.3. Implementation Details
For data preprocessing, our method follows the protocol of FTransUNet [
16]. Optical images are normalized before training, while each nDSM tile is normalized to
. Random horizontal and vertical flipping is applied to the cropped training patches. During inference, whole images are processed by sliding-window prediction with strides of 32 and 128 pixels for Vaihingen and Potsdam, respectively, and the logits in overlapping regions are accumulated before pixel-wise classification. For all methods, evaluation uses the official eroded/no-boundary annotations; ignored boundary pixels do not contribute to the reported metrics. Clutter remains the sixth semantic class during training and is included in OA, but it is excluded from the five-foreground-class averages used for mF1 and mIoU. The dataset-specific inference strides are applied consistently to all compared methods. All experiments are conducted under the same hardware and software environment. The experimental platform is configured with Ubuntu 22.04, Python 3.10, PyTorch 2.1.2, and CUDA 11.8. The hardware comprises one NVIDIA GeForce RTX 4090D GPU (NVIDIA Corporation, Santa Clara, CA, USA) with 24 GB of memory, 15 virtual CPU cores based on an Intel(R) Xeon(R) Platinum 8474C processor, and 80 GB of RAM. All models are compared under the same input size, training split, and evaluation protocol to ensure comparability.
For better initialization, the ConvNeXtV2-Tiny optical backbone and the VMamba nDSM encoder of HDSMNet are initialized using their publicly released pretrained checkpoints. HDSMNet is optimized using AdamW with a cosine annealing learning-rate scheduler. AdamW decouples weight decay from gradient updates, which helps reduce overfitting and improve training stability, while the scheduler smoothly decays the learning rate during training. For every compared method, training is conducted for 50 epochs on Vaihingen and 100 epochs on Potsdam. A total of 10,000 training patches are randomly sampled in each epoch. All input images are randomly cropped into patches, and the batch size is set to 10. The initial learning rate of HDSMNet is set to , the minimum learning rate is set to , and the weight decay is set to 0.05. The loss function is a combination of cross-entropy loss and Dice loss, with both loss weights set to 1.0.
4.4. Comparative Experiments
To evaluate HDSMNet on high-resolution urban remote sensing segmentation, we compare it with nine representative semantic segmentation methods, including single-modal or single-input methods ABCNet [
41], MAResU-Net [
42], UNetFormer [
5], and RS3Mamba [
38], in addition to multimodal methods ESANet [
43], SA-Gate [
44], MCFMamba [
45], MultiSenseSeg [
46], and FTransUNet [
16]. The main characteristics of these compared methods are summarized as follows.
All compared methods are trained using their original architectures while following the same dataset split, input size, optimizer, learning-rate schedule, and number of training epochs.
ABCNet: ABCNet adopts a lightweight dual-path CNN structure. It preserves detailed information through a spatial path and models large-range semantic context through a context path, aiming to balance efficiency and accuracy in high-resolution remote sensing segmentation.
MAResU-Net: MAResU-Net introduces multistage attention and residual connections into the U-Net framework. It uses a linear attention mechanism to reduce the attention cost on large feature maps, thereby enhancing contextual modeling for fine-grained remote sensing imagery.
UNetFormer: UNetFormer combines a lightweight convolutional encoder with a Transformer decoder and uses global–local attention to jointly model global semantic relationships and local spatial details. It is commonly used as a single-modal Transformer baseline in remote sensing semantic segmentation.
ESANet: ESANet is designed for RGB-D semantic segmentation with a dual-encoder structure. It exploits depth information through efficient feature fusion and decoding, improving geometric awareness while maintaining inference efficiency.
SA-Gate: SA-Gate uses a separation-and-aggregation gate to separate, recalibrate, and aggregate RGB and depth features. It is designed to alleviate the influence of depth noise and cross-modal inconsistency on semantic segmentation.
MCFMamba: MCFMamba performs remote sensing semantic segmentation based on a multimodal cross-fusion Mamba structure. It uses dual VMamba encoders, a cross-Mamba fusion module, and a U-shaped Mamba decoder to model long-range cross-modal dependencies.
MultiSenseSeg: MultiSenseSeg proposes a unified framework for multimodal remote sensing semantic segmentation. It uses lightweight modality-specific experts, an adaptive multimodal matching module, and a shared feature extraction process to achieve low-cost segmentation under different modality settings.
RS3Mamba: RS3Mamba introduces visual state space modeling into remote sensing semantic segmentation. It uses VSS blocks as an auxiliary branch to supplement global information for a convolutional branch, and is used here as a single-input Mamba/SSM baseline for high-resolution remote sensing semantic segmentation.
FTransUNet: FTransUNet adopts a multilevel multimodal fusion Transformer framework. It combines shallow feature fusion with a deep Fusion ViT structure to exploit both local details and global cross-modal relationships in optical–DSM semantic segmentation.
Comparative experiments are conducted on the Potsdam and Vaihingen datasets, and the results are reported in
Table 1 and
Table 2, respectively. The highest value of each metric among the listed methods is highlighted in bold.
4.4.1. Comparison on the Potsdam Dataset
Table 1 compares HDSMNet with representative methods on the Potsdam dataset. HDSMNet obtains 91.54% OA, 92.63% mF1, and 86.57% mIoU, which are the highest values among the listed methods. Compared with FTransUNet, the corresponding improvements are 0.60, 0.56, and 0.93 percentage points, respectively. These moderate gains suggest that HDSMNet improves class-balanced segmentation quality while maintaining competitive overall pixel accuracy under the evaluated setting.
At the class level, HDSMNet achieves the highest IoU among the listed methods for buildings, trees, low vegetation, and impervious surfaces. Relative to FTransUNet, the gains for these classes are 0.31, 1.32, 1.74, and 0.72 percentage points, respectively. The comparatively larger differences for trees and low vegetation suggest that combining optical information with nDSM structure may provide useful complementary cues for vegetation separation. For cars, HDSMNet reaches 93.92% IoU, which is 0.56 percentage points above FTransUNet but 0.27 percentage points below SA-Gate.
Figure 5 further illustrates the spatial prediction quality on the Potsdam dataset. The figure includes the optical image, nDSM, ground truth, predictions of representative methods, and the prediction of HDSMNet.
In the displayed Potsdam examples, HDSMNet produces comparatively coherent predictions around several building contours and adjacent impervious-surface regions, although local omissions and fine-boundary errors remain. This sample-level observation is consistent with the class-wise IoU results for buildings and impervious surfaces in
Table 1, suggesting that height discontinuities and structural edges in nDSM may provide useful complementary information for spectrally similar regions. Several tree–low-vegetation transitions also appear locally less fragmented, while other ambiguous transitions remain difficult. For small objects such as cars, HDSMNet retains relatively clear responses in the selected road backgrounds. These localized behaviors may be associated with the geometry-guided fusion provided by HGSCF, while the adapted CGR path provides supplementary output refinement; they do not establish uniformly superior boundary quality across all categories and spatial scales.
In the middle highlighted region, tree shadows weaken the optical appearance of the building, and several optical-only baselines show local fragmentation or class confusion around the roof. The corresponding nDSM preserves a clear relative-height contrast, which may help HDSMNet maintain a comparatively coherent building response in this selected area under shadow occlusion.
The visual comparison also reveals several remaining failure cases. HDSMNet does not completely eliminate errors around narrow roof boundaries, thin road structures, and isolated small objects. These regions either occupy only a few pixels or exhibit weak local height contrast, limiting the geometric evidence available to HGSCF. In addition, local errors may remain when an nDSM boundary does not precisely coincide with the corresponding optical boundary. These observations suggest that height-derived guidance can support selected geometrically distinctive regions but cannot fully replace fine-grained appearance modeling and boundary-preserving mechanisms.
4.4.2. Comparison on the Vaihingen Dataset
Table 2 reports the comparison results on the Vaihingen dataset. Compared with Potsdam, Vaihingen contains fewer images, has a spatial resolution of 9 cm, and presents more compact spatial structures in the test areas. Therefore, this dataset can further evaluate the adaptability of HDSMNet under a smaller training scale and different spatial resolution.
In terms of overall metrics, HDSMNet achieves 92.06% OA, 91.18% mF1, and 84.22% mIoU on Vaihingen. It obtains the highest mF1 and mIoU among the compared methods, exceeding FTransUNet by 0.34 and 0.59 percentage points, respectively, although its OA is 0.20 percentage points lower. These results indicate that HDSMNet improves class-balanced segmentation quality without uniformly maximizing every metric.
The clearest class-level advantage appears for cars. HDSMNet achieves 86.76% IoU, outperforming the second-best RS3Mamba by 2.95 percentage points and FTransUNet by 4.97 percentage points. Cars occupy few pixels in the 9 cm Vaihingen imagery and are easily confused with roads, shadows, and surrounding impervious surfaces. Their local height discontinuities provide useful geometric evidence that may help HGSCF complement weak or ambiguous optical responses and retain small vehicle regions. This result supports an advantage for this small-object category but does not by itself indicate uniformly better boundary localization for other categories.
For buildings, trees, and impervious surfaces, HDSMNet obtains IoU values of 94.60%, 83.90%, and 87.57%, respectively. Although these values are not the highest, they are only 0.68, 0.24, and 0.23 percentage points below the corresponding best results, indicating competitive performance across major urban categories. Low vegetation remains a relative limitation: its IoU of 68.25% is below the best result of 69.12%. Unlike buildings, trees, or vehicles, low vegetation usually produces weak relative-height contrast with nearby ground surfaces, so nDSM contributes less distinctive geometric evidence. Its separation therefore depends more strongly on fine-grained spectral and textural cues, limiting the benefit available from height-guided fusion.
Figure 6 presents the visual comparison of prediction maps on the Vaihingen dataset. Compared with Potsdam, Vaihingen has lower spatial resolution, a smaller sample size, and more compact urban scenes. As a result, it is more prone to building boundary fragmentation, confusion between trees and low vegetation, and missed detection of small cars.
In the lower-left highlighted region, two cars lie in a heavily shadowed area of impervious surface. Several optical-only methods miss or confuse at least one car, whereas HDSMNet retains both car responses more clearly, suggesting that nDSM-derived height contrast and structural context can complement degraded optical appearance in shadowed regions.
In the highlighted examples, HDSMNet preserves several small vehicle regions comparatively well, which is consistent with its leading car IoU in
Table 2. The method remains competitive around the displayed building and tree-canopy structures, although errors persist at some fine boundaries. By contrast, low-vegetation transitions remain difficult because these regions often lack strong relative-height contrast and must be distinguished mainly through optical appearance. Overall, the visual and quantitative results suggest that HDSMNet benefits most from objects with localized height discontinuities, while further improvement is needed for weak-height-signal categories and uncertain boundaries. This evidence is category- and region-dependent rather than an indication of uniformly superior boundary quality at every spatial scale.
5. Discussion
5.1. Ablation Study
The ablation study separates the effect of the proposed HGSCF module from that of the adapted output refinement path.
Table 3 and
Table 4 report the results. The baseline keeps the same ConvNeXt V2 optical encoder, nDSM stem with VSSMEncoder, and UNet-style decoder as HDSMNet. When HGSCF is disabled, the fusion module is replaced by a static CatConvFusionBlock, which concatenates optical and nDSM features at each scale and projects them with a
convolution. When CGR is disabled, the decoder uses the standard output path with the feature refinement layer and a
classifier, without SpatialGatherModule or the DPG-style modulation module. HGSCF is evaluated as the principal fusion contribution, whereas CGR is evaluated to quantify the additional effect of supplementary classifier-conditioned output refinement.
On the Potsdam dataset, the baseline obtains 84.85% mIoU. Adding HGSCF alone increases the mIoU to 86.00%, a gain of 1.15 percentage points, whereas the adapted CGR component alone reaches 85.22%, a gain of 0.37 percentage points. Although CGR alone also increases mF1 from 91.62% to 91.80%, its OA decreases slightly from 90.66% to 90.59% ( percentage points). This comparison identifies height-guided fusion as the larger individual source of improvement, while classifier-conditioned refinement provides a smaller complementary gain in the class-balanced metrics without uniformly improving OA. When the two components are used together, the model achieves 91.54% OA, 92.63% mF1, and 86.57% mIoU, improving over the baseline by 0.88, 1.01, and 1.72 percentage points, respectively.
On the Vaihingen dataset, the mIoU improvements follow a similar pattern, but the metric-wise behavior is not uniform. HGSCF increases the mIoU from 82.26% to 83.93%, a gain of 1.67 percentage points, while the adapted CGR component alone reaches 83.37%, a gain of 1.11 percentage points. Adding CGR to HGSCF further increases mF1 from 91.02% to 91.18% and mIoU from 83.93% to 84.22%, but slightly reduces OA from 92.12% to 92.06% ( percentage points). Thus, CGR provides supplementary improvements in mF1 and mIoU, but its effect on OA is small and nonmonotonic.
The parameter counts further clarify the cost of each component. CGR adds only approximately 0.004 M parameters to the baseline on either dataset, whereas HGSCF adds approximately 12.790 M parameters and accounts for most of the additional model capacity. The full model contains 64.910 M parameters on Potsdam and 64.908 M on Vaihingen; the slight difference results from the four-channel and three-channel optical inputs, respectively. Thus, CGR provides complementary output refinement with negligible parameter growth, while the larger cost of HGSCF accompanies its stronger improvement in cross-modal feature fusion.
To further examine the effects of HGSCF and the adapted output refinement component,
Figure 7 presents Grad-CAM visualizations for the building class at four fusion stages. The baseline produces relatively diffuse responses at the shallow and intermediate stages, with some activations extending into adjacent vegetation and shadowed regions. Adding the adapted CGR component alone mainly changes the deeper class-discriminative response, while its influence on early geometry localization remains limited. In contrast, the variants containing HGSCF generally show responses that are more closely aligned with building contours and roof regions at the early fusion stages. The full HDSMNet retains these geometry-aware responses and produces a more coherent building-focused activation at the final fusion stage. These observations are consistent with HGSCF serving as the primary geometry-aware fusion component and the adapted CGR component providing supplementary output refinement.
5.2. Hyperparameter Sensitivity Analysis
The HGSCF module contains two principal hyperparameters: the number of anchors K, which determines the size of the compact key/value interaction set, and the temperature coefficient , which controls the sharpness of the spatial assignment distributions. Their sensitivity is evaluated on the Vaihingen dataset by varying one parameter at a time while keeping all other network structures and training settings unchanged.
Table 5 summarizes the resulting mIoU values and their differences from the default setting.
With fixed at 0.7, increasing K from 4 to 16 improves the mIoU from 83.82% to 84.22%, whereas increasing it further to 32 reduces the mIoU to 83.92%. This suggests that too few anchors may be insufficient to represent diverse height structures and cross-modal discrepancies, while too many anchors may introduce redundant regional representations and weaken the compactness of sparse interaction.
With K fixed at 16, outperforms both 0.3 and 1.0. A lower temperature may produce overly concentrated spatial assignments, whereas a higher temperature may smooth the assignments and reduce their selectivity for discriminative geometric regions. The mIoU varies by at most 0.59 percentage points across all tested settings, indicating relatively stable performance over the evaluated ranges. Accordingly, and are adopted as the default configuration in the remaining experiments.
5.3. Model Complexity Analysis
To evaluate the resource consumption, inference efficiency, and segmentation performance of different methods, five indicators are used: the number of parameters (Params), floating-point operations (FLOPs), GPU memory consumption (memory), frames per second (FPS), and mIoU. Params reflects model size, FLOPs measure computational complexity, memory denotes inference memory consumption, and FPS measures patch-level inference throughput. An efficient semantic segmentation model should balance these resource costs and inference speed while maintaining reliable segmentation performance.
As shown in
Table 6, single-modal models generally require fewer parameters, FLOPs, and memory. UNetFormer has the lowest values in these complexity indicators, but its mIoU is lower than that of HDSMNet. This is expected because single-modal models process only optical input and have shorter computational paths, but they lack nDSM height–structural information. Therefore, the complexity of HDSMNet should be interpreted together with its multimodal feature extraction objective, rather than only against lightweight single-modal models.
Among multimodal methods, HDSMNet shows a reasonable accuracy–complexity trade-off. Compared with FTransUNet, it reduces FLOPs, parameters, and memory consumption by approximately 76.8%, 68.1%, and 55.6%, respectively, while achieving a higher mIoU on Vaihingen. Compared with MCFMamba, HDSMNet has comparable FLOPs, lower memory consumption, and a 3.32 percentage-point improvement in mIoU. At the module level, the compact-anchor formulation limits query–context interaction to approximately
, rather than the
pairwise interaction of dense global attention. The whole-model measurements in
Table 6 indicate an accuracy–complexity trade-off under the evaluated configurations, but they are not used as a controlled comparison between HGSCF and alternative dense fusion blocks. The objective of HDSMNet is therefore not to minimize a single complexity indicator, but to obtain more discriminative dense features under controllable computational cost.
Under the same patch-level measurement setting, HDSMNet reaches 64.262 FPS, exceeding FTransUNet (57.824 FPS), MCFMamba (32.835 FPS), and MultiSenseSeg (54.361 FPS), although it remains slower than ESANet and SA-Gate. This result indicates that HDSMNet provides moderate inference throughput rather than an absolute speed advantage.
5.4. Error-Annotated Visualization Analysis
To further observe the spatial distribution of errors, binary error maps are drawn on the Potsdam dataset, as shown in
Figure 8. Green indicates correctly classified pixels, while red indicates misclassified pixels. Compared with semantic prediction maps, error maps more directly reveal whether errors are concentrated around challenging segmentation regions, such as building boundaries, vegetation transitions, road structures, and small vehicle objects.
As shown in
Figure 8, single-modal methods such as ABCNet and MAResU-Net produce scattered red error pixels around building boundaries, road networks, and vegetation regions with complex textures. This suggests that optical-only models are vulnerable to spectral similarity, shadows, and fragmented boundaries. Multimodal methods such as ESANet, SA-Gate, and MultiSenseSeg reduce errors in some regions, but continuous misclassifications remain around mixed building–road–vegetation areas and oblique linear structures, indicating that general fusion may not fully exploit discriminative geometric cues.
In the displayed example, HDSMNet exhibits fewer large continuous error regions, while the remaining errors are mainly located around complex boundaries, thin road structures, and small local objects. The associated predictions show fewer continuous errors in some spectrally similar regions, such as buildings versus impervious surfaces and trees versus low vegetation; however, this sample-level observation does not establish uniformly better boundary quality across all categories or spatial scales. The adapted component provides supplementary output refinement, whose measured contribution is reflected by the ablation gains in mF1 and mIoU. The remaining errors also show that HDSMNet does not fully eliminate fine boundary ambiguity, especially when height differences are weak, targets are extremely small, or annotation boundaries are uncertain.
5.5. Robustness to nDSM Corruptions
To quantify the influence of nDSM quality without changing the trained weights, controlled corruptions are applied only to the normalized nDSM input on the Vaihingen test set, while the optical input and inference settings remain unchanged. Three corruption types are considered: spatial shifts of 1, 2, and 5 pixels in four directions; additive Gaussian noise with
; and block-wise missing-height regions covering 5%, 10%, and 20% of the nDSM. The latter two settings are repeated with three random seeds. HDSMNet is compared with its static Concat fusion baseline using the same CGR output path and with FTransUNet.
Figure 9 reports the complete degradation trends, and
Table 7 summarizes the highest tested severity of each corruption.
Under a 5-pixel shift, all three methods show comparatively limited degradation, and HDSMNet has the smallest mean reduction. This suggests relatively low sensitivity to the tested spatial offsets, although the absolute difference from the Concat baseline remains modest. The separation becomes clearer under Gaussian noise: at , HDSMNet decreases by 0.40 percentage points, compared with 0.90 and 6.25 percentage points for the Concat baseline and FTransUNet, respectively. This result is consistent with selective geometry-guided interaction limiting the propagation of some local height perturbations, rather than treating every corrupted response as equally informative.
Missing-height regions provide the most discriminative setting among the evaluated corruptions. When 20% of the nDSM is removed, the mIoU reductions are 0.58, 2.18, and 14.00 percentage points for HDSMNet, the Concat baseline, and FTransUNet, respectively. The smaller degradation of HDSMNet suggests that its optical representation and sparse geometry-guided interaction retain useful complementary information when parts of the height input are unavailable. Nevertheless, performance continues to decrease as corruption severity increases, indicating that the robustness improvement is not complete and that stronger or compound data-quality disturbances may remain challenging.
5.6. Limitations
Although HDSMNet shows effectiveness in high-resolution urban remote sensing semantic segmentation, its applicability is still affected by cross-modal data quality and differences in object geometric structures.
First, HDSMNet remains dependent on the quality and spatial alignment of optical–nDSM data because HGSCF derives its guidance from the three encoded nDSM structural cues. The experiments in
Section 5.5 show comparatively limited degradation within the evaluated corruption ranges; however, the performance still declines as the perturbation severity increases, indicating that sensitivity to registration quality and uncertain nDSM observations has not been fully eliminated. More severe misregistration, abnormal elevation values, and structured or compound nDSM artifacts may therefore still affect geometric guidance and sparse interaction. Future work should further improve adaptive reliability estimation for uncertain height observations.
Second, the class-wise results vary across datasets and categories. Some categories with relatively distinctive height structures obtain favorable results in individual settings, but the current evidence does not establish a consistent advantage across all categories or both datasets. For regions where height differences are weak and boundaries depend mainly on optical textures or local context, the model may still produce fine-grained misclassifications. This suggests that the nDSM geometric prior can complement the missing 3D structural information in optical imagery, but it cannot fully replace fine-grained spectral–textural modeling and boundary consistency constraints. For extremely small objects or thin structures, stronger boundary preservation and small-object enhancement strategies are still needed.
Third, the current controlled fusion comparison uses a static CatConv baseline under the same encoders and decoder. Dense cross-attention and SA-Gate-style gating have not been evaluated within this identical framework, and the context cue, local contrast, structural-discontinuity cue, and anchor geometry term inside HGSCF have not been separately ablated. Therefore, the present results support the aggregate benefit of the complete HGSCF module over CatConv, but do not establish superiority over all alternative fusion mechanisms or isolate the contribution of every internal cue. More comprehensive controlled comparisons and component-level ablations are left for future work.
Fourth, per-tile normalization of nDSM to improves input-scale stability but removes absolute height differences across tiles. Accordingly, the context cue used in this study should be interpreted as within-tile relative structural context rather than absolute elevation context. Comparing per-tile normalization with dataset-level global normalization is an important direction for evaluating whether cross-tile absolute height information provides additional benefit.
Finally, the implemented Context-Guided Refinement path uses a shared classifier and receives indirect supervision through the final segmentation loss. It has not been compared with direct auxiliary supervision, an independent coarse classifier, or other supervision strategies. Likewise, the asymmetric optical–height gating has not been evaluated against a symmetric gating variant under otherwise identical settings. The reported results therefore characterize the adopted design, but do not establish these choices as optimal; these alternatives warrant controlled evaluation in future work.
6. Conclusions
This study presents HDSMNet, a height-derived geometric-prior-guided framework for feature extraction and cross-modal fusion in high-resolution remote sensing semantic segmentation, with nDSM used as the elevation input in the experiments. HDSMNet adopts a dual-branch architecture to extract optical appearance features and nDSM height–structural features. Its main methodological component, HGSCF, performs selective interaction between the two modalities using the three nDSM-derived structural cues. An adapted Context-Guided Refinement (CGR) component provides supplementary classifier-conditioned output refinement after fusion.
HDSMNet achieves mIoU values of 86.57% and 84.22% on the ISPRS Potsdam and Vaihingen datasets, respectively. Ablation results show that HGSCF provides the larger individual improvement by strengthening height-guided cross-modal feature extraction, while the adapted output refinement component contributes smaller additional gains in mF1 and mIoU. Complexity analysis suggests that HDSMNet maintains a reasonable balance among accuracy, FLOPs, model parameters, and memory consumption, while the displayed visual examples show fewer continuous errors in some selected building, vegetation, and small-vehicle regions.
Future work will focus on improving robustness and efficiency. On the one hand, more robust geometric fusion mechanisms can be investigated to handle noisy nDSM data and cross-source registration errors, thereby improving the stability of the model under complex preprocessing conditions. On the other hand, the dual-branch encoder and HGSCF module can be further compressed to explore lightweight variants that are more suitable for edge devices and large-scale mapping tasks.