This repository contains relevant code and demo using a deep recursive fetal motion estimation and correction based on slice and volume affinity fusion, i.e., AFFIRM. The concept can be applied to any similar scenario. The relevant work is published in IEEE Transactions on Medical Imaging (https://ieeexplore.ieee.org/document/9896894).
Feel free to contact me (allard.w.shi at gmail dot com) or open an issue if you have any question or comment.
AFFIRM is a motion correction algorithm for high-resolution fetal brain 3D volumetric reconstruction from motion-corrupted multi-slice MRI data. It has several merits including:
Figure 1. Schematic diagram of AFFIRM.
This work compared other conventional methods as well as deep learning-based motion correction or motion tracking algorithms, especially in fetal MR imaging, as the following.
The specific algorithms were modified and reproduced from the following repositories:
Other used repository links:
Training: please refer to train.py and prepare two files in *.npy as training and validation set using data_complie.py.
Testing: We provide one 37-GA real-world demo in the folder ./Data/demo/. Two steps are thus needed:
main.py
to estimate the fetal brain motion.niftymic_reconstruct_volume_from_slices
to perform super-resolution reconstruction.main.py
by setting init_reference = False
and repeat step 2&3 several times to correct the motion.If you find the code useful, please consider to cite our work.