Coder Social home page Coder Social logo

neuromoco's Introduction

neuroMoCo

Data-consistent deep rigid motion correction for brain MRI

Sample reconstruction results

Dependencies

All dependencies required to run this code are specified in environment.yml. To create an anaconda environment with those dependencies installed, run conda env create --name <env> --file environment.yml.

You will also need to add this repo and interlacer to your python path (if you're using conda, conda-develop /path/to/neuroMoCo/).

Method Overview

There are three codestreams involved in our method:

  1. Simulation of motion-corrupted examples
  2. Training a model using the simulated data
  3. Optimizing the motion parameter estimates.

Motion Simulation

Unfortunately, we are unable to share our data and full data processing pipeline due to IRB restrictions. However, motion_sim/multicoil_motion_simulator.py contains a sample training generator which should give you an idea of how to write your own generator. Running this file will generate a folder containing .npz files used at training and test time.

Model Training

The entry script to our model training is in training/train.py, which creates a model (defined in training/models.py and training/hypermodels.py) and trains the hypernetwork appropriately. training/run_experiment.py provides an example script to run training on a SLURM setup.

Test-Time Optimization

The test-time optimization code is found in optimization/optimize_motion_params.py, which can be run as a script to perform optimization on all the examples in a directory. Alternatively, optimize_example() can be called to run optimization on a single example.

Paper

If you use the ideas or implementation in this repository, please cite our paper:

@misc{singh2023data,
    title={Data Consistent Deep Rigid MRI Motion Correction},
    author={Nalini M. Singh and Neel Dey and Malte Hoffmann and Bruce Fischl and Elfar Adalsteinsson and Robert Frost and Adrian V. Dalca and Polina Golland},
    year={2023},
    eprint={2301.10365},
    archivePrefix={arXiv},
    primaryClass={eess.IV}
}     

neuromoco's People

Contributors

nalinimsingh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.