Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Regularized Common Spatial Pattern with Aggregation (R-CSP-A) for EEG Classification

Be the first to rate this file! 17 Downloads (last 30 days) File Size: 2.2 MB File ID: #35734 Version: 1.0

Regularized Common Spatial Pattern with Aggregation (R-CSP-A) for EEG Classification

by

 

The codes implement the Regularized Common Spatial Pattern with Aggregation (R-CSP-A) algorithm.

| Watch this File

File Information
Description

Matlab source codes for Regularized Common Spatial Pattern with Aggregation (R-CSP-A)

%[Algorithm]%

The matlab codes provided here implement the R-CSP-A algorithm presented in the
paper "R-CSP-A_TBME2010.pdf" included in this package:

    Haiping Lu, How-Lung Eng, Cuntai Guan, K.N. Plataniotis, and A.N. Venetsanopoulos,
    "Regularized Common Spatial Pattern With Aggregation for EEG Classification
    in Small-Sample Setting",
    IEEE Trans. on Biomedical Engineering,
    Vol. 57, No. 12, pp. 2936-2946, Dec. 2010.

The following is an earlier conference version "RCSP_EMBC09.pdf"

    Haiping Lu, K.N. Plataniotis, and A.N. Venetsanopoulos,
    "Regularized Common Spatial Patterns with Generic Learning for EEG Signal Classification",
    in Proceedings of the 31st Annual International Conference of the
    IEEE Engineering in Medicine and Biology Society (EMBC), Sep., 2009.

[Files]
RegCsp.m: the Regularized Common Spatial Pattern (R-CSP) algorithm
demoR-CSP-Aggr.m: sample code for R-CSP aggregation
FDA.m: perform Fisher’s discriminant analysis (FDA)
---------------------------

%[Usages]%

Please refer to "demoR-CSP-Aggr.m" for example usage
---------------------------

%[Restriction]%

In all documents and papers reporting research work that uses the matlab codes
provided here, the respective author(s) must reference the following paper:

[1] Haiping Lu, How-Lung Eng, Cuntai Guan, K.N. Plataniotis, and A.N. Venetsanopoulos,
        "Regularized Common Spatial Pattern With Aggregation for EEG
        Classification in Small-Sample Setting",
        IEEE Trans. on Biomedical Engineering,
        Vol. 57, No. 12, pp. 2936-2946, Dec. 2010.
---------------------------

%[Additional Resources]%

The BibTeX file "RCSPpublications.bib" contains the BibTex for R-CSP-A and
related works. A related work "UMLDA_TNN09.pdf" is included too.
---------------------------

Required Products MATLAB
MATLAB release MATLAB 7.2 (R2006a)
Other requirements Please cite: LU et al., "Regularized Common Spatial Pattern With Aggregation for EEG Classification in Small-Sample Setting", IEEE Trans. on Biomedical Engineering, Vol. 57, No. 12, pp. 2936-2946, Dec. 2010. Thanks!
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
20 Apr 2016 amin

amin (view profile)

Hello professor Haiping Lu

I have some questions about the implementing the code, it takes much time for me, would you please guide me?

According to the paper, two parameters are named training trials and training sample. What you mean by training samples that value 100 has the best result? (Line 59, according to paper, what does training sample for value 2 mean?)

What was the window or segment length to extract the features, I mean that the start of cue is determined but where is the end (for example 100 msec later).

The third question is in line 63, fea2D_Train = EEG(:,:,trainIdx)
If EEG is the raw data and trainIdx is the label for train.
How is it possible label the eeg data? Label should be used for features not for the sample base data. You know the lengths are not the same. Maybe I did not get the idea.

best Regards
Amin

Email amin_hm2002@yahoo.com

Comment only
18 Sep 2014 Sujeet Blessing

How to form a 3D array of input data from the BCI Competition dataset IVA??

Comment only
23 Aug 2014 Haiping Lu

To Amir: "ftrs" are the features and gnd are the corresponding labels. Please refer to line 87-95 of demoR-CSP-Aggr.m for an example. Thanks!

Comment only
23 Aug 2014 amir tabatabaee

hi , about that fda.m can u tell me what are ftrs and gnd??

Comment only

Contact us