Next Article in Journal
Automating Tree Crown Delineation in UAV Orthomosaics Without Annotation: An Annotation-Free Framework Coupling DeepForest, Segment Anything, and Unsupervised Clustering
Previous Article in Journal
Benchmarking Open-Access Building Footprints: A Multi-Dimensional Assessment with High-Fidelity References
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

DC4Former: Orientation-Stable UAV Disaster Image Segmentation via Diagonal-Complemented C4 Consistency

College of Information Technology, Shanghai Ocean University, Shanghai 201306, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2026, 18(17), 2896; https://doi.org/10.3390/rs18172896
Submission received: 5 July 2026 / Revised: 13 August 2026 / Accepted: 25 August 2026 / Published: 27 August 2026
(This article belongs to the Section AI Remote Sensing)

Highlights

What are the main findings?
  • DC4Former improves UAV disaster segmentation stability by combining C 4 -consistent operators with a single 45 training augmentation.
  • On RescueNet, the three-seed worst-angle foreground mIoU improves from 54.90% to 67.66%, and the eight-angle standard deviation decreases from 4.17 to 0.33.
What are the implications of the main findings?
  • Rotation-wise evaluation should complement canonical-orientation mIoU in UAV disaster mapping.
  • The method improves reliability under changing image orientation with an associated increase in inference latency.

Abstract

UAV disaster imagery is often acquired under varying flight headings and camera yaw orientations, which can change the in-plane orientation of the observed scene. We propose DC4Former, an orientation-stable segmentation framework built on LRFormer. The architecture-only variant, C4Former, targets four grid-preserving rotations ( 0 , 90 , 180 , and 270 ) by redesigning three rotation-sensitive operations: stride-1 spatial convolution, strided downsampling, and low-resolution pooling attention. It uses C 4 -symmetrized kernels, feature-rotation-averaged downsampling, and aligned four-view pooling attention with constrained branch fusion. DC4Former further adds a single 45 rotation augmentation during training to improve empirical robustness at diagonal angles while retaining C 4 as the grid-preserving architectural basis. FloodNet and RescueNet experiments use an eight-angle protocol and a 24-angle stress test. Compared with LRFormer, DC4Former increases the three-seed worst-angle foreground mIoU from 70.14% to 76.83% on FloodNet and from 54.90% to 67.66% on RescueNet, while reducing the RescueNet eight-angle standard deviation from 4.17 to 0.33. Relative to LRFormer-RandRot, which adds no inference-time overhead, the observed deployment trade-off is dataset- and protocol-dependent. On FloodNet, LRFormer-RandRot has slightly higher All-8, Worst-8, Mean-24, and Worst-24 values. On RescueNet, it has higher Mean-24 and Worst-24 and a lower Std.-24, whereas DC4Former has higher All-8 and Worst-8 and a lower Std.-8 under the eight-angle protocol at increased inference latency. Taken together, these results show that operator-aware C 4 consistency combined with diagonal training exposure provides an architecture-level route to improved reliability across the eight principal orientations relative to the unmodified LRFormer backbone.

1. Introduction

UAVs provide very-high-resolution observations of damaged, inaccessible, and safety-critical areas, revealing roads, buildings, vegetation, water, vehicles, debris, and damaged infrastructure. Semantic segmentation converts these observations into pixel-level thematic maps that support emergency mapping, damage assessment, and recovery planning. Public benchmarks such as FloodNet [1] and RescueNet [2], together with recent aerial flood benchmarks and disaster-oriented segmentation studies [3,4,5], have facilitated the development and evaluation of UAV disaster-scene segmentation methods. These benchmarks and studies primarily report performance in the original image orientation. In deployment, however, UAV flight headings and camera yaw orientations can change across sorties or even within the same mission. The same road, building, vehicle, water boundary, or damaged region may therefore appear at different in-plane orientations while retaining the same semantic meaning. In-plane orientation variation differs from region, season, sensor, and spectral-domain shifts [6], yet it raises the same deployment concern: performance measured under one acquisition condition may not predict map repeatability under another. Canonical-orientation mIoU alone is therefore insufficient to measure the repeatability of UAV disaster maps under changing image orientations.
Two complementary strategies can be used to address orientation-dependent prediction variation. The first is training-time rotation augmentation, which exposes images and dense labels to additional orientations. This approach is straightforward, introduces no architectural inference overhead, and can provide a strong practical baseline. Nevertheless, the resulting robustness is learned implicitly from the sampled training transformations; augmentation does not directly constrain how internal spatial and token operations respond to rotation. The second strategy is architecture-level transformation modeling. Architecture-level approaches encode geometric priors through group-equivariant convolution, steerable filters, rotation-aware detection, and rotation-equivariant segmentation networks [7,8,9,10,11,12,13,14]. These studies show that transformation behavior can be addressed within network operators, although practical segmentation pipelines still face padding, interpolation, and spatial-alignment effects. Rotation augmentation supplies transformation exposure during training, whereas architecture-level consistency changes how the model responds to transformed inputs. The two approaches can be combined, and their usefulness varies with the dataset, reliability target, and inference budget.
This issue is particularly relevant to hierarchical segmentation Transformers. Modern segmentation models combine local convolution, multistage feature reduction, token pooling, and attention-based context aggregation. Representative CNN and Transformer architectures include FCN [15], U-Net [16], PSPNet [17], DeepLabv3+ [18], DenseASPP [19], Swin Transformer [20], SegFormer [21], MaskFormer [22], Mask2Former [23], and LRFormer [24]. LRFormer is especially relevant because it reduces attention cost by computing self-attention in a low-resolution token space. However, its spatial-token pathway contains several operations whose responses may change under image rotation, including convolutional positional encoding, local depthwise convolution, overlapping patch embedding, strided downsampling, adaptive token pooling, and low-resolution attention aggregation. These operations are coupled along the feature hierarchy: a rotated input changes the local sampling pattern seen by spatial convolutions, the altered responses are then subsampled by stride-dependent reductions, and the resulting tokens are pooled and aggregated by attention in a low-resolution coordinate system. Existing rotation-aware methods motivate explicit geometric modeling, but the combined effects of stride-1 convolution, strided sampling, token pooling, and attention within a hierarchical segmentation Transformer remain less systematically addressed. Modifying only a convolutional kernel or only an attention operation may therefore leave other orientation-sensitive stages in the spatial-token pathway unaddressed. Accordingly, we examine whether coordinated treatment of these operation classes can reduce right-angle inconsistency, whether one diagonal training representative can reduce the remaining orthogonal–diagonal gap, and how this design compares with continuous random-rotation augmentation under matched training exposure.
We address this gap using the four grid-preserving rotations of the discrete C 4 group: 0 , 90 , 180 , and 270 . These transformations map a regular square-pixel lattice onto itself through exact index permutations and can therefore be applied without interpolation. In contrast, diagonal rotations such as 45 , 135 , 225 , and 315 require interpolation-based resampling and introduce additional boundary and sampling effects. We therefore use C 4 for the interpolation-free architectural path and evaluate diagonal rotations as a separate empirical robustness problem. The architecture-only variant, C4Former, redesigns three rotation-sensitive operation classes in LRFormer: stride-1 spatial convolution, strided downsampling, and low-resolution pooling attention. It uses C 4 -symmetrized kernels, feature-rotation averaged downsampling, and aligned four-view pooling attention with constrained branch fusion.
To complement the grid-preserving C 4 construction, DC4Former introduces a single-diagonal augmentation (SDA) based on the discrete eight-angle decomposition
C 8 = C 4 ( 45 + C 4 ) .
The 45 transformation provides one training representative of the complementary diagonal set, while composition with the four C 4 rotations relates this representative to the remaining diagonal orientations. The diagonal transformation requires interpolation, and the complete segmentation pipeline contains finite boundaries, padding, decoder resizing, and bounded adaptive fusion. Under these practical conditions, C4Former targets approximate consistency over the four grid-preserving rotations, and DC4Former combines this architecture-level constraint with diagonal training exposure to improve empirical orientation stability over the evaluated eight-angle and 24-angle protocols.
We evaluate the proposed design on FloodNet and RescueNet through three complementary questions: whether the operator-aware C 4 redesign reduces right-angle inconsistency, whether single-diagonal exposure improves robustness beyond C 4 , and how the resulting reliability compares with continuous random-rotation augmentation. The evaluation combines multi-seed eight-angle and 24-angle tests, internal feature/logit/prediction consistency diagnostics, complete operator ablations, matched RandRot controls, and inference-cost measurements. These analyses separate the effects of architecture-level consistency, diagonal training exposure, and computational cost.
The main contributions of this paper are summarized as follows:
  • We develop an operator-aware C 4 -consistent LRFormer backbone by separately redesigning three rotation-sensitive operation classes: stride-1 spatial convolution, strided downsampling, and low-resolution pooling attention. The attention pathway aligns four rotated low-resolution branches and applies constrained adaptive fusion as a bounded correction to uniform C 4 averaging. Together, these operator-specific designs form the C4Former architecture.
  • We extend C4Former with a single 45 diagonal training augmentation motivated by the discrete decomposition C 8 = C 4 ( 45 + C 4 ) . This design combines a grid-preserving C 4 architectural basis with training exposure to one representative of the complementary diagonal set, forming DC4Former. Because the augmentation is applied only during training, it introduces no additional inference cost relative to C4Former.
  • We conduct a controlled multi-seed evaluation that combines matched RandRot controls, complete operator ablations, internal consistency diagnostics, eight-angle and 24-angle tests, and inference-cost measurements. The results characterize the respective contributions of architecture-level C 4 consistency and training-time rotation exposure, together with their dataset-dependent reliability–latency trade-off.
The present implementation is instantiated on LRFormer. Extending the same operator-aware design principle to other hierarchical segmentation Transformers and improving the reliability–latency trade-off remain directions for future work.

2. Related Work

2.1. UAV-Based Disaster Scene Segmentation

UAV disaster segmentation must separate roads, buildings, water, vegetation, vehicles, debris, and damage-related categories from very-high-resolution images acquired under varying flight headings. These scenes contain small structures, ambiguous water–land boundaries, occlusions, damaged regions, and visually similar categories. FloodNet [1] and RescueNet [2] provide representative post-disaster UAV benchmarks for this setting. FloodNet supports post-flood scene understanding with categories such as flooded buildings, flooded roads, water, vehicles, vegetation, and background, whereas RescueNet focuses on natural-disaster damage assessment with building-damage levels, blocked roads, vehicles, water, trees, and related scene classes.
Existing UAV disaster segmentation methods mainly improve canonical-orientation accuracy by strengthening contextual representation, multi-scale feature aggregation, domain adaptation, multimodal fusion, or flood-specific scene modeling. Comprehensive semantic segmentation studies on high-resolution UAV disaster imagery establish baseline comparisons and show that disaster categories such as flooded roads, damaged buildings, and debris-like regions remain challenging because of small object size and ambiguous boundaries [4]. Multitemporal and multisensor fusion methods improve flood segmentation by combining complementary observations [25], while adversarial domain adaptation reduces cross-domain gaps in flood mapping [26]. Recent lightweight Transformer and flood-focused designs further improve aerial disaster or flooded-region segmentation, including CSDNet for context-aware disaster aerial imagery segmentation [5], SwinSegFormer for aerial flood detection [27], and Flood-Eye for flooded-region segmentation and area estimation [28]. Recent aerial flood benchmarks also extend flood-focused segmentation and scene-understanding evaluation [3]. These methods improve segmentation accuracy, efficiency, cross-domain robustness, or flood-area assessment under the standard evaluation setting, but they do not explicitly evaluate whether predictions remain stable when the same UAV scene is observed under different in-plane rotations.

2.2. Semantic Segmentation Backbones

Semantic segmentation now relies on both CNN-based and Transformer-based architectures. Representative CNN methods established dense prediction baselines through encoder–decoder structures, pyramid pooling, and atrous spatial context aggregation, including FCN [15], U-Net [16], PSPNet [17], DeepLab [29], DeepLabv3+ [18], and DenseASPP [19]. Another line of work targets efficient segmentation with compact encoders, bilateral paths, or real-time Transformer blocks, including ENet [30], ERFNet [31], LEDNet [32], BiSeNetV2 [33], and RTFormer [34]. These designs improve accuracy-efficiency trade-offs, but they do not by themselves explicitly enforce stable predictions under rotated UAV inputs.
Transformer-based segmentation models use attention to model global context and multi-scale features. ViT [35] established the pure Transformer image backbone, after which Swin Transformer [20], PVT [36], SegFormer [21], MaskFormer [22], Mask2Former [23], and LRFormer [24] adapted hierarchical attention and mask prediction to dense segmentation. Recent Remote Sensing studies have also explored Mamba-based real-time segmentation, scalable Transformer segmentation for ultra-high-resolution imagery, and global–local context learning for remote sensing scenes [37,38,39]. LRFormer is particularly relevant here because it computes self-attention in a low-resolution space. This design reduces attention cost, but its patch embedding, strided downsampling, convolutional positional encoding, local enhancement, token pooling, and attention aggregation can still introduce orientation-dependent responses. High canonical-orientation mIoU alone may therefore be insufficient to characterize behavior under rotated UAV inputs.
Recent remote-sensing foundation-model studies also show that segmentation performance can degrade substantially under deployment-relevant distribution shifts. For example, SpectralX [6] uses parameter-efficient fine-tuning to adapt optical Remote Sensing Foundation Models to multispectral and hyperspectral semantic segmentation, and evaluates generalization across unseen regions and seasons. Although these shifts differ from in-plane rotation, this work provides broader motivation for evaluating remote-sensing segmentation models under the specific distribution changes expected at deployment, extending evaluation beyond performance measured under a single canonical condition.

2.3. Rotation Augmentation and Learned Invariance

Data augmentation is a widely used route to transformation robustness because it requires no architectural modification [40]. For semantic segmentation, an image and its dense label map can be jointly rotated to preserve spatial correspondence. However, training on rotated samples encourages robustness only implicitly and does not explicitly enforce that predictions commute with rotation. Moreover, the appropriate augmentation range is task-dependent. Augerino learns distributions over transformations jointly with model parameters, showing that the useful invariance range can be data-dependent [41]. Invariance-constrained augmentation further formalizes when and how strongly augmentation should be applied [42]. Dense random rotation expands orientation coverage but also increases interpolation exposure during training; we therefore evaluate it alongside architecture-level consistency instead of using it as the sole robustness mechanism.

2.4. Rotation-Equivariant and Rotation-Robust Networks

