Skip to content

A Neural Network Approach to Identify Left-Right Orientation of Anatomical Brain MRI

License

Notifications You must be signed in to change notification settings

OishiLab/LatNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LatNet

Figure1

IEEE Xplore

A Neural Network Approach to Identify Left-Right Orientation of Anatomical Brain MRI
Author: Kei Nishimaki, Hitoshi Iyatomi, Kenichi Oishi

The Russell H. Morgan Department of Radiology and Radiological Science, The Johns Hopkins University School of Medicine, Baltimore, MD, USA
Department of Applied Informatics, Graduate School of Science and Engineering, Hosei University, Tokyo, Japan
The Richman Family Precision Medicine Center of Excellence in Alzheimer's Disease, Johns Hopkins University School of Medicine, Baltimore, MD, USA

Abstract: Left-right orientation misidentification in brain MRIs presents significant challenges due to several factors, including metadata loss or ambiguity, which often occurs during the de-identification of medical images for research, conversion between image formats, software operations that strip or overwrite metadata, and the use of older imaging systems that stored orientation differently. This study presents a novel application of deep learning to enhance the accuracy of left-right orientation identification in anatomical brain MRI scans. The three-dimensional Convolutional Neural Network model was trained using 350 MRIs and evaluated on eight distinct brain MRI databases, totaling 3,384 MRIs, to assess its performance across various conditions, including neurodegenerative diseases. The proposed deep learning framework demonstrated a 99.6% accuracy in identifying the left-right orientation, addressing challenges associated with losing orientation metadata. GradCAM was used to visualize areas of the brain where the model focused, demonstrating the importance of the right planum temporale and surrounding areas in judging left-right orientation. The planum temporale is known to exhibit notable left-right asymmetry related to language functions, underscoring the biological validity of the model. More than half of the ten left-right misidentified MRIs involved notable brain feature variations, such as severe temporal lobe atrophy, arachnoidal cysts adjacent to the temporal lobe, or unusual cerebral torque, indicating areas for further investigation. This approach offers a potential solution to the persistent issue of left-right misorientation in brain MRIs and supports the reliability of neuroscientific research by ensuring accurate data interpretation.

Paper: https://www.biorxiv.org/content/10.1101/2024.02.15.580574v1
Submitted for publication in the Not yet

Installation Instructions

  1. install python and make virtual environment
    python3.9 or later is recommended.

  2. Clone this repository, and go into the repository::

git clone https://github.com/OishiLab/LatNet.git
cd LatNet
  1. Please install PyTorch compatible with your environment.
    https://pytorch.org/

Once you select your environment, the required commands will be displayed.

image

If you want to install an older Pytorch environment, you can download it from the link below.
https://pytorch.org/get-started/previous-versions/

  1. Install libraries other than PyTorch:
pip install -r requirements.txt
  1. Please apply and download the pre-trained model from the link below and upload it to your server.
  2. You can run LatNet !!

How to use it

Using LatNet is straightforward. You don't need to do any preprocessing to the image. All you need to run this code is prepare a 3DT1-weighted image of NifTi. This code includes skull-stripping using OpenMAP-T1. You can use it in any terminal on your linux system. We provide CPU as well as GPU support. Running on GPU is a lot faster though and should always be preferred. Here is a minimalistic example of how you can use LatNet.

python3 main.py -i INPUT_FOLDER -o OUTPUT_FOLDER -m MODEL_FOLDER

If you want to specify the GPU, please add CUDA_VISIBLE_DEVICES=N.

CUDA_VISIBLE_DEVICES=1 python3 main.py -i INPUT_FOLDER -o OUTPUT_FOLDER -m MODEL_FOLDER

How to download the pretrained model.

You can get the pretrained model from the this link.

Folder

All images you input must be in NifTi format and have a .nii extension.

INPUR_FOLDER/
  ├ A.nii
  ├ B.nii
  ├ *.nii

OUTPUT_FOLDER/
  ├ A.csv
  ├ B.csv
  ├ *.csv

MODEL_FOLDER/
  ├ MNI_FULL.nii
  ├ CNet.pth
  ├ SSNet.pth
  ├ CNN1.pth
  ├ CNN2.pth
  ├ CNN3.pth
  ├ CNN4.pth
  └ CNN5.pth

FAQ

  • How much GPU memory do I need to run LatNet?
    We ran all our experiments on NVIDIA RTX3090 GPUs with 24 GB memory. For inference you will need less, but since inference in implemented by exploiting the fully convolutional nature of CNNs the amount of memory required depends on your image. Typical image should run with less than 4 GB of GPU memory consumption. If you run into out of memory problems please check the following: 1) Make sure the voxel spacing of your data is correct and 2) Ensure your MRI image only contains the head region.

  • Will you provide the training code as well?
    No. The training code is tightly wound around the data which we cannot make public.

Citation

You need to cite both LatNet and OpenMAP-T1.

@article{nishimaki2024neural,
  title={A Neural Network Approach to Identify Left-Right Orientation of Anatomical Brain MRI},
  author={Nishimaki, Kei and Iyatomi, Hitoshi and Oishi, Kenichi},
  journal={bioRxiv},
  pages={2024--02},
  year={2024},
  publisher={Cold Spring Harbor Laboratory}
}
@article{nishimaki2024openmap,
  title={OpenMAP-T1: A Rapid Deep Learning Approach to Parcellate 280 Anatomical Regions to Cover the Whole Brain},
  author={Nishimaki, Kei and Onda, Kengo and Ikuta, Kunpei and Uchida, Yuto and Mori, Susumu and Iyatomi, Hitoshi and Oishi, Kenichi},
  journal={medRxiv},
  pages={2024--01},
  year={2024},
  publisher={Cold Spring Harbor Laboratory Press}
}

About

A Neural Network Approach to Identify Left-Right Orientation of Anatomical Brain MRI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages