/SSDU

Primary LanguagePython

SSDU: Self-Supervision via Data Undersampling

SSDU enables physics-guided deep learning MRI reconstruction without fully-sampled data (paper). Succintly, SSDU splits acquired measurements into 2 disjoint sets, Θ and Λ. Θ is used in the data consistency units of the unrolled network and Λ is used to define the loss in k-space.


The self-supervised learning scheme to train physics-guided deep learning without fully sampled data. The acquired subsampled k-space measurements, Ω, are split into two disjoint sets, Θ and Λ. The first set of indices, Θ, is used in the data consistency unit of the unrolled network, whereas the latter set, Λ, is used to define the loss function for training. During training, the output of the network is transformed to k-space, and the available subset of measurements at Λ are compared with the corresponding reconstructed k-space values. Based on this training loss, the network parameters are subsequently updated.

Installation

Dependencies are given in environment.yml. A short list of the required packages to run SSDU codes are given in requirements.txt. Requirements can be installed in an environment with

pip install -r requirements.txt

Datasets

We have used the fastMRI dataset in our experiments.

We have provided a saved model using Coronal proton density dataset. However, we recommend to retrain SSDU for fair comparisons as we can not share the dataset.

Moreover, SSDU is agnostic to CNN architecture. Hence, it should be retrained with the matching CNN for fair comparisons

How to use

SSDU training can be performed by running train.py file. Prior to running training file, hyperparameters such as number of unrolled blocks, split ratio (ρ) for training and loss masks can be adjusted from parser_ops.py. train.py file retrieves directories of datasets (kspace, sensitivity maps and mask. Note the kspace and sensitivity maps should have size of nSlices x nrow x ncol x ncoil and mask should have size of nrow x ncol) from get_train_directory function defined in utils.py file. Users should set these directories prior to running train.py file.

train.py file generates a test model and save them to the directory defined by user. Testing can be performed by running test.py file. test.py retrieves directories of datasets as well as saved training model from get_test_directory function defined in utils.py file. Users should set these directories prior to running test.py file.

We highly recommend the users to set the outer k-space regions with no signal (see below figure) as 1 in training mask to ensure consistency with acquired measurements. This should be done for both train.py and test.py files.
Red arrows points at the outer k-space regions with no signal (in this example, first 17 columns and last 16 columns of k-space have no signal). These regions should be set as 1 in the train mask to ensure data consistency. For knee dataset used in our experiments, this can be done as (see lines 81-83 in train.py and 40-42 in test.py)

# %%  zeropadded outer edges of k-space with no signal
if args.data_opt == 'Coronal_PD':
    trn_mask[:, :, 0:17] = np.ones((nSlices, args.nrow_GLOB, 17))
    trn_mask[:, :, 352:args.ncol_GLOB] = np.ones((nSlices, args.nrow_GLOB, 16))

Citation

If you use these codes, please cite

@Article{yaman2020self_mrm,
   Author="Yaman, Burhaneddin and Hosseini, Seyed Amir Hossein and Moeller, Steen and Ellermann, Jutta and Ugurbil, Kamil and Akcakaya, Mehmet",
   Title="{Self-Supervised Learning of Physics-Guided Reconstruction Neural Networks without Fully-Sampled Reference Data}",
   Journal="Magnetic Resonance in Medicine",
   Year="2020",
   Volume="84",
   Number="6",
   Pages="3172--3191",
   Month="Dec"
}

@inproceedings{yaman2020self_isbi,
  title={Self-supervised physics-based deep learning MRI reconstruction without fully-sampled data},
  author={Yaman, Burhaneddin and Hosseini, Seyed Amir Hossein and Moeller, Steen and Ellermann, Jutta and Ugurbil, Kamil and Akcakaya, Mehmet},
  booktitle={ Proc. IEEE Int. Symp. Biomed. Imag. (ISBI)},
  pages={921--925},
  year={2020},
  organization={IEEE}
}

Copyright & License Notice

© 2021 Regents of the University of Minnesota

SSDU is copyrighted by Regents of the University of Minnesota and covered by US 17/075,411. Regents of the University of Minnesota will license the use of SSDU solely for educational and research purposes by non-profit institutions and US government agencies only. For other proposed uses, contact umotc@umn.edu. The software may not be sold or redistributed without prior approval. One may make copies of the software for their use provided that the copies, are not sold or distributed, are used under the same terms and conditions. As unestablished research software, this code is provided on an "as is'' basis without warranty of any kind, either expressed or implied. The downloading, or executing any part of this software constitutes an implicit agreement to these terms. These terms and conditions are subject to change at any time without prior notice.

Questions

If you have questions or issues, please open an issue or reach out to me at yaman013 at umn.edu .