Skip to content

ELA411/processing

Repository files navigation

Processing

Open source code for processing and training of classifier for a hybrid BCI system using EEG and EMG.

Built with

Usage

For offline processing, training and validation of a classifier use the following code:

training_classifiers.m

Note that the following parts of the code needs to be altered: alter the search paths and files to the desired paths and files (for data sets) in section "Load data", change eeg_fs and emg_fs in the "Load data" section to the sample rate of the EEG and EMG.

The following code and functions are for online use. The following function needs to be called before using the function for EEG online processing is called:

eeg_real_time_processing_init.m

Call this function to perform all EEG online processing and classification on one window of EEG data.

eeg_real_time_processing.m

The following function needs to be called before using the function for EMG online processing is called:

emg_real_time_processing_init.m

Call this function to perform all EEG online processing and classification on one window of EMG data.

emg_real_time_processing.m

Disclaimer

The w-ICA part of the code is commented out because it causes a crash during online trials after a random amount of time.

License

Distributed under the MIT license.

Contact

Carl Larsson - cln20001@student.mdu.se

About

EEG and EMG processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages