Skip to content

amisepa/import_muse

Repository files navigation

import_muse EEGLAB plugin

This plugin imports Muse .csv files recorded with either the Mind Monitor App or the Muse Direct App. Compatible with Muse 1 (2014 and 2016), Muse 2, and Muse S. Automatically converts data to the EEGLAB format.

Non-EEG channels (Accelerometer, Gyroscope, Photoplethysmogram, and Auxiliary) can be exported with the EEG data (resampled and slightly transformed to fit), or as separate outputs (raw, untouched).

This plugin automatically converts each data type to the EEGLAB format, providing access to EEGLAB's advanced tools (e.g. filtering, clean_rawdata, LIMO).

Graphic interface

image

Usage

See Wiki (https://github.com/amisepa/import_muse/wiki) for usage and examples.

Flag bad channels using trained classifers

< EEG = import_muse(filepath,'detectBadChan'); >

The EEG signals in input must be raw (no prior preprocessing), and will be band-pass filtered by this function for best classification performance (but your EEG file output remains raw). The only parameter to change (maxTol) is how much of a channel should be tolerated as bad before it is flagged as bad. For each window, some features are computed (RMS, SNR, low-frequency power), which were selected as most important by a Random Forest model during model training and validation.

Various ML models were trained and tested (decision trees, logistic regression, LDA, SVM, Naive Bayes, neural networks). They implement PCA-dimension reduction, hyperparameter tuning, and 5-fold cross-validation. Training was done on 80% of a dataset. After model validation, models were tested on the remaining 20% of data (different individuals). The best models achieved 93.5% for frontal channels (logistic regression) and 91.4% for the posterior channels (decision tree).

Version history

v1.1 - added trained classifiers to flag bad channels v1.0 - Plugin created and available - June 7, 2021

Interaxon's Muse specs

Manufacturer website: https://choosemuse.com/muse-2/

Signal validation (literature)

From Krigolson et al., 2017 (https://doi.org/10.3389/fnins.2017.00109):

Our validation for frequency domain, peak alpha frequency, and alpha asymmetry:

Cannard, C., Wahbeh, H., & Delorme, A. (2021, December). Validating the wearable MUSE headset for EEG spectral analysis and Frontal Alpha Asymmetry. In 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM) (pp. 3603-3610). IEEE.

https://www.biorxiv.org/content/10.1101/2021.11.02.466989v1.full.pdf

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages