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

Abstract

Disease progression simulation is a crucial area of research that has significant implications for clinical diagnosis, prognosis, and treatment. One major challenge in this field is the lack of continuous medical imaging monitoring of individual patients over time. To address this issue, we develop a novel framework termed Progressive Image Editing (PIE) that enables controlled manipulation of disease-related image features, facilitating precise and realistic disease progression simulation. Specifically, we leverage recent advancements in text-to-image generative models to simulate disease progression accurately and personalize it for each patient. We theoretically analyze the iterative refining process in our framework as a gradient descent with an exponentially decayed learning rate. To validate our framework, we conduct experiments in three medical imaging domains. Our results demonstrate the superiority of PIE over existing methods such as Stable Diffusion Walk and Style-Based Manifold Extrapolation based on CLIP score (Realism) and Disease Classification Confidence (Alignment). Our user study collected feedback from 35 veteran physicians to assess the generated progressions. Remarkably, 76.2% of the feedback agrees with the fidelity of the generated progressions. To our best knowledge, PIE is the first of its kind to generate disease progression images meeting real-world standards. It is a promising tool for medical research and clinical practice, potentially allowing healthcare providers to model disease trajectories over time, predict future treatment responses, and improve patient outcomes.

Introduction

In clinical practice, understanding the "trajectory" of a disease—how it develops from early to late stages—is vital for diagnosis and treatment planning. However, modeling this in the imaging space is notoriously difficult due to the primary hurdle of longitudinal data scarcity. We rarely have a continuous series of images (like X-rays or retinal scans) of the same patient as their condition worsens. Most medical datasets are "cross-sectional," containing single snapshots of different patients at various stages. Furthermore, existing generative models often struggle to maintain "subject fidelity," frequently altering a patient’s identity, bone structure, or skin tone while attempting to simulate disease progression.

The Progressive Image Editing (PIE) Framework

To overcome these challenges, we propose Progressive Image Editing (PIE), which builds on the invertibility of Denoising Diffusion Probabilistic Models (specifically DDIM). The framework employs three core components:

  1. Iterative Refinement: Instead of generating a "sick" image in a single step, PIE performs a multi-stage process. For each step $n$, the model takes the image from the previous step, adds a controlled amount of noise, and then denoises it guided by a clinical text prompt (e.g., "moderate cardiomegaly").
  2. ROI Masking: To ensure the model doesn't alter healthy tissue, we utilize the Segment Anything Model (SAM) to create a Region of Interest (ROI) mask. Edits are concentrated within this mask, while the rest of the image is preserved, maintaining anatomical consistency.
  3. Theoretical Grounding: We mathematically demonstrate that this iterative process is equivalent to gradient descent with an exponentially decayed learning rate. This decay allows the model to explore the "disease manifold" quickly at first and then stabilize, ensuring the modifications remain bounded and realistic while preserving the unique anatomical features of the original patient.
Overview of the PIE framework showing the source X-ray, region guide, and simulated progressions for Cardiomegaly and Edema.

Experimental Validation

The framework was validated across three distinct medical imaging domains:

  • CheXpert: Chest X-rays for conditions like Cardiomegaly (enlarged heart), Edema, and Pleural Effusion.
  • Diabetic Retinopathy Detection (CHF): Retinal fundus images showing progression of bleeding and blind spots.
  • ISIC 2018 / HAM10000: Skin lesion images for simulating the growth of Melanocytic Nevi.
  • BrixIA COVID-19: A dataset containing real longitudinal sequences, used specifically to validate that PIE’s simulated trajectories match real-world patient outcomes.

Key Results and Physician Evaluation

PIE consistently outperformed baselines such as Stable Diffusion Video and Manifold Extrapolation in both Classification Confidence (Alignment) and CLIP-I scores (Realism). This indicates that generated images are not only visually similar to the original healthy state but also contain clear, identifiable pathological features.

Detailed progression of Cardiomegaly simulated by PIE, showing quantitative heart measurements over time.

In a user study involving 35 veteran physicians (averaging 14.4 years of experience), 76.2% of the feedback agreed that the generated progressions matched their clinical expectations. Interestingly, physicians performed better at identifying diseases on PIE-generated images than on real clinical images, suggesting the model successfully distills and highlights key pathological features.

Conclusion

PIE represents a significant step forward in medical image simulation. By combining text-guided diffusion with ROI-constrained iterative editing, it provides a flexible and realistic tool for modeling disease trajectories. Future work will focus on incorporating multimodal data, such as chemical biomarkers, to further refine the clinical grounding of simulated progressions.

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},
}
Figure