UCS: A Universal Model for Curvilinear Structure Segmentation

Kai Zhu, Li Chen, Dianshuo Li, Yunxiang Cao, Jun Cheng
4/5/2025
cs.CV

Official code: kylechuuuuu/UCS (1 star, last commit 2025-11-24).

Abstract

Curvilinear structure segmentation (CSS) is essential in various domains, including medical imaging, landscape analysis, industrial surface inspection, and plant analysis. While existing methods achieve high performance within specific domains, their generalizability is limited. On the other hand, large-scale models such as Segment Anything Model (SAM) exhibit strong generalization but are not optimized for curvilinear structures. Existing adaptations of SAM primarily focus on general object segmentation and lack specialized design for CSS tasks. To bridge this gap, we propose the Universal Curvilinear structure Segmentation (UCS) model, which adapts SAM to CSS tasks while further enhancing its cross-domain generalization. UCS features a novel encoder architecture integrating a pretrained SAM encoder with two innovations: a Sparse Adapter, strategically inserted to inherit the pre-trained SAM encoder's generalization capability while minimizing the number of fine-tuning parameters, and a Prompt Generation module, which leverages Fast Fourier Transform with a high-pass filter to generate curve-specific prompts. Furthermore, the UCS incorporates a mask decoder that eliminates reliance on manual interaction through a dual-compression module: a Hierarchical Feature Compression module, which aggregates the outputs of the sampled encoder to enhance detail preservation, and a Guidance Feature Compression module, which extracts and compresses image-driven guidance features. Evaluated on a comprehensive multi-domain dataset, including an in-house dataset covering eight natural curvilinear structures, UCS demonstrates state-of-the-art generalization and open-set segmentation performance across medical, engineering, natural, and plant imagery, establishing a new benchmark for universal CSS. The source code is available at https://github.com/kylechuuuuu/UCS.

View on arXivView PDF

Code Implementations(1)

kylechuuuuu/UCSOfficial100%
10PythonOct 28, 202511 months ago

Similar Papers

Cite this paper

@article{zhu2025ucs,
  title  = {UCS: A Universal Model for Curvilinear Structure Segmentation},
  author = {Kai Zhu and Li Chen and Dianshuo Li and Yunxiang Cao and Jun Cheng},
  year   = {2025},
  eprint = {2504.04034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.04034v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.04034.svg)](https://codeofpaper.com/paper/2504.04034)

Discussion