WAD-Div
Rethinking Diversity Metrics in Medical Imaging with Wasserstein Distance
BVM 2026
Find the nearest images
Choose an image. Its closest neighbours each contribute one distance.
Selected image

Nearest neighbours by feature distance
1Radiograph 061.687
2Radiograph 071.947
3Radiograph 082.134
Distance from the selected image
Select a neighbour to trace its distance.Twelve public chest radiographs from the NIH Clinical Center. Neighbour distances use RadImageNet ResNet-50 features.
Build the distance distribution
Each image contributes its k nearest neighbours. See exactly where their distances enter the histogram.


Neighbour-distance histogram
Read the bin counts
| Feature distance | Selected image | Other images shown | Total shown |
|---|
Radiograph 01 and its three neighbours
Radiograph 06 (1.687), Radiograph 07 (1.947), Radiograph 08 (2.134) enter the histogram once each. Across the twelve images, three neighbours per image contribute 36 directed distances. Their mean is 1.591, the WAD-Div score against a zero reference.
Read the bin counts for this example
| Feature distance | Radiograph 01 | All twelve images |
|---|---|---|
| 0–0.3 | 0 | 0 |
| 0.3–0.6 | 0 | 0 |
| 0.6–0.9 | 0 | 0 |
| 0.9–1.2 | 0 | 2 |
| 1.2–1.5 | 0 | 14 |
| 1.5–1.8 | 1 | 9 |
| 1.8–2.1 | 1 | 10 |
| 2.1–2.4 | 1 | 1 |
| 2.4–2.7 | 0 | 0 |
| 2.7–3 | 0 | 0 |
This teaching example uses a separate set of twelve radiographs and 2,048 pooled features per image. The NIH Clinical Center provided the images. Wang et al., ChestX-ray8 (CVPR 2017) · NIH image use and attribution · Image sources and feature extraction
Choose what distance means
The feature encoder defines what counts as similar. The reference determines how to read the score.
Embed the images
Map each image or volume into a feature space with an encoder suited to its modality.
Collect local distances
For each sample, take its distances to the k nearest other samples. Pool them into one distribution.
Compare distributions
Use the one-dimensional Wasserstein distance to measure the separation between the pooled distances and the chosen reference.
Reference distributions
Complete collapse
Every reference distance is zero. In this case the raw score equals the mean observed neighbour distance. Larger values indicate more spread in that feature space.
A low-variability baseline
An exponential distribution places most of its weight near zero and allows some larger distances. The paper tests how the reference choice affects the diversity curves.
A comparison dataset
Compute a second dataset’s neighbour-distance distribution using the same encoder and k. A smaller distance means the two distributions of local spacing are more alike.
Try the metric on repeated feature positions
Keep 24 observations and vary how many distinct positions they occupy.
Feature positions
A larger circle holds more observations.
Cumulative neighbour distances
This example uses invented coordinates. Distances are in arbitrary feature units. Metric implementation
Diversity rises with unique samples
The study varied how many distinct chest radiographs and lung CT volumes were present in each dataset.

Read the figure
Left column
Raw scores generally rise as unique samples are added. The lung CT curves fluctuate above 50 unique volumes, and the two modalities have different scales.
Right column
The normalized scores approach one as the number of unique samples increases. The transformation compresses differences near the upper end of the scale.
Why use features?
In separate augmentation experiments, small image changes moved pixel-based MS-SSIM even when the underlying anatomy was the same.
Resources and citation
Research resources
Cite this work
@inproceedings{seyfarth2026waddiv,
title = {Rethinking Diversity Metrics in Medical Imaging with {Wasserstein}
Distance},
author = {Seyfarth, Marvin and Dar, Salman U. H. and Engelhardt, Sandy},
booktitle = {Bildverarbeitung für die Medizin 2026},
series = {Informatik aktuell},
publisher = {Springer Vieweg},
pages = {420--426},
year = {2026},
doi = {10.1007/978-3-658-51100-5_83}
}