Giter Site home page Giter Site logo

hsmm-mar_testing's Introduction

HsMM-MAR_testing

Repository to test BSD toolbox on real data. The problem until now has been that using the MAR model on real data results in short (1 point-long) state durations.

DATA

Inside the data folder there is a segment and noSegment folder. The eeg_rest directory inside each of those is the result from lcmv beamforming with the fieldtrip toolbox. Segment and noSegment differ in the method for calculating the covariance matrix for the spatial filter. It is preferable to use the noSegmented data from previous discussions with the group.

The data is too large to upload to a github repository. A link to the source reconstruction data along with the electrode data will be provided. The output for the models are also too big to be uploaded to github.

HsMM-MAR pipelines

Previous scripts for analyzing the data with varied settings have been tested. Following the name of the standard scripts for HsMM-MAR analysis with real data that resulted from following the tutorial examples:

Most scripts are arranged in sections:

  1. Add directories to matlab's path
  2. Load data. In some scripts concatenation of multiple files can happen.
  3. Data transformation and preprocessing. Filtering, nĀ° of components and other steps like standarization are included in this.
  4. Initialization options
  5. Defining the model and passing the structural connectivity matrix.
  6. Training the model
  7. Saving Output
  8. Ploting figures

Scripts:

pipeline_hsmm_example_MAR.m - This pipeline uses the concatenated data from multiple subjects. This includes the structural connectivity matrix. Preprocessing: Downsamples to 200 Hz. Filters from 1-30 Hz. Standardize data (z-score) per subject (this actually happens at the concatenation step in the subjcat function). If it takes too much RAM. The number of subjects analyzed (concatenated files) can be changes by specifying a fixed number in the concatenation function. Like so:

data_container.eeg_rest = subjcat(files(1:3),1))

This will concatenate files 1 to 3 instead of every .mat file in the folder.

hsmm-mar_testing's People

Contributors

juliorodino avatar

Watchers

 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.