DeepDWI implements self-supervised learning image reconstruction techniques for DWI.
Prospectively self-gated diffusion-weighted image reconstruction on a iEPI data acquired with 0.7 mm isotropic resolution. Self-gated zero-shot self-supervised learning (ZSSSL) enables much cleaner delineations of diffusion contrasts than locally-low rank (LLR) regularized reconstruction.
-
create a new conda environment named ('deepdwi', you can use other names as you like):
conda create -n deepdwi python=3.10
-
activate the environment:
conda activate deepdwi
-
download and install
deepdwi:git clone https://github.com/ZhengguoTan/DeepDWI.git
and then
cdto the DeepDWI directory,python -m pip install -e . -
download and install
sigpy:git clone https://github.com/ZhengguoTan/sigpy.git
and then
cdto the sigpy directory,python -m pip install -e .
That's it! Enjoy deepdwi!
-
The repo implements several state-of-the-art algorithm unrolling for high-resolution high-dimensional diffusion-weighted imaging reconstruction, incl.
(1) Variational Network (VarNet);
(2) Model-based deep learning architecture (MoDL);
(3) Alternating Direction Method of Multipliers (ADMM).
- This implementation is also applicable to other high-dimensional MRI reconstruction!
Before running the scripts in DeepDWI, you need to download the following data to the /data/ folder:
-
load the data
cd data/ python load.py --records 10781347 --file 0.7mm_21-dir_R2x2_md5sum.txt python load.py --records 10781347 --file 0.7mm_21-dir_R2x2_kdat_slice_000.h5 --md5sum 0.7mm_21-dir_R2x2_md5sum.txt python load.py --records 10781347 --file 0.7mm_21-dir_R2x2_coils.h5 --md5sum 0.7mm_21-dir_R2x2_md5sum.txt -
run the zsssl training
cd examples/ python run_zsssl.py --mode train -
run the zsssl testing
python run_zsssl.py --mode test --slice_idx 0 --checkpoint /examples/path/to/zsssl_best.pth
-
Please follow the sub-folders in /figures/ for specific experiments and examples.
-
To plot /figures/ without running all experiments, we provide saved results here:
. Please download them into the /data/ folder.
If you find the open-source codes/data useful, please cite:
@Article{tan_2025_sg_ssl,
Title = {{High-Resolution Diffusion-Weighted Imaging with Self-Gated Self-Supervised ADMM Unrolling}},
Author = {Tan, Zhengguo and Liebig, Patrick A and Hofmann, Annika and Laun, Frederik B and Knoll, Florian},
Journal = {},
Year = {},
Volume = {},
Pages = {},
doi = {}
}
@Article{tan_2024_diff7t,
Title = {{Accelerated Diffusion Weighted Magnetic Resonance Imaging at 7 T: Joint Reconstruction for Shift-Encoded Navigator-based Interleaved Echo Planar Imaging (JETS-NAViEPI)}},
Author = {Tan, Zhengguo and Liebig, Patrick A and Heidemann, Robin M and Laun, Frederik B and Knoll, Florian},
Journal = {Imaging Neuroscience},
Year = {2024},
Volume = {2},
Pages = {1-15},
doi = {10.1162/imag_a_00085}
}