In contrast, architecture-level methods encode transformation priors directly into network operators. Group-equivariant convolutional networks [7] provide a foundational framework for convolution over discrete transformation groups such as rotations and reflections. Related studies exploit cyclic symmetry [43], encode rotation-equivariant vector fields [44], and design steerable filters or E(2)-equivariant CNNs [9,10,45]. For dense prediction, rotation-equivariant encoder–decoder networks improve sample efficiency and transformation robustness [12]. These studies make a practical point for segmentation: rotation stability depends on the feature representation and on how downsampling, upsampling, and output mapping handle transformed inputs.
In aerial and remote sensing analysis, rotation-aware representations are especially relevant because absolute object orientation is often arbitrary. RotEqNet has been applied to very-high-resolution land-cover mapping, where explicit rotation equivariance reduces parameter requirements while retaining semantic-labeling accuracy [46]. FRINet further targets rotation-invariant few-shot aerial image semantic segmentation, where support-query matching can be degraded by orientation changes [47]. ReDet [13] combines equivariant features with rotation-invariant RoI alignment for aerial object detection, while FRED extends the objective toward end-to-end rotation-equivariant oriented detection [48]. A recent aerial-detection study directly compares strict and approximate rotation equivariance and highlights conventional downsampling as a key source of equivariance error [49]. Other work revisits strict rotation equivariance under real-world symmetry-breaking conditions and suggests that relaxed formulations can better accommodate imperfectly symmetric visual data [50]. This distinction is relevant to UAV disaster imagery because finite boundaries, occlusions, anisotropic structures, and interpolation effects can break idealized rotational symmetry assumptions in practical image-processing pipelines.
For semantic segmentation, rotation consistency is demanding because the output prediction must remain spatially aligned with the input. PreCM [14] proposes a padding-based rotation-equivariant convolution mode and evaluates prediction disagreement under rotated inputs. The same study formulates strict equivariance over the four right-angle rotations and discusses interpolation as a key obstacle at non-right-angle rotations on discrete image grids. Recent segmentation benchmarks also argue that equivariant designs require direct segmentation evaluation [51]. Existing methods motivate explicit rotation modeling, but the combined effects of mixed convolutional, downsampling, pooling, and attention operations in LRFormer-like segmentation Transformers remain less systematically studied. Since strided subsampling can disrupt equivariance, group-equivariant subsampling has been studied as a dedicated problem [52]. We treat strided downsampling as a separate operation class in LRFormer.

2.5. Rotation-Consistent Transformers

These operator-level issues become more complex in attention-based models. Attentive group-equivariant CNNs show that group-structured features can be combined with adaptive weighting rather than only fixed averaging [53]. Group equivariant self-attention [54] and equivariant Vision Transformers [55] show that attention mechanisms can incorporate symmetry priors. Recent Transformer studies further show that tokenization, positional encoding, self-attention, and patch merging can affect equivariance or consistency [56,57,58]. For segmentation Transformers, rotation consistency must be considered at the tokenization and attention levels, not only at local convolutional layers.
Rotation-consistent segmentation Transformers remain challenging because dense prediction models contain multi-stage feature hierarchies and heterogeneous spatial operations. In LRFormer, rotation sensitivity may arise from convolutional positional encoding, IRB depthwise convolutions, overlapping patch embedding, strided downsampling, adaptive token pooling, and low-resolution attention interactions. Modifying only the attention operation or only the convolutional kernel may be insufficient for stable segmentation under rotated UAV inputs.
Motivated by this gap, our method targets the full spatial-token pathway of LRFormer. C4Former separately handles stride-1 spatial operators, strided downsampling operators, and low-resolution pooling attention. DC4Former then combines this architecture-level C4 consistency with a C4-complementary single-diagonal augmentation strategy. The method separates grid-preserving orthogonal rotations from interpolation-based diagonal rotations and evaluates stability across eight orientations with C 4 consistency as the architectural basis.

3. Materials and Methods

3.1. Overview of DC4Former

Throughout this section, scalars are written in italics, vectors in bold lowercase, and images, kernels, feature tensors, or spatial maps in bold uppercase; model and transformation symbols denote operators. Let I R B × 3 × H 0 × W 0 denote a batch of input UAV images, and let F denote a semantic segmentation model that outputs a logit tensor L = F ( I ) R B × C cls × H 0 × W 0 after resizing to the input resolution. Let C = { 0 , , C cls 1 } denote the semantic class-index set. The corresponding prediction map is M ^ b , h , w = arg max c C L b , c , h , w , with M ^ C B × H 0 × W 0 . For a counterclockwise rotation operator R k with angle 90 k , where k { 0 , 1 , 2 , 3 } , a C 4 -consistent segmentation model is expected to approximately satisfy
F ( R k I ) R k F ( I ) , k { 0 , 1 , 2 , 3 } .
This approximate commutation relation means that rotating an input before inference should yield nearly the same result as rotating the corresponding prediction afterward. Here, the symbol ≈ denotes closeness after spatial alignment rather than exact pixel-wise equality. Small residual discrepancies can arise from image boundaries, padding, decoder interpolation, and bounded adaptive fusion. We use the term C4-consistent to emphasize this approximate implementation-level behavior under C 4 transformations. Directional feature learning and transformation consistency describe different properties: a model can learn orientation-dependent filters or features while leaving the relation between F ( I ) and the inverse-aligned response R k F ( R k I ) unconstrained. Standard segmentation backbones can violate this relation more strongly because their spatial-token operations are not designed around C 4 transformations.
In this paper, C4 consistency denotes the architecture-level behavior targeted by C4Former for the four grid-preserving right-angle rotations. Orientation stability denotes the empirical stability of segmentation accuracy across the evaluated rotation protocols, including both the C 4 angles and the diagonal or intermediate angles. C4Former therefore addresses the in-group consistency part of the problem, whereas DC4Former combines C4Former with diagonal training exposure and is evaluated for broader orientation stability.
The method focuses on the four grid-preserving C 4 rotations, 0 , 90 , 180 , and 270 , because they map a regular square-pixel lattice onto itself through exact index permutations without interpolation. In contrast, rotations such as 45 , 135 , 225 , and 315 require interpolation-based resampling and introduce boundary and sampling discrepancies. Inspection of LRFormer’s spatial-token pathway identifies three major sources of rotation sensitivity: stride-1 spatial operators, strided downsampling operators, and low-resolution pooling attention. C4Former introduces three corresponding designs:
  • C4 weight symmetrization for stride-1 spatial convolutions;
  • C4 feature-rotation averaging for strided downsampling layers;
  • C4 multi-view formulation for low-resolution pooling attention.
DC4Former separates in-group consistency from out-of-group exposure. At the architecture level, C4Former replaces the rotation-sensitive parts of LRFormer with operator-aware C 4 -consistent counterparts. At the training level, DC4Former adds a single diagonal representative. The encoder redesign targets interpolation-free C 4 rotations, whereas the 45 augmentation exposes the model to a representative diagonal orientation without changing the inference pipeline. Table 1 summarizes how each source of rotation sensitivity is addressed.
Figure 1 shows the DC4Former pipeline. Given an input UAV image, the encoder follows the multi-stage LRFormer-S backbone. Rotation-sensitive operators are replaced or reformulated according to their operator classes. Stride-1 spatial convolutions use C4 weight symmetrization, strided downsampling layers use C4 feature-rotation averaging, and low-resolution pooling attention uses a C4 multi-view formulation. The four encoder outputs are aggregated by a lightweight SegFormerHead MLP decoder, which is kept fixed for all LRFormer-family variants to isolate the effects of the encoder redesign and SDA.
DC4Former combines C4Former with single-diagonal augmentation during training. The augmentation exposes the model to 45 , which serves as one representative of the complementary diagonal coset evaluated at 45 , 135 , 225 , and 315 . Its main practical advantage is that it introduces no inference overhead relative to C4Former. We use neither a test-time rotation ensemble nor an auxiliary rotation-consistency loss. The design combines operator-level C 4 consistency with training-time diagonal exposure.

3.2. Operator-Aware C4-Consistent Encoder

The C4Former encoder applies a different consistency mechanism to each operation class because stride-1 convolution, strided sampling, and pooled-token attention respond differently to rotation. The following subsections describe these three coordinated treatments.

3.2.1. C4 Weight Symmetrization for Stride-1 Spatial Operators

LRFormer contains several stride-1 spatial operators, such as convolutional positional encoding and depthwise local enhancement in the IRB module. These operations preserve the spatial resolution, but their learned kernels may still become orientation-biased. For a stride-1 spatial convolution, let X R B × C in × H × W denote the input feature tensor, let K R C out × C in / g × q × q denote the convolution kernel with group number g and spatial kernel size q × q , and let Y R B × C out × H × W denote the output feature tensor under resolution-preserving padding. We construct a C4-symmetrized kernel by averaging its four orthogonal rotations:
K ˜ = 1 4 k = 0 3 R k ( K ) .
The symmetrized kernel retains the shape of the learned kernel, K ˜ R C out × C in / g × q × q . Here, R k ( K ) rotates only the two spatial kernel dimensions and does not permute the input or output channel indices. The output feature is then computed as
Y = X K ˜ ,
where denotes convolution.
The symmetrized kernel is invariant to C 4 rotation, i.e., R j ( K ˜ ) = K ˜ for any j { 0 , 1 , 2 , 3 } . Subject to compatible padding and boundary handling, convolution with this kernel commutes with C 4 rotation. Because the four kernels are averaged before convolution, the layer adds no learnable parameters and requires only one convolution per forward pass. We apply this operation to non- 1 × 1 stride-1 spatial convolutions, including convolutional positional encoding and IRB depthwise convolutions.

3.2.2. C4 Feature-Rotation Averaging for Strided Downsampling

Kernel symmetrization is suitable for stride-1 convolutions, but it is insufficient for strided downsampling. The reason is that downsampling changes the spatial sampling grid, and the sampling positions after rotation are not equivalent to simply rotating the convolution kernel. Therefore, the downsampling operator itself must be treated as a rotation-sensitive component.
Let S ( · ) denote a shared-weight strided downsampling operator that maps X R B × C in × H × W to S ( X ) R B × C out × H × W , where H and W are determined by the stride, padding, and kernel size. Let R k = R k 1 denote inverse rotation. We define its C 4 feature-rotation averaged form as
S C 4 ( X ) = 1 4 k = 0 3 R k S ( R k X ) .
After inverse alignment, each branch and the averaged output satisfy R k ( S ( R k X ) ) , S C 4 ( X ) R B × C out × H × W . Specifically, the input feature is rotated into four orthogonal coordinate systems, processed by the same shared-weight downsampling operator, inversely aligned, and averaged. Re-indexing the summation shows that, under grid-preserving rotations and compatible boundary handling, S C 4 ( R j X ) = R j S C 4 ( X ) . Unlike kernel symmetrization alone, this formulation explicitly accounts for the rotated sampling lattice.
Compared with stride-1 kernel symmetrization, this operation is more computationally demanding because it evaluates four rotated branches. Therefore, we apply it only to strided spatial embedding layers, including the stem and overlapping patch-embedding layers, where rotation changes the sampling lattice directly. It adds computation but does not introduce additional learnable parameters.

3.2.3. C4 Multi-View Low-Resolution Pooling Attention with Constrained Fusion

The original LRFormer reduces attention cost by computing self-attention over low-resolution pooled tokens. However, token pooling layouts and attention interactions may change when the input feature map is rotated. As a result, low-resolution pooling attention can become another source of rotation sensitivity.
Let X R B × C × H × W denote the input feature map of the attention block. The implementation first applies aspect-ratio-aware adaptive pooling to the query path. Let ( H q , W q ) denote the resulting pooled-query dimensions; the configured base query-pooling size is s q = 16 at all four encoder stages, and the pooled dimensions are adjusted according to the input aspect ratio. For the 90 and 270 branches, the query and key/value pooling dimensions are exchanged. Let A q ( · ) denote the low-resolution pooling-attention computation before output projection and upsampling. For each C 4 orientation, we compute an aligned attention branch:
Z k = R k A q ( R k X ) , k { 0 , 1 , 2 , 3 } ,
where the native pooled dimensions are ( H q , W q ) for k { 0 , 2 } and ( W q , H q ) for k { 1 , 3 } . After inverse alignment, each branch satisfies Z k R B × C × H q × W q . Each branch first processes the feature map under a rotated coordinate system and then aligns the low-resolution output back to the canonical pooled-query coordinates. The uniform C 4 mean-fusion version is defined as
Z mean = 1 4 k = 0 3 Z k , Z mean R B × C × H q × W q .
This formulation defines the uniform C 4 reference path, which is later evaluated as C4Former-Mean.
After inverse alignment, all branch outputs share a common pooled-query coordinate system. Uniform averaging is C 4 -consistent because rotating the input cyclically permutes the branch index while rotating each aligned output.
Uniform mean fusion assigns equal weights to the four aligned C 4 branches and serves as the reference aggregation rule. Its fixed branch contributions may limit input-dependent adaptivity in complex disaster scenes. For example, roads, flooded regions, debris, and damaged structures may exhibit local anisotropic patterns for which equal branch weighting is less flexible. We therefore introduce a constrained lightweight branch fusion module that retains uniform averaging as the reference component while allowing a bounded input-dependent correction.
Given the aligned low-resolution branch features { Z k } k = 0 3 , a shared lightweight spatial scorer predicts branch-score maps
S k = G ( Z k ) , S k R B × 1 × H q × W q .
The adaptive weights W ^ k [ 0 , 1 ] B × 1 × H q × W q are computed as
W ^ k = exp ( S k / τ ) j = 0 3 exp ( S j / τ ) ,
where τ is a learnable temperature. We then interpolate between the adaptive weights and the uniform branch-weight vector ( 1 / 4 , 1 / 4 , 1 / 4 , 1 / 4 ) :
W k = ( 1 α ) 1 4 + α W ^ k , α = α max σ ( γ ) ,
where γ is a learnable scalar logit, α max is a fixed upper bound, and W k [ 0 , 1 ] B × 1 × H q × W q . The weights are broadcast along the channel dimension when multiplying the branch features. The fused low-resolution feature is
Z fuse = k = 0 3 W k Z k , Z fuse R B × C × H q × W q ,
where ⊙ denotes element-wise multiplication. The fused feature is flattened into B × ( H q W q ) × C tokens, processed by the output projection, reshaped to B × C × H q × W q , and bilinearly resized to H × W . The attention-block output therefore has shape Y R B × C × H × W , or equivalently Y tok R B × ( H W ) × C in the token representation.
Uniform C 4 averaging remains the reference component in this fusion. When α = 0 , the module reduces to C 4 mean fusion. When α > 0 , the adaptive branch contributes a bounded correction, while the uniform C 4 component retains a mixture coefficient of at least 1 α max . Exact consistency would additionally require the predicted weights to rotate and cyclically permute with the branches. Although the shared scorer and aligned inputs encourage this behavior, we conservatively treat the resulting module as approximately C 4 -consistent and verify its behavior empirically. Because the final layer of the branch scorer is zero-initialized, all four adaptive softmax weights are exactly 1 / 4 at initialization. The final branch weights are therefore also exactly uniform at initialization, independent of the initial gate value. The gate logit γ is initialized to 2.0 , which controls how rapidly the model can depart from uniform fusion during training. This initialization provides a conservative starting point; the effect of different α max values is evaluated empirically in Section 4.7. For α max = 0.25 , the mixture coefficient of the uniform component is at least 0.75, which prevents the adaptive branch from becoming an unconstrained four-branch selector.
The following bounds characterize how α max limits the branch weights and the gate-driven gradient. For notational simplicity, the bound is written for one spatial location after channel broadcasting. Let u = ( 1 / 4 , 1 / 4 , 1 / 4 , 1 / 4 ) be the uniform branch-weight vector and let w ^ denote the four adaptive softmax weights at that location. The final branch-weight vector can be written as w = ( 1 α ) u + α w ^ . Because 0 α α max and 0 w ^ k 1 , each scalar component satisfies
1 α max 4 w k 1 + 3 α max 4 .
Thus, α max = 0.25 constrains each branch weight to [ 0.1875 , 0.4375 ] and preserves at least 75% of the uniform C 4 component. Compared with α max = 0.1 , which confines each branch weight to [ 0.225 , 0.325 ] , α max = 0.25 provides a wider adaptive range while still preventing any branch from receiving a majority weight. Writing Z adapt = k = 0 3 W ^ k Z k , the fused feature is Z fuse = ( 1 α ) Z mean + α Z adapt , and the scalar-gate gradient is
Z fuse γ = α max σ ( γ ) 1 σ ( γ ) Z adapt Z mean .
Consequently,
Z fuse γ 2 α max 4 Z adapt Z mean 2 .
These bounds show that the deviation from mean fusion and the gate-driven gradient scale with α max . The gradient bound in Equation (14) is limited to the scalar gate γ and describes how α max constrains the sensitivity of the fused feature to this gate. Gradients through the branch scorer, attention module, and other network parameters are outside the scope of this derivation. The effect of α max on rotation stability and training behavior is evaluated empirically in Section 4.7.

