kNN Classification on SSVEP response

4 views (last 30 days)
Dear all,
I am currently doing a project on SSVEP-EEG BCI and in the stage of features classification. The raw EEG signal has passing through pre-processing using bandpass filter then DWT and CCA for Features Extraction. I wonder how could I classify the extracted features using kNN for both DWT and CCA? Could someone please help me?
Thank you very much.

Accepted Answer

Star Strider
Star Strider on 23 Jan 2019
In my experience, to use knnsearch (link) with data, the idea is to begin with samples that have known classes, then compare them with the rest of your data. (I did this decades ago using EEG spectrogram data.) The knnsearch algorithm will then discover the closest matches to the known data and use that as the basis of its classification.
I would simply create a matrix of the vectors of the features you want to match, and use that. Of course, the relevant features must be in the same locations in each vector, and the vectors must have the same lengths. I am not certain whether you want to classify the DWT and CCA results separately. You could do that, with separate knnsearch runs, or you could concatenate the DWT and CCA results in each vector and submit those to knnsearch.
I have never done what you are doing, so I have no experience with the techniques you are using.
  5 Comments
Greg Heath
Greg Heath on 23 Jan 2019
I used clusters for decades of missile component (tank/missiles/decoys/deployment-debris) classification before I invented neural networks. I obtained the best results when I began with UNCLASSIFIED CLUSTERING in order to determine the optimal choice for classification cluster centers.
Greg
David Lee
David Lee on 24 Jan 2019
Thank you so much Star, Image and Greg. I will look into the documents.
As from my understanding as well, Canonical Correlation Analysis, CCA is kind of statistical method to extract the features of EEG by comparing the coeffiicient a reference signal with the EEG signal, higher coefficient value means more information available in the EEG signal and that will be the features,
I wonder whether CCA is also kind a classification method which may have same function as kNN just the method is different?

Sign in to comment.

More Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!