Next Article in Journal
Girth-Based Anchor Matching for Handheld SLAM LiDAR Forest Inventory Under Closed Tropical Canopies
Next Article in Special Issue
Multi-Modal Data Fusion for Dynamic Target Depth Retrieval in Aquatic Environments
Previous Article in Journal
Evaluation of SBAS-Enhanced Positioning Performance Under Different Latitudes and Geomagnetic Activity Levels
Previous Article in Special Issue
SODet-YOLO: A Small Object Detection Algorithm for UAV Aerial Photography Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Global–Local Residual Refinement Framework for Accurate Lake Boundary Delineation in Remote Sensing Imagery

Geohazard Survey and Monitoring Center, China Aero Geophysical Survey and Remote Sensing Center for Natural Resources, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2026, 18(12), 1919; https://doi.org/10.3390/rs18121919
Submission received: 30 April 2026 / Revised: 7 June 2026 / Accepted: 8 June 2026 / Published: 10 June 2026

Highlights

What are the main findings?
  • A global–local residual refinement framework improves lake shoreline delineation by combining global semantic context with patch-level boundary correction.
  • The proposed method achieves the highest Boundary F1 (3-pixel tolerance) score of 0.811 and the lowest mean BDE (13.19 px) among compared semantic segmentation baselines, including U-Net, SegFormer-B0, SegFormer-B4, and OCRNet.
What is the implication of the main finding?
  • Strong region-overlap performance does not necessarily guarantee stable shoreline localization in complex alpine environments.
  • Boundary-aware refinement can noticeably improve shoreline extraction in optical remote sensing imagery affected by ice cover, shadows, and fragmented water bodies.

Abstract

Accurate lake boundary extraction from optical remote sensing imagery remains challenging in high-altitude regions such as the Tibetan Plateau due to ice cover, snow, shadows, and spectrally similar backgrounds. Although recent deep learning models achieve strong region-overlap performance, they often fail to ensure stable shoreline localization. To address this issue, we propose a Global–Local Residual Refinement Network (GLR-Net) for boundary-aware lake extraction from remote sensing imagery. The proposed framework first captures large-scale semantic context through a global branch and subsequently performs patch-level residual refinement to improve local shoreline geometry. A global-to-local guidance mechanism is further introduced to incorporate structural priors into local refinement. Experiments on a manually annotated Tibetan Plateau lake dataset demonstrate that the proposed method achieves competitive region-level segmentation performance while improving geometric shoreline accuracy. Compared with representative semantic segmentation baselines, including U-Net, SegFormer-B0, SegFormer-B4, and OCRNet, the proposed method achieves the highest Boundary F1 score of 0.811 under a 3-pixel tolerance and the lowest mean BDE of 13.19 pixels. The results indicate that conventional overlap-based metrics alone are insufficient for evaluating shoreline delineation quality in complex alpine environments.

1. Introduction

The Tibetan Plateau, often called the “Asian Water Tower,” hosts a vast number of high-altitude lakes that are crucial to regional hydrological cycles and serve as sensitive indicators of climate change [1,2]. In recent decades, significant variations in both the number and area of these lakes have been observed, underscoring the scientific and practical importance of long-term, stable monitoring of their dynamics [3,4]. Remote sensing offers an effective means for large-scale lake monitoring. With the growing availability of high-resolution optical satellite data, such as from Sentinel-2, the automatic extraction of lake extents has become a key research area [5,6,7]. Accurate delineation of lake boundaries is fundamental for analyzing changes in lake area, conducting hydrological studies, and assessing hazards like glacier lake outburst floods [8,9].
Compared with common semantic segmentation targets such as buildings or roads, lakes are highly dynamic geographic objects. Their boundaries fluctuate due to seasonal water level changes, ice cover, and interactions with the surrounding terrain [10,11]. This complexity is particularly pronounced on the Tibetan Plateau, where features such as lake ice, snow, bright sediments, and mountain shadows often exhibit spectral and textural characteristics similar to water [12,13]. These factors significantly complicate reliable lake recognition and precise shoreline delineation. Furthermore, the increasing spatial resolution of remote sensing imagery introduces new challenges. As spatial resolution increases, a fixed-size image patch corresponds to a smaller ground area, reducing the spatial context available to the model [14]. In high-resolution remote sensing imagery, fixed-size local patches often contain insufficient semantic context for reliable lake recognition, particularly in regions affected by ice cover, shadows, or complex terrain backgrounds. Representative examples of local patch ambiguity are provided in Appendix A. Unlike common objects in conventional computer vision tasks, geographic targets in remote sensing imagery are often vast and spatially heterogeneous. Moreover, lake sizes on the Tibetan Plateau vary substantially, ranging from small fragmented ponds to extremely large inland lakes [7], further increasing the difficulty of achieving consistent segmentation performance across different spatial scales. In contrast, directly processing the entire high-resolution lake image requires substantial computational resources and usually necessitates image downsampling, which inevitably reduces boundary detail and weakens shoreline delineation accuracy [14,15]. As a result, high-resolution lake segmentation naturally requires simultaneously preserving large-scale semantic context and fine-scale shoreline geometry.
A wide range of methods have been proposed for lake extraction, from traditional spectral indices and object-based approaches to modern deep learning models [16,17,18,19,20]. While deep learning, particularly convolutional neural networks (CNNs) and Transformers, has shown significant progress [21,22], even advanced models still struggle with precise boundary delineation. Recent Transformer-based models can achieve very high region-overlap performance and IoU scores [23,24,25], yet stable shoreline localization remains challenging under complex alpine conditions [18,19,26]. Minor boundary deviations can lead to substantial errors in area estimation and downstream analyses, revealing a mismatch between region-level optimization and the need for geometric precision. An important factor contributing to this limitation is the widespread use of patch-based segmentation strategies, where image patches are processed independently [14,27,28]. Although computationally efficient, this approach restricts the model’s access to global spatial context, making it difficult to differentiate lakes from their surroundings. For large lakes, many local patches may contain only homogeneous water interiors without informative boundary cues, and independent patch processing discards information about the relative scale and spatial arrangement of the lake.
These observations suggest that approaches relying solely on either global context or local information are insufficient. In practice, human interpreters typically delineate lake boundaries from optical imagery by first understanding the overall lake structure and surrounding environment and then progressively examining local shoreline details at higher spatial scales. This implies that reliable shoreline delineation depends heavily on the integration of large-scale semantic context and fine-scale boundary information. Recent work in computer vision has shown that global–local and coarse-to-fine strategies are effective for improving boundary localization in complex tasks [29,30,31]. Similar paradigms have been explored in remote sensing for ultra-high-resolution imagery [32,33]. By combining global semantic understanding with local high-resolution refinement, these approaches can enhance geometric precision while maintaining structural consistency. Representative methods including RefineNet [34], OCRNet [35], GSCNN [30], and BASNet [31] have demonstrated the value of multi-scale feature aggregation and explicit boundary supervision. However, many existing approaches operate on fixed-resolution images and primarily improve segmentation quality through feature-level refinement within a single segmentation framework [31,34,35].
Despite these advances, such paradigms have not been fully explored for lake extraction in high-altitude environments. To address this gap, this study proposes a Global–Local Residual Refinement Network (GLR-Net), which explicitly integrates global contextual modeling with local patch-level refinement to achieve accurate lake boundary delineation. The main contributions of this study are as follows:
1.
We propose a global–local residual refinement framework that combines large-scale context modeling with patch-level boundary refinement to improve geometric shoreline accuracy.
2.
We design a boundary-oriented learning strategy that prioritizes local boundary correction under global structural guidance, enabling precise shoreline refinement while maintaining reliable lake extent recognition.
3.
Through comprehensive experiments on a Tibetan Plateau lake dataset, we demonstrate that the proposed method achieves consistent improvements in boundary accuracy compared to representative CNN and Transformer-based models.
4.
Our study reveals the trade-off between region-overlap metrics and geometric boundary precision, highlighting the importance of boundary-aware evaluation for practical lake delineation tasks.

2. Study Area and Data

2.1. Study Area

The study area is located on the Tibetan Plateau (approximately 26 40 N, 73 105 E), which is characterized by high elevation (generally above 4000 m), complex terrain, strong solar radiation, and harsh climatic conditions. The region contains a large number of high-altitude lakes that are highly sensitive to climate variability. In this region, lakes frequently exhibit seasonal freezing or partial ice cover. Meanwhile, surrounding surfaces such as snow cover, bright bare land, saline flats, and mountain shadows often present spectral characteristics similar to water bodies. These factors significantly reduce spectral separability between lakes and background surfaces, thereby increasing the difficulty of accurate lake boundary delineation from optical remote sensing imagery.
The Tibetan Plateau boundary adopted in this study was defined based on the official dataset released by the National Tibetan Plateau Data Center (TPDC). As shown in Figure 1, the collected lake samples are distributed across major lake-bearing regions of the plateau, covering diverse geomorphological and environmental conditions. This spatial diversity ensures that the dataset is representative of complex lake boundary characteristics under alpine environments.

2.2. Remote Sensing Data

