arXiv:2610.10306cs.CVOct 2026

Manuscript Offprint

arXiv:2610.10306

One-Shot Adaptive Segmentation For Scientific Images

Tejaswi V. Panchagnula, Allison M. Davis, Fengqing Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Scientific image segmentation methods rely on extensive annotation and task-specific training, limiting adaptation across imaging modalities and experimental conditions. We present a training-free, one-shot framework that specializes vision foundation models using a single annotated reference image. The framework combines DINOv3 representations with background-adaptive feature orthogonalization to suppress artifact-related feature directions, after which cosine similarity localizes candidate regions for SAM segmentation. We evaluate the framework on red-blood-cell microscopy, structured-illumination pool boiling, and chest radiography. Relative to the strongest baseline, the proposed method improves mean IoU by 5.91% and 78.62% on the microscopy and pool-boiling datasets, respectively, while achieving comparable performance on chest radiographs. These results demonstrate that one-shot reference conditioning can adapt general-purpose vision models to specialized scientific segmentation tasks.

Index Terms— In-Context Segmentation, Scientific Imaging, Vision Foundation Models, Training-Free Adaptation

1. INTRODUCTION

Scientific image segmentation enables quantitative analysis in applications such as multiphase flows, blood-cell microscopy, and radiography [1, 2, 3]. Unlike many natural images, scientific images often contain domain-specific structures alongside acquisition-dependent artifacts and background variations, making robust segmentation challenging. Deep-learning-based approaches, including convolutional neural networks (CNNs) and vision transformers (ViTs), have shown success in segmenting scientific images. However, training a supervised model for each experimental setting and segmentation task requires extensive expert annotation.

Vision foundation models offer an alternative by transferring representations learned from large-scale pretraining to new tasks without requiring task-specific training. Among these models, self-supervised feature encoders and promptable segmentation models provide complementary capabilities for feature localization and segmentation. Segment Anything (SAM) [4] generates detailed segmentation masks from spatial prompts, while self-supervised models such as DI-NOv3 [5, 6] provide patch-level representations that support semantic correspondence across images. However, their direct application to scientific images remains unreliable, motivating a generalist-to-specialist framework that adapts to a specific task from one annotated example.

Training-free one-shot segmentation transfers target information from a single annotated reference to localize corresponding structures in unlabeled images. Existing approaches include GF-SAM, which uses foreground and background reference features to guide SAM [7], and INSID3, which mitigates positional bias in DINOv3 representations through orthogonal feature projection [8]. However, these approaches do not adapt their feature correction to the background and imaging artifacts observed in the annotated reference.

We address this limitation with a training-free, background-adaptive framework for one-shot scientific-image segmentation, shown in Fig. 1. Our method uses a single annotated reference image and its corresponding mask to localize target structures and produce fine-grained segmentation masks. We evaluate our framework across pool-boiling imaging, red blood cell microscopy, and chest radiography, representing distinct scientific-imaging modalities and conditions.

Our main contributions in this paper are as follows:

• We present a training-free, one-shot framework that adapts frozen foundation vision models to scientific images using only a single annotated reference.

• We introduce a background-adaptive orthogonal projection that uses the annotated reference background to suppress background structures and imaging artifacts.

• We evaluate the framework across three scientific datasets, demonstrating its applicability to distinct structures, artifacts, and modalities.

This work is supported by the Office of Naval Research under the Multidisciplinary University Research Initiatives (MURI) Grant Award N000142412545.

Figure

Fig. 1: Generalist-to-specialist one-shot segmentation across scientific imaging domains. A single annotated reference defines each target concept, and the same frozen DINOv3–SAM framework localizes and segments corresponding structures without task-specific training.