1. Introduction
Surface water bodies, including lakes, reservoirs, rivers, ponds, wetlands, and temporary inundation areas, are fundamental components of terrestrial hydrological and ecological systems. Accurate and timely information on their spatial distribution supports water resource assessment, flood emergency response, ecological conservation, irrigation management, and river-lake supervision. Satellite remote sensing has become a principal data source for large-area surface-water monitoring because it provides repeated observations over broad spatial extents with lower field-survey requirements than extensive ground-based mapping. The global surface water record demonstrates the value of satellite archives for quantifying long-term water dynamics [
1], and complementary monitoring studies further show their usefulness for riverine and flood-related changes [
2]. Recent reviews indicate that optical water extraction has gradually evolved from single-index rules toward multi-source, multi-temporal, and learning-based approaches [
3,
4,
5].
Optical spectral indices have long been used for open-water delineation. The normalized difference water index (NDWI) proposed by McFeeters [
6] enhances water by contrasting the Green and near-infrared (NIR) bands, while the modified NDWI (MNDWI) improves the separability of water from built-up land by replacing the NIR band with a short-wave infrared band [
7]. Other thresholding and index-selection methods, including the automated water extraction index (AWEI) and histogram-based thresholding, remain useful for rapid candidate extraction and label initialization [
8,
9]. However, GF1/GF6 WFV scenes can contain backgrounds that violate the assumptions of fixed or weakly adaptive thresholding.Mountain shadows, cloud shadows, dark roofs, asphalt roads, and moist bare soil can exhibit water-like spectral responses, whereas elongated channels, fragmented ponds, and vegetation–water mixtures may be spectrally discontinuous. Consequently, a threshold selected for one scene or region can produce substantial commission and omission errors elsewhere.
GF1 and GF6 are important components of the Chinese Gaofen Earth observation constellation. The GF1 WFV system provides broad coverage with a combined swath of approximately 800 km, making it useful for regional-scale monitoring, although wide-view observations also introduce cross-camera and angular radiometric variability [
10]. Cloud and cloud-shadow detection in GF1/GF6 WFV imagery is also challenging because the spectral configuration used in many operational workflows contains mainly visible and NIR information [
11,
12]. High-resolution Gaofen interpretation benchmarks have further shown that segmentation from domestic high-resolution imagery requires methods that are robust to large scene size, diverse land-cover backgrounds, and annotation noise [
13]. These characteristics are directly relevant to water extraction: the wide swath is advantageous for regional mapping, but radiometric inconsistency, limited spectral discrimination, and complex shadows reduce the robustness of purely rule-based water masks.
Deep-learning-based semantic segmentation provides a way to learn contextual and multi-scale representations from labelled remote-sensing data. Fully convolutional networks enable end-to-end dense prediction [
14]; U-Net combines high-level semantic information with low-level spatial detail through encoder–decoder skip connections [
15]; DeepLabV3+ strengthens contextual modelling through atrous multi-scale representation and decoder refinement [
16]; and UNet++ introduces nested dense skip pathways to reduce the semantic gap between encoder and decoder features [
17]. Current water-extraction research can therefore be organized around multi-scale representation, contextual modelling, boundary-aware learning, and cross-scene generalization rather than around individual architectures alone. Dice-style overlap losses address foreground imbalance [
18], Tversky loss permits asymmetric control of false positives and false negatives [
19], and explicit edge supervision provides complementary boundary information [
20,
21].
In water extraction, early learning-based studies demonstrated the feasibility of mapping surface water from multispectral satellite imagery [
22,
23], and high-resolution urban-water research showed that convolutional models can handle more complex object boundaries and background mixtures [
24]. For the Gaofen family, MWEN and LMSWENet are representative examples of multi-scale convolutional water extraction from GF-1 and GF-1D imagery [
25,
26]. Subsequent studies refined this direction through high-resolution UAV water analysis [
27], richer convolutional feature design [
28], multi-scale residual learning [
29], and feature-aggregation modules [
30]. Domain-adaptation studies have examined cross-scene robustness [
31,
32], while augmentation-based Sentinel-2 experiments provide another data-centric route [
33]. More recent networks have introduced transformer-assisted representations through WaterFormer [
34] and enhanced U-Net formulations for water segmentation [
35]. Other recent optical water-extraction studies continue to improve the balance between accuracy and model practicality [
36,
37]. Nevertheless, practical GF1/GF6 WFV mapping still requires careful adaptation to semi-automatic label construction, multi-source input design, thin-water continuity, shadow suppression, and full-scene inference.
The proposed processing chain and model structure are summarized in
Figure 1, linking image preprocessing, candidate-mask generation, manual correction, seven-channel feature construction, UNet++ nested decoding, and residual-logit refinement.
This study addresses these needs by developing a seven-channel UNet++ framework with an RLRB for GF1/GF6 surface-water mapping. Rule-based thresholding accelerates candidate-mask generation, after which evident commission errors, omissions, and local boundary offsets are manually corrected. The model integrates Blue, Green, Red, NIR, digital-elevation-model (DEM) slope, NDWI, and normalized difference vegetation index (NDVI) channels and applies a deliberately low-capacity residual correction to the final logits. The main contributions are as follows:
A seven-channel input configuration integrates four multispectral bands, two spectral indices, and DEM-derived slope; controlled feature ablations quantify the contributions of the optical, index, and topographic components.
A lightweight RLRB is attached to the final UNet++ decoder representation. A factorial experiment separates its residual-refinement effect from that of the independently controlled edge-consistency loss.
A scene-level spatial evaluation protocol locks five complete scenes before partitioning and excludes spatially adjacent candidates through an 8192 m buffer, reducing the risk of train–test leakage.
A complete GF1/GF6 workflow is evaluated from rule-based initialization and QGIS-assisted label correction to seven-channel training, georeferenced full-scene inference, NoData masking, and raster/vector output.
Figure 2 summarizes the dataset distribution and representative preprocessed WFV scene examples. The upper panel shows the nationwide distribution of the 32 GF1/GF6 optical scenes and the five withheld test scenes, while the lower panels illustrate typical GF1 and GF6 WFV image geometry, NoData regions, and diverse land–water background conditions after preprocessing.
3. Study Area and Data
3.1. GF1/GF6 WFV Imagery and Spatial Coverage
The GF1/GF6 WFV data were obtained through the data-service workflow of the China Centre for Resources Satellite Data and Application. The collection contains 32 scenes acquired in two short 2025 windows, 1–10 May and 15–30 September, comprising 17 GF1 and 15 GF6 scenes; the 10 GF1 L2F scenes are included within this total. Scene selection jointly considered coverage of both sensors, eastern, central, western, and different-latitude regions of China, plains, mountains, plateau terrain, varied water morphologies, shadow-prone backgrounds, valid coverage, data completeness, and annotation feasibility. The scenes therefore represent two warm-season acquisition windows rather than continuous temporal coverage; this design limits snow-, ice-, and low-sun-angle variation but does not establish seasonal or interannual generalization.
Some source products overlap geographically because they are separate scene files acquired by different cameras, orbits, or times. They were retained to preserve wide-swath continuity and distinct observation conditions, but intersecting footprints were handled explicitly during partitioning so that spatially overlapping or adjacent tiles from non-test scenes could not enter the development pool. Five complete scenes were locked before dataset partitioning and were excluded from training and validation. The quantitative test set comprised 2783 valid 512 by 512 pixel tiles derived from those locked scenes, while the complete scenes were additionally used for full-scene inference.
3.2. Image Preprocessing
The modelling workflow used georeferenced GF1/GF6 GeoTIFF surface-reflectance scenes supplied by the institutional preprocessing chain. Before delivery, all scenes underwent the same standardized sequence of radiometric calibration, 6S-based atmospheric correction to surface reflectance, orthorectification, and geometric fine correction using Tianditu imagery as the spatial reference. The delivered surface-reflectance products were used directly in the modelling workflow, without any additional conversion from digital numbers or radiance. For each complete scene and optical band, valid pixels were clipped to the 2nd–98th percentile interval and linearly normalized to reduce numerical-range differences among input scenes.
No explicit cloud or cloud-shadow mask and no cross-sensor spectral harmonization, such as spectral-response-function correction, histogram matching, or sensor-to-sensor regression, were applied. Consequently, residual GF1/GF6 spectral-response differences may remain, and unmasked cloud or shadow pixels may influence the scene-level percentile distributions used for normalization and may reduce cross-scene comparability.
An optical pixel was considered valid only when all four optical bands were finite, differed from the GeoTIFF NoData value (falling back to 65,535 when missing), and were not simultaneously zero. NDWI and NDVI inherited this optical mask. Slope pixels were additionally required to be finite and different from the slope-raster NoData value. Invalid positions were set to zero after channel construction and were excluded from the reported output masks.
3.3. Tile Preparation, Split, and Quality Control
The initial tiling process produced 18,978 candidates. A tile was retained when its optically valid fraction,
, satisfied
DEM slope, NDWI, and NDVI did not determine whether a candidate passed this tile-level threshold. After validity screening and the spatially independent partitioning procedure described below, 18,461 valid tiles were retained in the final dataset.
Spatial independence was enforced during the original dataset partitioning. Five complete GF1/GF6 scenes were first locked as independent test scenes, and no tile derived from them entered training or validation. An 8192 m outward buffer, corresponding to the nominal ground width of one
input tile, was constructed around each locked footprint. Candidate tiles from all other scenes were excluded if they intersected either a test footprint or its buffer. Only the remaining non-test candidates were randomly divided into training and validation sets. The resulting fixed partition contains 12,917 training tiles, 2761 validation tiles, and 2783 test tiles (
Table 1). The final retained tile counts contributed by each of the 32 source scenes are reported in
Supplementary Table S1. A subsequent spatial audit confirmed the separation encoded by this original procedure and measured a minimum observed clearance of
km (
Figure 3); no dataset reconstruction or repartitioning was performed for this analysis.
3.4. Semi-Automatic Label Construction and Manual Correction
For each complete scene, NDWI was computed as
, clipped to
, and summarized with a 2048-bin histogram. A separate Otsu threshold
was estimated for every scene using the maximum between-class variance criterion [
9]. The initial spectral candidate was
where 1200 refers to the stored numerical scale of the supplied surface-reflectance GeoTIFF. This fixed value was retained as a conservative empirical setting for candidate-mask initialization rather than as a universally optimal threshold. In an exploratory check on one representative GF6 scene, increasing the threshold from 1200 to 1400, 1600, and 1800 increased the retained candidate-water pixel count by 17.2 percent, 40.9 percent, and 75.6 percent, respectively, and increased the number of vector components by 29.3 percent, 75.7 percent, and 133.2 percent, indicating progressively more extensive and fragmented candidate regions. Because this check involved only one scene and was not evaluated directly against the manually corrected reference masks, it is not interpreted as a formal multi-scene threshold optimization. An 8-connected GDAL sieve filter was then applied to raster components smaller than 128 pixels, after which invalid slope pixels and pixels with slope greater than
were excluded:
NDVI, cloud or cloud-shadow quality layers, and additional opening or closing operations were not used in this rule. Without explicit cloud and cloud-shadow masking, shadow pixels with low NIR responses can satisfy the fixed threshold and increase commission errors, while contaminated pixels can also affect the scene-level percentile normalization applied to the model inputs. The uncorrected output is retained as the rule-based initialization baseline in
Section 6.
Candidate masks were subsequently inspected and corrected in QGIS. Evident shadow-related commission errors were removed, and conspicuous omissions and local boundary offsets were edited before rasterization back to the original grid. Because the corrected references originated from these candidates, comparison with the uncorrected masks quantifies the limitations of the automatic initialization and the benefit of the correction-and-learning workflow; it is not presented as a comparison with an unrelated external method.
3.5. DEM-Derived Slope
Terrain slope was derived in Google Earth Engine from the Copernicus DEM GLO-30 2024_1 digital surface model (
COPERNICUS/DEM/GLO30_2024_1) [
43]. Slope in degrees was calculated using
ee.Terrain.slope(), which evaluates the local gradient from four-connected neighbours [
44]. The product was exported as 32-bit floating-point GeoTIFF tiles at a nominal 30 m resolution in EPSG:4326, mosaicked, and resampled by bilinear interpolation to each GF1/GF6 image grid. DEM-derived slope has been used in related optical water-mapping workflows to suppress dark responses associated with steep terrain and terrain shadows [
45,
46]. In the present network it is supplied as an input feature rather than used as a hard prediction mask.
3.6. Full-Scene Inference Cases
Five complete scenes were withheld from model development: T1,
GF6_WFV1_20250502_023011_0016M; T2,
GF6_WFV1_20250501_034327_0016M; T3,
GF1_WFV3_20250507_020951_0016M; T4,
GF6_WFV1_20250502_022935_0016M; and T5,
GF1_WFV3_20250510_050207_0016M. The 2783-tile quantitative test set was derived from these scenes, and complete-scene outputs were additionally evaluated to reveal scene-level differences that can be obscured by a single pooled tile-level result. Because all five locked test scenes were acquired in May, this split evaluates scene-level spatial transfer rather than temporal or seasonal generalization.
6. Results and Discussion
6.1. Main Quantitative Comparison
Table 2 reports results on the 2783 held-out test tiles from the five locked scenes. The final UNet++ configuration achieved an mIoU of 0.941, Water IoU of 0.889, and Water F1 of 0.941. Its relative Water-IoU improvements over U-Net, DeepLabV3+, and baseline UNet++ were 32.50%, 32.87%, and 5.55%, respectively. The automatic initialization baseline reached an mIoU of 0.801 and Water IoU of 0.642, demonstrating that the rule produces useful candidates but remains substantially below the learned models after manual correction and supervised training.
U-Net and DeepLabV3+ produced similar Water IoU and Water F1, with low recall indicating conservative omission of labelled water pixels. Baseline UNet++ substantially improved both overlap metrics, consistent with the value of nested skip pathways for this dataset. The final configuration traded a moderate reduction in precision for a much larger increase in recall, resulting in the best Water IoU and Water F1. Because the test labels were created through a corrected version of the rule-based initialization, the automatic baseline should be interpreted as a transparent measure of initialization quality rather than as an independent external competitor.
6.2. Controlled Ablation Studies
6.2.1. Residual-Branch and Edge-Loss Experiment
Table 3 separates RLRB from edge-consistency supervision while keeping the data, initialization, compound region loss, optimizer, and selection rule fixed. RLRB alone (B) increased Water IoU from 0.842 to 0.881 and Recall from 0.877 to 0.931. Edge supervision without RLRB (C) also improved the baseline, reaching a Water IoU of 0.860. Their joint use (D) produced the best mIoU, Water IoU, Recall, and Water F1. These results support complementary residual-refinement and edge-regularization effects; they do not imply that the branch itself is an explicitly supervised boundary detector.
6.2.2. Loss-Component Experiment
The loss-component experiment keeps RLRB enabled and progressively adds foreground overlap and omission-sensitive supervision (
Table 4). CE alone (L1) produced high precision but lower recall. Adding Dice (L2) increased Water IoU from 0.850 to 0.870 and reduced the magnitude of negative count bias. Tversky further improved recall, and the final edge term produced the best overlap metrics. Because the components were added sequentially rather than evaluated in a full factorial design, each change reflects the addition of one term to the preceding loss combination and does not isolate an independent or generally transferable effect of Dice, Tversky, or edge supervision. The weights are an empirical configuration rather than an optimum established by a continuous hyperparameter search.
6.2.3. Input-Feature Experiment
The feature ablation uses configuration A to avoid confounding the input analysis with RLRB or edge loss (
Table 5). Moving from four optical bands (CH4) to optical bands plus slope (CH5) increased Water IoU by 0.060. Adding NDWI and NDVI without slope (CH6) yielded a much larger improvement, while the complete seven-channel input (CH7) achieved the highest mIoU, Water IoU, precision, and Water F1. CH6 retained slightly higher recall than CH7, whereas CH7 achieved higher precision and overlap metrics, indicating a recall–precision trade-off. This comparison supports only a possible complementary role for topographic information in the evaluated configuration; it does not by itself demonstrate that slope specifically identifies dark sloped surfaces or suppresses terrain-related false positives.
6.2.4. Random-Seed Robustness
Across seeds 42, 2026, and 3407, the final configuration achieved
mIoU,
Water IoU, and
Water F1 (mean ± standard deviation;
Table 6). The small dispersion characterizes the training variability of the final configuration under these three initializations only; it does not establish multi-seed stability for the baseline models or ablation comparisons.
6.3. Visual Comparison and Full-Scene Inference
No cloud or cloud-shadow quality mask was used in training or inference; only the optical validity mask was applied. Accordingly, cloud and shadow contamination can affect individual predictions and the scene-level radiometric distributions used for percentile normalization. In
Figure 4, several dark regions are more consistent with cloud shadow than with cloud cover, while the central heterogeneous region in the third case has the appearance of a wetland or vegetation–water mixture. U-Net and DeepLabV3+ are not uniformly permissive: their low overall recall indicates conservative behaviour, although they can produce local commission errors in these ambiguous dark regions.
Some baseline outputs appear locally closer to the binary reference than the final prediction. Such local exceptions are compatible with the pooled quantitative ranking because a single scene can contain mixed pixels and gradual wetland or shadow–water transitions that are difficult to represent with a binary label at the nominal WFV resolution. The same correction protocol was applied consistently, and no claim is made that the proposed configuration is locally superior at every position. Observations concerning continuity or shadow suppression are therefore treated as qualitative findings limited to the displayed examples, not as boundary- or shadow-subset metrics.
Complete-scene results reveal substantial scene-level variability within the evaluated dataset. T5 and T4 achieved the highest overlap, whereas T3 was markedly more difficult because its prediction departed from the reference over heterogeneous water-adjacent regions. T3 also showed the largest positive count bias, indicating scene-level over-extraction, while T1 and T2 showed modest negative biases and intermediate overlap. The unweighted five-scene mean was 0.915 mIoU, 0.844 Water IoU, 0.913 precision, 0.915 recall, 0.914 Water F1, and count bias. These complete-scene statistics extend the sampled-tile assessment but are not pooled with it because scene dimensions and water proportions differ.
Figure 5 provides the corresponding complete-scene visual comparison for T1–T5. It is used as qualitative evidence of scene-level variation and is interpreted together with the scene-level metrics rather than as a substitute for them.
Figure 5.
Reference masks and complete-scene predictions for the five locked GF1/GF6 test scenes, ordered from T1 to T5 from top to bottom. Columns show the Red–NIR–Green composite, manually corrected reference, the final model, baseline UNet++, U-Net, and DeepLabV3+. The final model denotes UNet++ with RLRB and edge-consistency supervision. In the reference and prediction columns, white denotes water and black denotes background. All outputs were generated using the same seven-channel construction, valid-pixel masking, and sliding-window reconstruction protocol. The figure provides qualitative evidence only; scene-level quantitative metrics are reported separately in
Table 7.
Figure 5.
Reference masks and complete-scene predictions for the five locked GF1/GF6 test scenes, ordered from T1 to T5 from top to bottom. Columns show the Red–NIR–Green composite, manually corrected reference, the final model, baseline UNet++, U-Net, and DeepLabV3+. The final model denotes UNet++ with RLRB and edge-consistency supervision. In the reference and prediction columns, white denotes water and black denotes background. All outputs were generated using the same seven-channel construction, valid-pixel masking, and sliding-window reconstruction protocol. The figure provides qualitative evidence only; scene-level quantitative metrics are reported separately in
Table 7.
Table 7.
Complete-scene performance on the five locked test scenes. Count bias is the relative predicted-versus-reference water-pixel-count difference. The mean is an unweighted descriptive average across scenes.
Table 7.
Complete-scene performance on the five locked test scenes. Count bias is the relative predicted-versus-reference water-pixel-count difference. The mean is an unweighted descriptive average across scenes.
| Scene | mIoU | Water IoU | Precision | Recall | Water F1 | Count Bias (%) |
|---|
| T1 | 0.9032 | 0.8283 | 0.9187 | 0.8938 | 0.9061 | |
| T2 | 0.9124 | 0.8392 | 0.9257 | 0.8998 | 0.9126 | |
| T3 | 0.8523 | 0.7243 | 0.8087 | 0.8741 | 0.8401 | |
| T4 | 0.9491 | 0.9052 | 0.9473 | 0.9532 | 0.9502 | |
| T5 | 0.9576 | 0.9208 | 0.9627 | 0.9549 | 0.9588 | |
| Mean | 0.9149 | 0.8436 | 0.9126 | 0.9152 | 0.9136 | |
6.4. Accuracy–Complexity Trade-Off
Figure 6 compares Water IoU, FLOPs, and parameter count. The final model increases the UNet++ parameter count from 9,160,866 to 9,165,540, an addition of 4674 parameters (0.051%). Measured cost increases from 139.9241 to 141.1572 G, or 0.88%. Complete-scene model forward inference required approximately 3.7 min per scene on the specified GPU under the
, stride-256 protocol, excluding feature construction, disk input/output, and vectorization. The modest overhead makes it unlikely that the observed change is explained solely by a substantial increase in capacity.
6.5. Practical Implications and Limitations
The feature experiment indicates that spectral indices provide the largest incremental gain over the optical-only input, while slope supplies a smaller complementary improvement in precision and overlap. RLRB and edge supervision also provide complementary gains under UNet++. However, cross-backbone validation of RLRB has not been performed, and the manuscript therefore does not claim that it is a universally transferable module. Likewise, the loss coefficients are empirically fixed settings rather than demonstrated global optima.
The model performs binary water segmentation; it does not classify water-body type, width class, size class, turbidity, or water depth. The qualitative cases are accordingly described through directly observable morphology, such as elongated water features, fragmented patches, spatially extensive regions, complex shorelines, and vegetation–water mixtures. No independent water-depth reference data were available.
The complete-scene workflow supports seven-channel input generation, weighted probability fusion across overlapping windows, NoData masking, and georeferenced outputs. Its main limitations are the concentration of acquisitions in two short 2025 warm-season windows, the fact that all five locked test scenes were acquired in May, the absence of explicit cloud and cloud-shadow masks, residual GF1/GF6 spectral-response differences without explicit harmonization, and the lack of cross-backbone testing. The current evaluation therefore characterizes scene-level spatial transfer within the available dataset rather than temporal, seasonal, or year-round generalization. Broader seasonal observations, explicit quality layers, independently documented radiometric preprocessing, and geodesic or equal-area analysis are priorities for future work.
7. Conclusions
This study developed a seven-channel UNet++ framework with residual-logit refinement for GF1/GF6 WFV surface-water extraction. The evaluation protocol locked five complete scenes, excluded non-test candidates intersecting an 8192 m spatial buffer during partitioning, and compared the learned models with the uncorrected rule-based initialization. The final configuration achieved an mIoU of 0.941, Water IoU of 0.889, and Water F1 of 0.941 on 2783 held-out tiles from the five locked scenes.
Controlled experiments showed that RLRB and edge-consistency supervision provide complementary gains under the UNet++ backbone, spectral indices supply the largest feature increment, and DEM-derived slope provides additional topographic information. The three-seed experiment characterizes only the training variability of the final configuration, and the complete-scene evaluation revealed scene-level variation that was not visible in the pooled tile-level result. RLRB adds only 4674 parameters and 0.88% measured computational cost, while average complete-scene forward inference requires approximately 3.7 min on a single NVIDIA GeForce RTX 5060 Laptop GPU. The conclusions are limited to binary surface-water segmentation and scene-level spatial transfer within the evaluated GF1/GF6 dataset; future work should examine broader seasons, explicit cloud-shadow quality layers, cross-sensor harmonization, cross-backbone transfer, and geodetically rigorous absolute-area estimation.