Leveraging Self-Supervised Vision Transformers for Segmentation-Based Transfer Function Design

Dominik Engel, Leon Sick, Timo Ropinski

TL;DR

This paper introduces a novel, interactive method for designing transfer functions (TFs) in volume rendering. By leveraging self-supervised Vision Transformers (ViTs), it significantly reduces the annotation effort required to segment structures, enabling TF design in seconds rather than minutes. This approach offers a fast, intuitive, and effective way to visualize complex scientific data.

What Problem Does This Paper Address?

Visualizing volumetric scientific data, such as medical scans or simulations, relies on transfer functions (TFs) to map raw data values to optical properties like color and opacity. Traditionally, designing these TFs is a tedious and unintuitive process. While some methods use 1D or 2D functions based on simple features like intensity or gradients, they often fail to capture complex structures. More advanced approaches involve collecting user annotations and training classifiers to segment structures. However, these methods can be computationally expensive, require extensive training data, and often lack interactivity, leading to a multi-step design process that is slow and frustrating for users. The core challenge is to create a TF design process that is both accurate and highly interactive, requiring minimal user effort.

Methods

The paper proposes a method that leverages the power of pre-trained self-supervised Vision Transformers (ViTs), specifically DINO. The core idea is to use the high-level, semantically rich features extracted by these ViTs to guide the TF design process.

Here's a breakdown of their approach:

  • Feature Extraction: The 3D volume data is sliced along its three principal axes (X, Y, Z). These 2D slices are then fed through a pre-trained DINO ViT. The key (K) maps from the ViT's self-attention layers are extracted as feature representations. These 2D feature maps are then merged into a single 3D feature volume. This process is done once as a pre-processing step.
  • Annotation-Driven Similarity Computation: During the interactive TF design, users annotate structures of interest in a slice viewer. These annotations are used as "queries" to the 3D feature volume. Cosine similarity is computed between the annotated voxel features and all other voxel features in the volume, generating a low-resolution similarity map ($S_L$). This similarity map provides immediate visual feedback to the user, highlighting regions that are semantically similar to the annotated structures.
  • Proximity Control: To allow users to focus on specific instances of a structure (e.g., individual kidneys), a proximity parameter can be used to scale the similarity map based on the distance to the closest annotation.
  • 3D Bilateral Solver Refinement: To improve the visual quality and detail of the similarity maps, a 3D extension of the Fast Bilateral Solver is employed. This post-processing step up-samples the low-resolution similarity map and adapts it to the edges of the raw input volume, producing a high-resolution similarity map ($S_H$). This step is performed only once after the user is satisfied with the initial annotations.
  • Rendering: Iso-surface raycasting is used to visualize the similarity maps. The user can adjust an iso-value threshold to control which regions are rendered.

Datasets

The paper evaluates their method on several datasets:

  • BONSAI, TOOTH, MRI HEART: Used for qualitative results showcasing the method's applicability across different modalities and structures.
  • VISCONTEST2010 (MRI Brain): Used for qualitative results on medical MRI data.
  • CARP (CT): Used for qualitative results on animal scans and for demonstrating fine detail segmentation.
  • CT-ORG: A benchmark dataset with ground truth segmentations for organs (liver, bladder, lung, kidney, bones). This dataset is used for quantitative evaluation and comparison with other methods.

No new datasets were introduced.

Key Insights and Ideas

  • ViT Features for Semantic Similarity: The core insight is that features from self-supervised ViTs, trained on massive image datasets, capture high-level semantic information that can be effectively used to find similar structures in volumetric data, even with very few annotations. This moves beyond simple intensity or gradient-based features.
  • Interactive Feedback is Crucial: Providing immediate visual feedback (the similarity map $S_L$) after each annotation is key to an intuitive and efficient TF design process. This allows users to quickly understand what has been segmented and where further annotations are needed.
  • 3D Refinement for Detail: The 3D bilateral solver is essential for producing visually appealing renderings by adapting the similarity map to the underlying data and recovering fine details, but it relies on a sufficiently detected initial similarity map.
  • Annotation Efficiency: The method significantly reduces the number of annotations required compared to previous learning-based approaches, making TF design accessible and fast.

Key Results

  • Annotation Efficiency: The method requires an average of only 5.2 annotations per class on the CT-ORG dataset, a stark contrast to thousands of annotations needed by previous methods like SVM/RF.
  • Segmentation Performance: On the CT-ORG dataset, the proposed method achieves comparable or slightly better segmentation quality (measured by IoU, Precision, Recall, F1-Score) than state-of-the-art methods like SAM-Med3D, using significantly fewer annotations. For example, their mean IoU was 0.981.
  • Speed: The pre-processing step (feature extraction) takes about 1-3 minutes. The interactive similarity computation is very fast (milliseconds), and the post-processing refinement step takes around 0.4-5.3 seconds depending on resolution. This enables an interactive experience.
  • Qualitative Results: The paper demonstrates successful TF design and visualization on diverse datasets (medical, biological, synthetic) and modalities (CT, MRI), showcasing the ability to segment complex structures like organs, bones, and even fine fish bones.
  • User Study: A user study with 12 participants showed high usability (SUS score of 88.25) and the ability to achieve strong segmentation results (IoU > 0.95) in about 1-3 minutes with an average of 10 or fewer annotations.

Limitations and Future Work

  • Memory Intensive Pre-processing: Extracting features for high resolutions can be memory-intensive, limiting the use of larger ViT models or higher feature resolutions on consumer GPUs.
  • Ambiguity in Similar Structures: The method can sometimes recognize multiple similar structures when only one is annotated (e.g., bladder vs. kidneys). While proximity controls and connected component filters help, they don't fully resolve this for very close structures.
  • Surface Artifacts: If structures are not perfectly detected in the initial similarity map ($S_L$), the refinement step can lead to block artifacts in the rendered iso-surfaces.
  • Future Work:
    • Investigate using larger pre-trained transformers and higher resolution feature maps.
  • Explore using neural networks that learn joint image and text embeddings (like CLIP) to enable natural language queries for structure selection.
  • Implement "negative annotations" to explicitly exclude regions from a class.

Summary updated

BibTeX
@article{engel2025leveraging,
  author = {Dominik Engel and Leon Sick and Timo Ropinski},
  title = {{Leveraging Self-Supervised Vision Transformers for Segmentation-Based Transfer Function Design}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2025},
  doi = {10.1109/tvcg.2024.3401755},
}

Loading related content...

Figure