ssvep classifiers configuration file

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
goood_persooon
Posts: 1
Joined: Thu Jun 28, 2012 9:50 am

ssvep classifiers configuration file

Post by goood_persooon »

Hi
I want to change the ssvep sample of bci (battle ship) and change it to mouse movement scenario. So I added another frequency in different parts of scenario. and everything is ok, but for training phase I have to give the CSP Spatial Filter Trainer an spatial filter configuration file because there is only 3 classifiers in classifiers folder. So I have to write another classifier but the problem is I do not know what does every parameter do in the file.
content of a classifier (csp3) file is below:
<OpenViBE-SettingsOverride>
<SettingValue>-1.507770e-001 5.440604e-001 -1.024987e-001 -4.279084e-001 -1.012016e-001 -9.144480e-002 1.211079e-001 -2.143108e-001 8.387882e-002 3.349353e-001 -1.834762e-001 2.914056e-003 -4.099962e-001 2.957476e-001 -4.037110e-002 -2.475011e-003 -1.668683e-001 2.905609e-001 -4.338242e-002 -2.781564e-002 5.934098e-002 3.177332e-002 -2.838974e-001 2.614644e-001 -3.786669e-001 5.999488e-001 3.597627e-001 -3.117516e-001 </SettingValue>
<SettingValue>2</SettingValue>
<SettingValue>14</SettingValue>
</OpenViBE-SettingsOverride>


does any one know what are these numbers and what should I do about this problem?

thank you

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: ssvep classifiers configuration file

Post by jlegeny »

Hello,

the configuration file for all CSP filters is generated automatically AND is subject dependent. If you add frequencies to the settings scenario it will automatically generate configuration tokens (and files) for all boxes.

However in order to add a new frequency you will have to modify some boxes' settings after you copy-paste the appropriate parts of the scenarios (training as well as online). Notably boxes with labels looking like Frequency-X or CSP-X which are configured by files. The process is quite straightforward.

Taking the ssvep-bci-3-CSP-training.xml as an example:

Copy the block of boxes under the label "Signal processing for the third stimulation frequency" and paste it into the scenario. Connect the identity box at the top of the block to the identity after acquisition server. Edit settings of the box Frequency-3 (you can rename it to frequency-4 but that does not matter) and change the "${Path_Samples}/bci/ssvep/configuration/temporal-filter-freq-3.cfg" to "${Path_Samples}/bci/ssvep/configuration/temporal-filter-freq-4.cfg". Do a similar thing with the associated CSP Spatial Filter Trainer (change "${Path_Samples}/bci/ssvep/classifiers/csp-3" to "${Path_Samples}/bci/ssvep/classifiers/csp-4". Change settings of all of the Target Separator boxes, since there number of frequencies is now 4 : you have to add 4 as a non-target for the first three frequencies and in the new block 4 is the target and you have to add 3 as a non-target. Finally, add a new input to the flipswitch box and connect the new csp spatial trainer to it.

The modification of the classifier training scenario is similar. Note that although the csp-4 file does not exist, it will be created once you run the csp-training scenario with real data.

Hope this helps, if you have any more questions do not hesitate to ask

Jozef

razano1
Posts: 18
Joined: Wed Jun 20, 2012 1:56 pm

Re: ssvep classifiers configuration file

Post by razano1 »

Dear Jozef...

i explored Flipswitch box lua script but not been able to understand its usage in training and classification scenarios??
What exactly this box do ?? is it only to control termination of scenario or what ??

Best Regards
Asim

Post Reply