Spatial Patters and low accuracy
Posted: 03 Oct 2015, 08:40
Hello,
I am young researcher working on BCI. I am using common spatial patterns for feature extraction .
I am getting a very low accuracy.
1) I got two classes , each having 60 trials, I separated 42 trails as training and remaining 18 as testing from each class. I have 14 channel headset and sampling rate of 100Hz.
2 ) I obtained the weight matrix (W) using training data only and verified W'*(cov1+cov2)*W=I. So I am sure till this point algorithm is fine.
3 ) I have taken first 3 and last 3 columns of W( 14*6)
4) I projected each trail onto W'(6*14), W'*E where W'=6*14 and E=14*500
5) which gave me s=6*500, then used v= log(var(s))=6*1. v' gave me a 6-d feature vector and labelled it as 1(class1=1 class2=). Same way projected the training data of two classes giving 84 training vectors
6) projected testing data (36 trials) on the same W(which is obtained using training data) and got 36 testing vectors.
7) Used SVM in R software for classification and classification is as low as 45-50% , used other datsets as well but still the accuracy is very low. Can anyone please point me out with the error I made. I am happy to send my code and data if you need.
Any help is very much appreciated.
Kind Regards.
I am young researcher working on BCI. I am using common spatial patterns for feature extraction .
I am getting a very low accuracy.
1) I got two classes , each having 60 trials, I separated 42 trails as training and remaining 18 as testing from each class. I have 14 channel headset and sampling rate of 100Hz.
2 ) I obtained the weight matrix (W) using training data only and verified W'*(cov1+cov2)*W=I. So I am sure till this point algorithm is fine.
3 ) I have taken first 3 and last 3 columns of W( 14*6)
4) I projected each trail onto W'(6*14), W'*E where W'=6*14 and E=14*500
5) which gave me s=6*500, then used v= log(var(s))=6*1. v' gave me a 6-d feature vector and labelled it as 1(class1=1 class2=). Same way projected the training data of two classes giving 84 training vectors
6) projected testing data (36 trials) on the same W(which is obtained using training data) and got 36 testing vectors.
7) Used SVM in R software for classification and classification is as low as 45-50% , used other datsets as well but still the accuracy is very low. Can anyone please point me out with the error I made. I am happy to send my code and data if you need.
Any help is very much appreciated.
Kind Regards.