Remote sensing imagery used in this study was acquired from the Google Earth Engine platform. The data source was the Sentinel-2 surface reflectance product COPERNICUS/S2_SR_HARMONIZED, which has undergone atmospheric correction and provides reliable surface spectral information suitable for lake boundary delineation.
Considering that optical imagery over the Tibetan Plateau is frequently affected by extensive cloud contamination during the summer season, Sentinel-2 imagery acquired from October 2024 to May 2025 was selected for dataset construction. This temporal range not only reduces cloud interference but also covers a complete winter freeze–thaw cycle, including the peak period of lake freezing and partial ice cover. As a result, the dataset contains a wide range of challenging shoreline delineation scenarios involving lake ice, snow cover, fragmented shorelines, mountain shadows, and spectrally ambiguous backgrounds under complex alpine environmental conditions. Four Sentinel-2 bands were used to construct the model input, including B4 (red), B3 (green), B2 (blue), and B8 (near-infrared). Among them, B2–B4 provide visible-spectrum information for characterizing the color and texture of lakes and surrounding land surfaces, while B8 is particularly effective for water-body discrimination and enhances contrast between lakes and non-water backgrounds.
For each lake sample, a 1000 m buffer was first generated around the lake boundary to ensure sufficient contextual information around lake boundaries while avoiding excessive background redundancy. Sentinel-2 images satisfying the temporal, spatial, and cloud-cover criteria were then collected within the buffered region and mosaicked by prioritizing pixels from images with lower cloud coverage. The final four-band lake sample image was obtained by clipping the mosaicked image to the buffered extent. This strategy minimizes cloud contamination while preserving complex spectral and spatial context around lake boundaries, thereby providing informative data for subsequent model learning.

2.3. Lake Boundary Dataset Construction

To construct a high-quality dataset for lake boundary delineation under complex alpine environments, a manually annotated Tibetan Plateau lake boundary dataset was established based on Sentinel-2 imagery. All lake boundaries were manually delineated lake by lake in ArcMap by experienced researchers using Sentinel-2 RGB and near-infrared composite imagery as interpretation references. The annotations were subsequently reviewed and corrected by another researcher to improve annotation consistency and geometric reliability. Because lake boundaries in alpine environments are frequently affected by ice cover, shadows, and bright surrounding backgrounds, automatic or semi-automatic labeling methods cannot guarantee sufficient boundary precision. Therefore, a fully manual fine-grained annotation strategy was adopted in this study.
For lakes with partial or complete ice cover, annotations were delineated according to the visually interpreted outer shoreline rather than the visible open-water extent. Samples with extremely ambiguous boundaries or severe cloud contamination were excluded during dataset construction whenever reliable visual interpretation was not possible.
A total of 179 lake samples were constructed, covering representative Tibetan Plateau lakes with diverse geographic locations, area scales, and background environments. Among them, 125, 26, and 28 lakes were assigned to the training, validation, and test sets, respectively. All samples were randomly split at the lake level into training, validation, and test subsets, ensuring no spatial overlap between subsets. The spatial distribution of the samples is shown in Figure 1. In terms of lake size, the constructed dataset covers a broad range of lake scales. Specifically, lake areas range from 27.30–5769.32 km2 in the training set, 32.39–7072.57 km2 in the validation set, and 29.85–3084.25 km2 in the test set. This multi-scale distribution of lakes with highly variable spatial scales helps improve the model’s generalization ability across lakes of different sizes. Detailed statistics of the dataset are summarized in Table 1.

3. Methodology

3.1. Overall Framework

Figure 2 shows the workflow of the proposed GLR-Net, where a global branch provides coarse structural priors and a patch refinement branch refines local shoreline details through residual learning.
Let the input multispectral image be denoted as
I R H × W × C ,
where C = 4 and H and W denote the spatial dimensions. The framework consists of a Global Branch, a Patch Residual Refinement Branch, and a Global-to-Local Guidance Module.
The input image is first resized to obtain a global-scale image I g . The global branch takes I g as input and produces the coarse segmentation prediction:
S g = f g ( I g ) .
where f g ( · ) denotes the mapping function of the global branch, which also outputs a fused decoder feature map F g used to provide semantic guidance for the subsequent local refinement branch.
The original-resolution image is then divided into local patches { P i } i = 1 N . For each patch P i , its spatial region is denoted as ROI i . Based on ROI i , the global outputs are cropped to obtain
C i = Crop ( S g , ROI i ) ,
G i = Crop ( F g , ROI i ) ,
where C i represents the local coarse segmentation prior and G i denotes the local semantic guidance feature. S g and F g denote the global prediction logits and decoder feature, respectively (see Section 3.2). ROI i defines the rectangular bounding box corresponding to the spatial region of the local patch.
Each patch is further associated with a spatial metadata vector m i encoding its normalized position and scale. The local branch takes ( P i , C i , G i , m i ) as input and predicts a residual correction Δ i and a boundary response B i . The refined prediction for each patch is obtained as
Y ^ i = C i + Δ i .
Finally, all patch predictions are mapped back to the original spatial positions and aggregated to obtain the whole-lake segmentation result:
Y ^ = A Y ^ i i = 1 N ,
where A ( · ) denotes overlap-aware spatial averaging. Overall, the global branch provides structural priors for lake recognition, while the local branch focuses on refining local shoreline details through residual correction.

3.2. Global Branch

Due to the high spatial resolution of remote sensing imagery, direct whole-image processing is computationally expensive and limits effective receptive field coverage. The global branch adopts an encoder–decoder architecture, where a ResNet-50 backbone is employed as the encoder to extract multi-scale features. Let the encoder outputs be denoted as { E 1 , E 2 , E 3 , E 4 } , corresponding to hierarchical feature maps at different scales. Their spatial resolutions are approximately 1 4 , 1 8 , 1 16 , and 1 16 of the input image, respectively, where the final stage maintains a relatively high spatial resolution through dilated convolution.
To fuse semantic information across different scales, a Feature Pyramid Network (FPN) is introduced after the encoder to generate multi-scale feature representations with unified channel dimensions:
{ P 1 , P 2 , P 3 , P 4 } = f fpn ( { E 1 , E 2 , E 3 , E 4 } ) ,
where f fpn ( · ) denotes the top-down multi-scale feature fusion process.
Furthermore, a global context enhancement module is applied to the high-level features to model large-scale semantic dependencies, thereby improving the model’s perception of large-scale lake structures. The enhanced multi-scale features are then progressively fused by the decoder to obtain the global segmentation feature map:
F g = f dec { P 1 , P 2 , P 3 , P 4 } ,
where f dec ( · ) denotes the multi-scale feature fusion and upsampling process.
Subsequently, the fused feature map is projected into segmentation logits through a classification head:
S g = f cls ( F g ) ,
where f cls ( · ) denotes the classification mapping function implemented by a 1 × 1 convolution.
The global branch produces two outputs: the coarse segmentation prediction S g and the fused decoder feature map F g . Specifically, S g serves as the structural prior for lake segmentation, while F g provides semantic guidance for the local refinement branch. The global branch focuses on learning stable large-scale lake structures rather than precise boundary details, providing reliable priors for subsequent local refinement.

3.3. Global-to-Local Guidance Module

To fully exploit the structural information and semantic context provided by the global branch during local refinement, a Global-to-Local Guidance Module is designed to inject global information into the local branch through three mechanisms: feature cropping, semantic feature fusion, and FiLM-based spatial modulation. For each local patch P i , the corresponding coarse segmentation prior C i and semantic feature G i are obtained by cropping the global outputs as defined in Equations (3) and (4).
The local branch first extracts raw patch-level features from the input patch:
F i raw = f patch ( P i ) ,
where f patch ( · ) denotes the patch feature extractor of the local branch. Subsequently, the cropped global semantic feature G i is projected and fused with the raw patch feature to obtain the fused representation:
F i fuse = ϕ F i raw , G i ,
where ϕ ( · ) represents concatenation followed by convolution-based fusion.
To further incorporate explicit spatial information, an eight-dimensional positional encoding vector is constructed for each local patch:
m i = x i , y i , x i ( 2 ) , y i ( 2 ) , c x , i , c y , i , w i , h i ,
where x i and y i denote the top-left corner coordinates of the patch, x i ( 2 ) and y i ( 2 ) denote the bottom-right corner coordinates, c x , i and c y , i denote the center coordinates, and w i and h i represent the width and height of the patch, respectively. A lightweight 8-dimensional positional encoding was adopted to provide spatial priors while keeping the modulation module compact under limited-data conditions. All positional features were normalized to the whole-image coordinate range before modulation.
The FiLM module generates feature-wise scaling and shifting parameters conditioned on both the cropped global semantic feature and the positional encoding vector:
( γ i , β i ) = f film ( G i , m i ) ,
where γ i and β i denote the feature-wise scaling and shifting coefficients, respectively, and f film ( · ) denotes the FiLM parameter generation function. The FiLM-based modulation mechanism enables the local refinement branch to adaptively refine shoreline structures according to both global semantic context and relative spatial location within the whole-lake structure.
The fused feature is then adaptively modulated through feature-wise affine transformation:
F i mod = ( 1 + γ i ) F i fuse + β i ,
where ⊙ denotes element-wise multiplication. This modulation enables adaptive local feature refinement conditioned on both global semantic context and spatial location priors, improving global consistency and local discriminability.

3.4. Patch Residual Refinement Branch

