Skip to main content
QUICK REVIEW

[Paper Review] XReal: Realistic Anatomy and Pathology-Aware X-ray Generation via Controllable Diffusion Model

Anees Ur Rehman Hashmi, Ibrahim Almakky|arXiv (Cornell University)|Mar 14, 2024
AI in cancer detectionComputer Science3 citations
TL;DR

XReal is a lightweight, controllable diffusion model that generates clinically realistic chest X-ray images by integrating anatomy and pathology masks for precise spatial control over organ location and disease manifestation. It outperforms state-of-the-art models, achieving 13% and 10% gains in anatomy and pathology realism, respectively, in expert radiologist evaluations, and releases the BiomedCXR dataset with paired anatomical and pathological annotations.

ABSTRACT

Large-scale generative models have demonstrated impressive capabilities in producing visually compelling images, with increasing applications in medical imaging. However, they continue to grapple with hallucination challenges and the generation of anatomically inaccurate outputs. These limitations are mainly due to the reliance on textual inputs and lack of spatial control over the generated images, hindering the potential usefulness of such models in real-life settings. In this work, we present XReal, a novel controllable diffusion model for generating realistic chest X-ray images through precise anatomy and pathology location control. Our lightweight method comprises an Anatomy Controller and a Pathology Controller to introduce spatial control over anatomy and pathology in a pre-trained Text-to-Image Diffusion Model, respectively, without fine-tuning the model. XReal outperforms state-of-the-art X-ray diffusion models in quantitative metrics and radiologists' ratings, showing significant gains in anatomy and pathology realism. Our model holds promise for advancing generative models in medical imaging, offering greater precision and adaptability while inviting further exploration in this evolving field. The code and pre-trained model weights are publicly available at https://github.com/BioMedIA-MBZUAI/XReal.

Motivation & Objective

  • To address the limitations of text-only conditioning in medical diffusion models, which often lead to anatomical hallucinations and poor spatial control over pathology location.
  • To enable precise, clinically relevant control over organ positioning and disease manifestation in synthetic chest X-ray generation.
  • To develop a lightweight, non-fine-tuning method that integrates spatial control into pre-trained text-to-image diffusion models while preserving their original knowledge.
  • To evaluate clinical realism beyond standard metrics like FID, using expert radiologist assessments and anatomical consistency measures.
  • To release a large-scale, high-quality dataset (BiomedCXR) with paired X-ray images, anatomy masks, and pathology annotations for medical imaging research.

Proposed method

  • XReal employs a conditional diffusion model that takes both text prompts and spatial control maps (anatomy and pathology masks) as input to guide image generation.
  • It uses a lightweight adapter module to inject spatial control into a pre-trained text-to-image diffusion model without fine-tuning, preserving the model's original capabilities.
  • The method leverages cross-attention mechanisms to align textual descriptions with spatially grounded anatomy and pathology masks at each denoising step.
  • A dual-mask conditioning strategy enables separate control over anatomical structures and pathological regions, allowing precise localization of diseases.
  • The model is trained end-to-end on a curated dataset of real X-rays, with anatomy masks from a segmentation model and pathology bounding boxes from the VinDr-CXR dataset.
  • Image editing is enabled via latent space manipulation, allowing pathology addition or removal while preserving anatomical structure.

Experimental results

Research questions

  • RQ1Can spatial control via anatomy and pathology masks significantly improve the clinical realism of generated chest X-ray images compared to text-only conditioning?
  • RQ2Does a lightweight, non-fine-tuning approach to integrating spatial control outperform existing methods like ControlNet in anatomical and pathological accuracy?
  • RQ3To what extent do standard metrics like FID correlate with expert-verified clinical realism in medical image generation?
  • RQ4Can the proposed method enable effective image editing for counterfactual diagnosis and radiologist training?
  • RQ5How does the performance of XReal compare to state-of-the-art models in terms of anatomical consistency and pathology localization?

Key findings

  • XReal achieved a 13% gain in anatomy realism and a 10% gain in pathology realism over baseline models in expert radiologist evaluation, with scores of 4.73 and 4.44 out of 5, respectively.
  • Despite a lower Fréchet Inception Distance (FID) score, ControlNet produced images with inferior clinical realism, as confirmed by lower Dice, SSIM, and F1 scores, indicating FID is insufficient for medical realism assessment.
  • XReal outperformed ControlNet in both anatomical and pathological control, using only 55M parameters compared to ControlNet’s 217M, and required just one forward pass versus over 100 for ControlNet.
  • The model successfully enabled image editing, including pathology removal and localized infusion, demonstrating utility for counterfactual diagnosis and medical education.
  • The BiomedCXR dataset, containing paired X-ray images, anatomy masks, and pathology annotations, was released publicly to support future research in medical imaging.
  • XReal surpassed real X-ray images in expert evaluation for both anatomy (4.12 vs. 4.73) and pathology realism (4.00 vs. 4.44), suggesting synthetic data can exceed real data in clinical relevance under controlled generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.