Git Product home page Git Product logo

fmrignns's Introduction

Benchmarking Graph Neural Networks for fMRI analysis

This is the original implementation of the paper Benchmarking Graph Neural Networks for fMRI analysis

Requirements

  • python 3.9+
  • see requirements.txt

Data

The Abide dataset can be requested from here The Mddrest dataset can be requested from here

The Mddrest provide the pre-processed timecourses directly. For ABIDE you can generate the time-courses using nilearn. You can see an example of how to parcellate the data and extract the timecourses in parcellate_example.ipynb

For ease of use, you can organize the your data into a csv file as provided in the examples in csvfiles/ All logic for creating and loading datasets to the framework is in data.py.

Training and Evaluation

Refer to main_{static/dynamic/baseline }.py sto train the respective model from each group. you can add custom models or custom datasets easily to the data.py or networks folders and use the same pipeline to run the new experiments. For hyperparameters tuning we recommend using weights&biases sweep tool.

Citation

If you find this work useful, kindly cite our paper:

@misc{https://doi.org/10.48550/arxiv.2211.08927,
  doi = {10.48550/ARXIV.2211.08927},
  url = {https://arxiv.org/abs/2211.08927},
  author = {ElGazzar, Ahmed and Thomas, Rajat and van Wingen, Guido},
  title = {Benchmarking Graph Neural Networks for FMRI analysis},
  publisher = {arXiv},
  year = {2022}}

fmrignns's People

Contributors

elgazzarr avatar

Stargazers

 avatar  avatar  avatar lei_chen avatar  avatar  avatar  avatar Algorithm_Learner avatar Chongchong Li avatar Zhi Ye avatar  avatar Falih avatar  avatar  avatar  avatar Haifeng Tang avatar

Watchers

 avatar

fmrignns's Issues

Undefined Function 'smax' in STGCN

Hi, Thanks for sharing your code.

I'm reading your code and I notice that there's a function "smax" used in STGCN, but I fail to find its definition. It appears in Line 159 (networks/dynamic_models.py):

self.adjs = smax(torch.tensor(adjacency).float().to('cuda:1'))

Is it a typo, or something missed when import?
Thanks in advance for your time, I appreciate it.

Adjecency Matrix for the Dynamic Models

Hi,

Thanks for sharing your great work. I have a question regarding the adjacency matrix for the dynamic models. Do you use a similar adj matrix for all subjects, or did you use different adj matrices for each subject during dynamic modeling?

Many thanks in advance,

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.