The objective of the patch residual refinement branch is to perform fine-grained lake boundary segmentation at the original image resolution, thereby compensating for the boundary detail loss caused by downsampling in the global branch. Unlike conventional segmentation networks that directly predict complete segmentation masks, the proposed method adopts a residual refinement strategy, in which the local branch learns only the local correction relative to the coarse global prediction.
For each local patch P i , the local branch first extracts local features from the image patch, which are subsequently guided by the global semantic feature G i , coarse prior C i , and positional metadata m i through the proposed global-to-local guidance mechanism. Multi-scale local features are extracted through an encoder–decoder architecture and transformed into the modulated feature representation F i mod . Based on this feature, the model produces two prediction heads: a residual correction term Δ i and a boundary response map B i , formulated as
Δ i = f r ( F i mod ) ,
B i = f b ( F i mod ) ,
where f r ( · ) denotes the residual prediction function and f b ( · ) denotes the boundary prediction function. The residual correction term is used to compensate for local errors in the coarse global prediction, while the boundary response map is employed during training to enhance the model’s attention to boundary regions.
The final prediction for each local patch is obtained by element-wise addition of the coarse prior and the predicted residual:
Y ^ i = C i + Δ i .
In this manner, the local branch is not required to predict the complete segmentation result from scratch, but instead learns only the local discrepancy between the coarse global prediction and the ground truth, allowing the model to focus more effectively on correcting boundary and ambiguous regions.
Residual learning helps reduce optimization difficulty and improves training stability. After all local patches are processed, their predictions are mapped back to the original spatial positions and aggregated via overlap-aware averaging to improve spatial consistency across neighboring patches.

3.5. Loss Function

3.5.1. Loss in Stage 1

In the first stage, only the global branch is optimized, with the objective of learning stable whole-lake structural predictions. To this end, the stage-1 loss is defined as a combination of Dice loss and Top-k binary cross-entropy loss:
L stage 1 = L Dice + λ topk L TopkBCE ,
where λ topk denotes the weighting coefficient of the Top-k BCE loss, set to 0.3 in this study.
The Dice loss is formulated as
L Dice = 1 2 n p n y n + ϵ n p n + n y n + ϵ ,
where p n and y n denote the predicted probability and ground-truth label of the n-th pixel, respectively, and ϵ is a smoothing term to avoid division by zero. Dice loss measures the overlap between prediction and ground truth, thereby enforcing structural consistency at the region level.
The Top-k BCE loss focuses only on the hardest K pixels with the largest prediction errors:
L TopkBCE = 1 K n Ω K BCE ( p n , y n ) ,
where BCE ( · ) denotes the pixel-wise binary cross-entropy loss, Ω K denotes the set of the top K hardest pixels ranked by loss value, and K is determined by a predefined hard-sample ratio. In this study, the hard-sample ratio was set to 0.15. This strategy encourages the model to focus on difficult regions such as lake boundaries and snow/ice-confused areas, preventing training from being dominated by easy pixels.

3.5.2. Loss in Stage 2

In the second stage, the global branch is frozen and only the local refinement branch is optimized. Since this stage aims to model fine-grained lake boundary details, multiple loss terms are jointly employed for optimization:
L stage 2 = λ seg L seg + λ bnd L bnd + λ cons L cons + λ res L res ,
where L seg , L bnd , L cons , and L res denote the segmentation loss, boundary supervision loss, consistency constraint loss, and residual regularization loss, respectively. In this study, λ seg , λ bnd , λ cons , and λ res were set to 1.0, 0.3, 0.3, and 0.1, respectively. In addition, λ wbce was set to 0.3.
The segmentation loss is defined as
L seg = L Dice p + λ wbce L WBCE ,
where L Dice p denotes the patch-level Dice loss, L WBCE denotes the weighted binary cross-entropy loss, and λ wbce is its weighting coefficient. The weight map of the weighted BCE loss is generated from the ground-truth boundary regions to enhance the model’s attention to boundary areas.
To further strengthen boundary learning, a boundary supervision loss is introduced:
L bnd = BCE ( B i , B i * ) ,
where B i * denotes the ground-truth shoreline boundary mask generated by rasterizing the manually delineated shoreline vectors with spatial alignment to the corresponding image grid in ArcMap.
To maintain consistency between local predictions and the global structural prior, a consistency constraint term is introduced:
L cons = σ ( Y ^ i ) σ ( C i ) 1 ,
where σ ( · ) denotes the Sigmoid activation function. This term constrains the refined local prediction from deviating excessively from the coarse global prediction in probability space, thereby preserving consistency with the global structural prior. The L1 formulation was adopted because it provides stable probability-space regularization while avoiding overly strong penalization of local refinement corrections.
In addition, to prevent the model from producing excessively large local corrections, a residual regularization term is introduced:
L res = Δ i 1 ,
which constrains the magnitude of the residual correction, thereby improving training stability and suppressing over-correction.

4. Experiments

All experiments were implemented in PyTorch 2.5.1 (CUDA 12.1) and conducted using the same training, validation, and test split. All models, including the proposed method and baseline models, were trained and evaluated under identical data preprocessing and evaluation protocols to ensure a fair comparison. Each sample corresponds to one cropped whole-lake scene. The training, validation, and test sets are spatially independent, with no overlap in lake regions across the three subsets, ensuring that no spatial information leakage occurs during model training and evaluation.
The proposed framework was compared with representative CNN-based and Transformer-based semantic segmentation models under identical experimental settings. U-Net represents a classical convolution-based encoder–decoder architecture widely used in remote sensing image segmentation [21]. SegFormer is a transformer-based segmentation model with strong global context modeling capability and pretrained representations [22]. OCRNet is a representative context-aware segmentation model that enhances pixel representations through object-region contextual aggregation while preserving high-resolution spatial features [35].

4.1. Input Data and Preprocessing

Each lake sample consists of a four-channel remote sensing image and a corresponding binary water mask. Channel-wise mean and standard deviation were computed from the training set and used to normalize inputs during training, validation, and testing to ensure consistent preprocessing across all experiments. To reduce computational cost while preserving the overall lake geometry, each whole-lake image was resized while maintaining its original aspect ratio. The longer side was constrained to 1024 pixels. Bilinear interpolation was applied to the input images, whereas nearest-neighbor interpolation was used for the binary masks to avoid boundary distortion.
For the proposed method, the resized whole-lake image was first processed by a global branch to capture large-scale spatial context. In the second stage, the original-resolution lake image was partitioned into local patches of 512 × 512 pixels for shoreline refinement. Patch starting coordinates were adaptively generated along each spatial dimension to ensure full spatial coverage of the entire lake region. When overlap occurred between adjacent patches, the overlapping predictions were averaged during reconstruction to produce the final full-resolution segmentation result.
During Stage-2 training, up to 24 patches were sampled per lake depending on lake size and the availability of valid sampling regions. Boundary-prioritized patches were sampled from regions with high boundary density in the ground-truth mask to emphasize shoreline learning, while the remaining patches were randomly sampled to maintain spatial diversity and improve generalization. In the final experiments, boundary-prioritized and random patches accounted for 40% and 60% of the sampled patches, respectively. All baseline models operated in a single-stage manner and used only the resized whole-lake image as input without local patch refinement.

4.2. Training Protocol

All models were trained with a batch size of 1 because each sample corresponds to one complete lake and lake sizes vary substantially. Mixed-precision training and gradient clipping were applied to improve optimization stability. The Adam optimizer was used for all experiments with an initial learning rate of 5 × 10 5 and a weight decay of 5 × 10 4 . A ReduceLROnPlateau learning rate scheduler and an early stopping strategy were adopted to stabilize training and reduce overfitting.
The proposed framework was trained in a two-stage coarse-to-fine manner. In Stage 1, only the Global Branch was optimized to learn coarse lake localization and region-level semantic representations. The Global Branch employed a ResNet-50 backbone followed by an FPN and a decoder module. The optimization objective in Stage 1 consisted of Dice loss and Top-k binary cross-entropy loss, where the Top-k ratio was set to 0.15, meaning that only the top 15% highest-loss pixels within each training sample were used for binary cross-entropy optimization. The Top-k BCE term was weighted by 0.3. In Stage 2, the best checkpoint obtained from Stage 1 was loaded, and the parameters of the Global Branch were frozen. Only the Patch Residual Refinement Branch and the Global-to-Local Guidance Module were optimized. The optimization objective in Stage 2 consisted of a patch segmentation loss, a boundary prediction loss, a consistency loss, and a residual regularization term. The patch segmentation loss combined Dice loss with boundary-weighted binary cross-entropy loss to enhance shoreline refinement performance. Boundary pixels were assigned larger spatial weights during optimization. The consistency loss and residual regularization terms were weighted by λ cons = 0.3 and λ res = 0.1 , respectively. These hyperparameters were empirically determined based on validation performance stability. The same optimizer settings and training protocols were applied to all baseline models whenever applicable.

4.3. Baseline Models

