Skip to content

Bias field correction for T-1 weighted MRI images for tumor detection

Notifications You must be signed in to change notification settings

VaishnaviKrishna/bias-field-correction

Repository files navigation

Bias field correction

Introduction and Motivation

  • The intensity inhomogeniety in medical imaging that arises from magnetic settings, patients’ position etc is known as a bias field
  • The intensity of the same tissue should always be similar in one image and not vary with the location of the tissue
  • This property can facilitate the procedures in many automated techniques such as segmentation, classification and registration and make the results reasonable

Procedure

MRI images obtained by the application of very strong magnetic fields are generally corrupted by bias field, a very low frequency and smooth signal that gradually changes over the image. In this project, a bias field correction technique is developed using neural networks. The skull stripped 3D volumes of the cortical surface of the brain obtained post surface and volume registration method of BrainSuite software are sliced along the sagittal,coronal and axial plane to obtain 2D gray scale images of the brain. These images are then fed to an encoder-decoder unit comprising of 3 hidden layers each. For our purpose, instead of reconstructing the original T-1 weighted MRI images, the auto-encoder is trained to output an approximation of the bias field which in turn is used to restore the corrupted MRI images. Further, the latter can be used to classify and segment the brain tissues and detect abnormalities in the brain. The flowchart.png in the images folder show the diagrammatic representation of the procedure explained above.

Overview

The bias field estimation and reconstrucion of corrected MRI images are done in two separate notebooks:

  • autoencoder_bias_field_estimation.ipynb
  • autoencoder_3axes_merged_reconstructed_mri.ipynb

Software

  • The analysis and implementation has been done using Python 3.6 version.

  • The versions of the external libraries used are as mentioned below:

    • NumPy == 1.16.4
    • Matplotlib == 3.0.3
    • Scikit-Learn == 0.21.1
    • Nibabel >= 2.0.2
  • The codes above also use Nilearn - a Python module for fast and easy statistical learning on NeuroImaging data. Nilearn can be installed after installing the above mentioned dependencies by running the command as shown below:

    !pip install nilearn

Examples

  • The images below show the inputs to autoencoder (in the first row) and the bias field ground truths (in the second row) against which it was trained

About

Bias field correction for T-1 weighted MRI images for tumor detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published