Effective Sample Pair Generation for Ultrasound Video Contrastive Representation Learning

Yixiong Chen, Chunhui Zhang, Li Liu, Cheng Feng, Changfeng Dong, Yongfang Luo, Xiang Wan

Abstract

Most deep neural networks (DNNs) based ultrasound (US) medical image analysis models use pretrained backbones (e.g., ImageNet) for better model generalization. However, the domain gap between natural and medical images causes an inevitable performance bottleneck. To alleviate this problem, an US dataset named US-4 is constructed for direct pretraining on the same domain. It contains over 23,000 images from four US video sub-datasets. To learn robust features from US-4, we propose an US semi-supervised contrastive learning method, named USCL, for pretraining. In order to avoid high similarities between negative pairs as well as mine abundant visual features from limited US videos, USCL adopts a sample pair generation method to enrich the feature involved in a single step of contrastive optimization. Extensive experiments on several downstream tasks show the superiority of USCL pretraining against ImageNet pretraining and other state-of-the-art (SOTA) pretraining approaches. In particular, USCL pretrained backbone achieves fine-tuning accuracy of over 94% on POCUS dataset, which is 10% higher than 84% of the ImageNet pretrained model.

The Challenge of Domain Gap and Similarity Conflict

Deep learning models for medical imaging typically rely on weights pretrained on ImageNet. However, the vast difference between natural images and medical ultrasound (US) scans creates a significant domain gap that limits model performance. While self-supervised contrastive learning (e.g., SimCLR) is a popular alternative, it faces unique hurdles when applied to video data.

In standard contrastive learning, different frames are treated as "negative pairs" and pushed apart in the feature space. In ultrasound videos, however, frames from the same clip are often nearly identical. Forcing the model to treat these as negatives leads to a similarity conflict, where the model is penalized for recognizing inherent similarities between semantically identical samples.

Methods: Ultrasound Contrastive Learning (USCL)

To overcome these issues, we introduce USCL, a framework that leverages a novel Sample Pair Generation (SPG) strategy.

Comparison of similarity conflict in standard contrastive learning vs. the proposed effective sample pair generation.

As illustrated in Figure 3, standard methods (a) suffer from similarity conflict. Our SPG strategy (b) treats an entire video as a semantic cluster. It ensures that positive pairs are sampled from the same video, while negative pairs are drawn from entirely different videos. To further enrich the feature space, we use Mixup interpolation. By sampling an anchor frame and two perturbation frames from a video, we create synthetic positive pairs. This forces the model to learn the "volume" of a video's feature space rather than just discrete points, leading to more robust representations.

The US-4 Dataset

We curated the US-4 dataset as a domain-specific benchmark for pretraining. It consists of 23,231 images sampled from 1,051 ultrasound videos across four sub-datasets: Butterfly (lung), CLUST (liver), Liver Fibrosis, and COVID19-LUSMS (lung).

Representative ultrasound images from the four sub-datasets comprising the US-4 benchmark.

Key Results and Insights

  • Significant Accuracy Gains: On the POCUS lung ultrasound dataset, the USCL-pretrained ResNet18 achieved 94.2% accuracy, a massive 10% improvement over the 84.2% achieved by standard ImageNet pretraining.
  • Superiority over SOTA: USCL outperformed other state-of-the-art methods, including SimCLR, MoCo v2, and FixMatch, across classification, detection, and segmentation tasks.
  • Cross-Organ Transferability: Despite being pretrained on lung and liver data, USCL outperformed ImageNet on breast ultrasound tasks (UDIAT-B). This suggests that the model learns fundamental "ultrasound texture" features that are highly transferable across different organs.
  • Clinical Relevance: Grad-CAM visualizations show that USCL-pretrained models naturally focus on clinically significant markers (like A-lines or pleural lesions), whereas ImageNet models often focus on irrelevant background noise.

Conclusion

USCL effectively bridges the domain gap in ultrasound imaging by treating videos as natural clusters and resolving similarity conflicts through specialized sample pair generation. By pretraining directly on the ultrasound domain, we achieve state-of-the-art performance across multiple diagnostic tasks. Future work will focus on expanding the US-4 dataset to include a wider variety of anatomical regions and disease states.

Summary updated

BibTeX
@inproceedings{chen2021effective,
  author = {Yixiong Chen and Chunhui Zhang and Li Liu and Cheng Feng and Changfeng Dong and Yongfang Luo and Xiang Wan},
  title = {{Effective Sample Pair Generation for Ultrasound Video Contrastive Representation Learning}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2021},
  doi = {10.1007/978-3-030-87237-3\_60},
}
Figure