Three representative semantic segmentation models were selected for comparison: U-Net, SegFormer, and OCRNet [21,22,35]. For the transformer-based SegFormer architecture, both the lightweight SegFormer-B0 and the larger SegFormer-B4 variants were evaluated to investigate the influence of model capacity and pretrained semantic representations on shoreline delineation performance.
U-Net was implemented as a convolutional encoder–decoder baseline with four-channel input and bilinear upsampling in the decoder. SegFormer-B0 is a hierarchical transformer-based segmentation model. In this study, the SegFormer-B0 configuration with an MiT-B0 encoder was adopted. The model was initialized from the official SegFormer-B0 checkpoint pretrained on ADE20K. Since the original checkpoint was trained with three-channel RGB inputs, the first patch embedding layer was adapted to accept four-channel Sentinel-2 inputs by initializing the additional channel with the mean of the pretrained RGB-channel weights. The final segmentation classifier was randomly initialized because the ADE20K checkpoint was trained for 150-class semantic segmentation, whereas this study focuses on binary lake segmentation. SegFormer-B0 was selected as a representative lightweight transformer-based baseline because it provides a favorable balance between segmentation capability, training stability, and computational cost for the whole-lake segmentation setting adopted in this study. Larger transformer variants markedly increase memory consumption during high-resolution dense prediction and may reduce training stability under limited-data conditions. In addition, a larger SegFormer-B4 variant was further evaluated using the same training and evaluation protocol. The SegFormer-B4 model adopts a MiT-B4 encoder with considerably higher model capacity and stronger pretrained semantic representations compared with SegFormer-B0.
OCRNet is a representative context-aware semantic segmentation model that enhances pixel representations through object-region contextual aggregation. In this study, OCRNet was implemented based on the MMSegmentation framework using an HRNetV2p-W18 backbone. The backbone was initialized using the official ADE20K-pretrained checkpoint provided by MMSegmentation. The model was adapted to accept four-channel Sentinel-2 inputs and configured for binary lake segmentation. Specifically, the first convolutional layer was modified to process four-channel multispectral imagery, while the final classification layer was adjusted to output a single foreground class. OCRNet was selected because it combines high-resolution feature representations with object-level contextual reasoning, making it suitable for comparison with both convolution-based and transformer-based segmentation models under complex shoreline conditions. Although dedicated boundary-aware segmentation methods may provide additional comparison perspectives, the primary objective of this study was to evaluate whether the proposed global–local refinement framework can improve geometric shoreline accuracy relative to representative mainstream segmentation paradigms under identical training and evaluation settings.
To ensure a fair comparison, all baseline models were trained and evaluated using the same dataset split, normalization strategy, and whole-lake resizing protocol as the proposed method.

4.4. Evaluation Metrics

To comprehensively evaluate segmentation performance at both regional and boundary levels, several evaluation metrics were adopted, including Intersection over Union (IoU), Dice coefficient, Lake-level IoU, Boundary F1 score (BF1), and Boundary Distance Error (BDE).
IoU and Dice were used to evaluate the pixel-level overlap between predicted masks and ground-truth masks. Since lake sizes vary markedly across the dataset, Lake-level IoU was additionally computed by first calculating the IoU for each individual lake and then averaging the results across all lakes in the test set. This metric reduces the dominance of large lakes and provides a more balanced evaluation of segmentation performance at the lake scale.
Boundary-based metrics were further introduced to evaluate shoreline delineation accuracy. Boundary F1 score (BF1) measures the correspondence between predicted and ground-truth boundaries based on boundary precision and recall within a predefined tolerance radius. BF1 scores were first computed independently for each lake and then averaged across all lakes in the test set. In this study, a 3-pixel tolerance radius was adopted to account for minor spatial boundary misalignment between predicted and reference boundaries.
Boundary Distance Error (BDE) was used to quantify the spatial deviation between predicted and ground-truth shorelines. First, boundary pixels were extracted by subtracting a morphologically eroded mask from the original binary mask using a 3 × 3 structuring element. Euclidean distance transforms were then used to compute the distance from each ground-truth boundary pixel to the nearest predicted boundary pixel and, conversely, from each predicted boundary pixel to the nearest ground-truth boundary pixel. The two sets of distances were combined to obtain a symmetric boundary distance distribution. Unlike BF1, which was averaged at the lake level, the BDE statistics were computed from globally aggregated bidirectional boundary-distance samples extracted from the complete test set. The mean, median, and 90th-percentile BDE values were then reported in pixels.
Compared with region-overlap metrics such as IoU and Dice, boundary-aware metrics provide a more direct evaluation of geometric shoreline accuracy, which is particularly important for lake inventory mapping and hydrological applications requiring reliable boundary delineation.

5. Results

5.1. Quantitative Comparison with Existing Methods

To evaluate the effectiveness of the proposed framework, its performance was compared with several representative semantic segmentation models, including U-Net, SegFormer-B0, SegFormer-B4, and OCRNet. The quantitative comparison results are summarized in Table 2. All models were trained and evaluated using the same training, validation, and test datasets under identical experimental settings to ensure a fair comparison.
Among the compared methods, the proposed approach achieves the highest Boundary F1 score (0.811) while consistently reducing boundary errors compared with U-Net, SegFormer-B0, SegFormer-B4, and OCRNet. These results suggest that the proposed global–local refinement framework can better preserve fine-scale shoreline geometry. While SegFormer-B0, SegFormer-B4, and OCRNet achieve strong performance in region-based metrics, including IoU, Dice, and lake-level IoU, these metrics primarily reflect region overlap rather than geometric shoreline accuracy.
These findings highlight the importance of explicit local boundary refinement and boundary-aware evaluation for reliable shoreline localization beyond conventional region-overlap optimization.
To account for uncertainty caused by the relatively limited number of test lakes, bootstrap 95% confidence intervals were computed for lake-level metrics using 10,000 resampling iterations. As shown in Table 3, the confidence intervals of several models overlap, indicating that small numerical differences in region-overlap metrics should be interpreted with caution. Nevertheless, the proposed method achieves the highest mean Boundary F1 score while maintaining competitive lake-level IoU, supporting its advantage in boundary-aware evaluation.

5.2. Qualitative Results

In addition to quantitative evaluation, visual comparisons were conducted to further analyze the performance of different models. Several representative lakes from the test dataset were selected to illustrate the segmentation results under different environmental conditions. Figure 3 presents qualitative comparisons of lake boundary extraction results produced by U-Net, SegFormer-B0, and the proposed method. Overall, most models are able to capture the general spatial extent of large lakes under relatively clear spectral conditions. In contrast, noticeable differences can be observed in complex scenarios, particularly for partially ice-covered lakes and fragmented water bodies.
Specifically, although baseline models can achieve reasonable region-level segmentation, they often exhibit boundary irregularities, noise, and misclassification near shoreline regions. In contrast, the proposed method produces cleaner and more spatially consistent boundaries, demonstrating improved shoreline localization. For example, in Lake 5 and Lake 170, baseline models produce noticeable noise and misclassification in surrounding regions, whereas the proposed method generates cleaner and more consistent shoreline boundaries. Detailed boundary comparisons for these cases are shown in Figure 4 and Figure 5, respectively. These results indicate that the global–local refinement framework can effectively improve geometric shoreline delineation in complex environments. Importantly, these qualitative observations are consistent with the quantitative results, where models with comparable region-overlap metrics may still exhibit substantial differences in geometric boundary quality.
Failure cases are also observed. For instance, in Lake 176, which contains extensive ice cover, the model struggles to accurately recognize the complete lake extent under extreme spectral ambiguity. This observation further suggests that reliable shoreline delineation depends not only on local boundary refinement but also on robust large-scale semantic recognition under complex environmental conditions. OCRNet was excluded from the qualitative comparison figure to avoid excessive visual complexity. Quantitative evaluation results for OCRNet are provided in Table 2 and Table 4.

5.3. Boundary Error Analysis

To further analyze geometric shoreline delineation quality, boundary distance errors were computed for all models. The statistical results of boundary errors are summarized in Table 4. Specifically, bidirectional nearest-boundary distances between predicted and ground-truth boundaries were calculated using Euclidean distance transforms.
The proposed method achieves the lowest Mean BDE and Median BDE among all compared models. In particular, the mean BDE decreases to 13.19 pixels, compared with 19.18 pixels for SegFormer-B0, 17.47 pixels for SegFormer-B4, 16.46 pixels for OCRNet, and 23.99 pixels for U-Net. Although SegFormer-B4 achieves a slightly lower P90 BDE, the proposed framework consistently improves average shoreline localization accuracy while maintaining competitive robustness against large boundary deviations.
Figure 6 further illustrates the cumulative distribution of boundary distance errors across the test dataset. Compared with the baseline models, the proposed method exhibits a larger proportion of boundary samples with small localization errors, particularly in the low-error range, indicating improved geometric shoreline delineation capability under complex shoreline conditions.
Importantly, these results reveal that models with similarly high region-overlap performance may still exhibit noticeably different geometric shoreline quality. This observation is consistent with the quantitative and qualitative analyses, highlighting that region-overlap metrics alone are insufficient for evaluating shoreline delineation quality. Per-lake statistics in Appendix B further demonstrate that high Boundary F1 scores do not necessarily correspond to low geometric boundary errors.
These observations further support the effectiveness of the proposed global–local framework in improving boundary fidelity through the integration of large-scale structural context and local boundary refinement.

5.4. Ablation Study

