https://github.com/cau-riken/vardnn
Vector Auto-Regressive Deep Neural Network
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: frontiersin.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.5%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Vector Auto-Regressive Deep Neural Network
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of takuto-okuno-riken/vardnn
Created over 4 years ago
· Last pushed over 3 years ago
https://github.com/cau-riken/vardnn/blob/master/
[](https://opensource.org/licenses/MIT) # Vector Auto-Regressive Deep Neural Network (VARDNN) Toolbox ## Introduction VARDNN is a powerful tool of data-driven analysis technique to estimate directed FC (Functional Connectivity). Based on VARDNN framework, two types of directed FC are defined, such as VARDNN-DI and VARDNN-GC to measure causal relation among multiple time-series data. (This is Matlab version. Python version is [here](https://github.com/takuto-okuno-riken/vardnnpy))This toolbox includes several functional connectome measures, such as VARDNN-DI, VARDNN-GC, VARLSTM-GC, multivariate Granger Causality (GC), pairwise GC, multivariate Principal Component (PC)-GC, multivariate Partial Least Squares (PLS)-GC, multivariate Elastic Net (EN)-GC, linear Transfer Entropy, Functional Connectivity (Correlation), Partial Correlation, PC-PC, PLS-PC, EN-PC and Wavelet Coherence to estimate conectivity from multiple node signals.
Command line tool could perform conectivity estimation with several functional connectome measures from node signals in csv or mat file, then show output of causal relational matrix and save data in csv or mat file. ## Requirements: software * MATLAB R2019a or later * Deep Learning Toolbox ver12.1 or later * Fuzzy Logic Toolbox ver2.6 or later ## Installation 1. Download this [Toolbox](https://github.com/takuto-okuno-riken/vardnn/archive/refs/heads/master.zip) zip file. 2. Extract zip file under your working directory![]()
. 3. Run the MATLAB software, and "Add Path" extracted directories (i.e. /vardnn-master). 4. Move to /vardnn-master directory and run the following demos. ## Command line tool Demo Demo 1
This demo inputs 8 nodes random signal and outputs FC, mvGC, VARDNN-GC and VARDNN-DI results csv files and matrix graphs. (Copy and paste this command line. Demo data is included in VARDNN Toolbox.) ~~~ >> vardnn -d -c -f -m --showsig --showmat --transform 1 --epoch 100 data/signal8.csv start training start training whole multivariate VAR DNN network training node 1 training node 2 training node 3 training node 4 training node 5 training node 6 training node 7 training node 8 finish training whole multivariate VAR DNN network! t = 8.3578s VARDNN training result : rsme=0.16055 output csv file : results/signal8_vddi.csv output csv file : results/signal8_vdgc.csv output csv file : results/signal8_mvgc.csv output csv file : results/signal8_fc.csv ~~~ These are output graphs of vardnn command.___ Demo 2![]()
VARDNN can take exogenous input signals with control matrix. ~~~ >> vardnn -d -c --showmat --epoch 100 --transform 1 --nocache --ex data/signal8ex.csv --ectrl data/ctrleye.csv data/signal8.csv ... output csv file : results/signal8_vddi.csv output csv file : results/signal8_vdgc.csv ~~~ ___ Demo 3
This demo inputs 32 nodes synthetic neural activity signals of .mat file and outputs FC, PC, mvGC, TE, VARDNN-GC and VARDNN-DI results. Result matrices of directed FC, P-value, F-value, AIC and BIC are saved in ww32-1_<algorithm>_all.mat file. ~~~ >> vardnn -d -c -f -p -m -t --transform 1 --pval --lag 5 --epoch 500 --l2 0.1 --fval 0.05 --aic --bic --format 2 --roiname data/roi32.csv --showsig --showmat --showcg --showroc data/ww32-1.mat data/ww32-2.mat data/ww32-3.mat data/ww32-4.mat start training start training whole multivariate VAR DNN network training node 1 training node 2 ... training node 31 training node 32 finish training whole multivariate VAR DNN network! t = 61.5208s VARDNN training result : rsme=0.017795 ~~~ .mat file includes input data matrices. | name | matrix | description | |:---|:---|:---| |X |<nodes> x <length>(double)|node signals| |exSignal|<exogenous nodes> x <length>(double)|exogenous signals| |nodeControl|<nodes> x <nodes>(logical)|node connection control matrix| |exControl|<nodes> x <exogenous nodes>(logical)|exogenous node connection control matrix| |groundTruth|<nodes> x <nodes>(logical)|ground truth of network connection for ROC curve| Several graphs (node signals, result matrix, circle graph, ROC curve) of each algorithm are shown by vardnn command.## Command line tool ~~~ >> vardnn -h usage: vardnn [options] filename.csv ... -d, --vddi output VARDNN Directional Influence matrix result (![]()
_vddi.csv) -c, --vdgc output VARDNN Granger Causality matrix result ( _vdgc.csv) -m, --mvgc output multivaliate Granger Causality matrix result ( _mvgc.csv) -g, --pwgc output pairwise Granger Causality matrix result ( _pwgc.csv) -t, --te output (LINUE) Transfer Entropy matrix result ( _te.csv) -f, --fc output Functional Conectivity matrix result ( _fc.csv) -p, --pc output Partial Correlation matrix result ( _pc.csv) -w, --wc output Wavelet Coherence matrix result ( _wc.csv) -v, --var output VAR (Vector Auto-Regression) coefficient matrix result ( _mvar.csv) --outpath output files path (default:"results") --pval save P-value matrix of VARDNN-GC, mvGC, pwGC, TE, FC and PC ( _*_pval.csv) --fval alpha save F-value with matrix of VARDNN-GC, mvGC, pwGC and TE ( _*_fval.csv, _*_fcrit.csv) --aic save AIC matrix of VARDNN-GC, mvGC, pwGC and TE ( _*_aic.csv) --bic save BIC matrix of VARDNN-GC, mvGC, pwGC and TE ( _*_bic.csv) --format type save file format 0:csv, 1:mat(each), 2:mat(all) (default:0) --groundtruth files calculate ROC curve and save AUC of VARDNN-DI, VARDNN-GC, mVAR, mvGC, pwGC, TE, FC, PC and WC ( _*_auc.csv) --transform type input signal transform 0:raw, 1:sigmoid (default:0) --transopt num signal transform option (for type 1:centroid value) --lag num time lag for mvGC, pwGC, TE and mVAR (default:3) --ex files VARDNN exogenous input signal (file1.csv[:file2.csv:...]) --nctrl files VARDNN node status control (file1.csv[:file2.csv:...]) --ectrl files VARDNN exogenous input control (file1.csv[:file2.csv:...]) --epoch num VARDNN training epoch number (default:1000) --l2 num VARDNN training L2Regularization (default:0.05) --roiname files ROI names (file1.csv[:file2.csv:...]) --showsig show node status signals of .csv --showex show exogenous input signals of .csv --showmat show result matrix of VARDNN-DI, VARDNN-GC, mVAR, mvGC, pwGC, TE, FC, PC and WC --showcg show circle graph of VARDNN-DI, VARDNN-GC, mVAR, mvGC, pwGC, TE, FC, PC and WC --showroc show ROC curve (by GroundTruth) of VARDNN-DI, VARDNN-GC, mVAR, mvGC, pwGC, TE, FC, PC and WC --nocache do not use cache file for VARDNN training -v, --version show version number -h, --help show command line help ~~~ ## Example Results Example results of causal relation matrix graphs of human fMRI signals (132 ROI). (Generating brain connectome image is not included in vardnn command) ## Citing VARDNN Toolbox If you find VARDNN useful in your research, please consider citing: Takuto Okuno, Alexander Woodward, ["Vector Auto-Regressive Deep Neural Network: A Data-Driven Deep Learning-Based Directed Functional Connectivity Estimation Toolbox"](https://www.frontiersin.org/articles/10.3389/fnins.2021.764796/full), Front. Neurosci. 15:764796. doi: 10.3389/fnins.2021.764796![]()
Owner
- Name: Connectome Analysis Unit
- Login: cau-riken
- Kind: organization
- Website: https://cau.riken.jp/
- Repositories: 2
- Profile: https://github.com/cau-riken
Connectome Analysis Unit, RIKEN Center for Brain Science, Wako, Japan