OVTK_StimulationId_Train in p300-speller-3-train-classifier

About the GUI application to design signal processing pipelines
Post Reply
chantrip
Posts: 42
Joined: Fri Jul 08, 2011 9:32 am

OVTK_StimulationId_Train in p300-speller-3-train-classifier

Post by chantrip »

Dear Openvibe team

In the file p300-speller-3-train-classifier.xml, from my understanding, the classifier training starts when the box 'classifier trainer' receives the OVTK_StimulationId_Train stimulation. Could you please tell me which box sends this stimulation? I checked the box 'Lua Stimulator' and its code ovpCBoxAlgorithmLuaStimulator.cpp but couldn't find it. My P300 speller code sometimes cannot start classifier training process and I believe it has not received the stimulation 'OVTK_StimulationId_Train'.

Thank you very much

-Jim

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: OVTK_StimulationId_Train in p300-speller-3-train-classif

Post by lbonnet »

Hi Jim,

The Lua Stimulator executes Lua script, where the stimulations are sent and received.
In the classifier training scenario, the OVTK_StimulationId_Train stimulation is sent by the File reader.

As you can see in the acquisition scenario, this file contains the stimulation stream coming from the Lua Stimulator.

When you look at the Lua script p300-speller-target.lua, you can see that the OVTK_StimulationId_Train stimulation is sent when the Lua box receives OVTK_StimulationId_ExperimentStop, that comes from the P300 Speller Stimulator named "Flashing sequence".

Anyway, you can always trigger manually the training by using a defined stimulation in the classifier trainer, and a Keyboard stimulator.
For example, begin training with OVTK_StimulationId_Label_01.
Fast forward the scenario, and when you are sure that all data have been processed (time counter superior to the session duration), press 'a' in the keyboard stimulator. This should manually trigger the training.

hope this helps!

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

chantrip
Posts: 42
Joined: Fri Jul 08, 2011 9:32 am

Re: OVTK_StimulationId_Train in p300-speller-3-train-classif

Post by chantrip »

Dear Laurent

Thank you very much for your reply. I ended up adding a text in LuAstimulator.cpp to show that OVTK_StimulationId_Train has already been sent to make sure that I don't miss it. :) .

-Jim

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: OVTK_StimulationId_Train in p300-speller-3-train-classif

Post by lbonnet »

Hi Jim,

If this solution fits your needs, I guess it's ok :)

However I must tell you again... Modifying the Lua Stimulator box itself is not the wisest/easiest solution.
Lua is a powerful scripting language, and you don't have to recompile everything after each modification of the script executed by the box :D

Bye

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

Post Reply