To evaluate the contribution of different components in the proposed framework, an ablation study was conducted using four model variants: a global-only model, a patch-only model, a model without global-to-local conditioning, and the full model. The global-only model corresponds to the global segmentation branch without the patch-level refinement stage, while the patch-only model removes the global structural guidance and directly performs local patch-based prediction. The variant without global-to-local conditioning retains the dual-branch architecture and residual refinement strategy but removes explicit global feature conditioning in the patch refinement branch.
Table 5 summarizes the quantitative results on the test dataset. The global-only model already achieves strong region-level segmentation performance, with an IoU of 0.923 and a Dice score of 0.960, indicating that the global branch can effectively capture the overall spatial extent of lakes. However, its boundary accuracy remains limited, with a Boundary F1 score of 0.621 and a relatively large P90 BDE of 85.62 pixels. Although the patch-only model achieves the same lake-level IoU (0.809) as the global-only model, it exhibits substantially different geometric error distributions. While local patch predictions can preserve certain fine-scale shoreline details, the absence of reliable global semantic context is associated with reduced shoreline localization stability and weaker large-scale geometric consistency. The patch-only model still achieves a relatively low median BDE (1.41 pixels), suggesting that many local shoreline fragments can be refined accurately at small spatial scales. In contrast, the much larger Mean BDE (29.83 pixels) and P90 BDE (89.02 pixels) indicate the presence of larger geometric shoreline deviations likely caused by the lack of global structural guidance. Removing the FiLM-based global-to-local conditioning and positional spatial modulation mechanisms noticeably degrades boundary-sensitive performance. Compared with the full model, the BF1 score decreases from 0.811 to 0.692, while the median BDE increases from 1.00 pixel to 2.00 pixels and the P90 BDE increases from 22.67 pixels to 36.06 pixels. These results suggest that explicit global-to-local conditioning substantially improves shoreline localization stability and geometric consistency. In contrast, the full model achieves the most balanced overall performance, achieving both strong region segmentation accuracy and the lowest boundary distance errors.
Overall, these results demonstrate that neither global-only nor patch-only modeling is sufficient on its own. Reliable shoreline delineation requires both large-scale semantic context and fine-scale local refinement, while explicit global-to-local conditioning further improves geometric boundary consistency under complex remote sensing conditions.

6. Discussion

6.1. Performance Under Different Lake Sizes

The relationship between lake size and segmentation performance provides insight into the behavior of different models. Figure 7 illustrates the variation in Boundary F1, Mean BDE, and lake-level IoU with respect to lake area for all models in the test dataset. Each point corresponds to one lake in the test dataset, and all models are evaluated on the same set of lakes to ensure a consistent comparison.
In general, region-based metrics become more stable as lake area increases. Large lakes tend to achieve consistently high lake-level IoU scores across all models because large water bodies usually exhibit continuous spatial structures and clearer spectral contrast with surrounding land surfaces, making them easier for deep learning models to recognize. In contrast, boundary-related metrics exhibit consistently larger variability across lakes of different sizes and geometric complexity. Compared with region-overlap metrics such as lake-level IoU, Mean BDE remains highly sensitive to shoreline deviations even for large lakes where overlap metrics tend to saturate. This observation suggests that strong region-overlap performance does not necessarily guarantee boundary-consistent shoreline extraction, which is consistent with previous studies showing that overlap-based metrics may fail to fully capture geometric boundary quality [36,37].
The proposed method generally produces lower geometric boundary errors across lakes of different spatial scales. In particular, the Mean BDE distribution of the proposed method remains noticeably more stable than those of U-Net, SegFormer-B0, SegFormer-B4, and OCRNet, especially under geometrically complex shoreline conditions. This improvement can be attributed to the complementary roles of global semantic understanding and local boundary refinement: the global branch provides stable large-scale structural guidance, while the patch-level refinement stage corrects fine-scale shoreline deviations. For tasks such as lake inventory construction and shoreline monitoring, accurate geometric shoreline delineation is particularly important [38,39,40]. Overall, these results further demonstrate that region-overlap metrics alone may not fully reflect shoreline quality. They also support the necessity of combining global context modeling with local boundary refinement for robust lake boundary delineation under varying spatial scales and complex alpine conditions.
To further investigate the relationship between shoreline geometry and boundary-sensitive performance, supplementary analyses based on Shoreline Complexity Index (SCI) and Shoreline-to-Water Ratio (SWR) were additionally conducted and are provided in Appendix C. The results suggest that boundary-related performance is influenced not only by lake area but also by shoreline geometric complexity and boundary fragmentation. Compared with the baseline models, the proposed method exhibits less pronounced performance degradation as SCI and SWR increase, suggesting improved robustness under geometrically complex shoreline conditions.

6.2. Differences Between Region-Based and Boundary-Based Evaluation

The experimental results reveal distinct performance characteristics among the evaluated models in terms of region-based accuracy and geometric shoreline precision. SegFormer-B4 and OCRNet achieve strong performance in region-overlap metrics, including IoU, Dice, and lake-level IoU. This observation is consistent with previous studies showing that rich semantic representations and object-level contextual modeling contribute substantially to semantic segmentation performance [22,35]. Although SegFormer-B4 provides stronger pretrained semantic features, it still exhibits noticeably weaker boundary robustness under increasing shoreline complexity compared with the proposed framework. Notably, SegFormer-B4 and the proposed framework have comparable model capacities (61.37 M vs. 62.27 M trainable parameters), suggesting that the observed boundary improvements are more closely related to the explicit boundary-sensitive global–local refinement strategy than to overall model capacity alone. These observations suggest that boundary-sensitive refinement and strong semantic representation learning are complementary. Similar findings have been reported in previous studies, where explicit boundary modeling was shown to improve geometric localization while preserving strong semantic segmentation performance [30,31].
In contrast, the proposed framework achieves the highest Boundary F1 score and the lowest Mean BDE and Median BDE. This improvement is mainly attributed to the global–local architecture, where the global branch captures large-scale spatial structure while the patch-level refinement stage explicitly corrects fine-scale shoreline deviations. Similar advantages of combining global contextual understanding with local boundary refinement have been reported in previous boundary-aware segmentation studies [30,31]. Such a design enables more stable shoreline localization, particularly in regions with fragmented boundaries, partial ice cover, and complex terrain backgrounds.
The observed differences between region-based and boundary-based metrics do not indicate a direct conflict between these objectives. Instead, they demonstrate that different models may emphasize different aspects of segmentation quality. Region-overlap metrics mainly evaluate semantic region consistency, whereas boundary-aware metrics are considerably more sensitive to geometric shoreline localization errors [36,37,41]. As shown in both the quantitative comparisons and the per-lake analyses, models with similarly high IoU scores may still exhibit noticeably different boundary quality.
For practical applications such as shoreline monitoring, hydrological analysis, and lake inventory generation, shoreline geometric accuracy is critical. The overall findings suggest that explicitly integrating large-scale semantic context with local boundary refinement provides an effective strategy for improving shoreline extraction quality under complex remote sensing conditions. Even relatively small shoreline deviations may introduce substantial uncertainty in lake area estimation, shoreline change analysis, and hydrological interpretation, particularly in studies relying on long-term monitoring of lake dynamics and associated environmental processes [4,8]. Supplementary analyses in Appendix C further demonstrate that the proposed framework maintains more stable boundary-sensitive performance under increasing shoreline geometric complexity.

6.3. Challenges and Limitations

One major challenge arises from lakes with extensive ice cover and severe spectral ambiguity. In heavily ice-covered regions, optical imagery alone may provide insufficient spectral contrast between lake ice, surrounding snow, and adjacent bright land surfaces, making reliable semantic recognition difficult [12,13]. In such cases, the primary limitation is not local boundary refinement itself but large-scale semantic discrimination under complex environmental conditions. Although the proposed framework improves shoreline localization consistency, failures can still occur when the lake extent cannot be reliably recognized from optical imagery. Another limitation is related to spatial scale variability in high-resolution remote sensing imagery. As spatial resolution increases, fixed-size local patches correspond to smaller physical regions, reducing the effective spatial context available to the model [14,15]. Consequently, the same patch size may cover an entire lake in low-resolution imagery but only a small shoreline fragment in high-resolution imagery. This inconsistency increases the difficulty of robust lake recognition across different sensors and spatial scales. Although the proposed global–local framework alleviates this issue by integrating large-scale semantic context with local boundary refinement, further improvements are still needed to better handle cross-resolution consistency and adaptive receptive field adjustment.
In addition, although several representative segmentation architectures were evaluated in this study, the current benchmark does not exhaustively cover all dedicated boundary-aware segmentation frameworks. More comprehensive comparisons with specialized boundary-refinement methods may provide additional insight into geometric shoreline delineation performance and will be explored in future work. Future work will focus on improving semantic recognition robustness and scale adaptability under complex alpine conditions. In particular, integrating stronger pretrained backbones and adaptive multi-scale refinement strategies may further improve both large-scale semantic understanding and fine-scale shoreline accuracy. In addition, more systematic analysis of patch-sampling strategies and sampling-ratio sensitivity may further improve the robustness and efficiency of the local refinement framework.
Overall, the results of this study suggest that accurate lake boundary delineation benefits from jointly modeling global semantic structure and local geometric boundary refinement under complex remote sensing conditions.

7. Conclusions

