In medical imaging, the diffusion models have shown great potential in synthetic image generation tasks. However, these models often struggle with the interpretable connections between the generated and existing images and could create illusions. To address these challenges, our research proposes a novel diffusion-based generative model based on deformation diffusion and recovery. This model, named Deformation-Recovery Diffusion Model (DRDM), diverges from traditional score/intensity and latent feature-based approaches, emphasizing morphological changes through deformation fields rather than direct image synthesis. This is achieved by introducing a topological-preserving deformation field generation method, which randomly samples and integrates a set of multi-scale Deformation Vector Fields (DVF). DRDM is trained to learn to recover unreasonable deformation components, thereby restoring each randomly deformed image to a realistic distribution. These innovations facilitate the generation of diverse and anatomically plausible deformations, enhancing data augmentation and synthesis for further analysis in downstream tasks, such as few-shot learning and image registration. Experimental results in cardiac MRI and pulmonary CT show DRDM is capable of creating diverse, large (over 10% image size deformation scale), and high-quality (negative ratio of folding rate is lower than 1%) deformation fields. The further experimental results in downstream tasks, 2D image segmentation and 3D image registration, indicate significant improvements resulting from DRDM, showcasing the potential of our model to advance image manipulation and synthesis in medical imaging and beyond.
Input: Training set of source domain images Dsrc
⊆ ℝH x W x D
Output: DRDM weights θ
θ
;ℑdiff
not converge:
// randomly sample the data
2.1. Sample the original images: I0
∈ Dsrc
;
2.2. Sample time steps: t ∼ U(0,T) ∩ Z
2.3. Sample random DVFs ψt
and DDFs ψt:1
;
// compute the prediction and the loss
2.4. Deform original images from I0
to It
;
2.5. Use DRDM Dθ
to estimate recovering deformation ψt
;
2.6. Update gradient descent step ∇θℑdiff
;
θ
.
Input: Images for deformation I0 ∈ ℝH × W × D
Output: Generated DDF φ
θ
from Algorithm 1;T' ≤ T
;ψT':1
;φ ← ψT':1
;I0
to IT'
;φ ← IT'
;t = T', T'-1, ..., 1
:
Dθ
to estimate recovering deformation ψt
;φ ← ψt ∘ φ
;I0
to It-1
;φ
.
Input: Images and labels Dtgt ⊂ ℝH x W x D × ℝH x W x D x C
Output: Deformed images and labels Daug ⊂ ℝH x W x D × ℝH x W x D x C
θ
from Algorithm 1;ℑ
⊆ ℤ+ ∩ [1,T]
;Daug ← ∅
;(I0, L0)
∈ Dtgt
:
// Sample a deformation level number
4.1. ForEach T' ∈ ℑ
:
φ
using Algorithm 2;φ(I0)
;φ(L0)
;Daug ← Daug ∪ {(φ(I0), φ(L0))}
;
Daug
.
Input: Images Dtgt ⊂ ℝH x W x D
Output: Paired images & DDF Dsyn ⊂ ℝH x W x D × ℝH x W x D × ℝH x W x D x 3
θ
from Algorithm 1;ℑ
⊆ ℤ+ × ℤ+
;Dsyn ← ∅
;I0
∈ Dtgt
:
// Sample deformation level numbers
4.1. ForEach (T'aug,T'syn)
∈ ℑ
:
φaug
based on (I0,T'aug)
using Algorithm 2;Imv ← φaug(I0)
;φsyn
based on (Imv,T'syn)
using Algorithm 2;Ifx ← φsyn ∘ φaug(I0)
;Dsyn ← Dsyn ∪ {(Imv, Ifx, φsyn)}
;
Dsyn
.
@article{zheng2024deformation,
title={Deformation-Recovery Diffusion Model (DRDM): Instance Deformation for Image Manipulation and Synthesis},
author={Zheng, Jian-Qing and Mo, Yuanhan and Sun, Yang and Li, Jiahua and Wu, Fuping and Wang, Ziyang and Vincent, Tonia and Papie{\.z}, Bart{\l}omiej W},
journal={arXiv preprint arXiv:2407.07295},
doi = {https://doi.org/10.48550/arXiv.2407.07295},
url = {https://doi.org/10.48550/arXiv.2407.07295},
keywords = {Image Synthesis, Generative Model, Data Augmentation, Segmentation, Registration}
year={2024}
}