Manuscript Offprint

arXiv:2608.26033

UltraPIPS: Improving model perception in B-mode ultrasound with foundation models

Tal Grutman, Tali Ilovitsh

Tal Grutman ID^{ID} and Tali Ilovitsh ID^{ID}

School of Biomedical Engineering, Tel Aviv University, Tel Aviv, Israel

ilovitsh@tauex.tau.ac.il

Abstract. In medical imaging, it is common to use learned perceptual image patch similarity (LPIPS) to compare images semantically in feature space. Although backbones pretrained on natural images are widely used for LPIPS computation, B-mode ultrasound images possess distinct speckle patterns and acoustic-specific image statistics that are fundamentally different from natural images and even from other images in radiology. Consequently, we propose that domain-specific models are needed to measure perceptual similarity in ultrasound data, a finding which is not necessarily the case for other imaging modalities. We compare LPIPS metrics across downstream tasks like classification, segmentation and reconstruction using natural image, medical generalist and ultrasound backbone models and show that selection of LPIPS backbone is a non-trivial design choice. In particular, the ultrasound backbone models were more correlated with downstream performance of supervised models than classical and natural image models, and optimization of the LPIPS loss with an ultrasound backbone achieved a strong balance between reconstruction quality and realism. Our code is available at https://github.com/talg2324/UltraPIPS and introduces the UltraPIPS library, a set of LPIPS metrics based on the open-source foundation models analyzed in this paper.

Keywords: Ultrasound · Foundation models · Perceptual similarity · Computer vision

1 Introduction

Learned perceptual image patch similarity (LPIPS) [27] is an important perceptual metric that uses a pretrained image encoder to measure distance between image patches in the encoder's feature space. The advantage of this approach is that the resulting metric is grounded by the downstream task on which the encoder was trained, with the deep features extracted by the metric incorporating rich context with which to perceive the difference between patches. LPIPS is highly correlated to downstream classification and detection tasks, suggesting that it is a soft middle-ground between human perception and performance of deep models. One reason for this is that the LPIPS backbone models were

T. Grutman, T. Ilovitsh

pretrained in self-supervised or supervised learning tasks that require global context to be embedded in the feature space. This provides a natural improvement from metrics like standard L2L_{2} or structural similarity index measure (SSIM) [24]. Since it was first introduced, loss functions and evaluation criteria based on LPIPS have become well-established in image synthesis [18], implicit neural representations [3], and image reconstruction [10,20]. LPIPS is widely used in computer vision, and has been extended into medical imaging [4,2] often using the RadImageNet [13] backbone.

There is no consensus on the importance of the backbone model to the effectiveness of the LPIPS metric, and the choice of backbone is not well studied in medical imaging. Backbone choice is conceptually related to transfer learning, where several studies found that in-domain training or pretraining added marginal performance or even performed worse than models pretrained on ImageNet [25,26]. More specifically in the context of LPIPS, it has been shown that in-domain LPIPS backbones did not improve MRI reconstruction [1] compared to ImageNet ones. These findings challenge the necessity of in-domain pretraining, but other notable works have found that in-domain medical image models learn vastly different features with much higher relevance in comparison to ImageNet-based models [13,17].

Some of the discrepancies in results can be attributed to the various domains within medical imaging, each possessing highly unique spatial resolutions, dynamic range, and signal-to-noise ratio. Ultrasound is well-known to be an especially difficult imaging domain, and foundation models trained exclusively on ultrasound images have been shown to outperform general-purpose radiology models [4,14] on a variety of tasks. LPIPS is particularly important in ultrasound models because deep backbones can accommodate the unique speckle characteristics common to B-mode ultrasound, which are quickly lost with pixel-wise losses like MSE [10] despite carrying important diagnostic meaning [23]. Thus, LPIPS is widely used for training and evaluation of reconstruction-oriented ultrasound models [3,10,20]. We hypothesize that ultrasound reconstruction tasks like these can be improved by foundation models built for ultrasound images to power their LPIPS metrics, as they are better accustomed to the unique properties of ultrasound.

In this work, we investigate the importance of ultrasound foundation models in perceptual similarity of B-mode ultrasound images compared to models trained on natural or general medical images. We utilize open-source, pretrained models and datasets freely available on the web to challenge the usage of non-ultrasound backbones in LPIPS metrics by studying the downstream relationship of such LPIPS distances with classification, segmentation, and image reconstruction. We test feasible candidates for LPIPS metrics in ultrasound and open-source the UltraPIPS library which contains multiple backbones and tests for perceptual ultrasound metrics.

References (28)