Skip to main content

UFA-Net method proposed in paper Unsupervised Cross-Domain Functional MRI Adaptation for Automated Major Depressive Disorder Identification

Project description

UFANet

This is a code implemention of the UFA-Net method proposed in the manuscipt "Unsupervised Cross-Domain Functional MRI Adaptation for Automated Major Depressive Disorder Identification".

0. Dependencies

torch==1.10.0
torchvision==0.2.1
numpy==1.21.2
scikit_learn==1.1.3

1. Data Construction

We construct a demo consisting of 10 source examples and 10 target examples.

Run: synthesize_data.py

The shape of the constructed data and label:

src_data.npy (SrcNum, 1, T, NodeNum, 1)
src_lbl.npy (SrcNum, )
tgt_data.npy (TgtNum, 1, T, NodeNum, 1)
tgt_lbl.npy (TgtNum, )
adj_matrix.npy (NodeNum, NodeNum)

where
SrcNum is the number of subjects in the source domain
TgtNum is the number of subjects in the target domain
T is the number of time points of a fMRI scan (here is 200)
NodeNum is the number of brain nodes/ROIs (here is 116, corresponding to AAL116 atlas)

2. Model Training and Validation

This is a two-step optimization method.

2.1. Using $L_{C}$ to initialize the network parameter (not involve domain adaptation)

Run: main_pretrain.py
The pretrained model is saved in: checkpoints_pretrain

2.2. Using $L_{C}$ and $L_{MMD}$ to train the whole network

Run: main_UDA.py
The classification results are saved in: checkpoints

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UFANET-0.0.1.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file UFANET-0.0.1.tar.gz.

File metadata

  • Download URL: UFANET-0.0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for UFANET-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6974651a5a2a9da1bfecd817433abe9cb5f461ad20e5f70a58a2b5b791362e58
MD5 9fd3ffce768b52cadb6503a8110309dc
BLAKE2b-256 07b855a0ef01180aeee25ed0e106f7eb0a6daeabe7a353078ca3c3b32e671ba0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page