PIE: Simulating Disease Progression via Progressive Image Editing

Kaizhao Liang, Xu Cao, Kuei-Da Liao, Tianren Gao, Wenqian Ye, Zhengyu Chen, Jianguo Cao, Tejas Nama, Jimeng Sun · Submission to ICLR 2024 · Rejected

TL;DR

Modeling how diseases evolve in medical images usually requires dense longitudinal scans from individual patients—data that is notoriously scarce. Progressive Image Editing (PIE) bypasses this bottleneck by using text-to-image latent diffusion models to iteratively simulate disease progression from a single baseline image and clinical text prompts. By framing multi-step diffusion refinement as gradient descent with an exponentially decaying learning rate, PIE produces realistic, personalized progression trajectories that veteran physicians verified 76.2% of the time.

What Problem Does This Paper Address?

Predicting disease progression over time is vital for clinical diagnosis, proactive treatment planning, and medical education. However, training computer vision models to forecast disease visual changes has been bottlenecked by the real-world healthcare landscape:

  1. Lack of longitudinal data: Patients rarely undergo consistent, repeated imaging at the same hospital across all stages of a disease, leaving massive temporal gaps.
  2. Patient heterogeneity: Diseases progress at wildly different speeds and severities across individuals, making static or global regression models inaccurate.
  3. Shortcomings of standard image editing: Existing image-to-image diffusion models are tuned for single-step edits (which often alter unrelated anatomical features) or video generation (which quickly degrades into unrealistic noise over multiple steps).

PIE addresses this challenge by formulating disease progression simulation using non-sequential, discrete datasets guided by clinical report context.

Methods

PIE leverages the invertibility of Denoising Diffusion Implicit Models (DDIM) within a latent diffusion framework (Stable Diffusion fine-tuned on medical imaging domains):

  1. Iterative Refinement Loop ($PIE^{(n)}$): Given an initial image $x_0^{(0)}$ and target text conditioning $y$ (encoded using a pre-trained CLIP text encoder from clinical reports), PIE recursively adds partial noise (strength $\gamma$) and denoises conditioned on $y$. The output of step $n-1$ serves as the input to step $n$.
  2. Region-of-Interest (ROI) Mask Guidance: To prevent altering patient-specific anatomy, PIE integrates a domain-specific Segment Anything Model (SAM) to isolate pathology regions ($M_{\text{ROI}}$). Linear interpolation factors ($\beta_1, \beta_2$) balance modifications within vs. outside the disease region.
  3. Theoretical Convergence: The authors show that recursive DDIM editing corresponds to gradient descent toward the objective $\max \log p(x | y)$, where the effective step size decays exponentially with step $n$. This guarantees that total semantic drift is bounded and step-to-step changes naturally taper to a stable convergence point.
x_0^(0) (Base Image) ──> [ DDIM Inversion + Text Denoising ] ──> ROI Blending ──> x_0^(1) ──> ... ──> x_0^(N)
                                     ▲
                       Text Conditioning (Clinical Report y)

Datasets

The authors validated PIE across non-longitudinal and longitudinal benchmarks:

  • CheXpert: Large-scale chest radiograph dataset used for chest X-ray progression (Cardiomegaly, Edema, Pleural Effusion, Consolidation).
  • Kaggle Diabetic Retinopathy Detection: Fundus photography for progressive retinal disease simulation.
  • ISIC 2018 / HAM10000: Dermoscopic images used for skin lesion/melanocytic nevi progression.
  • BrixIA COVID-19 Dataset: A longitudinal chest X-ray dataset with multi-day scans per patient, used to benchmark simulated edema trajectories directly against real-world patient outcomes.

Key Insights and Ideas

  • Simulating time without time-series data: PIE demonstrates that continuous disease trajectories can be synthesized from purely cross-sectional datasets by modulating diffusion noise levels and conditioning text.
  • Controlled, decaying step sizes: Standard generative editing tends to cause cumulative hallucinations over repeated iterations. Proving that the DDIM refinement behaves like gradient descent with an exponentially decaying learning rate explains why PIE can smoothly expand pathologies (e.g., heart enlargement in cardiomegaly) while keeping ribs and lung boundaries steady.
  • Co-occurring disease modeling: Rather than progressing isolated conditions, PIE can handle complex prompt combinations (e.g., simulating Cardiomegaly, Edema, and Pleural Effusion simultaneously) in 60% of test cases evaluated.

Key Results

PIE was compared against state-of-the-art baselines: Stable Diffusion Video and Style-Based Manifold Extrapolation.

  • Alignment vs. Realism: PIE achieved dramatically higher disease classification confidence while preserving high visual fidelity (CLIP-I score):
  • Chest X-ray: Confidence 0.690 (PIE) vs. 0.389 (SD Video) and 0.054 (Extrapolation); CLIP-I of 0.968.
  • Retinopathy: Confidence 0.807 (PIE) vs. 0.121 (SD Video) and 0.074 (Extrapolation); CLIP-I of 0.992.
  • Skin Lesions: Confidence 0.453 (PIE) vs. 0.201 (SD Video) and 0.226 (Extrapolation); CLIP-I of 0.958.
  • Real Longitudinal Fidelity: When comparing PIE’s simulated 7-day trajectories against real longitudinal BrixIA COVID-19 patient scans, the Mean Absolute Error in pathology confidence was just 0.0658.
  • Clinical User Study: A survey of 35 veteran physicians and radiologists (average 14.4 years of clinical experience) revealed that 76.2% of generated progression sequences aligned with clinical expectations. Furthermore, physicians achieved higher pathology detection recall (0.662 vs. 0.415) and F1 scores (0.549 vs. 0.455, $p = 0.0038$) on PIE-edited scans compared to real baseline scans, indicating that disease features were distinctly expressed.

Limitations and Future Work

  • Co-occurrence degradation: Performance on multiple co-occurring conditions, while feasible, remains slightly less consistent than single-disease simulations.
  • Text conditioning limits: The framework currently relies on descriptive textual clinical reports; it does not yet integrate structured multi-modal patient metadata such as laboratory biomarkers, genomics, or longitudinal vital sign trajectories.
  • Future Directions: The authors propose incorporating fine-grained physiological recordings and continuous chemical biomarkers into diffusion conditioning to allow even more granular control over simulated disease timelines and therapy response forecasting.

Summary updated

BibTeX
@misc{liang2023pie,
  author = {Kaizhao Liang and Xu Cao and Kuei-Da Liao and Tianren Gao and Wenqian Ye and Zhengyu Chen and Jianguo Cao and Tejas Nama and Jimeng Sun},
  title = {{PIE: Simulating Disease Progression via Progressive Image Editing}},
  year = {2023},
  eprint = {2309.11745},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.11745},
}

Loading related content...

Figure