This study addresses the challenge of accurate lake boundary delineation from optical remote sensing imagery in complex high-altitude environments such as the Tibetan Plateau. We show that, despite the strong performance of modern deep learning models in region-based metrics, accurate shoreline extraction remains challenging due to the discrepancy between region-level optimization and geometric boundary precision.
To address this limitation, a global–local residual refinement framework is proposed, which decouples coarse lake recognition from fine-scale boundary correction. By integrating large-scale spatial context with patch-level residual refinement, the proposed method effectively improves shoreline delineation in environments affected by ice cover, snow, and spectrally similar backgrounds. Experimental results demonstrate that the proposed method maintains competitive region segmentation performance while enhancing geometric shoreline accuracy. In particular, the BF1 score reaches 0.811 under a 3-pixel tolerance, and the mean BDE is reduced by 19.9% compared with OCRNet, 24.5% compared with SegFormer-B4, 31.2% compared with SegFormer-B0, and 45.0% compared with U-Net. The results further show that performance differences among models become more evident in boundary-related metrics, especially for large lakes where region-based metrics tend to saturate. More importantly, this study highlights that high region-overlap scores do not necessarily reflect boundary accuracy, and that different modeling strategies may lead to distinct error patterns even when IoU values are similar. This finding emphasizes the importance of incorporating boundary-aware evaluation for applications such as lake inventory mapping and hydrological analysis.
In addition, the proposed framework demonstrates strong potential for further improvement. Although the current implementation adopts a relatively lightweight ResNet-50-based global backbone, the framework still achieves competitive overall performance. These results suggest that the proposed global–local refinement paradigm is complementary to advances in pretrained semantic representation learning, indicating strong potential for future integration with larger vision foundation models. Overall, the proposed framework demonstrates the effectiveness of jointly modeling large-scale semantic structure and fine-scale shoreline refinement for boundary-sensitive lake delineation in complex remote sensing environments.

Author Contributions

Conceptualization, S.Y.; methodology, S.Y.; visualization, S.Y.; writing—original draft preparation, S.Y.; funding acquisition, J.T. and Z.G.; project administration, J.T.; supervision, J.T.; resources, J.T.; writing—review and editing, J.T.; data curation, Z.G. and P.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Geological Survey Project of China Geological Survey under grant numbers DD20230600404 and DD20230448.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The implementation of GLR-Net is publicly available at https://github.com/ShangyuanYU/GLR-Net (accessed on 7 June 2026). The Tibetan Plateau lake dataset generated in this study will be released through a public repository, and the corresponding access information will be maintained through the project GitHub repository.

Acknowledgments

During the preparation of this manuscript, the authors used Qwen2.5-Max to improve the readability and language of the manuscript. The authors reviewed and edited the output as needed and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Examples of Local Patch Ambiguity

Local patch-based shoreline extraction may suffer from insufficient semantic context under high-resolution remote sensing conditions. In complex lake environments, local patches with similar textures or spectral characteristics may correspond to substantially different land-cover or shoreline regions, making reliable shoreline recognition difficult when only local information is available. Figure A1 and Figure A2 illustrate representative examples of local patch ambiguity observed in the Tibetan Plateau lake dataset.
Figure A1. Examples of local patch ambiguity in partially ice-covered lakes. Although the patches are extracted from the same lake system, their local visual appearances may be highly ambiguous without large-scale spatial context. Some local patches contain insufficient contextual information to reliably determine whether the region belongs to the lake body, illustrating the limitations of purely local segmentation strategies.
Figure A1. Examples of local patch ambiguity in partially ice-covered lakes. Although the patches are extracted from the same lake system, their local visual appearances may be highly ambiguous without large-scale spatial context. Some local patches contain insufficient contextual information to reliably determine whether the region belongs to the lake body, illustrating the limitations of purely local segmentation strategies.
Remotesensing 18 01919 g0a1
Figure A2. Examples of visually ambiguous shoreline patches under complex terrain and ice-cover conditions. Local patches may contain similar textures, snow, ice, or shadow patterns while corresponding to different semantic regions, highlighting the importance of integrating global contextual information for reliable shoreline delineation.
Figure A2. Examples of visually ambiguous shoreline patches under complex terrain and ice-cover conditions. Local patches may contain similar textures, snow, ice, or shadow patterns while corresponding to different semantic regions, highlighting the importance of integrating global contextual information for reliable shoreline delineation.
Remotesensing 18 01919 g0a2

Appendix B. Per-Lake Boundary Evaluation Statistics

Detailed per-lake evaluation statistics for the proposed method are summarized in Table A1. The table summarizes per-lake region-overlap metrics, tolerance-based boundary overlap, geometric boundary distance, and the number of boundary-distance samples used for BDE computation. Boundary-distance samples refer to the total number of bidirectional shoreline distance measurements used for BDE computation.
The per-lake statistics further demonstrate that high region-overlap or Boundary F1 scores do not necessarily correspond to low geometric boundary errors. Several lakes achieve relatively high Boundary F1 scores while still exhibiting large mean BDE values, suggesting that tolerance-based overlap metrics alone may not fully reflect geometric shoreline precision.
Table A1. Per-lake boundary evaluation statistics for the proposed method, including lake-level overlap, tolerance-based boundary overlap, geometric boundary distance, and the number of boundary-distance samples used for BDE computation.
Table A1. Per-lake boundary evaluation statistics for the proposed method, including lake-level overlap, tolerance-based boundary overlap, geometric boundary distance, and the number of boundary-distance samples used for BDE computation.
Lake IDLake-Level IoUBF1 (3-Pixel Tolerance)Mean BDE (px)Boundary-Distance Samples
870.4840.34789.9413,606
1400.4520.30589.045152
890.7500.65455.814477
1760.2070.28329.3010,622
1280.9130.77525.002046
1310.8590.83920.653946
800.9760.92816.674404
240.9540.81915.9617,402
1840.8070.81712.612711
1290.8400.77511.032240
1410.8610.8405.934819
190.9490.8205.398675
1750.9860.9075.347155
1320.8070.7655.087482
1610.9380.7305.0514,693
570.9730.8574.078410
460.9440.8933.8111,397
1050.9250.8443.6914,906
590.9820.8943.305556
370.9860.8932.648205
290.9850.9202.438368
1620.9870.9681.719915
1820.9910.9671.419216
1340.9830.9971.071388
50.9570.9401.0628,979
1700.9430.9620.9724,452
690.9720.9710.9211,673
950.9460.9890.723236

Appendix C. Supplementary Analysis of Boundary Robustness

To further investigate the robustness of shoreline delineation under varying geometric conditions, we additionally analyzed the relationship between shoreline geometric indicators and Boundary F1 scores. Two geometric indicators, namely the Shoreline Complexity Index (SCI) and Shoreline-to-Water Ratio (SWR), were used to characterize shoreline irregularity and boundary fragmentation. Spearman rank correlation analysis was conducted between these indicators and Boundary F1 scores for different segmentation models.
As shown in Figure A3 and Figure A4, both SegFormer-B0 and SegFormer-B4 appear to exhibit relatively stronger sensitivity of BF1 on shoreline geometry, particularly under increasing SCI and SWR conditions. In contrast, the proposed method shows relatively weaker correlations with both SCI and SWR, suggesting potentially more stable boundary-sensitive performance. These results further support the observation that models with similar region-overlap performance may still exhibit different boundary fidelity. However, because the test set contains only 28 lakes, these analyses should be interpreted as preliminary exploratory observations rather than statistically conclusive findings. Further validation on larger and more geographically diverse lake datasets is still required.
Figure A3. Relationships between Shoreline Complexity Index (SCI) and Boundary F1 score for different segmentation models on the test set.
Figure A3. Relationships between Shoreline Complexity Index (SCI) and Boundary F1 score for different segmentation models on the test set.
Remotesensing 18 01919 g0a3
Figure A4. Relationships between Shoreline-to-Water Ratio (SWR) and Boundary F1 score for different segmentation models on the test set.
Figure A4. Relationships between Shoreline-to-Water Ratio (SWR) and Boundary F1 score for different segmentation models on the test set.
Remotesensing 18 01919 g0a4

