D-l-z / synthetic-ddsa

GNU General Public License v3.0
0 stars 1 forks source link

DDSA using Synthetic Training Data

Digital subtraction angiography (DSA) is a fluoroscopy method primarily used for the diagnosis of cardiovascular diseases. Deep learning-based DSA (DDSA) is developed to extract DSA-like images directly from fluoroscopic images, which helps in saving dose while improving image quality. In this work, we developed a method generating synthetic DSA image pairs to train neural network models for DSA image extraction with CT images and simulated vessels. The synthetic DSA targets are free of typical artifacts and noise commonly found in conventional DSA targets for DDSA model training. Benefiting from diverse synthetic training data and accurate synthetic DSA targets, models trained on the synthetic data outperform models trained on clinical data in both visual and quantitative assessments. This approach compensates for the paucity and inadequacy of clinical DSA data.

For more information about this work, please read our Medical Physics 2024 paper

Duan, L., Eulig, E., Knaup, M., Adamus, R., Lell, M., & Kachelrieß, M. "Training of a Deep Learning Based Digital Subtraction Angiography Method using Synthetic Data."

Requirements

python 3.7.1
pytorch 1.8.2

Data

The synthetic vascular projection images we utilized in this work are available for download here. To generate vascular projection images:

1. Run SimVessels\stringGenerator.py  
2. Run SimVessels\projectionGenerator.py  

Getting started with training

Train model using synthetic data

Train model using clinical data

Training Parameters

usage: train*.py [-h] [--savepath SAVEPATH] [--datafolder DATAFOLDER] [--cuda] [--m_cuda] [devices] [--nepochs NEPOCHS]
                [--lr LR] [--b1 B1] [--b2 B2] [--criterion CRITERION] [--mbs MBS] [--n_workers N_WORKERS] [--ntrain NTRAIN]
                [--nval NVAL] [--sample_strategy SAMPLE_STRATEGY] [--add_noise] [--augment] [--pBlur PBLUR] [--pAffine PAFFINE]
                [--pMultiply PMULTIPLY] [--pContrast PCONTRAST] [--init_patch INIT_PATCH] [--final_patch FINAL_PATCH]
                [--normalization NORMALIZATION] [--init_type INIT_TYPE] [--upmode UPMODE] [--downmode DOWNMODE] [--batchnorm]
                [--dropout DROPOUT] [--use-trained_model] [--pretrained_model] [--seed SEED]

optional arguments:
  -h, --help            show this help message and exit
  --savepath SAVEPATH   Where to store the results.
  --datafolder DATAFOLDER
                        Where the rawdata is located.
  --cuda                Enables cuda
  --m_cuda              Enables multiple GPUs
  --devices             Cuda device to use
  --nepochs NEPOCHS     Number of epochs to train for.
  --lr LR               Learning rate, default=0.0001
  --b1 B1               beta1 parameter of Adam.
  --b2 B2               beta2 parameter of Adam.
  --criterion CRITERION
                        L1 or L2 loss
  --mbs MBS             Mini-batch size
  --n_workers N_WORKERS
                        Number of workers to use for preprocessing.
  --ntrain NTRAIN       Number of training samples
  --nval NVAL           Number of validation samples
  --sample_strategy SAMPLE_STRATEGY
                        Sample strategy for the data. If "dataset", sample uniform w.r.t to datasets. If "uniform" sample uniform
                        over all datasets (not recommended).
  --add_noise           Add poisson noise to CT projections
  --augment             Augment the data.
  --pBlur PBLUR         Probability for blur.
  --pAffine PAFFINE     Probability for affine transformations.
  --pMultiply PMULTIPLY
                        Probability for multiplicative augmentation.
  --pContrast PCONTRAST
                        Probability for contrast augmentations.
  --init_patch INIT_PATCH
                        Size of patch before data augmentation.
  --final_patch FINAL_PATCH
                        Size of patch after data augmentation.
  --normalization NORMALIZATION
                        Data normalization. Global or local (not recommended).
  --init_type INIT_TYPE
                        Weight initialization.
  --upmode UPMODE       Upsample mode
  --downmode DOWNMODE   Downsample mode
  --batchnorm           Use Batch-Normalization
  --dropout DROPOUT     Use dropout with provided probability.
  --use_trained_model   Use a trained model for model initialization.')
  --pretrained_model    Pretrained model name
  --seed SEED           manual seed

Test

Run test.py to test the U-net model, and test_GAN.py for the U-net GAN model.

Reference

If you find this project useful for your work, please consider citing our Medical Physics paper

@article{duan2024-deepdsa,
  author = {Duan, Lizhen and Eulig, Elias and Knaup, Michael and Adamus, Ralf and Lell, Michael and Kachelrieß, Marc},
  title = {Training of a deep learning based digital subtraction angiography method using synthetic data},
  journal = {Medical Physics},
  volume = {n/a},
  number = {n/a},
  pages = {},
  doi = {https://doi.org/10.1002/mp.16973},
  url = {https://aapm.onlinelibrary.wiley.com/doi/abs/10.1002/mp.16973},
  eprint = {https://aapm.onlinelibrary.wiley.com/doi/pdf/10.1002/mp.16973},
}