Manuscript Offprint

arXiv:2608.28453

Prompt-Guided Interactive Segmentation of Interstitial Lung Disease in Thoracic CT

Vasilis Dedousis, Lubnaa Abdur Rahman, Lorenzo Brigatο, Ethan Dack, Andreas Christe, Christoph Frank, Manuela Funke-Chambour, Justus Roos, Adrian Huber, Lukas Ebner, Stavroula Mougiakakou

Vasilis Dedousis1,2†^{1,2\dagger}, Lubnaa Abdur Rahman1,2†^{1,2\dagger}, Lorenzo Brigato1^{1}, Ethan Dack1^{1}, Andreas Christie3^{3}, Christoph Frank4^{4}, Manuela Funke-Chambour3,5^{3,5}, Justus Roos4^{4}, Adrian Huber4^{4}, Lukas Ebner3,4^{3,4}, and Stavroula Mougiakakou1,3^{1,3}

1^{1} University of Bern, Bern, Switzerland

2^{2} Graduate School for Cellular and Biomedical Sciences, Bern, Switzerland

3^{3} Department of Diagnostic, Interventional, and Pediatric Radiology, Bern University Hospital, Bern, Switzerland

4^{4} Department of Radiology, Lucern Cantonal Hospital, Lucern, Switzerland

5^{5} Division of Pulmonology, Department of Medicine, Lausanne University Hospital (CHUV) and University of Lausanne, Lausanne, Switzerland

{vasileios.dedousis, stavroula.mougiakakou}@unibe.ch

Abstract. Accurate segmentation of interstitial lung disease (ILD) patterns is essential for quantitative disease assessment and longitudinal monitoring. However, existing approaches remain limited by relying on dense annotations and producing static predictions that cannot be refined, motivating interactive approaches. While promptable models show promise in interactive segmentation, their adaptation to ILDs remains largely unexplored. To address this gap, we investigate prompt-guided foundation models for ILD refinement and present, to the best of our knowledge, the first adaptation of MedSAM2 for interactive 3D ILD segmentation on thoracic CT. We investigate three fine-tuning strategies and multiple clinically motivated prompts: bounding-boxes (BBox), point, lasso, and scribble. On a dataset spanning seven ILD patterns and healthy lung tissue, full model fine-tuning performed best, improving the average Dice score by 4.7 percentage points over MedSAM2. While BBox prompts achieve the strongest performance, non-native MedSAM2 interactions such as lasso and scribble prompts also prove effective. Finally, we present and evaluate a proof-of-concept end-to-end workflow in which MedSAM2 is initialized from an automatic segmentation prior and subsequently refined using radiologist prompts. Model weights and plug-ins made available at: https://github.com/AIHNlab/ILD-SemiSegTool.

Keywords: Lung disease · Interactive 3D Segmentation · MedSAM2

1 Introduction

Accurate thoracic computed tomography (CT) segmentation is vital for quantitative pulmonary imaging, supporting disease quantification, longitudinal monitoring, and computer-aided diagnosis [20,25,29]. Deep learning methods, such as

†^{\dagger} Equal contribution.

Dedousis, Abdur Rahman, et al.

nnU-Net [12,13,15], have advanced automated thoracic CT segmentation. However, segmenting interstitial lung diseases (ILDs) remains considerably more challenging [30]. ILD patterns such as ground-glass opacities (GGO), honeycombing (HC), and consolidation (Cons.) [3] often exhibit fragmented spatial distributions, poorly defined boundaries, and substantial appearance variability [26]. Unlike spatially coherent structures such as the lung lobes, which maintain a fixed number and relative location across patients despite locally ambiguous margins, ILD abnormalities may occur as a variable number of dispersed regions without fixed anatomical boundaries, complicating automated segmentation and motivating interactive refinement. Methods have evolved from patch-based classification to dense semantic segmentation [1,2,8,11] and to self-supervised learning [6,10], but all require costly, inter-observer variable dense annotations or yield static predictions [5,9,28,31], motivating radiologist-led interactive refinement.

Promptable models offer a promising framework for human-in-the-loop segmentation. The Segment Anything Model (SAM) established prompt-guided segmentation via points, bounding boxes (BBox), and masks [17], while SAM2 introduced temporal memory to propagate masks across video frames [24]. This propagation mechanism is suited to volumetric CT, where inter-slice continuity enables sparse interactions to spread across a scan. SAM-based architectures have already been applied to lung cancer lesion segmentation [23,33]. Although SAM2 has demonstrated strong performance under sparse volumetric interactions [27], our preliminary experiments identified MedSAM2 [18] as the strongest baseline, motivating its use. Existing medical adaptations largely target anatomical structures, leaving interactive segmentation of diffuse pathologies such as ILD patterns largely unexplored [21,22]. Furthermore, most studies have been restricted to simple point and bounding-box prompts, with clinically motivated interactions such as scribbles (strokes over the target) and lassos (contours around the target) receiving limited attention, despite enabling rapid, intuitive region specification that mirrors freehand correction [14,27]. Finally, it remains open whether automatic segmentations can initialize interactive correction of residual errors that scaling automatic models may not resolve, even though SAM-based frameworks support mask prompts [16]. As such, our contributions are threefold:

— Propose, to the best of our knowledge, the first adaptation of a SAM-based model (MedSAM2) for interactive ILD segmentation on thoracic CT.

— Characterize how clinically motivated interactions support human-in-the-loop refinement of diffuse pulmonary abnormalities, including point, BBox, scribble, and lasso prompts (Fig. 1b).

— Present a proof-of-concept (PoC) workflow in which an automatic segmentation initializes radiologist-guided MedSAM2 refinement (Fig. 1a).

References (33)

  • Lung pattern classification for interstitial lung diseases using a deep convolutional neural network
  • Semantic segmentation of pathological lung tissue with dilated fully convolutional networks
  • Fleischner society: Glossary of terms for thoracic imaging
  • The Lung Tissue Research Consortium: An extensive open database containing histological, clinical, and radiological data to study chronic lung disease
  • Deep learning-based approach for automated assessment of interstitial lung disease in systemic sclerosis on CT images
  • Content-based image retrieval by using deep learning for interstitial lung disease diagnosis with chest CT. Radiology
  • Computer-aided diagnosis of pulmonary fibrosis using deep learning and CT images
  • Multisource transfer learning with convolutional neural networks for lung pattern analysis
  • Artificial intelligence and interstitial lung disease: Diagnosis and prognosis
  • Unmasking interstitial lung diseases: Leveraging masked autoencoders for diagnosis
  • Computer-aided diagnosis system for lung fibrosis: From the effect of radiomic features and multi-layer-perceptron mixers to pre-clinical evaluation
  • A lung CT vision foundation model facilitating disease diagnosis and medical imaging
  • nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation
  • nnInteractive: Redefining 3D promptable segmentation (opens arXiv in a new tab)
  • nnU-Net revisited: A call for rigorous validation in 3D medical image segmentation
  • RadSAM: Segmenting 3D radiological images with a 2D promptable model
  • Segment anything
  • MedSAM2: Segment anything in 3D medical images and videos (opens arXiv in a new tab)
  • Metrics reloaded: recommendations for image analysis validation
  • Automated quantification of radiological patterns predicts survival in idiopathic pulmonary fibrosis
  • Segment anything model for medical image analysis: An experimental study
  • Semi-automated lung segmentation based on region-growing methods in interstitial lung disease
  • StructSAM: Structure- and spectrum-preserving token merging for segment anything models (opens arXiv in a new tab)
  • SAM 2: Segment Anything in Images and Videos
  • Pulmonary quantitative CT imaging in focal and diffuse disease: current research and clinical applications
  • An official american thoracic society/european respiratory society statement: Update of the international multidis-ciplinary classification of the idiopathic interstitial pneumonias
  • RadioActive: 3D radiological interactive segmentation benchmark (opens arXiv in a new tab)
  • Deep learning for classifying fibrotic lung disease on high-resolution computed tomography: a case-cohort study
  • Towards the adoption of quantitative computed tomography in the management of interstitial lung disease
  • TotalSegmentator: robust segmentation of 104 anatomic structures in CT images
  • Interobserver variability in the CT assessment of honeycombing in the lungs
  • ScribblePrompt: Fast and flexible interactive segmentation for any biomedical image
  • Clinically oriented LG-SAM for lung CT tumor segmentation with 2D training achieving 3D-level performance