Metrics to Quantify Global Consistency in Synthetic Medical Images

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

Introduction

Generative AI has reached a level of sophistication where synthetic medical images are increasingly indistinguishable from real ones to the human eye. These images hold immense potential for data augmentation, privacy-preserving research, and medical education. However, standard evaluation frameworks—most notably the Fréchet Inception Distance (FID)—primarily focus on "fidelity" (visual realism) and "diversity" (the range of images produced).

What these metrics often overlook is global consistency: the biological logic that ensures different parts of a single image belong to the same individual. For instance, a synthetic whole-body MRI might generate a realistic torso and realistic legs, but if the torso suggests a young, athletic individual while the legs suggest an elderly patient with high body fat, the image is a "Frankenstein" creation—biologically impossible and potentially misleading for downstream tasks. This paper introduces two novel metrics designed to quantify this biological "togetherness" on a per-image basis.

Methodology

To address the lack of consistency-specific metrics, the researchers developed two distinct strategies to act as "referees" for synthetic data.

1. Explicit Quantification

This approach utilizes supervised learning to predict specific biological attributes. The researchers trained ResNet50 neural networks to estimate Age, Body Mass Index (BMI), and Body Fat Percentage from image patches. By dividing a whole-body MRI into a "superior" (top) and "inferior" (bottom) half, the model predicts these attributes for both sections independently. A consistent image should yield similar predictions for both halves; a significant discrepancy (e.g., a BMI of 22 in the top half and 35 in the bottom) flags the image as biologically inconsistent.

2. Implicit Quantification

Recognizing that labeled data (like known BMI) is not always available, the authors developed a self-supervised alternative using SimCLR. This method trains an encoder to recognize that different regions of the same image should share similar "latent" features. Consistency is measured by calculating the cosine similarity between the feature vectors of the two halves. This allows the model to "sense" biological harmony without requiring explicit labels for specific traits.

Unlike FID, which requires a large batch of images to calculate a distribution-level score, both the explicit and implicit metrics can evaluate a single image at a time, providing a granular tool for quality control.

Experimental Setup and Datasets

The study leveraged a massive dataset of 44,205 whole-body MRIs from the UK Biobank. For this proof-of-concept, 3D volumes were reduced to 2D coronal slices at the intensity center of mass. The data was split into training (36,013), validation (~4,000), and test (~4,000) sets.

To validate the metrics, the researchers created a "ground truth" set of inconsistent images by stitching together the top and bottom halves of different individuals from the test set. This created a clear baseline to see if the metrics could distinguish between naturally occurring biological consistency and artificial "Frankenstein" images.

Key Results and Insights

The experiments revealed several critical findings regarding how we evaluate synthetic medical data:

  • FID's Blind Spot: While FID scores did change slightly when comparing consistent vs. inconsistent images (14.10 vs. 16.10), the relative difference was marginal. FID proved largely insensitive to the specific structural errors found in stitched images.
  • Metric Sensitivity: The proposed metrics showed much clearer separation. In the explicit test, consistent images had a normalized error of 0.09, which jumped to 0.24 for inconsistent images. In the implicit test, cosine similarity dropped from 0.59 (consistent) to 0.37 (inconsistent).
  • Attribute Reliability: Not all biological markers are equally effective for consistency checks. Body Fat Percentage and BMI were found to be more reliable indicators than Age, likely because age-related physiological changes are less uniformly distributed across the body compared to metabolic markers.
  • Generative Model Performance: When evaluating a StyleGAN2 model, the metrics showed that the generator was surprisingly adept at maintaining global consistency, producing images with an explicit error of 0.09—matching the performance of real images.

Limitations and Future Work

The current study focused on 2D coronal slices to simplify the initial validation. However, medical imaging is inherently 3D. While the authors note that extending these metrics to 3D volumes is theoretically straightforward, the computational cost of training self-supervised models like SimCLR on 3D data is significant.

Furthermore, the "Explicit" method is dependent on the availability of labeled datasets to train the initial referee networks. Future research will focus on expanding these methods to other modalities, such as CT and Ultrasound, and developing more robust implicit models that can generalize across different anatomical structures without the need for extensive labeling.

Conclusion

As generative models become more prevalent in clinical research, the need for metrics that go beyond surface-level realism is paramount. By quantifying global consistency, this work provides a framework to ensure that synthetic medical data is not just visually convincing, but biologically sound.

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