3.3. Single-Diagonal Augmentation for Out-of-Group Rotations

C4Former targets the grid-preserving C 4 group:
C 4 = { 0 , 90 , 180 , 270 } .
The four C 4 elements correspond to distinct spatial index mappings and are therefore processed as separate transformations. Using zero-based row–column coordinates on an H × W feature map, and treating R θ as the mapping from an original feature coordinate to the rotated feature coordinate, the four mappings are R 0 ( i , j ) = ( i , j ) , R 180 ( i , j ) = ( H 1 i , W 1 j ) , R 90 ( i , j ) = ( W 1 j , i ) , and R 270 ( i , j ) = ( j , H 1 i ) . The 90 and 270 transforms exchange the spatial dimensions. Each branch is therefore inverse-aligned separately before fusion. However, diagonal rotations such as 45 , 135 , 225 , and 315 are outside this group and require interpolation. DC4Former addresses this out-of-group component through one diagonal representative:
45 + C 4 = { 45 , 135 , 225 , 315 } .
Thus,
C 8 = C 4 ( 45 + C 4 ) .
During training, a fixed 45 rotation is applied independently to each sampled crop with probability p SDA = 0.3 . The rotation is a replacement transform in the data pipeline: when selected, the rotated image and label replace that sample’s unrotated versions before packing, with no additional training sample appended. SDA preserves the mini-batch size and the number of optimization iterations. In expectation, 30% of sampled crops are presented at 45 and 70% retain their current orientation. This exposes the model to one representative of the complementary diagonal coset. If the architecture behaves consistently under C 4 , the remaining diagonal orientations are related to this representative by orthogonal rotations. This argument is a structural motivation for the evaluated eight-angle behavior. Diagonal rotations require interpolation, and the complete model is evaluated for empirical orientation stability around an approximately C4-consistent architecture.
In the LRFormer-based implementation, C4Former applies the above operator-aware design to three computational pathways. The stride-1 spatial pathway uses C4 weight-symmetrized convolution for positional encoding and IRB depthwise convolution. The strided pathway applies feature-rotation averaged convolution in the stem and overlapping patch-embedding layers. The attention pathway computes four rotated low-resolution attention branches, inversely aligns them, and applies either mean fusion or constrained lightweight fusion. The stage-level downsampling convolutions inside the attention module remain ordinary shared-weight convolutions; the enclosing four-view rotation, inverse-alignment, and fusion procedure supplies their rotation-consistent treatment.
In the ablation study, the uniform mean-fusion version is used to evaluate the contribution of the C4 multi-view attention pathway without adaptive correction. The architecture-only model with constrained lightweight branch fusion is denoted as C4Former. DC4Former further adds the single- 45 augmentation during training. Throughout this work, every LRFormer-family variant uses the same MMSegmentation SegFormerHead decoder. It receives the four encoder outputs with channel dimensions ( 64 , 128 , 320 , 512 ) , projects and fuses them using 256 decoder channels, and applies dropout with probability 0.1. Keeping this decoder fixed isolates the effects of the C4-consistent encoder and diagonal-complemented training strategy.

3.4. Datasets

We evaluate the proposed method on two public UAV disaster semantic segmentation datasets, FloodNet [1] and RescueNet [2]. FloodNet contains high-resolution post-flood UAV imagery with semantic categories including building-flooded, building-non-flooded, road-flooded, road-non-flooded, water, trees, vehicles, pools, grass, and background. RescueNet contains high-resolution UAV imagery collected after Hurricane Michael, with categories including background, water, building-no-damage, building-medium-damage, building-major-damage, building-total-damage, vehicle, road-clear, road-blocked, tree, and pool.
For all experiments, we use the fixed train/val/test splits provided by the official dataset releases. The evaluation sets contain 448 FloodNet images and 450 RescueNet images. Within each dataset, the same images are used for canonical-orientation and rotation-wise testing, so differences across angles are not confounded by sample composition. FloodNet is evaluated with 10 semantic classes and RescueNet with 11. All classes, including background, are used during training and inference. The training loss ignores only pixels labeled 255, which correspond to invalid or padded semantic regions. Foreground mIoU is an evaluation metric only: it excludes background class 0 and averages 9 FloodNet foreground classes or 10 RescueNet foreground classes.

3.5. Training and Evaluation Protocol

All reported experiments used NVIDIA GeForce RTX 4090 GPUs (NVIDIA Corporation, Santa Clara, CA, USA) and the same software stack, comprising Python 3.10.18, PyTorch 2.1.2, CUDA 11.8, MMCV 2.1.0, MMEngine 0.10.4, MMSegmentation 1.1.0, and OpenCV 4.11.0. Training, checkpoint selection, rotation-wise inference, and FLOP analysis follow this software setup. Runtime measurements follow the input-size and batch-size protocols specified below; the full-image latency measurement uses the stated warm-up protocol. All parameter counts, FLOP values, and FPS values in Table 2 are measured using 512 × 512 inputs. FPS is measured with inference batch size 1 on a single RTX 4090, without test-time augmentation. The C4Former encoder adopts LRFormer-S with embed _ dims = ( 64 , 128 , 320 , 512 ) and depths ( 3 , 3 , 12 , 3 ) . The low-resolution pooling sizes are set to ( 16 , 16 , 16 , 16 ) , and the drop-path rate is 0.15. All LRFormer-family models use the same lightweight SegFormerHead decoder with 256 decoder channels and dropout probability 0.1. The input crop size is 512 × 512 .
Because the source UAV images are large, training samples are generated by online random cropping at 512 × 512 pixels. We characterize the training budget by the total number of processed crops, computed as the training batch size multiplied by the number of optimization iterations; this crop-level count provides a more direct budget measure than epochs over the original full-resolution images. For FloodNet, each run used a batch size of 16 for 75,000 iterations, corresponding to 1.20 × 10 6 processed crops; for RescueNet, each run used a batch size of 17 for 125,000 iterations, corresponding to 2.125 × 10 6 processed crops. The best checkpoint was selected according to canonical-orientation ( 0 ) validation mIoU. Within each dataset, all reported models use the same crop-level training exposure. External baselines use the same crop size and rotation-wise evaluation protocol. No method uses a test-time rotation ensemble. Unless otherwise stated, all backbones were initialized from ImageNet-pretrained weights under the same initialization policy.
We optimize with AdamW using an initial learning rate of 2 × 10 4 , weight decay of 0.05, β = ( 0.9 , 0.999 ) , and ϵ = 10 8 . Mixed-precision training uses dynamic loss scaling. The learning rate is linearly warmed up for 1500 iterations and then follows polynomial decay with power 0.9 and a minimum of 10 6 . Gradients are clipped to a maximum norm of 1.0. LRFormer-family ablation settings were trained with three random seeds (0, 42, and 3407), and the corresponding results are reported as mean and standard deviation. The corresponding dense-stress summaries also report mean and standard deviation across these seeds. External baseline comparisons are reported as seed-0 reference runs because they provide a common baseline overview. In the rotation-augmentation analysis, the matched LRFormer-RandRot and C4Former-RandRot comparison is reported over three seeds, whereas the additional angular-sampling variants remain seed-0 diagnostic controls. With only three independent runs per setting, formal significance tests would have low statistical power and unstable variance estimates. We therefore do not report p-values or use significance claims to support the comparisons. The configurations set deterministic=False; fixed seeds standardize stochastic initialization and sampling but do not guarantee bitwise-deterministic reproduction.
For the constrained lightweight branch fusion module, we use α max = 0.25 as a shared structural cap for both datasets. This bound retains at least 75% of the uniform component while allowing a limited adaptive correction. For the single-diagonal augmentation setting, we likewise use p SDA = 0.3 as a shared probability for both datasets. Both hyperparameters were held fixed throughout the main comparative experiments and were not tuned separately for FloodNet and RescueNet. The training pipeline first applies shortest-edge random resizing over scales from 0.5 to 2.0 times 512 pixels, with a maximum size of 2048 pixels, followed by a 512 × 512 random crop with a maximum single-class ratio of 0.75. It then applies a fixed 45 rotation with probability p SDA = 0.3 , using image padding value 0, semantic-label padding value 255, and auto_bound=False, followed by photometric distortion. The transformed sample replaces the current crop, so the batch cardinality and training iteration count remain unchanged. This augmentation is used only during training and does not introduce additional inference overhead. Thus, LRFormer and LRFormer-SDA share the same model complexity, and C4Former and DC4Former also share the same model complexity.
To separate architecture-level C 4 consistency from training-time rotation exposure, we also evaluate rotation-augmentation controls. LRFormer-RandRot and C4Former-RandRot use the same continuous random-rotation rule, sampling one angle from [ 0 , 360 ) with probability 0.3; these two matched RandRot settings are trained with three random seeds. LRFormer-FourDiag samples one diagonal angle from { 45 , 135 , 225 , 315 } with probability 0.3, LRFormer-DenseRot samples one angle from a 15 grid with probability 0.3, and C4Former-RandDiag applies the four-diagonal random augmentation to the C4Former architecture. When applied, each augmentation replaces the current crop with no extra sample appended to the mini-batch. None of these controls uses test-time rotation augmentation. These controls assess how much of the rotation-stability improvement can be explained by training-time rotation exposure under matched training and evaluation settings. Except for the matched RandRot comparison, the additional angular-sampling variants are reported as seed-0 diagnostic references.
Unless otherwise specified, the reported mIoU in the rotation-wise experiments denotes foreground mIoU, where the background class is excluded. The metric averages 9 foreground classes on FloodNet and 10 foreground classes on RescueNet. This setting highlights disaster-related semantic categories and avoids background-dominated conclusions. The canonical-orientation comparison and per-class analysis are also reported using foreground mIoU for consistency.

Evaluation Metrics and Rotation-Wise Protocol

