Return to the Behavior Adaptation Task page
						
										BEHAVIOR ADAPTION TASK

SCRIPT INFO

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 10-22-2013
last updated: 01-08-2016 by K.Borchert (katjab@millisecond.com) for Millisecond Software LLC

Copyright © 01-08-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
This script implements the Behavior Adaptation Task (BAT), a motor inhibition Go-NoGo task, as described in:

Hester, R, Simões-Franklin, C., & Garavan, H. (2007). Post-error behavior in active cocaine users: poor awareness 
of errors in the presence of intact performance adjustments. Neuropsychopharmacology, 32, 1974–1984

Millisecond Software thanks Dr. Hester et al for generously providing assistance with script development/clarifications!



											  *Task*
Participants are presented a steady paced (1hz) stream of X and Ys (one letter at the time) in the middle of the screen.
They are instructed to make a button response for each of the letters as long as the letters are alternating 
(switch from X to Y or from Y to X). Trials with alternating letters are the GO trials. 
If a letter was repeated (the alternation order interrupted), participants were instructed to withhold the response.
These trials are the NOGO trials. 

Responses to G) trials in a condition in which all NOGO trials are followed by GO trials (SL = single lure condition) 
are compared to responses to GO trials in a condition in which NOGO trials can also be followed by another NOGO trial 
(DL = double lure condition). Behavior Adaptation is thought to occur if there is a slowing down 
of responses to GO trials following single (correctly suppressed) lure NOGO trials in the DL condition 
(when another NOGO trial is possible to follow)  compared to the SL condition (when another NOGO trial is impossible).


DATA FILE INFORMATION: 
The default data stored in the data files are:

(1) Raw data file: 'BehaviorAdaptionTask_raw*.iqdat' (a separate file for each participant)

build:											Inquisit build
computer.platform:								the platform the script was run on
date, time, subject, group:						date and time script was run with the current subject/groupnumber 
/blockorder:									"SL-DL"; "DL-SL" 
blockcode, blocknum:							the name and number of the current block
trialcode, trialnum: 							the name and number of the currently recorded trial
													(Note: not all trials that are run might record data; by default ) 

/blocktype:										"SL": block that only runs single NoGo trials (not followed by other NoGo trials)
												"DL": block that runs a variety of single and double NoGo trials

/trialtype:										"go" vs. "nogo"
/stimulus:										the presented target 
response:										the participant's response (scancode)
correct:										the correctness of the response
values.rt: 										the latency of the response in ms (if no response values.rt = "")
/responsetype:									"NoGo Success" - successful suppression of response to NoGo trial
												"NoGo Failure" - failed suppression of response to NoGo trials
												"Go Anticipatory" - possible anticipatory response to Go trials (latency < parameters.anticipatoryresponse)
												"Go Success" - correct response to Go trials with latency >= parameters.anticipatoryresponse
												"Go Omission" - omission of response to Go trials
														(Note: trialtype distinction added by Millisecond Software)

Summary Variables by Blocktype:
/count_go_SL:									counts Go trials across SL Block (regardless of whether they follow a NoGo trial or not)
/count_nogo_SL:									counts NoGo trials across SL Block
/count_omissions_SL:							counts omissions in across SL Block
/count_failedsuppressions_SL:					counts failed suppressions across SL Block
/count_anticipatory_SL:							counts anticipatory responses for Go trials across SL Block

/count_go_DL:									counts Go trials across DL Block (regardless of whether they follow a NoGo trial or not)
/count_nogo_DL:									counts NoGo trials across DL Block
/count_omissions_DL:							counts omissions across DL Block
/count_failedsuppressions_DL:					counts failed suppressions across DL Block
/count_anticipatory_DL:							counts anticipatory responses for Go trials across DL Block

/count_Go_SLSL:									count correct GO trials that come after a single correct NOGO trial in the SL condition
/sumRT_Go_SLSL:									sum up correct latencies of GO trials that come after a single correct NOGO trial in the SL condition
/count_Go_SLDL:									count correct GO trials that come after a single correct NOGO trial in the DL condition
/sumRT_Go_SLDL:									sum up correct latencies of GO trials that come after a single correct NOGO trial in the DL condition


(2) Summary data file: 'BehaviorAdaptionTask_summary*.iqdat' (a separate file for each participant)

script.startdate:				date script was run
script.starttime:				time script was started
script.subjectid:				subject id number
script.groupid:					group id number
script.elapsedtime:				time it took to run script (in ms)
computer.platform:				the platform the script was run on
/completed:						0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)
SL = block that runs only single lure NoGo trials (not followed by another Nogo trial)
DL = block that runs a variety of Nogo trials (some that are followed by another Nogo trial and some that are not)

for SL and DL blocks separately:
/percent_omissions:              percent omissions (= no responses to Go trials) 
/percent_anticipatory:			 percent of anticipatory responses to Go trials (trials that have latencies < parameters.anticipatoryresponse)
/percent_failedsuppression:      percent of failed suppressions (= responses to Nogo trials)

/meanrt_GO_SLSL:				mean latency of correct GO trials after single correct (aka suppressed) NOGO trials (single lure) in the SL condition
/meanrt_GO_SLDL:				mean latency of correct GO trials after single correct (aka suppressed) NOGO trials (single lure) in the DL condition
/RT_Diffscore:					the difference score between the two
									=> positive RT_Diffscore: slowing down in Go trials after single lures in DL condition
									(when another lure is possible) compared to Go trials after single lures in SL condition (when no other lure is possible)

EXPERIMENTAL SET-UP
* 2 Conditions: SL (single lure NOGO trials) vs. DL (mix of double lure and single lure NOGO trials) - tested within participant in a blocked design
* 3 experimental blocks per condition (tested in a blocked design; order of conditions is counterbalanced by assigned groupnumber)
* 314 trials per condition
SL: 1 Start GO trial, 153 GO trials (that follow GO trials), 80 single NOGO trials (follow GO trials), 80 GO trials that follow NOGO trials = 314 trials
		=> order randomized
DL: 1 Start Go trial, 171 GO trials (that follow GO trials), 44 single NOGO trials (follow GO trials and are followed by a GO trial), 
	44 GO trials (follow single NOGO trials),  18 double NOGO trials (followed by another NOGO trial), 
	18 NOGO trials (follow a NOGO trial and are followed by a GO trial) and 18 GO trials (follow the double NOGO trials) = 314 trials
		=> order randomized
* 2 optional practice blocks: practice_SL - 25 trials; practice_DL - 29 trials (practice blocks added by Millisecond Software; not original)


Trial Sequence:
{target (x or y) for 800ms -> fixation cross for 200ms}	-> {target.....
Responses to a target are taken until the time the next target is presented.

INSTRUCTIONS
not original, can be edited under EDITABLE CODE -> Editable Instructions

EDITABLE CODE:
check below for (relatively) easily editable parameters, stimuli, instructions etc. 
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.

The parameters you can change are:

/responsekey:							scancode of the response key
											Note: scancodes under Tools -> Keyboard Scancodes (default: 57)
/responsekey_label:						label of the response key (default: )
/fontsize_target:						fontsize of the targets in screen height percentages (default: 10%)
/fontsize_fixation:						fontsize of the fixation mark in screen height percentages (default: 3%)

/stimulusduration:						presentation duration of the targets in ms (default: 800ms)
/fixationduration:						presentation duration of the fixation stimulus in ms (default: 200ms)
/anticipatoryresponse:					latencies in ms in Go trials faster than this value (default: 100ms) are coded as anticipatory responses
										in this script
/practice:								true = practice blocks are skipped
										false = practice block are run

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment