Giter Club home page Giter Club logo

cross-modal-ssl-htnet's Introduction

cross-modal-ssl-htnet

Overview

Self-supervised neural decoding using cross-modal deep clustering. We show that sharing information across multiple data streams yields high-quality neural decoders, even when no data labels are present in the training data.

We follow the approach from Alwassel et. al. 2020, using this code repository from Asano et. al. 2019 to implement deep clustering. For the decoder models, we use HTNet.

Citing our paper

If you use our code, please cite our bioRxiv preprint.

Peterson, S. M., Rao, R. P. N., & Brunton, B. W. (2021).
Learning neural decoders without labels using multiple data streams.
bioRxiv. https://www.biorxiv.org/content/10.1101/2021.09.10.459775v1

Dataset links

In our paper, we tested this cross-modal, self-supervised approach on 4 datasets. All of these datasets are publicly-available:

ECoG move/rest: https://doi.org/10.6084/m9.figshare.16599782

EEG move/rest: http://bnci-horizon-2020.eu/database/data-sets

ECoG finger flexion: https://searchworks.stanford.edu/view/zk881ps0522

EEG balance perturbations: https://openneuro.org/datasets/ds003739

Replicating our findings

To replicate our findings,

1) Convert datasets to xarray files

Download the data and run the 3 convert_....py scripts (the ECoG move/rest data just needs to be placed in a similar set of directories as the other 3 datasets)

2) Create model hyperparameters

Run create_model_params.ipynb to create the model hyperparameters. The current values were used in our study.

3) Train and validate supervised/self-supervised models

Update the pathnames in all of the bash scripts in the /scripts directory. Then, run run_all_procs.sh to train and validate model performance for all 4 datasets. In addition to cross-modal deep clustering, supervised and unimodal deep clustering models are also trained and validated.

4) Plot results

Use plot_model_performance.ipynb to replicate Figs. 2-4 from our preprint. Use plot_fingerflex_clusters.ipynb to replicate Fig. S1.

Funding

This work was supported by funding from the National Science Foundation (1630178 and EEC-1028725), the Washington Research Foundation, and the Weill Neurohub.

cross-modal-ssl-htnet's People

Contributors

katherineperks avatar stepeter avatar

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.