conda env create -f requirements.yaml
From the project's root folder, run
python main.py
to train the STpGCN or STpGCN-alpha or STpGCN-beta or STpGCN-gamma or STGCN or GAT or GCN or GIN or MLP-Mixer on the HCP S1200 datasets.
It would help if you manually changed the model_name to ensure you train the desired model.
Run python NeurocircuitX_sep.py
to calculate the importance score under keeping and masking strategy for each task.
After finishing the calculation of the importance score, you can run python NeurocircuitX_mix.py
to calculate the final importance score for each task.
-
main.py:
: The script serves as the entry point for the fMRI-based brain decoding pipeline. It orchestrates the entire process, from data loading and preprocessing to model training and evaluation. -
stpgcn_variants.py
: The following spatial-temporal model variants are implemented:- STGCN: The basic STGCN model with a configurable structure using the control_str parameter.
- STpGCN: STGCN with a pyramid structure for multi-scale temporal modelling.
- STGCN_hidden_feature: STGCN variant that outputs hidden features instead of final predictions.
- STpGCN_ab_bottom_up: STpGCN variant without a bottom-up pathway.
- STpGCN_ab_top: STpGCN variant without top pathway.
- ...
-
layers.py:
: This file contains the implementation of neural network layers used instpgcn_variants.py
.