We evaluate each model at eight angles:
Θ = { 0 , 45 , 90 , 135 , 180 , 225 , 270 , 315 } .
The grid-preserving orthogonal rotation group is defined as
Θ orth = { 0 , 90 , 180 , 270 } ,
and the out-of-group diagonal rotation set is defined as
Θ diag = { 45 , 135 , 225 , 315 } .
For each angle θ , we report mIoU θ . We further compute the orthogonal mean, diagonal mean, eight-angle mean, worst-angle mIoU, and rotation-wise standard deviation:
mIoU orth = 1 4 θ Θ orth mIoU θ , mIoU diag = 1 4 θ Θ diag mIoU θ ,
mIoU all = 1 8 θ Θ mIoU θ , mIoU worst = min θ Θ mIoU θ .
Std rot = 1 8 θ Θ mIoU θ mIoU all 2 .
To quantify rotation-induced performance degradation, we report the relative mIoU drop (RMD):
RMD = mIoU 0 1 7 θ Θ { 0 } mIoU θ mIoU 0 × 100 % .
A lower RMD indicates better rotation-wise stability. A negative RMD means that the average non-zero-angle mIoU is slightly higher than the canonical 0 mIoU.
Consolidated quantitative test protocol. The 512 × 512 setting is used for training crops and the standardized complexity/FPS measurements, but the accuracy-evaluation pipeline does not crop test images to 512 × 512 . For canonical and rotation-wise accuracy evaluation, each test image is resized with preserved aspect ratio using Resize(scale=(2048,512), keep_ratio=True), padded as required to satisfy the model’s size divisor of 32, and processed using whole-image inference (mode=whole); no sliding-window inference or test-time crop is used. At the canonical 0 orientation, all 450 RescueNet test images are resized to 512 × 683 and padded to 512 × 704 . Among the 448 FloodNet test images, 383 images are resized to 512 × 683 and padded to 512 × 704 , while the remaining 65 images are resized to 512 × 765 and padded to 512 × 768 . The test batch size is 1. For each evaluated angle, the resized full image and its semantic mask are transformed before packing and inference. All methods use the same angle-specific transform and valid-pixel mask. Right-angle rotations are implemented as exact index permutations without interpolation; the 90 and 270 transforms exchange the height and width dimensions. Non-right-angle rotations use a fixed canvas (auto_bound=False); RGB images use bilinear interpolation and invalid regions are filled with 0, whereas semantic masks use nearest-neighbor interpolation and invalid regions are assigned ignore label 255. Predictions and labels are aligned to a common metric grid before confusion-matrix accumulation. Pixels labeled 255 are excluded from the confusion matrix and all reported metrics. Foreground mIoU additionally excludes background class 0 and averages the remaining 9 FloodNet classes or 10 RescueNet classes.
We adopt a fixed-canvas protocol to evaluate every rotation within the same canonical raster extent. This setting is motivated by UAV camera frames and disaster-mapping tiles, which are commonly processed using fixed tensor dimensions rather than angle-dependent expanded canvases. Allowing the canvas to expand at non-right angles would introduce angle-dependent input dimensions and preserve additional spatial support, thereby coupling orientation effects with changes in tensor size and retained scene content. Under the fixed-canvas protocol, the evaluation measures end-to-end orientation reliability within a finite image frame, including the effects of interpolation, boundary truncation, changes in valid support, and model response. For each evaluated angle, all methods use the same rotation center, interpolation and filling rules, and the same corresponding valid-pixel mask, enabling controlled relative comparison under this deployment-motivated setting.
Practical inference-cost protocol. In addition to the standardized 512 × 512 FPS measurement, we report full-image latency and peak GPU memory under the canonical 0 whole-image evaluation pipeline. Here, “full-image” refers to the resized whole test image after aspect-ratio-preserving preprocessing, rather than the raw-resolution UAV image. The measurement follows the same Resize(scale=(2048,512), keep_ratio=True), padding, and whole-image inference setting used for quantitative evaluation. For RescueNet, this produces a resized image of 512 × 683 , which is padded by the data preprocessor to 512 × 704 before whole-image inference. Latency is measured with batch size 1 on a single RTX 4090 after 20 warm-up images, and the remaining 430 test images are used for timing. Rotation preprocessing, test-time augmentation, visualization, result saving, and metric computation are excluded from the latency measurement. Peak GPU memory denotes the maximum allocated GPU memory during the measured inference loop.
Right-angle rotations are grid-preserving and require no interpolation. Nevertheless, the rotation-wise scores under 0 , 90 , 180 , and 270 are expected to be close but not necessarily bitwise identical. Aspect-ratio-preserving resizing, height–width exchange, size-divisor padding, decoder resizing, valid-pixel masking, and finite image boundaries can introduce small residual differences, even though the right-angle rotation itself is an exact grid permutation. Dataset-dependent differences among the right-angle scores are therefore consistent with finite-canvas and padding effects under the common protocol, rather than indicating an implementation inconsistency. Non-right-angle results necessarily reflect both model sensitivity and interpolation effects; because every method receives the same transformed inputs and valid-pixel masks, the protocol supports controlled relative comparison. We further quantify this distinction with an image-level rotation–inverse-rotation round-trip diagnostic in Supplementary Table S1 over the eight principal angles: 0 , 90 , 180 , and 270 introduce zero reconstruction error, whereas 45 , 135 , 225 , and 315 produce non-zero normalized MAE and reduced gradient retention. This diagnostic uses an expanded intermediate canvas and valid-region scoring to isolate interpolation-induced resampling from boundary truncation, whereas the segmentation evaluation uses the fixed-canvas protocol described above.
For qualitative visualization, we use a separate visualization protocol to avoid visually misleading cropping artifacts under non-orthogonal rotations. Specifically, non-right-angle inputs are rotated on an enlarged canvas with constant padding, and the predicted masks are then inversely warped back to the original 0 coordinate system. The RGB disagreement maps are generated only after this alignment step and are used for visual analysis rather than official mIoU computation.

4. Results

4.1. Canonical-Orientation Results and Complexity

We first compare the standard 0 segmentation performance and model complexity of the proposed method with representative CNN-based, Transformer-based, and UAV/remote-sensing segmentation baselines. The compared methods include PSPNet [17], DeepLabv3+ [18], UPerNet [59], SegFormer-B1 [21], Mask2Former [23], UNetFormer [60], LRFormer [24], C4Former, and DC4Former. Parameter counts and FLOPs are computed with an input size of 512 × 512 , and FPS is measured using 512 × 512 inputs with batch size 1 on a single NVIDIA RTX 4090 GPU without test-time augmentation.
Mask2Former achieves the highest canonical-orientation mIoU on both datasets, whereas LRFormer and the proposed variants remain in a similar accuracy range. The proposed variants do not consistently improve the 0 score. C4Former mainly improves the orthogonal-angle mean, whereas DC4Former improves the All-8 mean on both datasets; the corresponding worst-angle results are examined in the rotation-wise evaluation. Relative to LRFormer, C4Former adds only 0.18M parameters, but increases FLOPs from 29.25G to 40.59G and reduces standardized 512 × 512 throughput from 65.58 to 20.17 FPS. The multi-view operations incur substantial runtime overhead, and weight sharing across branches does not eliminate this cost.
Table 3 relates the standardized throughput to a representative resized whole-image evaluation pipeline. LRFormer processes one resized-and-padded RescueNet test image in 44.13 ms, whereas C4Former/DC4Former require 95.60 ms. The peak allocated GPU memory remains 1.51 GB for both model groups. The additional cost is therefore latency rather than memory footprint.

4.2. Rotation-Wise Evaluation

Table 4 and Table 5 provide seed-0 contextual comparisons with external baselines, whereas the main LRFormer-family conclusions are based on the multi-seed results reported in Table 6, Table 7, Table 8, Table 9 and Table 10. External baselines are used as contextual seed-0 references, while conclusions about the proposed LRFormer-family variants are drawn from the corresponding three-seed experiments.

4.2.1. FloodNet

Table 4 reports the angle-wise foreground mIoU on FloodNet. Canonical-orientation performance and rotation stability show different behavior. Mask2Former obtains the highest 0 mIoU among external baselines, but its worst-angle mIoU is 69.82%. SegFormer-B1 and UNetFormer show relatively small standard deviations on FloodNet, but their overall mIoU remains lower than the stronger baselines. This low variation mainly reflects lower overall performance on FloodNet; on RescueNet, UNetFormer’s standard deviation rises to 9.45.
The seed-0 FloodNet reference suggests that single-diagonal augmentation and the C4-consistent architecture are complementary. Relative to LRFormer, LRFormer-SDA improves diagonal performance but retains visible angle-wise variation, whereas C4Former makes the four orthogonal scores identical to two decimal places while leaving a diagonal gap. These identical rounded right-angle mIoU values reflect metric rounding; the prediction-level diagnostic in Table 6 reports non-zero pixel disagreement after inverse alignment. In this seed-0 reference, DC4Former substantially reduces this gap: it improves All-8 mIoU by 4.34 points and worst-angle mIoU by 7.08 points over LRFormer, while reducing the standard deviation from 2.62 to 0.30. Although its 0 mIoU is 0.54 points lower than LRFormer, DC4Former improves the rotated-angle and worst-angle scores, indicating reduced rotation-induced variation as the main source of the gain.

4.2.2. RescueNet

Table 5 reports the angle-wise foreground mIoU on RescueNet. Compared with FloodNet, RescueNet exhibits stronger rotation sensitivity for most external baselines. Diagonal rotations are particularly challenging: the worst-angle mIoU of the external baselines ranges from 37.78% to 52.84% under the fixed-canvas protocol.
The seed-0 RescueNet reference shows stronger rotation sensitivity. Mask2Former attains the highest 0 mIoU, but its worst-angle score is 52.84%, close to LRFormer’s 53.20%. DC4Former raises LRFormer’s All-8 mIoU by 9.69 points and its worst-angle mIoU by 14.46 points, reducing the standard deviation from 4.96 to 0.28. The improvement comes mainly from more stable performance after rotation, especially at the worst angle, while the unrotated 0 score remains comparable.

4.2.3. Qualitative Visualization of Rotation Consistency

Figure 2 and Figure 3 compare representative seed-0 predictions on FloodNet and RescueNet. Rotated-input predictions are aligned back to the original 0 coordinate system before visualization. Columns show the original image, ground truth, and model predictions; rows show 0 , 90 , 135 , 225 , and an RGB disagreement map. Red, green, and blue denote prediction changes induced by 90 , 135 , and 225 , respectively, and mixed colors indicate overlapping disagreement.
The qualitative figures include boxed overviews and zoomed regions of interest. The FloodNet zoom focuses on a road-flooded region and its water boundary, where several baselines change labels under diagonal rotations. The RescueNet zoom focuses on building-total-damage and road-blocked regions, two disaster categories for which orientation changes can alter small connected structures. These local views show where the rotation-wise scores in Table 4 and Table 5 arise spatially; they are not used as additional metrics.
In the zoomed panels, rotation-sensitive predictions appear as colored bands around the FloodNet road-flooded boundary and as shifted or missing components in the RescueNet building-total-damage and road-blocked regions. This visual pattern is consistent with the reduced right-angle prediction disagreement of C4Former and DC4Former and with the lower eight-angle standard deviation of DC4Former.
The qualitative examples are generated from the seed-0 checkpoints and serve as representative visual comparisons; the corresponding multi-seed quantitative evidence is reported in Table 6, Table 7, Table 8, Table 9 and Table 10.

4.3. Feature- and Prediction-Level C4 Consistency

We conduct a C4-consistency diagnostic using the LRFormer, C4Former, and DC4Former checkpoints to examine whether the improved rotation-wise behavior is also reflected in internal features and predictions. The diagnostic uses the same test images, aspect-ratio-preserving resize and padding, exact right-angle transforms, whole-image inference, ignore-index handling, and metric-grid alignment as the rotation-wise evaluation protocol. For each test image, the 0 , 90 , 180 , and 270 versions are passed through the same checkpoint. The rotated feature maps, raw logits, and predictions are then inverse-rotated to the 0 coordinate system and compared on their common spatial support. Let X denote the resized input image tensor and let f l ( X ) R B × C l × H l × W l denote the stage-l encoder feature. For encoder stage l, the relative C4 inconsistency at angle θ is computed as
E l ( θ ) = R θ f l ( R θ X ) f l ( X ) 2 f l ( X ) 2 + ϵ ,
where C l , H l , and W l are stage-specific channel and spatial dimensions, and ϵ is a small numerical constant. We also report the relative L2 error of the aligned raw logits, the foreground mIoU between aligned predictions, and the pixel disagreement rate. Table 6 averages the non-zero right angles over three random seeds.
The diagnostic indicates that C4Former and DC4Former reduce inconsistency before the final mIoU is computed. On FloodNet, C4Former reduces the Stage-4 relative L2 error from 0.59 to 0.24, raises prediction-consistency foreground mIoU from 81.51% to 96.14%, and lowers pixel disagreement from 7.95% to 0.97%. On RescueNet, the corresponding prediction-consistency mIoU increases from 68.84% to 94.74%, while pixel disagreement decreases from 9.23% to 1.23%. These results distinguish canonical-orientation feature quality from rotation consistency: after inverse alignment, LRFormer exhibits substantially larger feature and prediction discrepancies between rotated-input and canonical-input responses than C4Former and DC4Former. Full stage-wise and model-wise results are provided in Supplementary Table S4.

4.4. Dense Rotation Stress Test

The main eight-angle protocol evaluates the C 4 orientations and their 45 diagonal complements. The 24-angle protocol further evaluates whether stability learned from the C 4 rotations and one diagonal representative extends to sampled intermediate orientations. It provides a discrete stress test of sampled intermediate rotations under the same fixed-canvas protocol. The dense rotation stress test covers LRFormer, LRFormer-SDA, C4Former, and DC4Former over the complete 0 345 range at 15 intervals, including the original eight angles and 16 intermediate angles. All 24 angles use the same fixed-canvas quantitative protocol, interpolation rules, valid-pixel masking, evaluation images, and foreground mIoU definition described above.
Figure 4 visualizes the three-seed mean response of LRFormer, LRFormer-SDA, C4Former, and DC4Former beyond the eight principal orientations. Table 7 reports the corresponding 24-angle summary statistics for the same four settings. The table computes summary metrics per seed before cross-seed averaging, so the minima of the plotted mean curves are visual references and may differ from the reported Worst-24 values. On FloodNet, DC4Former raises the mean 24-angle foreground mIoU from 72.64% to 77.19% over LRFormer and reduces the 24-angle standard deviation from 1.99 to 0.39. On RescueNet, the corresponding mean improves from 58.79% to 65.40%, and the standard deviation falls from 3.40 to 1.91. For DC4Former on RescueNet, Std.-24 is 1.91, compared with Std.-8 of 0.33, indicating greater variation across the full 24-angle protocol than across the eight principal orientations. On FloodNet, C4Former has a higher Mean-24 and Worst-24 and a lower Std.-24 than LRFormer. On RescueNet, C4Former has a lower Mean-24 and Worst-24 and a higher Std.-24 than LRFormer. Interpolation-induced changes to boundaries and small fragmented structures may contribute to this dataset-dependent pattern. The 24-angle protocol therefore functions as a controlled stress test of sampled intermediate rotations.

4.5. Diagnostic Rotation-Augmentation Controls

Table 8 reports rotation-augmentation controls designed to examine the roles of training-time rotation exposure and architecture. The three-seed comparison is assigned to Schemes 1 and 5 because their shared continuous RandRot rule provides the matched control needed to assess the architectural effect under fixed training-time rotation exposure. Schemes 2–4 serve as seed-0 diagnostics of angular-sampling patterns.
Together, these auxiliary controls show that finite diagonal sampling, denser 15 sampling, and the addition of the C 4 architecture produce dataset-dependent reliability patterns. Their primary role is to characterize the interaction between angular evaluation or training exposure and architecture.
The matched RandRot comparison shows that rotation augmentation is a strong training-time baseline with no additional inference cost. This behavior is plausible for a high-capacity Transformer-based segmenter: repeated random rotations expose the same training scenes and labels under many sampled orientations, allowing the model to learn orientation-conditioned appearance patterns empirically. On FloodNet, LRFormer-RandRot has slightly higher three-seed mean All-8 and Worst-8 values than C4Former-RandRot, by 0.44 and 0.32 points, respectively. Under this matched protocol, adding the C 4 architecture does not increase these two mean metrics on FloodNet.
In contrast, RescueNet shows a reliability advantage from adding the C4 architecture under the same continuous RandRot rule. C4Former-RandRot improves All-8 from 66.43% to 67.04%, raises Worst-8 from 64.26% to 66.62%, and reduces Std.-8 from 1.30 to 0.28. The 24-angle stress metrics follow the same reliability pattern within this matched attribution comparison, with Worst-24 improving from 64.26% to 66.16% and Std.-24 decreasing from 1.10 to 0.35. These results characterize a dataset-dependent trade-off between inference efficiency and worst-orientation reliability under matched rotation exposure. This section uses C4Former-RandRot for attribution under matched rotation exposure; the final deployment comparison between DC4Former and LRFormer-RandRot is discussed in Section 5.

