UltraAD: Fine-Grained Ultrasound Anomaly Classification via Few-Shot CLIP Adaptation

Yue Zhou, Yuan Bi, Wenjuan Tong, Wei Wang, Nassir Navab, Zhongliang Jiang

Introduction

Ultrasound (US) imaging is a cornerstone of modern diagnostics, particularly in resource-constrained environments due to its portability and cost-effectiveness. However, the integration of Artificial Intelligence (AI) into ultrasound workflows faces significant hurdles. Most existing anomaly detection (AD) models are limited by domain sensitivity—where performance drops significantly when moving between different ultrasound machines or probe types—and a lack of granularity. While standard AD models can identify that an anomaly exists, they often fail to provide the fine-grained classification (e.g., distinguishing benign from malignant tumors) that is critical for clinical decision-making.

To address these challenges, this paper introduces UltraAD, a framework that adapts the Vision-Language Model (VLM) CLIP for medical ultrasound using few-shot learning. UltraAD is designed to simultaneously perform precise lesion localization and fine-grained classification, maintaining robustness across diverse imaging hardware.

Methodology

UltraAD adapts the pre-trained CLIP model through several specialized architectural modules designed to handle the unique characteristics of ultrasound data:

1. Image-Aware Prompting Module

Standard VLMs often use static text prompts (e.g., "an ultrasound of a tumor"). UltraAD replaces these with dynamic, image-informed prompts. A "MiniNet" extracts features directly from the input image and injects them into the text embeddings. This ensures that the prompts are responsive to the specific visual context of the scan being analyzed.

2. Patch-Wise Image-Language Fusion (PIF)

For accurate localization, the model must understand local spatial details. The PIF module utilizes a cross-attention mechanism to fuse global image-level information with local patch-level tokens. This allows the model to "focus" on the exact boundaries of a lesion, improving the precision of the generated anomaly maps.

3. Memory-Boosted Classification

To support fine-grained classification with minimal data, UltraAD maintains a "memory bank" of few-shot samples (typically 4, 8, or 16 images). These samples are paired with expert text descriptions focusing on clinical features, such as "round shape" or "sharply demarcated margins." During inference, the model compares the query scan against this memory bank to refine its classification accuracy.

4. Multitask Learning Framework

The model is trained end-to-end using a joint loss function that combines segmentation loss (for localization) and cross-entropy loss (for classification). This multitask approach allows the two objectives to inform one another, leading to a more holistic understanding of the medical images.

Experimental Evaluation

The researchers evaluated UltraAD across three distinct breast ultrasound datasets to test its generalization capabilities:

  • BUS-UCLM: The primary dataset used for few-shot adaptation and training.
  • BUSI: A standard public dataset used for external validation.
  • BUSZS: A rigorous "in-house" dataset collected from six different ultrasound manufacturers (including Mindray, GE, and Philips) using both convex and linear probes. This dataset specifically tests the model's ability to bridge the domain gap between different hardware.

Key Results and Insights

UltraAD consistently outperformed state-of-the-art (SOTA) methods across all benchmarks, even with as few as four training examples:

  • Superior Anomaly Detection: In a 4-shot scenario on the challenging BUSZS dataset, UltraAD achieved a 95.9% AUROC, vastly outperforming general-purpose adaptation methods like AnomalyCLIP (76.6%).
  • Fine-Grained Accuracy: On the multi-class task (Normal vs. Benign vs. Malignant), UltraAD reached 78.9% AUROC with 4 shots. In contrast, other CLIP-adaptation methods like LP++ struggled, achieving only 54.4%.
  • Precise Localization: The model achieved a pixel-level AUROC of 88.3% on the BUSI dataset. Qualitatively, UltraAD produces cohesive, continuous regions in its heatmaps, avoiding the fragmented results common in baseline models.

Discussion and Future Work

The success of UltraAD highlights the potential of using text as a "scaffold" for medical image analysis. By leveraging CLIP’s pre-existing linguistic knowledge of medical terminology, the model can identify visual features that are difficult to learn from raw pixels alone in low-data regimes. Furthermore, its performance on the multi-machine BUSZS dataset suggests a high degree of robustness to hardware variations, a critical requirement for real-world clinical deployment.

Despite these strengths, the study is currently limited to breast ultrasound. Future research should explore the framework's applicability to other organs, such as the thyroid or liver. Additionally, while the memory bank is effective, automating the generation of high-quality expert descriptions could further enhance the system's scalability and ease of use in diverse clinical settings.

Summary updated

BibTeX
@inproceedings{zhou2025ultraad,
  author = {Yue Zhou and Yuan Bi and Wenjuan Tong and Wei Wang and Nassir Navab and Zhongliang Jiang},
  title = {{UltraAD: Fine-Grained Ultrasound Anomaly Classification via Few-Shot CLIP Adaptation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
  doi = {10.1007/978-3-032-04971-1\_59},
}
Figure