arXiv:2609.10371cs.CVSep 2026

Manuscript Offprint

arXiv:2609.10371

Beyond Weak Labels: Prompt-Guided Local Refinement for Weakly Supervised Water Segmentation in High-Resolution Multispectral Imagery

Muhammad Farhan Humayun, Mohammad Imangholiloo, Afifah Shah, Tomi Westerlund, Jukka Heikkonen

ABSTRACT

High-resolution water mapping supports environmental monitoring and related applications, but accurate pixel-level labels are difficult and costly to produce. Official hydrographic vectors provide scalable weak supervision, but they contain artifacts like boundary noise, temporal mismatch, and omissions of small water structures. We propose a two-stage framework for weakly supervised water segmentation in high-resolution multispectral imagery. Stage 1 learns initial masks from rasterized vector pseudo-labels, and Stage 2 converts these masks into structured component-wise prompts for localized refinement. On a manually corrected validation set, refinement improves SegFormer-B0 from 0.9509 to 0.9535 IoU and U-Net from 0.9408 to 0.9486 IoU, with corresponding F1 gains from 0.9749 to 0.9762 and 0.9695 to 0.9736. It leads to sharper shorelines, reduced boundary spillover, and better thin-structure delineation. The results indicate that prompt-guided refinement can improve pseudo-label-based water segmentation by targeting local errors that are poorly captured by global training supervision.

Index Terms— Weak supervision, water segmentation, multispectral imagery, prompts, SegFormer, SAM 2.

1. INTRODUCTION

Accurate water-body delineation from high-resolution multispectral imagery is important for hydrologic monitoring, flood response, environmental assessment, and geospatial inventory maintenance [1, 2]. Compared with coarse-resolution products, high-resolution orthophotos derived from aerial and satellite imagery better capture object-level features such as shorelines, narrow channels, and small inland water bodies [3, 4]. However, they also introduce substantial challenges such as water boundaries are irregular, target structures are often thin and fragmented, and visually similar non-water regions can cause local ambiguities [5, 6]. A major difficulty in this setting is the lack of reliable pixel-level ground truth.

Hydrographic mapping vector layers are attractive because they are widely available and inexpensive compared with exhaustive manual annotation, but they are not perfect for supervision in deep learning models as they often contain boundary noise, temporal mismatch with the imagery, geometric simplification, and omission of small water bodies or narrow channels. They are therefore useful as pseudo-labels, but not as exact ground truth, making weak supervision a natural formulation for this problem [7, 8].

Under these constraints, modern segmentation architectures such as SegFormer have shown strong segmentation performance and robustness across image resolutions [9]. Such models are well suited as strong baselines for weakly supervised remote sensing segmentation because they can learn from large pseudo-labeled datasets while retaining the capacity to model both local detail and broader scene context [10]. Yet high aggregate accuracy alone is not sufficient in this setting. In high-resolution water mapping, many tiles are dominated by large easy regions of land or open water, and global pixel-wise scores can therefore hide crucial errors that matter most in practice including shoreline placement, thin channels, small omitted water bodies and islands [11]. The central challenge is thus not only coarse water detection, but the refinement of fine-scale local structure under imperfect supervision.

This research proposes a two-stage framework for weakly supervised water segmentation. The first stage produces an initial water mask using pseudo-label supervision, while the second stage performs prompt-guided local refinement using the Segment Anything Model 2 (SAM 2) [12]. In this formulation, the refinement stage is guided by explicit local instructions that indicate where refinement should occur and how the promptable model should interpret each candidate region. The resulting two-stage formulation is conceptually simple and practically useful. Our contributions are threefold: (1) a weakly supervised multispectral water-segmentation pipeline; (2) a structured component-wise, prompt-generation scheme for localized mask refinement; and (3) evidence that local prompt-guided refinement improves a strong baseline,

Figure

Fig. 1. Prompt-guided two-stage pipeline: (A) preprocessing, (B) weakly supervised SegFormer segmentation, (C) structured prompt generation, and (D) localized SAM 2 mask refinement.

particularly for boundary adjustment and recovery of small water/land components.