4.6. Ablation Study

The ablation study follows the LRFormer-family design path in Table 9. The configurations separate single-diagonal augmentation, the three individual C 4 operator classes, their pairwise combinations, the full mean-fusion C 4 architecture, the full constrained-fusion C 4 architecture, and the final diagonal-complemented model. Settings C–E isolate C 4 spatial kernel symmetrization, C 4 feature-rotation averaged downsampling, and C 4 multi-view attention. Settings F–H examine the three pairwise combinations. Settings I and J compare mean and constrained fusion when all three C 4 operator classes are enabled, and setting K adds SDA to form DC4Former.
SDA alone (B) mainly affects the diagonal angles. The diagonal mean increases from 71.35% to 75.54% on FloodNet and from 56.27% to 63.60% on RescueNet. The orthogonal means change only slightly, from 75.32% to 75.40% on FloodNet and from 62.85% to 63.04% on RescueNet. This behavior matches the role of SDA as training exposure to one diagonal representative, with the LRFormer operators left unchanged.
The single-module rows show different behavior across the three C 4 operator classes. On FloodNet, the isolated C 4 spatial, downsampling, and attention settings give close All-8 values of 73.90%, 73.99%, and 74.15%. On RescueNet, C4 Downsampling only and C4 Attention only raise All-8 to 60.44% and 60.39%, while C4 Spatial only gives 58.60% and lowers the diagonal mean to 53.44%. The pairwise rows follow the same dataset- and angle-dependent behavior. On RescueNet, C4 Downsampling + Attention gives the strongest pairwise All-8 and Worst scores, 60.62% and 55.65%, whereas the pairwise settings containing C4 Spatial have lower diagonal means.
On RescueNet, C4Former-Mean raises the orthogonal mean from 62.85% to 68.02% relative to LRFormer; its diagonal mean decreases from 56.27% to 52.34%, and its rotation-wise standard deviation increases from 4.17 to 7.85. The expanded RescueNet ablation reveals a consistent pattern in the diagonal results. All configurations containing C 4 spatial kernel symmetrization (C, F, G, I, and J) have lower diagonal means than LRFormer, whereas the configurations without this component (D, E, and H) do not exhibit the same decline. The nearly identical diagonal means of C4Former-Mean and C4Former, 52.34% and 52.03%, further show that replacing uniform fusion with constrained fusion is insufficient to recover the lost diagonal performance. The observed degradation is therefore more closely linked to the C 4 -symmetrized spatial pathway than to the choice of branch-fusion rule.
After diagonal resampling, fine edges and small structures are represented by local patterns that differ from those seen during training without diagonal rotation exposure. The branch rotations inside the network remain exact right-angle index permutations of the resulting discrete feature maps; the resampling change is introduced before these internal C 4 transformations. By tying local-filter responses across the four right-angle orientations, C 4 spatial symmetrization reduces the degrees of freedom available for orientation-specific adaptation to the altered local statistics. This effect may be more pronounced on RescueNet because discrimination among building-damage grades and blocked-road regions may draw on fragmented structures, irregular boundaries, narrow obstruction cues, and subtle local appearance differences. The interaction between interpolation-altered cues and tied spatial responses is consistent with the stronger right-angle/diagonal trade-off observed on RescueNet. Because the redesigned operators interact throughout the feature hierarchy, the current ablation does not establish a unique causal mechanism.
Adding SDA to the constrained C 4 architecture gives the final setting K. On RescueNet, All-8 increases from 59.56% for LRFormer to 68.01%, Worst-8 increases from 54.90% to 67.66%, and Std.-8 decreases from 4.17 to 0.33. Among settings A–K in Table 10, setting K gives the highest All-8 and Worst-8 scores and the lowest rotation-wise standard deviation on both datasets. The component effects are complementary but non-additive: C 4 downsampling and C 4 attention provide modest standalone gains; the C 4 -symmetrized spatial pathway improves right-angle consistency but is also the component most closely linked to the RescueNet diagonal decline; constrained fusion provides a bounded adaptive correction without removing this architecture-only trade-off; and SDA supplies the diagonal training exposure needed for the final eight-angle stability.
DC4Former obtains a slightly negative mean RMD ( 0.32% ) on both datasets. RMD compares the canonical 0 result with the average across the other seven orientations, and its sign characterizes this canonical-versus-nonzero comparison. Table 10 directly reports the relative performance of the diagonal and orthogonal subsets. The diagonal mean mIoU exceeds the orthogonal mean by only 0.39 points on FloodNet and 0.40 points on RescueNet. Diagonal rotations introduce sampling changes because they require interpolation on the fixed canvas. After targeted training exposure, the final segmentation scores can approach parity despite this sampling-related challenge. The RescueNet ablation illustrates this distinction: C4Former obtains orthogonal and diagonal means of 67.79% and 52.03%, respectively, whereas DC4Former, which adds SDA, obtains 67.81% and 68.21%. The diagonal-minus-orthogonal difference changes from 15.76 points for C4Former to 0.40 points for DC4Former, while the orthogonal mean changes by only 0.02 points. On both datasets, the magnitude of the mean RMD ( 0.32% ) is smaller than its cross-seed standard deviation ( 0.38% on FloodNet and 0.46% on RescueNet). The negative mean RMD represents a small model- and protocol-dependent residual comparable in magnitude to the observed cross-seed variability. Taken together, these results show that DC4Former achieves approximately balanced performance across diagonal and orthogonal orientations under the evaluated protocol.
The ablation supports the design choice used in DC4Former. The C 4 operators target grid-preserving right-angle rotations, where pixels or feature cells can be permuted without resampling. Diagonal rotations require interpolation and fixed-canvas boundary handling, which change RGB sampling, label boundaries, and small-structure geometry. The full eight-angle round-trip diagnostic in Supplementary Table S1 supports this distinction between interpolation-free C 4 transformations and interpolation-based diagonal inputs. Within the LRFormer-family ablation, the best orientation reliability is obtained when the C 4 operator path is combined with constrained fusion and diagonal training exposure.

4.7. Sensitivity to the Constrained Fusion Bound

The main comparative experiments use α max = 0.25 as the shared structural cap for both datasets. We additionally evaluate the sensitivity of the constrained branch fusion using the full C4Former architecture, the same fixed-canvas evaluation protocol, and seed 0, with only α max varied. Detailed rotation-wise results are reported in Supplementary Table S5. To check whether larger bounds cause optimization instability, Supplementary Figure S1 reports the smoothed training-loss and validation-mIoU trajectories for α max { 0.25 , 0.5 , 1.0 } , and Supplementary Table S6 reports the best validation checkpoint iteration and score. The rotation-wise results vary moderately over α max { 0 , 0.1 , 0.25 , 0.5 , 0.75 , 1.0 } , and larger upper bounds lack a monotonic or cross-dataset-consistent improvement.
On FloodNet, larger values improve several seed-0 metrics, with α max = 1.0 giving the highest All-8 and Worst-8 scores. The same trend is not reproduced on RescueNet, where α max = 0.5 gives the highest All-8 score, while α max = 0.1 gives the highest Worst-8 score and lowest Std.-8. The convergence diagnostics show that the α max = 0.25 , 0.5, and 1.0 runs complete the prescribed schedules without NaNs, loss explosion, or numerical divergence. The training-loss curves follow similar decreasing trajectories, whereas the best validation checkpoints occur at different iterations across settings. Relaxing the cap does not cause optimization failure, but it can affect late-stage validation behavior and the selected checkpoint iteration. The main experiments retain the shared conservative setting α max = 0.25 used throughout the comparative evaluation. Under the branch-weight bounds in Section 3.2.3, this moderate setting preserves a dominant uniform component, prevents any branch from receiving a majority weight, and provides a wider adaptive range than α max = 0.1 . The sensitivity results characterize its stability across the tested range without claiming dataset-specific or universal optimality.

4.8. Sensitivity to the Diagonal Augmentation Probability

The main comparative experiments use p SDA = 0.3 for both datasets, with this probability held fixed rather than tuned separately for each dataset. We additionally evaluate p SDA { 0.1 , 0.3 , 0.5 } under the same evaluation protocol using seed 0 to characterize the coarse response to stronger diagonal exposure. The seed-0 results for p SDA = 0.1 and p SDA = 0.3 are closer, so these two settings are additionally evaluated with all three predefined seeds to estimate cross-seed variability. The p SDA = 0.5 setting remains a seed-0 diagnostic reference because it reduces the FloodNet metrics and provides no consistent cross-dataset advantage in the coarse comparison. Full results are reported in Supplementary Table S2. The three-seed comparison shows that p SDA = 0.3 gives stronger main eight-angle metrics on RescueNet and remains competitive on FloodNet. These results characterize the observed dataset dependence without establishing a universally optimal augmentation probability.
A separate seed-0 C4Former-Mean-SDA diagnostic is provided in Supplementary Table S3. In this diagnostic, SDA reduces the diagonal-orientation gap of the mean-fusion C4 baseline, but DC4Former retains higher All-8 and Worst-8 scores on RescueNet. The residual seed-0 difference is consistent with an effect of the fusion design, but this diagnostic does not establish the stability or magnitude of that effect across training runs.

4.9. Per-Class and Class-Wise Stability Analysis

4.9.1. Per-Class IoU Analysis

We report per-class IoU under the canonical 0 setting for FloodNet and RescueNet in Table 11 and Table 12. The background class is omitted from the averaged foreground mIoU.
At the canonical orientation, DC4Former produces class-level scores that are generally close to those of the stronger baselines, with strengths that vary by dataset. On FloodNet, it gives the highest flooded-road IoU and stays close to the leading values for buildings, water, and vegetation. On RescueNet, Mask2Former and LRFormer obtain higher 0 scores for several classes. The per-class 0 tables therefore provide canonical-accuracy context, and the following analysis evaluates rotation stability for selected disaster-relevant categories.

4.9.2. Class-Wise Rotation Stability

Table 13 reports three-seed, eight-angle class-wise statistics for categories tied to post-disaster mapping decisions: flooded buildings, flooded roads, water regions, building-damage levels, and blocked roads. These classes are selected because they represent inundation extent, road passability, and structural damage, and because their thin boundaries or fragmented regions can be sensitive to image orientation. All-8 denotes the mean class IoU over the eight principal angles; Diag. denotes the mean over the four diagonal angles, Worst denotes the minimum across the eight angles, and Std. denotes the corresponding rotation-wise standard deviation. The comparison between LRFormer and DC4Former assesses whether the model-level orientation-reliability improvement extends to the selected disaster-relevant semantic categories.
For the selected disaster-relevant categories, the class-wise analysis follows the model-level orientation-stability trend. On FloodNet, DC4Former raises the three-seed mean worst-angle IoU for flooded roads from 51.05% to 67.54% and reduces its rotation-wise standard deviation from 5.96 to 1.92. On RescueNet, building-major-damage and road-blocked classes show large gains. Their mean worst-angle IoUs increase from 37.44% and 21.92% to 59.93% and 46.09%, respectively. Their rotation-wise standard deviations also fall below 1.0. These selected class-level results provide additional evidence of improved orientation reliability for several operationally important categories.

5. Discussion

