Metrics to Quantify Global Consistency in Synthetic Medical Images

Daniel Scholz, Benedikt Wiestler, Daniel Rueckert, Martin J. Menten

TL;DR

This paper introduces two new metrics to evaluate the "global consistency" of synthetic medical images, ensuring that different parts of a generated image (like the torso and legs in an MRI) are biologically coherent. By comparing explicit biological attributes (like BMI) or implicit self-supervised features across image patches, the researchers provide a way to quantify the biological plausibility of synthetic data on a per-image basis—something standard metrics like FID cannot do.

What Problem Does This Paper Address?

Generative models like GANs and Diffusion models are increasingly used to create synthetic medical images for data augmentation and inter-modality translation. However, these models can sometimes produce "Frankenstein" images: the local textures look realistic, but the global structure is nonsensical. For example, a synthetic whole-body MRI might show the upper body of a muscular 20-year-old and the lower body of an elderly person with high body fat.

Existing quality metrics, most notably the Fréchet Inception Distance (FID), are designed to measure how well a set of synthetic images matches the distribution of a set of real images. They aren't built to detect biological inconsistencies within a single image. This paper tackles the challenge of quantifying this "global consistency" to ensure synthetic data is actually useful for critical medical applications.

Methods

The authors propose two distinct strategies to measure consistency by comparing the superior (upper) and inferior (lower) halves of whole-body MRIs:

  1. Explicit Quantification: The researchers trained "referee" neural networks (ResNet50) to predict specific biological attributes—age, BMI, and body fat percentage—from image patches. Global consistency is measured by the absolute error between the attributes predicted for the top half versus the bottom half. If the predictions differ significantly, the image is flagged as inconsistent.
  2. Implicit Quantification: Recognizing that labeled data (like BMI) isn't always available, the authors developed a self-supervised approach. They used a SimCLR framework to train an encoder that creates feature embeddings. Consistency is then measured using the cosine similarity between the embeddings of the two image halves.
Fig. 1: We present a novel method to quantify global consistency in generated images. Most established image quality metrics, like FID [8], are not designed to measure the biological correctness of medical images. Conversely, our approach measures the global consistency of synthetic medical images, like whole-body MRIs, based on their explicit and implicit features.

Datasets

The study utilized a massive dataset of 44,205 whole-body MRIs from the UK Biobank population study.

  • Training/Validation: Used to train the referee networks and the self-supervised encoder.
  • Test Set: Used to evaluate the metrics.
  • "Inconsistent" Benchmark: To test if their metrics actually work, the authors created a synthetic "inconsistent" dataset by stitching together the top and bottom halves of different individuals from the test set.

Key Insights and Ideas

  • Biological Correlation as a Metric: The core "aha moment" is leveraging the fact that human biology is globally correlated. A person's body fat percentage in their legs is highly likely to correlate with the fat in their torso. If a GAN breaks this correlation, it has failed at biological realism.
  • Per-Image Analysis: Unlike FID, which requires a large batch of images to produce a single score, these metrics can evaluate a single synthetic image. This allows researchers to filter out specific "bad" samples from a generated dataset.
  • Attribute Sensitivity: The study found that BMI and body fat percentage are much more reliable markers for consistency than age. This makes sense biologically, as different organs and body parts can appear to "age" at different rates, whereas body composition is more uniform.
Visualizing the explicit and implicit strategies for assessing global consistency.

Key Results

The authors compared their metrics against FID using their "stitched" inconsistent dataset:

  • Sensitivity: The Explicit metric was highly sensitive, showing a mean error of 0.09 for consistent images versus 0.24 for inconsistent ones.
  • Implicit Performance: The self-supervised Implicit metric also successfully distinguished the groups (similarity of 0.59 vs 0.37), proving it is a viable fallback when labels are missing.
  • Comparison to FID: While FID did increase for inconsistent images (from 14.10 to 16.10), the change was much less pronounced than in the proposed metrics, suggesting FID is less capable of catching these specific biological errors.
  • StyleGAN2 Evaluation: When testing a StyleGAN2 model trained on the UK Biobank, the metrics showed that the model was surprisingly good at maintaining global consistency, producing images that nearly matched the consistency scores of real MRIs.

Limitations and Future Work

The primary limitation is that the Explicit method requires high-quality labels (age, BMI) for training the referee networks, which may not exist for all medical datasets. While the Implicit method bypasses this, it is slightly less sensitive.

Future work includes extending these metrics to 3D volumes, which presents a significant computational challenge for self-supervised training like SimCLR. Additionally, the authors suggest that these referee networks could eventually be integrated directly into the training process of generative models (e.g., as part of the loss function) to force the models to produce more biologically plausible results from the start.

Summary updated

BibTeX
@inproceedings{scholz2023metrics,
  author = {Daniel Scholz and Benedikt Wiestler and Daniel Rueckert and Martin J. Menten},
  title = {{Metrics to Quantify Global Consistency in Synthetic Medical Images}},
  booktitle = {DGM4MICCAI},
  year = {2023},
  doi = {10.1007/978-3-031-53767-7\_3},
}
Figure