okbalefthanded / bci_toolbox

Classification toolbox for ERP and SSVEP based BCI data
Apache License 2.0
51 stars 27 forks source link

SSVEP_TSINGHUA #24

Closed tahaolan closed 3 years ago

tahaolan commented 3 years ago

Hello, I want to know how to use dataio_create_epochs_SM_Tsinghua.m. Where should the folder in the code such as Freq_Phase.mat be created?Thank you.

okbalefthanded commented 3 years ago

Hi, Create a folder in the main toolbox folder, next to datatio, evaluation etc.., the datasets folder should look like this:

datasets 
│
└───ssvep_tsinghua_jfpm
│   │   S1.mat
│   │   S2.mat
│   │
└───another_dataset
    │   s1.mat
    │   s2.mat

So at the end the toolbox folder tree will look like this:

bci_toolbox/
|___dataio
|___datasets
|___evaluation
|___machine_learning
|___...
tahaolan commented 3 years ago

Thank you, I also want to know what values ​​should be set for epoch_length and filter_band

okbalefthanded commented 3 years ago

both are vectors of 2 elements, epoch_length can be any length between 0 and length of samples (6 seconds in Tsinghua). keep in mind that values of epoch_length are of type int and in milliseconds, as for filter band values should cover the stimulation frequencies up to their 3rd harmonics. example: epoch_length = [0 1000] (epochs of 1 second) filter_band = [5 60] (frequencies from 5 to 60 hz)

tahaolan commented 3 years ago

mmexport1619841699117

Why is it reported that the index exceeds a part of the range

okbalefthanded commented 3 years ago

This error is raised when the dataio_create_epocsh_SM_Tsinghua can't find datafiles. before running any evaluation make sure to run the setup.m script first and to always execute data_create_epochs functions from the bci_toolbox main folder.

tahaolan commented 3 years ago

Thank you, I have another question why L1MCCA and ITCCA can't run

okbalefthanded commented 3 years ago

ITCCA wasn't running due to an unmerged commit between master and dev branches, you can download the current code it will run well. Unfortunately L1MCCA requires longer debugging which I can't go through, however I advise you to check the authors code that I translated into this toolbox : https://www.mathworks.com/matlabcentral/fileexchange/50876-mlrforssvepbci_demo

tahaolan commented 3 years ago

Hello, does this code use 64 channels? If I only want to use Pz, PO5, PO3, POz, PO4, PO6, O1, Oz and O2, what should I do?

okbalefthanded commented 3 years ago

There are two possibilities : 1 - select the channels after reading each subject raw file in dataio_create_epochs. or 2 - select the specific channels after reading epoched files in run_analysis function.

whiteblack1566 commented 6 months ago

Hello, I would like to know how to solve this problem 4CAM$3AM2FWPS5%Z`BSQ9Y0

okbalefthanded commented 6 months ago

Hello, I would like to know how to solve this problem 4CAM$3AM2FWPS5%Z`BSQ9Y0

I will look into it