Giter Club home page Giter Club logo

text2brain's Introduction

Text2Brain

brain interpreter review

Generating brain activation maps from free-form text query

Reference

Gia H. Ngo, Minh Nguyen, Nancy F. Chen, Mert R. Sabuncu. Text2Brain: Synthesis of Brain Activation Maps from Free-form Text Query. In International Conference on Medical Image Computing and Computer-Assisted Intervention, 2021. arxiv


Overview

Text2Brain is a search engine for efficiently combing through rapidly growing wealth of neuroimaging literature brain activation patterns. It accepts not only keywords but also flexible free-form text queries. It encodes the text queries using a finetuned Transformer encoder (SciBERT) and generates whole-brain activation maps using a 3D convolutional neural network (CNN).

Demo is available at: braininterpreter.com


Outputs for Synonymous Queries

Activation maps predicted by Text2Brain for 3 synonymous queries: default network, self-generated thought, and task-unrelated thought. The ground-truth activation map is also included in the figure.


Setting Up Text2Brain Project

  1. Install Anaconda
  2. Clone this project from Github to some place on your computer (e.g. /home/gia/text2brain)
  3. Create a Conda environment using the env.yml file
        conda env create -f env.yml -n text2brain
  4. Download a checkpoint of the Text2Brain model from Google Drive
  5. Extract the downloaded file. You should see a file named best_loss.pth.
        tar -xzvf text2brain_checkpoint.tar.gz
  6. Move the file best_loss.pth into the project directory (e.g. /home/gia/text2brain)
  7. Download the pre-trained uncased SciBERT model using this link
  8. Extract the downloaded file.
        tar -xvf scibert_scivocab_uncased.tar
  9. Move the scibert_scivocab_uncased folder into the project directory (e.g. /home/gia/text2brain)
  10. Activate the Conda environment
        conda activate text2brain
  11. To generate brain activation maps from free-form text query, run python predict.py <input_query> <output_file>. For example,
    python predict.py "self-generated thought" prediction.nii.gz

Bugs and Questions

Please contact Gia at [email protected]

text2brain's People

Contributors

mnhng avatar ngohgia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

text2brain's Issues

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.