The results separate two sources of orientation reliability: consistency within C 4 and exposure to rotations outside it. C4Former nearly equalizes performance at 0 , 90 , 180 , and 270 . The feature- and prediction-level diagnostic further shows that the improvement extends beyond the final segmentation metrics: the C4-modified encoders exhibit lower stage-wise feature discrepancy, raw-logit discrepancy, and aligned-prediction disagreement under right-angle rotations. By symmetrizing stride-1 kernels, averaging rotated downsampling responses, and aligning four low-resolution attention branches, the encoder reduces the orientation-specific responses introduced by LRFormer’s spatial-token operations. These operations act on grid-preserving right-angle rotations, where pixels or feature cells can be permuted without resampling. Diagonal rotations introduce interpolation and boundary changes on the fixed canvas. In the evaluated models, diagonal training exposure complements the encoder’s C 4 architectural consistency and improves robustness to these changes. DC4Former does not reconstruct high-frequency information removed during diagonal resampling; its measured effect is improved segmentation stability when the network receives interpolation-affected inputs.
The four branches represent the C 4 action on the sampled image lattice. Changes in UAV flight heading and camera yaw orientation can rotate the same scene relative to this lattice, so the model should preserve spatial correspondence across transformed inputs. On a regular square-pixel grid, 0 , 90 , 180 , and 270 are exact index permutations and form the complete grid-preserving C 4 set targeted by the encoder. A 45 step requires interpolation and changes the sampled values and boundary support. The RescueNet ablation illustrates this boundary: C4Former reaches an orthogonal-angle mean of 67.79% and a diagonal-angle mean of 52.03%, with a rotation-wise standard deviation of 7.88. After adding the single 45 training complement, DC4Former raises the diagonal mean to 68.21% and reduces the standard deviation to 0.33. Single-diagonal augmentation provides this exposure in a structured way. Applied to standard LRFormer, it improves diagonal accuracy while leaving the backbone operators unchanged. Applied to C4Former, it introduces one representative of 45 + C 4 while the architecture handles the grid-preserving C 4 rotations. The three-seed ablation supports complementary roles for the two components: C 4 -consistent operators reduce right-angle variation, while diagonal exposure reduces the remaining orthogonal–diagonal gap. The 24-angle stress test further evaluates sampled intermediate rotations, with dataset- and protocol-dependent behavior relative to augmentation. The experiments evaluate C 4 as a grid-preserving architectural basis and examine whether diagonal training exposure extends its stability beyond the four right-angle rotations.
Diagonal training exposure therefore mitigates the diagonal decline associated with the architecture-only C4Former. Future architectural mitigation can follow three directions. First, a bounded unsymmetrized residual kernel path could give the model a limited local-adaptation route after diagonal resampling. Second, applying C 4 spatial symmetrization only at selected stages or channels could avoid tying responses where interpolation-altered local cues require more flexibility. Third, resampling-aware anti-aliasing before local filtering could reduce interpolation artifacts in fine edges, narrow obstructions, and fragmented damage cues. Dedicated experiments are needed to test whether these alternatives preserve right-angle consistency while improving adaptation to interpolation-altered inputs.
The matched RandRot comparison indicates that rotation exposure is a strong training-time baseline with no additional inference cost and a dataset-dependent interaction with the C4 architecture. On FloodNet, LRFormer-RandRot remains slightly stronger than C4Former-RandRot, so continuous random rotation is already highly effective. On RescueNet, however, adding the C4 architecture under the same RandRot exposure improves worst-orientation reliability and reduces rotation-wise variation. This matched experiment serves as an attribution analysis by holding training-time rotation exposure fixed while changing the architecture. The final deployment comparison with DC4Former is addressed separately below. DC4Former takes a different route from dense random exposure: it changes how rotation-sensitive operators process features and uses one diagonal representative to complement the C 4 path. These routes can also be combined when deployment constraints allow.
The final comparison leads to different deployment choices for DC4Former and LRFormer-RandRot. On FloodNet, LRFormer-RandRot remains slightly higher than DC4Former in All-8, Worst-8, Mean-24, and Worst-24. On RescueNet, DC4Former provides a clearer advantage over the eight principal orientations, increasing All-8 from 66.43% to 68.01%, increasing Worst-8 from 64.26% to 67.66%, and reducing Std.-8 from 1.30 to 0.33. LRFormer-RandRot remains stronger in the RescueNet 24-angle stress test, with higher Mean-24 and Worst-24 and a lower Std.-24. The deployment choice depends on the primary requirement. DC4Former should be selected when reliability across the eight principal orientations is prioritized, particularly for rotation-sensitive data such as RescueNet. LRFormer-RandRot should be selected when inference efficiency or robustness across densely sampled angles is more important. Because only three seeds are used, these comparisons are reported descriptively, with no formal significance claims.
The main gain lies in lower orientation-induced variation, with canonical accuracy remaining comparable. For disaster mapping, reduced sensitivity to flight heading or image orientation is desirable because it improves the repeatability of the resulting semantic maps. Across three seeds on RescueNet, LRFormer loses 13.81 mIoU points between its canonical and worst orientations, compared with 0.16 points for DC4Former. The canonical per-class results show comparable class-level accuracy, while the class-wise rotation analysis is consistent with improved stability for disaster-relevant classes. Orientation reliability is therefore a separate model property and should be evaluated alongside canonical mIoU.
The principal cost is inference latency, with limited parameter growth and unchanged measured peak memory footprint. C4 feature-rotation averaged downsampling and multi-view attention increase FLOPs and require repeated feature transformations, reducing standardized 512 × 512 throughput from 65.58 to 20.17 FPS relative to LRFormer. Under the canonical 0 resized whole-image evaluation pipeline on RescueNet, latency increases from 44.13 ms/image for LRFormer to 95.60 ms/image for C4Former/DC4Former. The measured peak allocated GPU memory remains 1.51 GB for both model groups. At 95.60 ms/image, processing the 450-image RescueNet test set would require approximately 43 s of model inference. This calculation excludes data loading, metric computation, visualization, and result saving. Such throughput is compatible with reliability-oriented server-side or near-offline workflows, including post-flood road-passability mapping, inundation-boundary extraction, affected-building or vehicle inventories, and batch map production after UAV flights. It is less suitable for low-power onboard real-time deployment.
The latency difference between LRFormer and DC4Former is 51.47 ms/image. We use this measured increment for a first-order estimate of possible savings from future selective C 4 processing. A future stage- or channel-selective implementation could activate a smaller fraction of the current C 4 computation. For illustration, under a simple linear-cost assumption for the incremental C 4 computation, active fractions of 25%, 50%, and 75% give estimated total latencies of 57.00, 69.87, and 82.73 ms/image, respectively. These values correspond to latency reductions of 40.38%, 26.91%, and 13.46% relative to the full DC4Former latency. Actual latency would also depend on selection overhead, memory access, and hardware scheduling. Knowledge distillation and lightweight multi-view attention provide complementary directions for reducing inference cost.
The present evaluation uses FloodNet and RescueNet, fixed-canvas rotations, and the specified discrete eight- and 24-orientation protocols. Evaluation on additional UAV disaster datasets would further assess the generality of the observed reliability–latency trade-off.
The proposed operator-aware C 4 principle may also be transferable to other remote-sensing perception tasks, including object detection, change detection, and instance-level damage assessment, because many backbones contain similar rotation-sensitive spatial, downsampling, and attention or pooling operations. However, extending the design beyond semantic segmentation requires additional task-specific components. Detection heads, for example, introduce geometric factors such as anchor assignment, bounding-box regression, RoI alignment, or angle-aware box parameterization in oriented detection. Extending DC4Former beyond segmentation would therefore require task-specific head design and evaluation, which we leave for future work.

6. Conclusions

We presented DC4Former for rotation-stable UAV disaster segmentation. The method redesigns three rotation-sensitive operations in the LRFormer encoder: stride-1 spatial convolution, strided downsampling, and low-resolution pooling attention. C4Former improves consistency for grid-preserving right-angle rotations, while DC4Former adds a single 45 training augmentation to expose the model to a representative diagonal orientation.
Across FloodNet and RescueNet, the three-seed ablation indicates that DC4Former improves worst-angle foreground mIoU and reduces rotation-wise variability while keeping canonical-orientation accuracy comparable. The feature- and prediction-level consistency diagnostic shows smaller right-angle discrepancies in the internal representations and aligned predictions. The 24-angle stress test also shows smoother sampled intermediate-angle behavior for DC4Former than for LRFormer on both datasets. The matched RandRot comparison shows that training-time rotation exposure is a strong baseline, while the C4 architecture provides additional worst-orientation reliability on RescueNet under the principal eight-angle protocol, where the baseline models exhibit larger rotation-wise variation. These results support reporting rotation-wise evaluation alongside canonical mIoU for UAV disaster maps acquired under varying flight headings and camera yaw orientations.
Future work will evaluate the method on additional UAV disaster datasets and investigate transfer to other remote-sensing perception tasks, such as object detection, change detection, and instance-level damage assessment. More efficient group-aware operators will also be explored to improve the trade-off between orientation reliability and inference speed.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/rs18172896/s1, Table S1: Image-level rotation–inverse-rotation round-trip diagnostic; Table S2: Sensitivity to the stochastic diagonal augmentation probability; Table S3: Seed-0 C4Former-Mean-SDA diagnostic; Table S4: Full feature-, logit-, and prediction-level C 4 consistency diagnostic; Table S5: Sensitivity analysis of the constrained fusion bound; Figure S1: Training-loss and validation-mIoU trajectories; Table S6: Best validation checkpoint iteration.

Author Contributions

W.W. and J.T. conceived the main idea. W.W. and J.T. developed the methodology and designed the experiments. W.W. implemented the software, processed the data, and conducted the experiments. W.W. and J.T. analyzed the results. W.W. prepared the original manuscript draft. J.T. supervised the research and provided critical revisions. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Startup Foundation for Young Teachers of Shanghai Ocean University (A2-2006-24-200322).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

FloodNet and RescueNet are publicly available through their official releases associated with [1,2]. The source code, configuration files, trained checkpoints, and rotation-wise evaluation script are publicly available at https://github.com/2057014770/DC4Former (accessed on 24 August 2026).

Acknowledgments

The authors would like to thank the dataset providers of FloodNet and RescueNet for making UAV disaster imagery publicly available.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Rahnemoonfar, M.; Chowdhury, T.; Sarkar, A.; Varshney, D.; Yari, M.; Murphy, R.R. FloodNet: A High Resolution Aerial Imagery Dataset for Post Flood Scene Understanding. IEEE Access 2021, 9, 89644–89654. [Google Scholar] [CrossRef] [Scilit]
  2. Rahnemoonfar, M.; Chowdhury, T.; Murphy, R. RescueNet: A High Resolution UAV Semantic Segmentation Dataset for Natural Disaster Damage Assessment. Sci. Data 2023, 10, 913. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Simantiris, G.; Bacharidis, K.; Papanikolaou, A.; Giannakakis, P.; Panagiotakis, C. AIFloodSense: A Global Aerial Imagery Dataset for Semantic Segmentation and Understanding of Flooded Environments. Remote Sens. 2026, 18, 938. [Google Scholar] [CrossRef] [Scilit]
  4. Chowdhury, T.; Rahnemoonfar, M.; Murphy, R.; Fernandes, O. Comprehensive Semantic Segmentation on High Resolution UAV Imagery for Natural Disaster Damage Assessment. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 10–13 December 2020; pp. 3904–3913. [Google Scholar] [CrossRef] [Scilit]
  5. Zetout, A.; Allili, M.S. CSDNet: Context-Aware Segmentation of Disaster Aerial Imagery Using Detection-Guided Features and Lightweight Transformers. Remote Sens. 2025, 17, 2337. [Google Scholar] [CrossRef] [Scilit]
  6. Zhang, Y.; Li, W.; Zhang, M.; Han, J.; Tao, R.; Liang, S. SpectralX: Parameter-Efficient Domain Generalization for Spectral Remote Sensing Foundation Models. ISPRS J. Photogramm. Remote Sens. 2026, 239, 774–792. [Google Scholar] [CrossRef] [Scilit]
  7. Cohen, T.; Welling, M. Group Equivariant Convolutional Networks. In Proceedings of the 33rd International Conference on Machine Learning, New York, NY, USA, 20–22 June 2016; Volume 48, pp. 2990–2999. [Google Scholar]
  8. Worrall, D.E.; Garbin, S.J.; Turmukhambetov, D.; Brostow, G.J. Harmonic Networks: Deep Translation and Rotation Equivariance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 7168–7177. [Google Scholar] [CrossRef] [Scilit]
  9. Weiler, M.; Cesa, G. General E(2)-Equivariant Steerable CNNs. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar]
  10. Cesa, G.; Lang, L.; Weiler, M. A Program to Build E(N)-Equivariant Steerable CNNs. In Proceedings of the International Conference on Learning Representations, Virtual Event, 25–29 April 2022. [Google Scholar]
  11. Zhou, Y.; Ye, Q.; Qiu, Q.; Jiao, J. Oriented Response Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4961–4970. [Google Scholar] [CrossRef] [Scilit]
  12. Linmans, J.; Winkens, J.; Veeling, B.S.; Cohen, T.S.; Welling, M. Sample Efficient Semantic Segmentation Using Rotation Equivariant Convolutional Networks. arXiv 2018, arXiv:1807.00583. [Google Scholar] [CrossRef] [Scilit]
  13. Han, J.; Ding, J.; Xue, N.; Xia, G.S. ReDet: A Rotation-Equivariant Detector for Aerial Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 2785–2794. [Google Scholar] [CrossRef] [Scilit]
  14. Xu, X.; Liu, H.; Zhang, T.; Xiong, H.; Yu, W. PreCM: The Padding-Based Rotation Equivariant Convolution Mode for Semantic Segmentation. IEEE Trans. Image Process. 2025, 34, 2781–2795. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Long, J.; Shelhamer, E.; Darrell, T. Fully Convolutional Networks for Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar] [CrossRef] [Scilit]
  16. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention; Springer: Berlin/Heidelberg, Germany, 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
  17. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 2881–2890. [Google Scholar] [CrossRef] [Scilit]
  18. Chen, L.C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Computer Vision—ECCV 2018; Springer: Berlin/Heidelberg, Germany, 2018; Volume 11211, pp. 833–851. [Google Scholar] [CrossRef] [Scilit]
  19. Yang, M.; Yu, K.; Zhang, C.; Li, Z.; Yang, K. DenseASPP for Semantic Segmentation in Street Scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 3684–3692. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar] [CrossRef] [Scilit]
  21. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2021; Volume 34, pp. 12077–12090. [Google Scholar]
  22. Cheng, B.; Schwing, A.G.; Kirillov, A. Per-Pixel Classification Is Not All You Need for Semantic Segmentation. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2021; Volume 34, pp. 17864–17875. [Google Scholar]
  23. Cheng, B.; Misra, I.; Schwing, A.G.; Kirillov, A.; Girdhar, R. Masked-Attention Mask Transformer for Universal Image Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 1290–1299. [Google Scholar] [CrossRef] [Scilit]
  24. Wu, Y.H.; Zhang, S.C.; Liu, Y.; Zhang, L.; Zhan, X.; Zhou, D.; Feng, J.; Cheng, M.M.; Zhen, L. Low-Resolution Self-Attention for Semantic Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2025, 47, 8180–8192. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Rudner, T.G.J.; Rußwurm, M.; Fil, J.; Pelich, R.; Bischke, B.; Kopacková, V.; Biliński, P. Multi3Net: Segmenting Flooded Buildings via Fusion of Multiresolution, Multisensor, and Multitemporal Satellite Imagery. In Proceedings of the AAAI Conference on Artificial Intelligence; PKP Publishing Services: Burnaby, BC, Canada, 2019; Volume 33, pp. 702–709. [Google Scholar] [CrossRef] [Scilit]
  26. Akiva, P.; Purri, M.; Dana, K.J.; Tellman, B.; Anderson, T. H2O-Net: Self-Supervised Flood Segmentation via Adversarial Domain Adaptation and Label Refinement. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–8 January 2021; pp. 111–122. [Google Scholar] [CrossRef] [Scilit]
  27. Shaheen, M.T.; Iqbal, H.; Khurshid, N.; Sadia, H.; Saeed, N. SwinSegFormer: Advancing Aerial Image Semantic Segmentation for Flood Detection. IEEE Open J. Comput. Soc. 2025, 6, 645–657. [Google Scholar] [CrossRef] [Scilit]
  28. Ghaffar, F.; Deng, X.; Khan, B.; Zhou, T.; Song, Y.; Lim, C.P. Flood-Eye: Intelligent Segmentation and Area Estimation of Flooded Regions. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4209612. [Google Scholar] [CrossRef] [Scilit]
  29. Chen, L.C.; Papandreou, G.; Kokkinos, I.; Murphy, K.; Yuille, A.L. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs. IEEE Trans. Pattern Anal. Mach. Intell. 2018, 40, 834–848. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Paszke, A.; Chaurasia, A.; Kim, S.; Culurciello, E. ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation. arXiv 2016, arXiv:1606.02147. [Google Scholar] [CrossRef] [Scilit]
  31. Romera, E.; Alvarez, J.M.; Bergasa, L.M.; Arroyo, R. ERFNet: Efficient Residual Factorized ConvNet for Real-Time Semantic Segmentation. IEEE Trans. Intell. Transp. Syst. 2018, 19, 263–272. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, Y.; Zhou, Q.; Liu, J.; Xiong, J.; Gao, G.; Wu, X.; Latecki, L.J. LEDNet: A Lightweight Encoder-Decoder Network for Real-Time Semantic Segmentation. In Proceedings of the 2019 IEEE International Conference on Image Processing, Taipei, Taiwan, 20–25 September 2019; pp. 1860–1864. [Google Scholar] [CrossRef] [Scilit]
  33. Yu, C.; Gao, C.; Wang, J.; Yu, G.; Shen, C.; Sang, N. BiSeNet V2: Bilateral Network with Guided Aggregation for Real-Time Semantic Segmentation. Int. J. Comput. Vis. 2021, 129, 3051–3068. [Google Scholar] [CrossRef] [Scilit]
  34. Wang, J.; Gou, C.; Wu, Q.; Feng, H.; Han, J.; Ding, E.; Wang, J. RTFormer: Efficient Design for Real-Time Semantic Segmentation with Transformer. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2022; Volume 35, pp. 7423–7436. [Google Scholar]
  35. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv 2021, arXiv:2010.11929. [Google Scholar] [CrossRef] [Scilit]
  36. Wang, W.; Xie, E.; Li, X.; Fan, D.P.; Song, K.; Liang, D.; Lu, T.; Luo, P.; Shao, L. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 548–558. [Google Scholar] [CrossRef] [Scilit]
  37. Ding, H.; Xia, B.; Liu, W.; Zhang, Z.; Zhang, J.; Wang, X.; Xu, S. A Novel Mamba Architecture with a Semantic Transformer for Efficient Real-Time Remote Sensing Semantic Segmentation. Remote Sens. 2024, 16, 2620. [Google Scholar] [CrossRef] [Scilit]
  38. Zhang, Z.; Shu, D.; Gu, G.; Hu, W.; Wang, R.; Chen, X.; Yang, B. RingFormer-Seg: A Scalable and Context-Preserving Vision Transformer Framework for Semantic Segmentation of Ultra-High-Resolution Remote Sensing Imagery. Remote Sens. 2025, 17, 3064. [Google Scholar] [CrossRef] [Scilit]
  39. Chen, H.; Feng, Y.; Wang, K.; Liao, M.; Zhai, H.; Xia, T.; Zhang, Y.; Jiao, J.; Wen, C. Seeing Like Argus: Multi-Perspective Global–Local Context Learning for Remote Sensing Semantic Segmentation. Remote Sens. 2026, 18, 521. [Google Scholar] [CrossRef] [Scilit]
  40. Shorten, C.; Khoshgoftaar, T.M. A Survey on Image Data Augmentation for Deep Learning. J. Big Data 2019, 6, 60. [Google Scholar] [CrossRef] [Scilit]
  41. Benton, G.; Finzi, M.; Izmailov, P.; Wilson, A.G. Learning Invariances in Neural Networks from Training Data. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2020; Volume 33, pp. 17605–17616. [Google Scholar]
  42. Hounie, I.; Chamon, L.F.O.; Ribeiro, A. Automatic Data Augmentation via Invariance-Constrained Learning. In Proceedings of the 40th International Conference on Machine Learning, Honolulu, Hawaii, 23–29 July 2023; pp. 13410–13433. [Google Scholar]
  43. Dieleman, S.; De Fauw, J.; Kavukcuoglu, K. Exploiting Cyclic Symmetry in Convolutional Neural Networks. In Proceedings of the 33rd International Conference on Machine Learning, New York, NY, USA, 20–22 June 2016; Volume 48, pp. 1889–1898. [Google Scholar]
  44. Marcos, D.; Volpi, M.; Komodakis, N.; Tuia, D. Rotation Equivariant Vector Field Networks. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 5048–5057. [Google Scholar]
  45. Weiler, M.; Hamprecht, F.A.; Storath, M. Learning Steerable Filters for Rotation Equivariant CNNs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 849–858. [Google Scholar]
  46. Marcos, D.; Volpi, M.; Kellenberger, B.; Tuia, D. Land Cover Mapping at Very High Resolution with Rotation Equivariant CNNs: Towards Small Yet Accurate Models. ISPRS J. Photogramm. Remote Sens. 2018, 145, 96–107. [Google Scholar] [CrossRef] [Scilit]
  47. Cao, Q.; Chen, Y.; Ma, C.; Yang, X. Few-Shot Rotation-Invariant Aerial Image Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5600513. [Google Scholar] [CrossRef] [Scilit]
  48. Lee, C.; Son, J.; Shon, H.; Jeon, Y.; Kim, J. FRED: Towards a Full Rotation-Equivariance in Aerial Image Object Detection. In Proceedings of the AAAI Conference on Artificial Intelligence; PKP Publishing Services: Burnaby, BC, Canada, 2024; Volume 38, pp. 2883–2891. [Google Scholar] [CrossRef] [Scilit]
  49. Wu, X.; Wang, X.; Zhu, X.; Yang, L.; Liu, J.; Hu, X. Measuring the Impact of Rotation Equivariance on Aerial Object Detection. In Proceedings of the 2025 IEEE/CVF International Conference on Computer Vision (ICCV), Honolulu, HI, USA, 19–25 October 2025; pp. 7329–7339. [Google Scholar] [CrossRef] [Scilit]
  50. Wu, Z.; Liu, Y.; Dong, H.; Tang, X.; Yang, J.; Jin, B.; Chen, M.; Wei, X. R2Det: Exploring Relaxed Rotation Equivariance in 2D Object Detection. In Proceedings of the 13th International Conference on Learning Representations (ICLR), Singapore, 24–28 April 2025. [Google Scholar]
  51. Ghyselinck, R.; Delchevalerie, V.; Dumas, B.; Frénay, B. On the Effectiveness of Rotation-Equivariance in U-Net: A Benchmark for Image Segmentation. Trans. Mach. Learn. Res. 2025. Available online: https://openreview.net/forum?id=UcrVnXBdZI (accessed on 4 July 2026). [CrossRef] [Scilit]
  52. Xu, J.; Kim, H.; Rainforth, T.; Teh, Y.W. Group Equivariant Subsampling. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2021; Volume 34, pp. 5934–5946. [Google Scholar]
  53. Romero, D.W.; Bekkers, E.J.; Tomczak, J.M.; Hoogendoorn, M. Attentive Group Equivariant Convolutional Networks. In Proceedings of the 37th International Conference on Machine Learning, Virtual Event, 12–18 July 2020; Volume 119, pp. 8188–8199. [Google Scholar]
  54. Romero, D.W.; Cordonnier, J.B. Group Equivariant Stand-Alone Self-Attention for Vision. In Proceedings of the International Conference on Learning Representations, Virtual Event, 3–7 May 2021. [Google Scholar]
  55. Xu, R.; Yang, K.; Liu, K.; He, F. E(2)-Equivariant Vision Transformer. In Proceedings of the 39th Conference on Uncertainty in Artificial Intelligence, Pittsburgh, PA, USA, 31 July–4 August 2023; Volume 216, pp. 2356–2366. [Google Scholar]
  56. Rojas-Gomez, R.A.; Lim, T.Y.; Do, M.N.; Yeh, R.A. Making Vision Transformers Truly Shift-Equivariant. In Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; pp. 5568–5577. [Google Scholar] [CrossRef] [Scilit]
  57. Fu, J.; Xie, Q.; Meng, D.; Xu, Z. Vanilla Group Equivariant Vision Transformer: Simple and Effective. arXiv 2026, arXiv:2602.08047. [Google Scholar] [CrossRef] [Scilit]
  58. Chen, F.; Du, Y.; Lieffrig, E.V.; Dvornek, N.C.; Onofrey, J.A. EQUI-ViT: Rotational Equivariant Vision Transformer for Robust Histopathology Analysis. In Proceedings of the 2026 IEEE 23rd International Symposium on Biomedical Imaging (ISBI), London, UK, 8–11 April 2026; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  59. Xiao, T.; Liu, Y.; Zhou, B.; Jiang, Y.; Sun, J. Unified perceptual parsing for scene understanding. In Computer Vision—ECCV 2018; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2018; Volume 11209, pp. 432–448. [Google Scholar] [CrossRef] [Scilit]
  60. Wang, L.; Li, R.; Zhang, C.; Fang, S.; Duan, C.; Meng, X.; Atkinson, P.M. UNetFormer: A UNet-Like Transformer for Efficient Semantic Segmentation of Remote Sensing Urban Scene Imagery. ISPRS J. Photogramm. Remote Sens. 2022, 190, 196–214. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Overall architecture of DC4Former. The bottom panels summarize the three operator-specific C 4 redesigns in the encoder. X denotes the local input feature tensor of each operator.
Figure 1. Overall architecture of DC4Former. The bottom panels summarize the three operator-specific C 4 redesigns in the encoder. X denotes the local input feature tensor of each operator.
Remotesensing 18 02896 g001
Figure 2. Qualitative rotation-consistency comparison on FloodNet. (a) Boxed overview and (b) zoomed road-flooded ROI.
Figure 2. Qualitative rotation-consistency comparison on FloodNet. (a) Boxed overview and (b) zoomed road-flooded ROI.
Remotesensing 18 02896 g002
Figure 3. Qualitative rotation-consistency comparison on RescueNet. (a) Boxed overview and (b) zoomed building-total-damage and road-blocked ROI.
Figure 3. Qualitative rotation-consistency comparison on RescueNet. (a) Boxed overview and (b) zoomed building-total-damage and road-blocked ROI.
Remotesensing 18 02896 g003
Figure 4. Dense rotation stress test for the four main LRFormer-family settings at 24 angles on (a) FloodNet and (b) RescueNet. Curves show three-seed mean foreground mIoU; shaded bands denote cross-seed standard deviation.
Figure 4. Dense rotation stress test for the four main LRFormer-family settings at 24 angles on (a) FloodNet and (b) RescueNet. Curves show three-seed mean foreground mIoU; shaded bands denote cross-seed standard deviation.
Remotesensing 18 02896 g004
Table 1. Operator-aware design summary of DC4Former.
Table 1. Operator-aware design summary of DC4Former.
Rotation-Sensitive ComponentSource of InstabilityProposed Treatment
Stride-1 spatial convolutionOrientation-biased local kernels C 4 weight symmetrization
Strided downsamplingRotation changes the sampling lattice C 4 feature-rotation averaging
Low-resolution pooling attentionRotation changes the pooled-token layoutAligned C 4 multi-view attention
Attention-branch fusionAdaptivity limitation of uniform C 4 averagingConstrained adaptive correction
Diagonal rotationsOutside the grid-preserving C 4 groupSingle 45 training-time augmentation
Table 2. Model complexity and seed-0 rotation-wise foreground mIoU overview. Complexity and FPS are measured with 512 × 512 inputs and batch size 1. Bold values indicate the best value in each column.
Table 2. Model complexity and seed-0 rotation-wise foreground mIoU overview. Complexity and FPS are measured with 512 × 512 inputs and batch size 1. Bold values indicate the best value in each column.
MethodFLOPsParamsFPSFloodNetRescueNet
Orth. MeanAll-8 MeanOrth. MeanAll-8 Mean
PSPNet179.00G48.97M63.8674.1171.2169.3465.8656.2749.48
DeepLabv3+177.00G43.58M58.5376.1873.1170.8968.6556.7749.25
UPerNet236.00G59.84M43.3276.1374.7772.1968.0061.9856.36
SegFormer-B115.44G13.68M90.0275.2273.6672.0761.9254.4346.76
Mask2Former69.05G47.40M16.3377.8875.8973.4270.7462.7058.56
UNetFormer11.70G11.68M96.9769.9367.9966.5363.2756.1247.28
LRFormer29.25G28.39M65.5877.7675.1372.9269.3562.2158.35
C4Former40.59G28.57M20.1776.5376.5374.8168.1368.0960.37
DC4Former40.59G28.57M20.1777.2277.1577.2668.1068.0268.04
Table 3. Practical inference cost under a canonical 0 resized whole-image pipeline. Bold values indicate the best value in each column.
Table 3. Practical inference cost under a canonical 0 resized whole-image pipeline. Bold values indicate the best value in each column.
Method Group512 × 512
FPS ↑
Resized Full-Image
Latency ↓
Peak Allocated
Memory ↓
LRFormer/LRFormer-SDA65.5844.13 ms/image1.51 GB
C4Former/DC4Former20.1795.60 ms/image1.51 GB
Table 4. Seed-0 contextual angle-wise foreground mIoU comparison on FloodNet. Bold values indicate the best value in each column.
Table 4. Seed-0 contextual angle-wise foreground mIoU comparison on FloodNet. Bold values indicate the best value in each column.
Method45°90°135°180°225°270°315°All-8WorstStd.RMD
PSPNet74.1167.6170.2167.5270.5667.2669.9867.4569.3467.262.227.36
DeepLabv3+76.1868.7972.1668.8972.3168.0771.7868.9370.8968.072.577.94
UPerNet76.1370.4274.2869.2774.6168.6374.0570.1672.1968.632.685.90
SegFormer-B175.2271.4873.1669.5273.6269.8372.6471.0972.0769.521.834.79
Mask2Former77.8871.7673.9371.4375.5870.7676.1769.8273.4269.822.726.55
UNetFormer69.9365.0766.5864.9269.3465.1366.1165.1366.5364.921.885.57
LRFormer77.7671.1172.6471.0376.0969.8974.0270.8472.9269.892.627.10
LRFormer-SDA77.6777.4074.7975.0373.9373.1075.0875.7775.3573.101.473.42
C4Former76.5373.0876.5373.1176.5373.1976.5372.9774.8172.971.722.57
DC4Former77.2276.9777.0977.7877.0976.9877.2277.7577.2676.970.30−0.07
Table 5. Seed-0 contextual angle-wise foreground mIoU comparison on RescueNet. Bold values indicate the best value in each column.
Table 5. Seed-0 contextual angle-wise foreground mIoU comparison on RescueNet. Bold values indicate the best value in each column.
Method45°90°135°180°225°270°315°All-8WorstStd.RMD
PSPNet65.8643.9250.7842.1557.3641.8551.0742.8349.4841.858.0728.42
DeepLabv3+68.6542.8950.0441.1657.7840.7350.6242.1049.2540.739.2332.31
UPerNet68.0052.1958.9150.3460.9649.2560.0651.1856.3649.256.2019.57
SegFormer-B161.9239.2150.0339.0355.9538.5549.8339.5446.7638.558.4527.99
Mask2Former70.7455.8459.3454.2362.0052.8458.7154.8058.5652.845.4119.67
UNetFormer63.2738.4451.9938.2457.4137.7851.8139.2747.2837.789.4528.89
LRFormer69.3556.4059.2553.2061.2153.5059.0454.8258.3553.204.9618.14
LRFormer-SDA68.7469.1960.8661.4461.0361.9462.1861.9863.4260.863.238.84
C4Former68.1352.8368.0552.5568.0452.5368.1552.6760.3752.537.7213.02
DC4Former68.1067.7167.9368.3167.9267.6668.1168.5768.0467.660.280.10
Table 6. Feature-, logit-, and prediction-level C4 consistency diagnostic. Bold values indicate the best value in each column.
Table 6. Feature-, logit-, and prediction-level C4 consistency diagnostic. Bold values indicate the best value in each column.
DatasetModelStage-1 L2 ↓Stage-4 L2 ↓Logit L2 ↓Pred. Cons. fg mIoU (%) ↑Pixel Disagree. (%) ↓
FloodNetLRFormer1.054 ± 0.0090.588 ± 0.0080.274 ± 0.00281.51 ± 0.327.947 ± 0.179
FloodNetC4Former0.637 ± 0.0050.236 ± 0.0010.151 ± 0.00396.14 ± 0.050.971 ± 0.008
FloodNetDC4Former0.638 ± 0.0130.234 ± 0.0060.146 ± 0.00296.26 ± 0.020.958 ± 0.047
RescueNetLRFormer1.132 ± 0.0020.587 ± 0.0360.246 ± 0.01268.84 ± 1.929.227 ± 0.820
RescueNetC4Former0.754 ± 0.0080.237 ± 0.0010.130 ± 0.00394.74 ± 0.121.227 ± 0.110
RescueNetDC4Former0.755 ± 0.0040.236 ± 0.0010.127 ± 0.00494.73 ± 0.391.221 ± 0.129
Values are reported as mean ± cross-seed standard deviation over three seeds; each seed-level value averages the non-zero right-angle rotations.
Table 7. Three-seed dense rotation stress-test summary over 24 angles. Bold values indicate the best value in each column.
Table 7. Three-seed dense rotation stress-test summary over 24 angles. Bold values indicate the best value in each column.
DatasetSettingMean-24Worst-24Std.-24
FloodNetA: LRFormer72.64 ± 0.5069.60 ± 0.201.99 ± 0.13
FloodNetB: LRFormer-SDA75.56 ± 0.1773.17 ± 0.281.47 ± 0.11
FloodNetJ: C4Former75.12 ± 0.7773.35 ± 0.341.01 ± 0.21
FloodNetK: DC4Former77.19 ± 0.2576.50 ± 0.470.39 ± 0.10
RescueNetA: LRFormer58.79 ± 1.1954.90 ± 1.513.40 ± 0.59
RescueNetB: LRFormer-SDA63.26 ± 0.1460.46 ± 0.352.78 ± 0.13
RescueNetJ: C4Former57.10 ± 0.7151.67 ± 1.135.42 ± 0.46
RescueNetK: DC4Former65.40 ± 0.6963.04 ± 1.511.91 ± 0.50
Table 8. Diagnostic rotation-augmentation controls.
Table 8. Diagnostic rotation-augmentation controls.
SchemeMethodArch.Train Rot.All-8Worst-8Std.-8Mean-24Worst-24Std.-24
FloodNet
1LRFormer-RandRotLRRand. 0–360°77.49 ± 0.3377.06 ± 0.410.32 ± 0.0877.68 ± 0.3076.98 ± 0.310.36 ± 0.02
2LRFormer-FourDiagLRRand. diag.77.2676.560.4277.2876.360.50
3LRFormer-DenseRotLRRand. 15° grid77.6177.280.1977.8177.280.22
4C4Former-RandDiagC4Rand. diag.77.3176.970.4477.1576.480.48
5C4Former-RandRotC4Rand. 0–360°77.05 ± 0.5176.74 ± 0.650.31 ± 0.1277.17 ± 0.5676.74 ± 0.650.34 ± 0.07
RescueNet
1LRFormer-RandRotLRRand. 0–360°66.43 ± 0.2264.26 ± 0.501.30 ± 0.0866.62 ± 0.1964.26 ± 0.501.10 ± 0.06
2LRFormer-FourDiagLRRand. diag.66.5863.881.9166.2863.881.49
3LRFormer-DenseRotLRRand. 15° grid66.1564.071.3366.4064.071.23
4C4Former-RandDiagC4Rand. diag.67.4067.070.3565.2063.011.63
5C4Former-RandRotC4Rand. 0–360°67.04 ± 0.4466.62 ± 0.550.28 ± 0.1066.86 ± 0.5466.16 ± 0.370.35 ± 0.02
LR/C4 denote LRFormer/C4Former. Schemes 1 and 5 are three-seed RandRot comparisons; Schemes 2–4 are seed-0 diagnostics. Italicized dataset names indicate dataset blocks. Boldface compares Schemes 1 and 5 within each dataset. Rand. diag. samples from { 45 , 135 , 225 , 315 } .
Table 9. Diagnostic ablation design of C4Former and DC4Former.
Table 9. Diagnostic ablation design of C4Former and DC4Former.
SettingC4 SpatialC4 Down.C4 Attn.FusionSDA
A: LRFormer
B: LRFormer-SDA
C: +C4 Spatial
D: +C4 Down.
E: +C4 Attn.Constrained
F: C4 Spatial + Down.
G: C4 Spatial + Attn.Constrained
H: C4 Down. + Attn.Constrained
I: C4Former-MeanMean
J: C4FormerConstrained
K: DC4FormerConstrained
Table 10. Three-seed ablation results on FloodNet and RescueNet. Bold values indicate the best value in each column.
Table 10. Three-seed ablation results on FloodNet and RescueNet. Bold values indicate the best value in each column.
DatasetSettingOrth.Diag.All-8Std.WorstRMD
FloodNetA: LRFormer77.38 ± 0.3375.32 ± 0.2271.35 ± 0.8173.34 ± 0.512.30 ± 0.3270.14 ± 0.295.96 ± 1.09
FloodNetB: LRFormer-SDA77.63 ± 0.1675.40 ± 0.0975.54 ± 0.2675.47 ± 0.121.44 ± 0.0673.33 ± 0.213.18 ± 0.36
FloodNetC: +C4 Spatial77.45 ± 0.3576.09 ± 0.4271.70 ± 0.2773.90 ± 0.342.34 ± 0.0970.89 ± 0.425.25 ± 0.17
FloodNetD: +C4 Down.77.61 ± 0.2475.71 ± 0.3072.27 ± 0.1173.99 ± 0.152.07 ± 0.0571.15 ± 0.305.32 ± 0.17
FloodNetE: +C4 Attn.77.49 ± 0.0975.76 ± 0.2172.53 ± 0.5074.15 ± 0.261.95 ± 0.1871.29 ± 0.674.93 ± 0.36
FloodNetF: C4 Spatial + Down.76.66 ± 0.2676.59 ± 0.4172.46 ± 0.3174.52 ± 0.312.09 ± 0.1872.10 ± 0.563.19 ± 0.21
FloodNetG: C4 Spatial + Attn.77.35 ± 0.4376.27 ± 0.2672.32 ± 0.5274.30 ± 0.352.08 ± 0.2071.58 ± 0.514.50 ± 0.42
FloodNetH: C4 Down. + Attn.77.49 ± 0.2575.81 ± 0.1472.57 ± 0.3174.19 ± 0.181.96 ± 0.1671.35 ± 0.964.87 ± 0.21
FloodNetI: C4Former-Mean76.95 ± 0.6176.90 ± 0.5772.54 ± 0.5174.72 ± 0.512.20 ± 0.1872.13 ± 0.393.31 ± 0.33
FloodNetJ: C4Former76.64 ± 0.3976.64 ± 0.3673.69 ± 0.5375.16 ± 0.381.50 ± 0.2573.35 ± 0.342.20 ± 0.40
FloodNetK: DC4Former76.98 ± 0.4477.00 ± 0.3877.39 ± 0.0277.20 ± 0.190.34 ± 0.1176.83 ± 0.30−0.32 ± 0.38
RescueNetA: LRFormer68.71 ± 0.5662.85 ± 0.5856.27 ± 1.6559.56 ± 1.074.17 ± 0.7254.90 ± 1.5115.20 ± 2.55
RescueNetB: LRFormer-SDA68.54 ± 0.1763.04 ± 0.2563.60 ± 0.0463.32 ± 0.143.14 ± 0.0860.57 ± 0.438.70 ± 0.21
RescueNetC: +C4 Spatial68.47 ± 0.8863.75 ± 0.1753.44 ± 1.1658.60 ± 0.515.57 ± 0.6852.55 ± 1.2016.46 ± 1.87
RescueNetD: +C4 Down.69.99 ± 0.2363.33 ± 0.5557.55 ± 0.5760.44 ± 0.224.18 ± 0.2355.69 ± 0.4515.60 ± 0.14
RescueNetE: +C4 Attn.69.60 ± 0.1763.47 ± 0.1657.30 ± 1.0560.39 ± 0.454.18 ± 0.3355.51 ± 0.7115.13 ± 0.52
RescueNetF: C4 Spatial + Down.67.29 ± 0.5566.74 ± 0.3751.11 ± 0.6758.92 ± 0.437.83 ± 0.3350.64 ± 0.5614.22 ± 0.73
RescueNetG: C4 Spatial + Attn.69.04 ± 0.4063.86 ± 0.4754.47 ± 0.5859.17 ± 0.515.27 ± 0.2453.49 ± 0.7316.35 ± 0.88
RescueNetH: C4 Down. + Attn.69.65 ± 0.3363.53 ± 0.1257.72 ± 0.9260.62 ± 0.404.05 ± 0.2655.65 ± 0.4614.81 ± 0.44
RescueNetI: C4Former-Mean68.00 ± 0.4668.02 ± 0.4252.34 ± 0.3560.18 ± 0.267.85 ± 0.2851.75 ± 0.4013.14 ± 0.50
RescueNetJ: C4Former67.80 ± 0.3367.79 ± 0.3352.03 ± 1.0859.91 ± 0.547.88 ± 0.5851.67 ± 1.1313.29 ± 0.89
RescueNetK: DC4Former67.82 ± 0.3167.81 ± 0.2668.21 ± 0.1868.01 ± 0.040.33 ± 0.1167.66 ± 0.18−0.32 ± 0.46
Table 11. Seed-0 per-class IoU on FloodNet under the canonical 0 setting. B-F: building-flooded; B-NF: building-non-flooded; R-F: road-flooded; R-NF: road-non-flooded. Bold values indicate the best value in each column.
Table 11. Seed-0 per-class IoU on FloodNet under the canonical 0 setting. B-F: building-flooded; B-NF: building-non-flooded; R-F: road-flooded; R-NF: road-non-flooded. Bold values indicate the best value in each column.
MethodB-FB-NFR-FR-NFWaterTreeVehiclePoolGrassmIoU
PSPNet71.7678.5764.3882.0277.9885.0652.2664.5590.4274.11
DeepLabv3+72.7080.6566.0484.4879.6685.8759.1866.0191.0376.18
UPerNet70.9479.5467.0384.4178.9786.0760.2666.8591.0776.13
SegFormer-B170.4578.6766.3583.9778.8585.5957.2665.1690.7175.22
Mask2Former73.0480.3567.8085.9781.0084.9967.3669.5290.9177.88
UNetFormer71.4675.7148.0280.3668.3880.5660.4957.8286.5969.93
LRFormer72.0479.5170.8886.1681.8786.6263.2368.1291.3877.76
C4Former71.2279.3068.6785.5079.1186.3060.9866.5291.1976.53
DC4Former71.6679.0473.2285.8081.5185.6959.8167.1091.1477.22
Table 12. Seed-0 per-class IoU on RescueNet under the canonical 0 setting. B-ND: building-no-damage; B-MD: building-medium-damage; B-MaD: building-major-damage; B-TD: building-total-damage; R-C: road-clear; R-B: road-blocked. Bold values indicate the best value in each column.
Table 12. Seed-0 per-class IoU on RescueNet under the canonical 0 setting. B-ND: building-no-damage; B-MD: building-medium-damage; B-MaD: building-major-damage; B-TD: building-total-damage; R-C: road-clear; R-B: road-blocked. Bold values indicate the best value in each column.
MethodWaterB-NDB-MDB-MaDB-TDVehicleR-CR-BTreePoolmIoU
PSPNet85.0465.3256.6158.6058.1755.3876.0647.8382.6572.9065.86
DeepLabv3+84.9968.2060.1760.7862.5861.3876.8450.2583.7577.6068.65
UPerNet85.2567.9259.5459.1261.7560.3277.0451.1884.2273.7168.00
SegFormer-B182.7362.9253.8752.7155.9947.5072.7341.6283.0066.1661.92
Mask2Former85.8170.2661.3361.4863.8767.9378.0351.8683.7183.0870.74
UNetFormer81.2764.2953.4754.3159.0757.6374.1440.9581.4166.1763.27
LRFormer85.2069.0860.3758.6563.9164.8078.0851.2384.6577.5769.35
C4Former84.4171.0862.2859.9364.8561.9376.4645.9883.2471.1668.13
DC4Former83.9069.5161.0159.4964.8361.8876.6447.9084.5671.2268.10
Table 13. Three-seed class-wise rotation stability for selected disaster-relevant categories. Bold values indicate the best value in each column.
Table 13. Three-seed class-wise rotation stability for selected disaster-relevant categories. Bold values indicate the best value in each column.
DatasetClassAll-8 ↑Diag. ↑Worst ↑Std. ↓
LRDCLRDCLRDCLRDC
FloodNetB-F71.1472.0669.2672.7364.7771.272.770.80
FloodNetR-F60.8270.4157.6970.0451.0567.545.961.92
FloodNetWater71.6981.2069.0181.5663.8979.964.610.91
RescueNetB-MD48.5360.9144.6361.4042.2860.255.230.57
RescueNetB-MaD46.7160.7640.9961.5337.4459.936.900.79
RescueNetB-TD56.9365.3353.9765.8352.1364.463.620.65
RescueNetR-B30.2747.0825.3547.0821.9246.098.160.66
Values are cross-seed means. B-F: building-flooded; R-F: road-flooded; B-MD/B-MaD/B-TD: building-medium/major/total-damage; R-B: road-blocked. Arrows indicate the preferred direction.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wu, W.; Tao, J. DC4Former: Orientation-Stable UAV Disaster Image Segmentation via Diagonal-Complemented C4 Consistency. Remote Sens. 2026, 18, 2896. https://doi.org/10.3390/rs18172896

AMA Style

Wu W, Tao J. DC4Former: Orientation-Stable UAV Disaster Image Segmentation via Diagonal-Complemented C4 Consistency. Remote Sensing. 2026; 18(17):2896. https://doi.org/10.3390/rs18172896

Chicago/Turabian Style

Wu, Wenhao, and Jiang Tao. 2026. "DC4Former: Orientation-Stable UAV Disaster Image Segmentation via Diagonal-Complemented C4 Consistency" Remote Sensing 18, no. 17: 2896. https://doi.org/10.3390/rs18172896

APA Style

Wu, W., & Tao, J. (2026). DC4Former: Orientation-Stable UAV Disaster Image Segmentation via Diagonal-Complemented C4 Consistency. Remote Sensing, 18(17), 2896. https://doi.org/10.3390/rs18172896

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop