vbeam: a Fast and Differentiable Beamformer for Optimizing Ultrasound Imaging

Authors:

Abstract
We present vbeam: a new open-source beamforming library that provides fast parallel beamforming computation on the CPU and GPU for modern imaging setups. It is auto-differentiable which allows for incorporating image optimization and machine learning (ML) into the beamformer, and vice versa. The library can be used from either Python or MATLAB and aims to be a beamforming research tool which can be used standalone or integrated with tools, such as USTB, Field II and MUST.The vbeam library is implemented on top of Google’s JAX ML library but is extendable to other backends, such as Tensorflow and PyTorch. This backend handles all device computation, and allows for taking the gradient of the beamformer. The vbeam library provides a functional and extendable API for defining beamformers, currently supporting both conventional virtual source wavefront models and a time-domain implementation of REFoCUS.As an example, we demonstrate that vbeam can be used with gradient descent to optimize an adaptive apodization function that minimize the variance of the delayed signal across receiving elements.Beamformers defined in vbeam processes in the order of 10 billion points per second on a Nvidia A100 GPU, depending on the imaging setup. Our time-domain implementation of REFoCUS beamforms an image in 850 milliseconds on average. When additionally modeling a 150 × 150 heterogeneous speed-of-sound map it takes 1920 milliseconds on average. A single gradient descent step for optimizing the adaptive apodization function takes 120 milliseconds on average.