References

  1. Yao, T.; Bolch, T.; Chen, D.; Gao, J.; Immerzeel, W.; Piao, S.; Su, F.; Thompson, L.; Wada, Y.; Wang, L.; et al. The Imbalance of the Asian Water Tower. Nat. Rev. Earth Environ. 2022, 3, 618–632. [Google Scholar] [CrossRef]
  2. Zhu, L.; Ju, J.; Qiao, B.; Liu, C.; Wang, J.; Yang, R.; Ma, Q.; Guo, L.; Pang, S. Physical and Biogeochemical Responses of Tibetan Plateau Lakes to Climate Change. Nat. Rev. Earth Environ. 2025, 6, 284–298. [Google Scholar] [CrossRef]
  3. Zhang, J.; Hu, Q.; Li, Y.; Li, H.; Li, J. Area, Lake-Level and Volume Variations of Typical Lakes on the Tibetan Plateau and Their Response to Climate Change, 1972–2019. Geo-Spat. Inf. Sci. 2021, 24, 458–473. [Google Scholar] [CrossRef]
  4. Zhang, G.; Yao, T.; Xie, H.; Yang, K.; Zhu, L.; Shum, C.K.; Bolch, T.; Yi, S.; Allen, S.; Jiang, L.; et al. Response of Tibetan Plateau Lakes to Climate Change: Trends, Patterns, and Mechanisms. Earth-Sci. Rev. 2020, 208, 103269. [Google Scholar] [CrossRef]
  5. Pekel, J.F.; Cottam, A.; Gorelick, N.; Belward, A.S. High-Resolution Mapping of Global Surface Water and Its Long-Term Changes. Nature 2016, 540, 418–422. [Google Scholar] [CrossRef] [PubMed]
  6. Liu, Z.; Yao, Z.; Wang, R. Automatic Identification of the Lake Area at Qinghai–Tibetan Plateau Using Remote Sensing Images. Quat. Int. 2019, 503, 136–145. [Google Scholar] [CrossRef]
  7. Zhang, G.; Yao, T.; Xie, H.; Zhang, K.; Zhu, F. Lakes’ State and Abundance across the Tibetan Plateau. Chin. Sci. Bull. 2014, 59, 3010–3021. [Google Scholar] [CrossRef]
  8. Allen, S.K.; Zhang, G.; Wang, W.; Yao, T.; Bolch, T. Potentially Dangerous Glacial Lakes across the Tibetan Plateau Revealed Using a Large-Scale Automated Assessment Approach. Sci. Bull. 2019, 64, 435–445. [Google Scholar] [CrossRef]
  9. Sun, H.; Yao, T.D.; Su, F.G.; Ou, T.; He, Z.; Tang, G.; Chen, D. Increased Glacier Melt Enhances Future Extreme Floods in the Southern Tibetan Plateau. Adv. Clim. Change Res. 2024, 15, 431–441. [Google Scholar] [CrossRef]
  10. Song, C.; Huang, B.; Ke, L.; Richards, K.S. Seasonal and Abrupt Changes in the Water Level of Closed Lakes on the Tibetan Plateau and Implications for Climate Impacts. J. Hydrol. 2014, 514, 131–144. [Google Scholar] [CrossRef]
  11. Huang, W.; Cheng, B.; Zhang, J.; Zhang, Z.; Vihma, T.; Li, Z.; Niu, F. Modeling Experiments on Seasonal Lake Ice Mass and Energy Balance in the Qinghai–Tibet Plateau: A Case Study. Hydrol. Earth Syst. Sci. 2019, 23, 2173–2186. [Google Scholar] [CrossRef]
  12. Chen, F.; Zhang, M.; Tian, B.; Li, Z. Extraction of Glacial Lake Outlines in Tibet Plateau Using Landsat 8 Imagery and Google Earth Engine. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2017, 10, 4002–4009. [Google Scholar] [CrossRef]
  13. Cai, Y.; Ke, C.Q.; Li, X.; Zhang, G.; Duan, Z.; Lee, H. Variations of Lake Ice Phenology on the Tibetan Plateau from 2001 to 2017 Based on MODIS Data. J. Geophys. Res. Atmos. 2019, 124, 825–843. [Google Scholar] [CrossRef]
  14. Audebert, N.; Le Saux, B.; Lefèvre, S. Beyond RGB: Very High Resolution Urban Remote Sensing with Multimodal Deep Networks. ISPRS J. Photogramm. Remote Sens. 2018, 140, 20–32. [Google Scholar] [CrossRef]
  15. Maggiori, E.; Tarabalka, Y.; Charpiat, G.; Alliez, P. Convolutional Neural Networks for Large-Scale Remote-Sensing Image Classification. IEEE Trans. Geosci. Remote Sens. 2017, 55, 645–657. [Google Scholar] [CrossRef]
  16. Dronova, I.; Gong, P.; Wang, L. Object-Based Analysis and Change Detection of Major Wetland Cover Types and Their Classification Uncertainty during the Low Water Period at Poyang Lake, China. Remote Sens. Environ. 2011, 115, 3220–3236. [Google Scholar] [CrossRef]
  17. Zhang, M.; Chen, F.; Guo, H.; Yi, L.; Zeng, J.; Li, B. Glacial Lake Area Changes in High Mountain Asia during 1990–2020 Using Satellite Remote Sensing. Research 2022, 2022, 9821275. [Google Scholar] [CrossRef]
  18. Wang, R.; Li, X.; Shi, F.; Yang, Y.; Zheng, H.; Liu, J.; Liu, L.; Liu, C. A Comprehensive High-Resolution Lake Inventory across the Highly Heterogeneous Tibetan Plateau from 2020 Sentinel-2 Imagery Using Deep Learning. GISci. Remote Sens. 2026, 63, 2620151. [Google Scholar] [CrossRef]
  19. Chen, B.; Zou, X.; Zhang, Y.; Li, J.; Li, K.; Xing, J.; Tao, P. LEFormer: A Hybrid CNN-Transformer Architecture for Accurate Lake Extraction from Remote Sensing Imagery. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Seoul, Republic of Korea, 14–19 April 2024; pp. 5710–5714. [Google Scholar] [CrossRef]
  20. Zhong, H.F.; Sun, Q.; Sun, H.M.; Jia, R.S. NT-Net: A Semantic Segmentation Network for Extracting Lake Water Bodies from Optical Remote Sensing Images Based on Transformer. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5627513. [Google Scholar] [CrossRef]
  21. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. arXiv 2015, arXiv:1505.04597. [Google Scholar] [CrossRef]
  22. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Álvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. arXiv 2021, arXiv:2105.15203. [Google Scholar] [CrossRef]
  23. Kang, J.; Guan, H.; Ma, L.; Wang, L.; Xu, Z.; Li, J. WaterFormer: A Coupled Transformer and CNN Network for Waterbody Detection in Optical Remotely-Sensed Imagery. ISPRS J. Photogramm. Remote Sens. 2023, 206, 222–241. [Google Scholar] [CrossRef]
  24. Yan, X.; Song, J.; Liu, Y.; Lu, S.; Xu, Y.; Ma, C.; Zhu, Y. A Transformer-Based Method to Reduce Cloud Shadow Interference in Automatic Lake Water Surface Extraction from Sentinel-2 Imagery. J. Hydrol. 2023, 620, 129561. [Google Scholar] [CrossRef]
  25. Xu, J.; Feng, M.; Sui, Y.; Su, Y.; Zhang, X.; Wu, Q.; Hu, Z.; Wang, R. Enhancing Lake Identification in Alpine Periglacial Environments by Leveraging the Global Context of Transformers. Cryosphere 2026, 20, 2851–2870. [Google Scholar] [CrossRef]
  26. Qi, H.; Kong, X.; Cheng, L.; Hu, J.; Gu, J. Addressing Fine-Grained Lake Water Body Extraction: A Hybrid Approach Combining Vision Transformer and Geodesic Active Contour. IEEE Trans. Geosci. Remote Sens. 2024, 62, 4204614. [Google Scholar] [CrossRef]
  27. Marmanis, D.; Schindler, K.; Wegner, J.D.; Galliani, S.; Datcu, M.; Stilla, U. Classification with an Edge: Improving Semantic Image Segmentation with Boundary Detection. ISPRS J. Photogramm. Remote Sens. 2018, 135, 158–172. [Google Scholar] [CrossRef]
  28. Pang, Y.; Yu, J.; Xi, L.; Ge, D.; Zhou, P.; Hou, C.; He, P.; Zhao, L. Remote Sensing Extraction of Lakes on the Tibetan Plateau Based on the Google Earth Engine and Deep Learning. Remote Sens. 2024, 16, 583. [Google Scholar] [CrossRef]
  29. Kirillov, A.; Wu, Y.; He, K.; Girshick, R. PointRend: Image Segmentation as Rendering. arXiv 2019, arXiv:1912.08193. [Google Scholar] [CrossRef]
  30. Takikawa, T.; Acuna, D.; Jampani, V.; Fidler, S. Gated-SCNN: Gated Shape CNNs for Semantic Segmentation. arXiv 2019, arXiv:1907.05740. [Google Scholar] [CrossRef]
  31. Qin, X.; Zhang, Z.; Huang, C.; Gao, C.; Dehghan, M.; Jagersand, M. BASNet: Boundary-Aware Salient Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 7471–7481. [Google Scholar] [CrossRef]
  32. Zhu, J.; Fu, R.; Hu, J.; Xing, N.; Na, X.; Yang, X.; Lin, Z.; Zhang, W.; Sun, L.; Xue, Z.; et al. GeoVista: Visually Grounded Active Perception for Ultra-High-Resolution Remote Sensing Understanding. arXiv 2026, arXiv:2605.14475. [Google Scholar] [CrossRef]
  33. Wang, F.; Chen, M.; Li, Y.; Yang, Y.; Zhang, Y.; Lan, L.; Yang, X.; Sun, H.; Wang, Y.; Wang, D.; et al. GeoEyes: On-Demand Visual Focusing for Evidence-Grounded Understanding of Ultra-High-Resolution Remote Sensing Imagery. arXiv 2026, arXiv:2602.14201. [Google Scholar] [CrossRef]
  34. Lin, G.; Milan, A.; Shen, C.; Reid, I. RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentation. arXiv 2016, arXiv:1611.06612. [Google Scholar] [CrossRef]
  35. Yuan, Y.; Chen, X.; Chen, X.; Wang, J. Segmentation Transformer: Object-Contextual Representations for Semantic Segmentation. arXiv 2021, arXiv:1909.11065. [Google Scholar] [CrossRef]
  36. Bokhovkin, A.; Burnaev, E. Boundary Loss for Remote Sensing Imagery Semantic Segmentation. arXiv 2019, arXiv:1905.07852. [Google Scholar] [CrossRef]
  37. Cheng, B.; Girshick, R.; Dollár, P.; Berg, A.C.; Kirillov, A. Boundary IoU: Improving Object-Centric Image Segmentation Evaluation. arXiv 2021, arXiv:2103.16562. [Google Scholar] [CrossRef]
  38. Gens, R. Remote Sensing of Coastlines: Detection, Extraction and Monitoring. Int. J. Remote Sens. 2010, 31, 1819–1836. [Google Scholar] [CrossRef]
  39. Matin, N.; Hasan, G.M.J. A Quantitative Analysis of Shoreline Changes along the Coast of Bangladesh Using Remote Sensing and GIS Techniques. CATENA 2021, 201, 105185. [Google Scholar] [CrossRef]
  40. Shah, C.A. Automated Lake Shoreline Mapping at Subpixel Accuracy. IEEE Geosci. Remote Sens. Lett. 2011, 8, 1125–1129. [Google Scholar] [CrossRef]
  41. Kervadec, H.; Bouchtiba, J.; Desrosiers, C.; Granger, E.; Dolz, J.; Ben Ayed, I. Boundary Loss for Highly Unbalanced Segmentation. Med. Image Anal. 2021, 67, 101851. [Google Scholar] [CrossRef]
