Skip to content

CognitiveNeuroLab/Oddball_experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Logo

Oddball paradigm

All new oddball paradigms that are run in the CNL can be added to this Repo. It currently has a Duration oddbal tone paradigm and a Visual oddball pardigm

Table of Contents

  1. About the project
  2. Visual oddball
  3. Auditory oddball
  4. License
  5. Contact
  6. Acknowledgements

About The Project

In this repo everyone can add all the the oddball paradigms that are being ran at the CNL. Currently in this repo:

  1. Auditory duration discrimination oddball
  2. Auditory duration tone oddball
  3. Auditory Rhythm oddball
  4. Auditory ommision oddball
  5. Visual oddbal

almost all paradigms will have 50 sequence files of one randomly will be selected. These need to be created first using the matlab file (MMN_makeSequence)

Auditory oddball

Duration discrimination oddball

For this oddball the duration of the deviant tone changes. The standard tone has a 100ms tone that contains at the start and end a 10ms rise and fall time. The deviants have a duration of 115ms (11ms rise/fall) 130ms (13ms rise/fall) 145ms (15ms rise/fall) 160ms (16ms rise/fall). The standard is happenin 80% of the time and the deviant is happens 20% of the time. The tones are all 1000hz and are created using audacity.Every trail has a 800 ms ISI after a standard and the ISI after a deviant depends on whatever the length of the deviant is so the trial ends up being also 900 ms. Running 1 block takes 3 min 36 sec. Each block contains 240 trials (192 standards and 48 deviants). If the trial is a deviant or standard is decided in a semi randomized txt file. For each block there is 1 currently, but if this paradigm is ran for a study, use the matlab file to create 50 for each condition and change the presentation code to randomize which one it'll pick.

When testing the timing of this paradigm we found that there is 2ms between the onset of any stimulus and the trigger. This is highly related to soundcards. If you plan to use this paradigm, you need to measure if this timing is also accurate for that computer.
timing

This experiment has also a behavioral part where it only does 30 trials and people should click for the deviant.
Created by Douwe Horsthuis and Ana Francisco

Duration tone oddball

For this oddball the soa is changing, there is a 225-450-900-1800-3000 ms SOA.
The standard is happening 80% of the time, it is a 100ms 1000hz tone. The deviant is happens 20% of the time, never in a row, it is a 180ms 1000hz tone.. We still need to decide how many trails we need per block When testing the timing of this paradigm we found that there is 2ms between the onset of any stimulus and the trigger. This is highly related to soundcards. If you plan to use this paradigm, you need to measure if this timing is also accurate for that computer.

Created by Luke Shaw and extra soas added + updated by Douwe Horsthuis

Rhythm oddball

For this oddball paradigm the standard and deviant tone are both the same tone; a 1000hz 100ms tone with a 10ms rise and fall time. The standard trial (85%) is and 800ms ISI followed by the 100ms tone, whereas the deviant trial (15%) is 260 440 or 620ms, depending on the block, followed by the 100ms tone. All deviant preceded by at least 2 standards and there are no deviants in the first 4 trials. Each block needs to be ran 4 times resulting in 144 deviants. When testing the timing of this paradigm we found that there is 2ms between the onset of any stimulus and the trigger. timing

Created by Douwe Horsthuis and Ana Francisco

Ommision oddball

For this oddball there is a standard 1000hz 50ms tone with a rise and fall time of 5ms presented 85% of the times. 15% of the times there is a 50ms silence presented. All deviant preceded by at least 2 standards and there are no deviants in the first 4 trials. This should results in a MMN, however this specific MMN wasn't clear (not none existend) when we looked at the data so it got dropped from the project. Each block has a different ISI. Each block needs to be ran 4 times resulting in 144 deviants. When testing the timing of this paradigm we found that there is 2ms between the onset of any stimulus and the trigger. timing

Created by Douwe Horsthuis and Ana Francisco

Visual Oddball

Visual discrimination duration oddball

For this oddball the duration of the deviant changes depending on the blocks. It functions the same way as Duration discrimination oddball.However the durations are slightly different due to the refresh rate of the monitor that we present it on. The standard is happening 80% of the time, it is a circle that stays in the middle of the screen for 100ms. The deviant is happens 20% of the time, never in a row, by showing having the circle stay longer on the screen (165 216 265 or 316ms). There are 220 trial in one block, that will contain 33 deviants, so each block needs to be ran 3 times. To use the experiment, use the Matlab script to create 50 sequence files for each soa, and change the presentation code for each PCL:

#string file_path = direc + "sequences\\" + printf(random(1,50),"225_sequence_%d.txt"); #this one should be used for the real experiment
string file_path = direc + "sequences\\" + printf(1,"225_sequence_%d.txt"); #this one should be used only when testing

Should be

string file_path = direc + "sequences\\" + printf(random(1,50),"225_sequence_%d.txt"); #this one should be used for the real experiment
#string file_path = direc + "sequences\\" + printf(1,"225_sequence_%d.txt"); #this one should be used only when testing

This paradigm is active so the participant should click whenever they detect the deviant. There is also eye tracking.

When testing the timing of this paradigm we found that there is 0ms between the onset of any stimulus and the trigger. in the "code_std" event in the scenario we delay the trigger by 7ms so they happen at the same time. When testing the duration of the stimulus on the screen we realized we needed to change the length to be less long. This is needed because presentation can prepare the stimulus for the next refresh rate. *when tested the standard = 100ms and the deviants are exactly 165 216 265 or 316ms respectively.

Visual spacial oddball

For this oddball the soa is changing per block (similar to the auditory Duration tone oddball).
The standard is happening 80% of the time, it is a triangle that shows up in the middle of the screen. The deviant is happens 20% of the time, never in a row, by showing up lower then the Standard. There are 220 trial in one block, that will contain 33 deviants, so each block needs to be ran 3 times. To use the experiment, use the Matlab script to create 50 sequence files for each soa, and change the presentation code for each PCL:

#string file_path = direc + "sequences\\" + printf(random(1,50),"225_sequence_%d.txt"); #this one should be used for the real experiment
string file_path = direc + "sequences\\" + printf(1,"225_sequence_%d.txt"); #this one should be used only when testing

Should be

string file_path = direc + "sequences\\" + printf(random(1,50),"225_sequence_%d.txt"); #this one should be used for the real experiment
#string file_path = direc + "sequences\\" + printf(1,"225_sequence_%d.txt"); #this one should be used only when testing

This paradigm also has a behavioral part where every participant should do 1 block of each SOA after they are all done with the passive part. Both parts have eye tracking.

When testing the timing of this paradigm we found that there is 0ms between the onset of any stimulus and the trigger. in the "code_std" event in the scenario we delay the trigger by 7ms so they happen at the same time.

As you can see here the onset of the trigger (orange) happens a the same time as when the stimulus changes thresholds timing

Created by Douwe Horsthuis and Ana Francisco *After Piloting we decided to drop this paradigm. Instead we will use a visual version of the Duration discrimination oddball.

Contributing

Please add any oddball paradigm you are using to this repo greatly appreciated.

Feel free to reach out to Douwe Horsthuis (douwe.horstuis@einsteinmed.org or douwehorsthuis@gmail.com), or just add it to the repo and update the readme.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Douwe Horsthuis - douwehorsthuis@gmail.com

Project Link: https://github.com/CognitiveNeuroLab/Oddball_experiments/

Acknowledgements

  • Luke Shaw - who made the first version of the oddball duration tone paradigm