Git Product home page Git Product logo

ibgnn's Introduction

logo

This is the official implementation for the accepted MICCAI 2022 (Oral) paper Interpretable Graph Neural Networks for Connectome-Based Brain Disorder Analysis. This framework consists of two modules: a brain network-oriented backbone prediction model and a globally shared explanation generator that can highlight disorder-specific biomarkers including salient Regions of Interest (ROIs) and important connections. The whole implementation is built upon PyTorch and PyTorch Geometric.


Specification of Dependencies

The framework needs the following dependencies:

torch~=1.10.2
numpy~=1.22.2
nni~=2.4
PyYAML~=5.4.1
scikit-learn~=1.0.2
networkx~=2.6.2
scipy~=1.7.3
tensorly~=0.6.0
pandas~=1.4.1
libsvm~=3.23.0.4
matplotlib~=3.4.3
tqdm~=4.62.3
torch-geometric~=2.0.3
h5py~=3.6.0

To install the dependencies, run:

pip install -r requirements.txt

The cuda version we used is 10.1. We installed torch through Conda (v4.11.0) with cuda support.

Folder Structure

This repository is organized into the following folders:

- `./`: The main functions for backbone and explanation generator training.
- `./models`: Models.
- `./utils`: Utility functions.
- `./analysis`: Visualizations and testing scripts.
- `./baselines`: The baseline models and testing scripts.

Running Instructions

To train our model on any of the datasets in our paper, simply run:

python main_explainer.py --dataset_name=<dataset_name> [--explain]

The --dataset_name is the name of the dataset you want to use. We tested it against the following datasets:

  • HIV
  • BP
  • PPMI (Can be downloaded here)

Please place the dataset files in the ./datasets/ folder under the root folder.

The --explain argument is optional. By passing --explain, the framework will trigger the explanation enhanced model IBGNN+. Otherwise, the framework will tests the backbone model IBGNN.

Baselines

The four shallow baselines we included in our paper are in the baselines/shallow folder.

To test the deep baseline models, run:

python main_explainer.py --dataset_name=<dataset_name> --model_name=<model_name>

Similarly, the --dataset_name is the name of the dataset to train the model on. The --model_name can be one of the following deep baselines:

  • GCN
  • GAT
  • PNA

For the other two state-of-the-art deep baselines on brain networks, BrainNetCNN and BrainGNN, we use the publicly available implementation from their corresponding links.

Citation

Please cite our paper if you find this code useful for your work:

@inproceedings{cui2022interpretable,
  title={Interpretable Graph Neural Networks for Connectome-Based Brain Disorder Analysis},
  author={Cui, Hejie and Dai, Wei and Zhu, Yanqiao and Li, Xiaoxiao and He, Lifang and Yang, Carl},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  pages={375--385},
  year={2022},
  organization={Springer}
}

ibgnn's People

Contributors

ddvd233 avatar hennyjie avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

ibgnn's Issues

Datasets

Hi,
Awesome work indeed!

A question about the datasets, where can i find the following files ;

datasets/New_Node_AAL90.txt
datasets/New_Node_Brodmann82.txt
datasets/New_Node_PPMI.txt
datasets/New_Node_PPMI.txt

Thanks,

Training parameters

Hi!
Thank you for your work! I have a question regarding model parameters -- in paper you say that parameters were tuned with AutoML toolkit and do I understand correctly that these parameters are assigned as default values in arguments of main_explainer.py? I don't have access to supplementary material of your paper to check this out.

Best,

Questions about the datasets

Hi,

Very great work! I am testing the main_explainer.py to get the gist of the model. It seems that the datasets folder is missing the 'HIV.mat', 'BP.mat', etc., data mentioned in the paper. I am wondering if you could provide a single template data for either HIV or BP data? Thank you very much!

The location of baseline folder

Hi,

This is a great work. According to the readme file, there should be a baseline folder to reproduce the baseline results in the paper. However, the current code version seems to have no such folder. Could you please upload the codes for baseline?

Thanks!

About the dataset

Hi,
It is a great work and I am interested in running the code. But how could I download all the datasets used by the codes?

Thanks!

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.