Figure 1. Spatial distribution of training, validation, and test lakes across the Tibetan Plateau.
Figure 1. Spatial distribution of training, validation, and test lakes across the Tibetan Plateau.
Remotesensing 18 01919 g001
Figure 2. Overall framework of the proposed Global–Local Residual Refinement Network (GLR-Net).
Figure 2. Overall framework of the proposed Global–Local Residual Refinement Network (GLR-Net).
Remotesensing 18 01919 g002
Figure 3. Qualitative comparison of lake boundary extraction results for representative lakes in the test dataset. Each row corresponds to a different lake, and the columns show the ground-truth boundary and the segmentation results produced by U-Net, SegFormer-B0, and the proposed method. The proposed global–local framework produces cleaner shoreline boundaries and reduces misclassification in complex environments such as partially ice-covered lakes and fragmented water bodies.
Figure 3. Qualitative comparison of lake boundary extraction results for representative lakes in the test dataset. Each row corresponds to a different lake, and the columns show the ground-truth boundary and the segmentation results produced by U-Net, SegFormer-B0, and the proposed method. The proposed global–local framework produces cleaner shoreline boundaries and reduces misclassification in complex environments such as partially ice-covered lakes and fragmented water bodies.
Remotesensing 18 01919 g003
Figure 4. Qualitative comparison of shoreline delineation results for representative complex lake regions. The upper panel shows the overall lake and the locations of three enlarged regions. (a) Enlarged view of Region A. (b) Enlarged view of Region B. (c) Enlarged view of Region C. Red contours denote the ground-truth shoreline annotations, while blue, orange, and green contours represent the predictions of SegFormer-B0, U-Net, and the proposed method, respectively.
Figure 4. Qualitative comparison of shoreline delineation results for representative complex lake regions. The upper panel shows the overall lake and the locations of three enlarged regions. (a) Enlarged view of Region A. (b) Enlarged view of Region B. (c) Enlarged view of Region C. Red contours denote the ground-truth shoreline annotations, while blue, orange, and green contours represent the predictions of SegFormer-B0, U-Net, and the proposed method, respectively.
Remotesensing 18 01919 g004
Figure 5. Additional qualitative comparison examples for shoreline delineation under complex alpine conditions. The upper panel shows the overall lake and the locations of the enlarged regions. (a) Enlarged view of the first highlighted region. (b) Enlarged view of the second highlighted region. (c) Enlarged view of the third highlighted region. Red contours denote the ground-truth shoreline annotations, while blue, orange, and green contours represent the predictions of SegFormer-B0, U-Net, and the proposed method, respectively.
Figure 5. Additional qualitative comparison examples for shoreline delineation under complex alpine conditions. The upper panel shows the overall lake and the locations of the enlarged regions. (a) Enlarged view of the first highlighted region. (b) Enlarged view of the second highlighted region. (c) Enlarged view of the third highlighted region. Red contours denote the ground-truth shoreline annotations, while blue, orange, and green contours represent the predictions of SegFormer-B0, U-Net, and the proposed method, respectively.
Remotesensing 18 01919 g005
Figure 6. Cumulative distribution of bidirectional boundary distance errors for different segmentation models on the test set. The proposed method exhibits a larger proportion of low-error boundary samples and a consistently shorter tail of large errors compared with the baseline models, indicating improved geometric shoreline delineation quality.
Figure 6. Cumulative distribution of bidirectional boundary distance errors for different segmentation models on the test set. The proposed method exhibits a larger proportion of low-error boundary samples and a consistently shorter tail of large errors compared with the baseline models, indicating improved geometric shoreline delineation quality.
Remotesensing 18 01919 g006
Figure 7. Relationship between lake area and different segmentation evaluation metrics. (a) Relationship between lake area and Boundary F1. (b) Relationship between lake area and Mean Boundary Distance Error (Mean BDE). (c) Relationship between lake area and Lake-level IoU.
Figure 7. Relationship between lake area and different segmentation evaluation metrics. (a) Relationship between lake area and Boundary F1. (b) Relationship between lake area and Mean Boundary Distance Error (Mean BDE). (c) Relationship between lake area and Lake-level IoU.
Remotesensing 18 01919 g007
Table 1. Statistics of the Lake Boundary Dataset.
Table 1. Statistics of the Lake Boundary Dataset.
DatasetNumber of LakesMin Area (km2)Max Area (km2)
Train12527.305769.32
Val2632.397072.57
Test2829.853084.25
Total17927.307072.57
Table 2. Quantitative comparison of lake extraction performance on the test dataset.
Table 2. Quantitative comparison of lake extraction performance on the test dataset.
MethodIoUDiceLake-Level IoUBF1
(3-Pixel Tolerance)
Mean
BDE (px)
U-Net0.9150.9560.7870.71223.99
SegFormer-B00.9590.9790.9130.77819.18
SegFormer-B40.9660.9830.9300.80417.47
OCRNet0.9610.9800.9150.78316.46
Ours0.9440.9710.8720.81113.19
Table 3. Bootstrap 95% confidence intervals for lake-level evaluation metrics on the test set (n = 28, B = 10,000).
Table 3. Bootstrap 95% confidence intervals for lake-level evaluation metrics on the test set (n = 28, B = 10,000).
MethodBF1
Mean
BF1
95% CI
Lake-Level IoU
Mean
Lake-Level IoU
95% CI
U-Net0.712[0.619, 0.801]0.787[0.674, 0.890]
SegFormer-B00.778[0.701, 0.849]0.913[0.858, 0.954]
SegFormer-B40.804[0.731, 0.869]0.930[0.886, 0.959]
OCRNet0.783[0.709, 0.846]0.915[0.868, 0.950]
Ours0.811[0.736, 0.875]0.872[0.795, 0.933]
Table 4. Statistical boundary error comparison of different methods.
Table 4. Statistical boundary error comparison of different methods.
MethodMean
BDE (px)
Median
BDE (px)
P90
BDE (px)
U-Net23.992.0079.00
SegFormer-B019.182.2430.41
SegFormer-B417.472.0021.10
OCRNet16.462.2331.14
Ours13.191.0022.67
Table 5. Ablation study evaluating the contributions of global semantic context, local refinement, and global-to-local conditioning.
Table 5. Ablation study evaluating the contributions of global semantic context, local refinement, and global-to-local conditioning.
ModelIoUDiceLake-LevelIoUBF1 (3-Pixel
Tolerance)
Mean
BDE (px)
Median
BDE (px)
P90
BDE (px)
Global-only0.9230.9600.8090.62126.663.6185.62
Patch-only0.9440.9720.8090.67329.831.4189.02
w/o global-to-local conditioning0.9330.9660.8510.69216.862.0036.06
Full model0.9440.9710.8720.81113.191.0022.67
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

Yu, S.; Tu, J.; Guo, Z.; He, P. A Global–Local Residual Refinement Framework for Accurate Lake Boundary Delineation in Remote Sensing Imagery. Remote Sens. 2026, 18, 1919. https://doi.org/10.3390/rs18121919

AMA Style

Yu S, Tu J, Guo Z, He P. A Global–Local Residual Refinement Framework for Accurate Lake Boundary Delineation in Remote Sensing Imagery. Remote Sensing. 2026; 18(12):1919. https://doi.org/10.3390/rs18121919

Chicago/Turabian Style

Yu, Shangyuan, Jienan Tu, Zhaocheng Guo, and Peng He. 2026. "A Global–Local Residual Refinement Framework for Accurate Lake Boundary Delineation in Remote Sensing Imagery" Remote Sensing 18, no. 12: 1919. https://doi.org/10.3390/rs18121919

APA Style

Yu, S., Tu, J., Guo, Z., & He, P. (2026). A Global–Local Residual Refinement Framework for Accurate Lake Boundary Delineation in Remote Sensing Imagery. Remote Sensing, 18(12), 1919. https://doi.org/10.3390/rs18121919

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