Motor Imagery BCI - error in example scenario?

Working with OpenViBE signal processing scenarios and doing scenario/BCI design
Post Reply
pwierzgala
Posts: 22
Joined: Tue Nov 26, 2013 3:43 pm

Motor Imagery BCI - error in example scenario?

Post by pwierzgala »

Hi,

I'd like to share with you my problem and ask for help. Here's what happens:
  1. Run acquisition server with "Generic Oscillator" driver.
  2. Open in designer: "mi-csp-1-acquisition.xml" scenario file from "openvibe/share/openvibe/scenarios/bci-examples/motor-imagery-CSP" directory.
  3. "Generic stream writer" component saves "motor-imagery-csp-1-acquisition-[...].ov" file in "${Player_ScenarioDirectory}/signals" directory.
  4. Open in designer "mi-csp-2-trains-CSP.xml" scenario file from "openvibe/share/openvibe/scenarios/bci-examples/motor-imagery-CSP" directory.
  5. "Generic stream reader" component reads "bci-motor-imagery.ov" file from "${Path_Samples}/signals/" directory.
Here the problem begins. If I run "mi-csp-2-trains-CSP.xml" it works well and finishes with success:

Code: Select all

[  INF  ] Adding configuration file(s) [C:/Program Files (x86)/openvibe//share/openvibe/kernel/openvibe-delayed.conf]
[  INF  ] Adding configuration file(s) [C:/Users/<username>/AppData/Roaming/openvibe/openvibe-delayed.conf]
[  INF  ] Adding configuration file(s) [C:/Program Files (x86)/openvibe//share/openvibe/scenarios/bci-examples/motor-imagery-CSP/scenario.conf]
[  INF  ] At time 462.016 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> Received train stimulation - be patient
[  INF  ] At time 462.016 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> Data covariance dims are [11x11]. Number of samples per condition : 
[  INF  ] At time 462.016 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer>   cond1 = 19 chunks, sized 2048 -> 38912 samples
[  INF  ] At time 462.016 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer>   cond2 = 17 chunks, sized 2048 -> 34816 samples
[  INF  ] At time 462.016 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> CSP Spatial filter trained successfully.
The problem is that "Generic stream reader" should read "motor-imagery-csp-1-acquisition-[...].ov" from "${Player_ScenarioDirectory}/signals" instead of "bci-motor-imagery.ov" from "${Path_Samples}/signals/". When I set "Generic stream reader" to read from "${Player_ScenarioDirectory}/signals/motor-imagery-csp-1-acquisition-[...].ov" the scenario never stops, "CSP Spatial Filter Trainer" component never creates "csp-spatial-filter.cfg" file and about 7th minute of processing "ov" file (probably the end of file) the console is filled with the following output:

Code: Select all

[  INF  ] Adding configuration file(s) [C:/Program Files (x86)/openvibe//share/openvibe/kernel/openvibe-delayed.conf]
[  INF  ] Adding configuration file(s) [C:/Users/<username>/AppData/Roaming/openvibe/openvibe-delayed.conf]
[  INF  ] Adding configuration file(s) [C:/Program Files (x86)/openvibe//share/openvibe/scenarios/bci-examples/motor-imagery-CSP/scenario.conf]
[  INF  ] At time 470.008 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> Received train stimulation - be patient
[  INF  ] At time 470.008 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> Data covariance dims are [4x4]. Number of samples per condition : 
[  INF  ] At time 470.008 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer>   cond1 = 0 chunks, sized 2048 -> 0 samples
[  INF  ] At time 470.008 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer>   cond2 = 0 chunks, sized 2048 -> 0 samples
[ ERROR ] At time 470.008 sec <Box algorithm::(0x00004125, 0x0000536f) aka CSP Spatial Filter Trainer> No signal received... Can't continue
Could you explain what do I do wrong or what is wrong with examples provided with installation?

OpenViBE version: 1.0.0
System: Windows 7 Pro x64

gserrier
Posts: 71
Joined: Tue Apr 01, 2014 8:22 am

Re: Motor Imagery BCI - error in example scenario?

Post by gserrier »

Hi,

I have one question. Did you use the fastforward option during the step 2/3?

About the first point, when the scenario is load the settings of the box are restored. This example of bci is provided with an example signal for the people who do not have an headset to make a test. So the stored value of the setting point to this example file (bci-motor-imagery.ov).

Guillaume

pwierzgala
Posts: 22
Joined: Tue Nov 26, 2013 3:43 pm

Re: Motor Imagery BCI - error in example scenario?

Post by pwierzgala »

"I have one question. Did you use the fastforward option during the step 2/3?"
Yes, I used fast forward both during acquisition and training.

"About the first point, when the scenario is load the settings of the box are restored. This example of bci is provided with an example signal for the people who do not have an headset to make a test. So the stored value of the setting point to this example file (bci-motor-imagery.ov)."
Ok, thanks, I see the point.

pwierzgala
Posts: 22
Joined: Tue Nov 26, 2013 3:43 pm

Re: Motor Imagery BCI - error in example scenario?

Post by pwierzgala »

I've tested mentioned scenarios without fast forward between steps 2/3 and it works!

Could you explain what fast forward does that *.ov file recorded that way doesn't work?

Post Reply