Eyes closed and Open EEG data predict?

15 次查看(过去 30 天)
I am having a resting state EEG data and want to predict the Eyes closed and open conditions. How can I implement code in matlab and any prototype code or function available to figure out this problem. Thanks!

采纳的回答

Jingwei Too
Jingwei Too 2020-7-23
You may follow these step
(1) Extract the features from the EEG signals (for both eye closed and open)
(2) You may perform the prediction using the following toolbox by using the feature vector and label
  2 个评论
Khan Muhammad Adeel Khan
Thanks Jingwei Too! Could you please guide me how to use the feature vector and label? I am having EEG data from several participants and I want to classify the resting state by extracting the alpha power of the EEG. For example, 10 participants and 38 channel data (10*38=380 ) means that 380 features in both resting states.
Khan Muhammad Adeel Khan
Dear Jingwei!
I had successfully applied your toolbox and it's working perfectly. At the frontal channel the accuracies are :
Classification Accuracy (KNN): 72.2546 %
Classification Accuracy (DA): 74.0612 %
Classification Accuracy (NB): 69.5661 %
Classification Accuracy (DT): 71.1095 %
Classification Accuracy (SVM): 70.1351 %
Classification Accuracy (RF): 68.2575 %
However I am bit confused and could you please eloborate these parameters in a bit detail.
(1) Accuracy for each fold in k-fold cross-validation
(2) Average accuracy over k-folds
(3) Confusion matrix.
Thanks once again for developing such an amazing toolbox for the Machine Learning applications.

请先登录,再进行评论。

更多回答(1 个)

Jingwei Too
Jingwei Too 2020-7-23
Let say you have 10 participants, and 38 channels. You extract one feature (alpha power) from each participant. Then your feature vector will be 10 x 38 (Instances x features). However, if you extract two features from each participant. Then your feature vector will be 10 x 76. Hope this clear.
Then for the label, you have 10 participant, let say first 5 of them are eye closed and last 5 of them are eye opened. Then your label will be [1;1;1;1;1;0;0;0;0;0]. The '1' means eye closed and the '0' means eye opened. The '1' and '0' you can change them with any value, but just make sure they are different since they represent different conditions (eye closed or opened).
  1 个评论
Khan Muhammad Adeel Khan
Thaks Jingwei! I already resolved the problem and it works perfectly. You really make ML so simple and hats off to you for this great contribution

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by