Text-Driven Weakly Supervised OCT Lesion Segmentation with Structural Guidance

Jiaqi Yang, Nitish Mehta, Xiao Hu, Chao Chen, Chia-Ling Tsai

TL;DR

This paper introduces a novel framework for segmenting retinal lesions in Optical Coherence Tomography (OCT) scans using only image-level labels, drastically reducing the need for expensive pixel-level annotations. By combining anatomical structural priors with "textual guidance" from large-scale foundation models (CLIP and BLIP), the authors achieve state-of-the-art results in weakly supervised semantic segmentation (WSSS).

What Problem Does This Paper Address?

In medical imaging, training a model to "see" a lesion usually requires thousands of images where every single pixel of the lesion has been manually traced by an expert—a process that is slow, expensive, and prone to human error.

Weakly Supervised Semantic Segmentation (WSSS) tries to solve this by training models using only image-level labels (e.g., "this scan contains a lesion" vs. "this scan is healthy"). However, image-level labels are "coarse"; they tell the model what is in the image but not where it is. Standard WSSS often produces "Class Activation Maps" (CAMs) that are blurry or highlight irrelevant areas like shadows. This paper aims to sharpen those maps by giving the model "hints" about retinal anatomy and descriptive context.

Methods

The authors propose a multi-modal framework that uses four distinct modules to generate high-quality "pseudo-labels" (initial guesses at the segmentation masks):

  1. Primary Feature Module: Uses a Mix Transformer (MiT) backbone to extract standard visual features from the OCT scan.
  2. Structural Feature Module: This mimics a clinician’s reasoning. It uses pretrained models to identify retinal layers and "anomalous signals" (areas that look different from healthy tissue). By fusing this with the primary module via cross-attention, the model learns that lesions typically appear in specific anatomical layers.
  3. Label-Derived Description Module: The authors use the CLIP text encoder to process human-readable medical descriptions (e.g., "an OCT b-scan with subretinal fluid"). This provides local semantic guidance to help the model associate specific visual patterns with medical categories.
  4. Domain-Agnostic Synthetic Description Module: In a surprising twist, the authors use BLIP to generate natural language captions for the medical images. Even if BLIP "hallucinates" and describes an OCT scan as "a plane flying over a hill," these descriptions capture consistent spatial and relational structures that help the model maintain global consistency across similar images.

Datasets

The framework was evaluated on three distinct OCT B-scan datasets:

  • RESC (Retinal Edema Segmentation Challenge): A public dataset focused on fluid-related lesions.
  • Duke: A public dataset containing fluid lesion classes.
  • Private Dataset: A more complex dataset featuring four different lesion types (SRF, IRF, EZ, and HRD), providing a rigorous test for multi-label segmentation.

Key Insights and Ideas

  • The Value of "Nonsense" Captions: One of the most interesting findings is that domain-agnostic (non-medical) synthetic descriptions actually help. Because foundation models like CLIP/BLIP are trained on billions of natural images, they are excellent at recognizing shapes and spatial relationships. Describing a lesion as a "hole in a mountain" provides a structural scaffold that the model can use to localize the lesion more effectively than raw pixels alone.
  • Anatomical Grounding: Medical lesions aren't random; they are constrained by anatomy. By explicitly feeding the model layer segmentations, the authors prevent the model from misidentifying shadows or artifacts as lesions—a common failure point in previous WSSS methods.
  • Synergy of Text and Structure: The ablation studies show that while structural guidance or text guidance helps individually, the "synergistic effect" of using both leads to the most stable and accurate segmentation.

Key Results

The proposed method outperformed existing state-of-the-art WSSS methods across all three datasets:

  • RESC: Achieved a mean Intersection over Union (mIoU) of 61.15%, significantly higher than the previous best of 54.87% (AGM).
  • Duke: Reached 68.11% mIoU, surpassing the previous SOTA by nearly 4%.
  • Private Dataset: Achieved 31.05% mIoU, proving its robustness even in challenging multi-lesion scenarios where other models struggled to maintain balance across classes.
  • Qualitative Improvement: Visualizations show that the generated pseudo-labels are much tighter and more anatomically accurate than those produced by standard baseline models (like ResNet-50).

Limitations and Future Work

  • Modality Specificity: The structural branch currently relies on features unique to OCT (like retinal layers). Adapting this to other medical modalities (like MRI or CT) would require identifying new, modality-specific structural priors.
  • Synthetic Noise: While synthetic descriptions are helpful, they are still "noisy." The authors suggest that future work could involve integrating actual clinical reports or more domain-specific large language models to provide even more precise textual guidance.
  • Computational Overhead: Running multiple encoders (MiT, CLIP, BLIP) and a structural module increases the computational cost during the training/pseudo-label generation phase.

Summary updated

BibTeX
@article{yang2025text,
  author = {Jiaqi Yang and Nitish Mehta and Xiao Hu and Chao Chen and Chia-Ling Tsai},
  title = {{Text-Driven Weakly Supervised OCT Lesion Segmentation with Structural Guidance}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2025},
  doi = {10.1109/jbhi.2025.3616290},
}
Figure