makebrainwaves / BrainWaves

An easy-to-use platform for EEG experimentation in the classroom
MIT License
61 stars 26 forks source link

Add 'correctness' information to behavioural data #33

Closed jdpigeon closed 5 years ago

jdpigeon commented 5 years ago

Currently, the behavioural output of the app saves reaction time, key pressed, and stimulus filename, but not the important measure of whether the user pressed the right key according to the rules of the experiment.

This has not been implemented yet due to the fact that we are relying on the jsPsych image-keyboard-response plugin to handle collecting keyboard input, which doesn't accept any 'correct' keys as parameters and treats all keys the same.

The best way to go about implementing this would probably be to extend the image-keyboard-response and callback-image-display plugins to, in addition to their current parameters, accept a 'stimulus_type' parameter and a 'correct_response' parameter. The plugin should then return 'stimulus_type' and 'correct' in the jsPsych.data object.

jdpigeon commented 5 years ago

Resolved in https://github.com/makebrainwaves/BrainWaves/pull/66