Skip to main content

UltraBench

arXiv OpenReview

UltraBench is a standardized benchmark of 14 different convex ultrasound image classification and semantic segmentation tasks (7 classification and 7 segmentation tasks) drawn from the 10 different publicly available datasets covering 11 regions of the body. This repository contains the processing scripts to transform raw datasets from their original sources into a standardized format for training and evaluating machine learning models.

This benchmark was published alongside the article Revisiting Data Augmentation for Ultrasound Images. If you use this benchmark in your research please cite this article and the articles for each of the included datasets. Instructions for how to do so are provided at the end.

Datasets and tasks included in UltraBench

Motivation

A common limitation of studies on ultrasound image analysis using machine learning is a lack of evaluations across multiple domains. However, this is made difficult by a lack of ultrasound image analysis tasks in existing medical image analysis benchmarks, such as MedMNIST, MedSegBench and the Medical Segmentation Decathlon. To address this issue, we created UltraBench. Our aim is to make it easier for researchers by standardizing the preprocessing of many publicly available ultrasound datasets and providing tools (e.g., dataset implementations for common deep learning frameworks) that (a) reduce the effort required to use them and (b) make it easier for researchers to compare results between papers.

Installation

Install UltraBench using:

pip install ultrabench

Getting Started

UltraBench is packaged as a commandline application. After installing, run ultrabench --help to get started.

For more information, checkout the Documentation on the wiki!

Current Datasets & Tasks

The following table contains the list of supported datasets and tasks. Click on the links to checkout the appropriate sections of the documentation or on the article/repository links to visit the original publications. We do not have the rights to republish the datasets, but links to the original articles and datasets are included here and in the Documentation.

Dataset Region Classification Tasks Segmentation Tasks
Annotated Ultrasound Liver (article, data) Liver Liver mass classification Liver segmentation, Liver mass segmentation
Butterfly (data) Multi-region Region classification
CAMUS (article, data) Heart Image quality classification Cardiac region segmentation
Dataset of B-mode fatty liver ultrasound images (article, data) Liver NFLD classification
Gallbladder Cancer Ultrasound (GBCU) (article, data) Gallbladder Gallbladder tumor classification
Multi-Modality Ovarian Tumor Ultrasound (MMOTU) (article, data) Ovaries Ovarian tumor classifcation Ovarian tumor segmentation
Open Kidney Ultrasound (article, data) Kidney Kidney capsule segmentation
Point-of-care Ultrasound (POCUS) (article, data) Lung COVID-19 classification
PSFHS (article, data) Fetus Fetal head and pubic symphysis segmentation
Stanford Thyroid (data) Thyroid Thyroid nodule segmentation

Contributing

We would love for this benchmark to grow and flourish into a resource that anyone with an interest in machine learning for ultrasound analysis can pick up and use quickly and easily. Any help addressing bugs, contributing new datasets or tasks, or any other improvements are welcome and appreciated! I only ask that you respect the community guidelines laid out in the CODE_OF_CONDUCT.md. For more information on how to contribute, checkout out the Documentation.

UltraBench is built using uv. For the best experience, you can use the development container configuration (see DEVCONTAINER.md) to setup an isolated development environment with uv and all the necessary dependencies already installed. Otherwise, you can install uv and then following the commands below. To ensure that your code meets the style guidelines etc., this also installs and initializes the optional development dependencies.

uv sync
uv sync --group examples  # Install the dependencies for the examples, if required
source .venv/bin/activate
nbstripout --install
pre-commit install

Questions

If you have any questions, please open an issue or contact us via email.

How to Cite UltraBench

If you use UltraBench in your research, please cite our article Revisiting Data Augmentation for Ultrasound Images and the articles for each of the datasets. This ensures that the work of the authors of the original datasets is properly acknowledged, helps more people find the benchmark and encourages us to continue maintaining and improving it!

@article{
  tupper2025,
  title={Revisiting Data Augmentation for Ultrasound Images},
  author={Adam Tupper and Christian Gagn{\'e}},
  journal={Transactions on Machine Learning Research},
  issn={2835-8856},
  year={2025},
  url={https://openreview.net/forum?id=iGcxlTLIL5},
  note={}
}

Metadata

Release files for ultrabench 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ultrabench 1.0.1
File Size Uploaded Provenance Actions
ultrabench-1.0.1.tar.gz 12.8 MB Without provenance Details for ultrabench-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ultrabench 1.0.1
File Interpreter ABI Platform Actions
ultrabench-1.0.1-py3-none-any.whl Python 3 none any Details for ultrabench-1.0.1-py3-none-any.whl

Total release size: 12.8 MB

Release files / ultrabench-1.0.1.tar.gz

Download URL ultrabench-1.0.1.tar.gz
Size 12.8 MB
Tags Source
SHA-256 checksum
How to use checksums
a128ead42e80ee2db65144e559a2468dfdb53055046c1e76cf1b91d79a0f516c
BLAKE2b-256 checksum
How to use checksums
22cf2c7ffd247aab2fe88e859d7e29168fa886be4f0fd6ef761b25ef84194f2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ultrabench-1.0.1-py3-none-any.whl

Download URL ultrabench-1.0.1-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8130d87cd0669e77ab4fd02db3e2c62ac85a6ce67679eadef00d504f58b5cd9a
BLAKE2b-256 checksum
How to use checksums
003c81080c1d51dcf996ab0b4929e8d63e1211cef8d105744f07117d7c706156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ultrabench 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page