User Manual: Inquisit Alcohol Dot Probe Task


___________________________________________________________________________________________________________________	

										ALCOHOL DOT PROBE TASK - with images
											Measure of Attentional Bias
											(German instructions)
___________________________________________________________________________________________________________________

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 05-28-2015
last updated:  06-09-2023 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC

Script Copyright © 06-09-2023 Millisecond Software

German translation by K.Borchert for Millisecond Software
Millisecond Software thanks Dr. Fillmore for ample assistance and generously sharing the original stimuli!
___________________________________________________________________________________________________________________
BACKGROUND INFO 	
___________________________________________________________________________________________________________________	
This script implements a dotprobe procedure to measure attentional bias with images.
The implemented procedure is based on:

Miller, M.A. & Fillmore, M.T (2010). The effect of image complexity on attentional bias
towards alcohol-related images in adult drinkers. Addiction, 105, 883–890.

Note: Due to the fact that no differences were found with complex stimuli, this script only implements the 
dot probe task with simple pictures.

___________________________________________________________________________________________________________________
TASK DESCRIPTION	
___________________________________________________________________________________________________________________
After presentation of a fixation cross in the center of the screen, participants are presented with 
2 pictures from two categories (here: alcohol and neutral pictures). The position of the pictures is randomly
chosen to be either left or right to the location of the fixation cross. After a short duration,
the two pictures disappear and a probe stimulus (here: X) appears in the location of one of the
pictures. Participants are asked to press one key if the probe is left and another if the probe is right.
Attentional Bias Measures (AB) are provided for alcohol and neutral (control) stimuli.

___________________________________________________________________________________________________________________	
DURATION 
___________________________________________________________________________________________________________________	
the default set-up of the script takes appr. 4 minutes to complete

___________________________________________________________________________________________________________________	
DATA OUTPUT DICTIONARY
___________________________________________________________________________________________________________________
The fields in the data files are:

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

build:							The specific Inquisit version used (the 'build') that was run
computer.platform:				the platform the script was run on (win/mac/ios/android)
date, time: 					date and time script was run 
subject, group, 				with the current subject/groupnumber
session:						with the current session id

blockCode, blockNum:			the name and number of the current block (built-in Inquisit variable)
trialCode, trialNum: 			the name and number of the currently recorded trial (built-in Inquisit variable)
										Note: trialNum is a built-in Inquisit variable; it counts all trials run; even those
										that do not store data to the data file. 
																												
task:							1 = practice; 2 = test															
category:						1 = Alcohol ; 2 = Filler 
congruence:						1 = probe and target (e.g. alcohol) position same; 2 = probe and target (e.g. alcohol) position different
targetPosition:				1 = target (e.g. alcohol) image on left; 2 = target (e.g. alcohol) image on right 

comp_x-probe_x:					the x-coordinate (in %) of the target (e.g. alcohol)/ comp ('paired with target') /probe stims
itemNumber:						itemnumber of currently selected picture
targetImage:					stores the currently presented target (e.g. alcohol) image
compImage:						stores the currently presented comp ('paired with target') image

response:						the participant's response (scancode of response button)
									 49 = N (left key)
									 50 = M (right key)
									 
latency: 						the response latency in ms (measured from onset of probe)
correct:						accuracy of response (regardless of whether latency >= parameters.minimum_latency)
								1 = correct; 0 = incorrect
valid:							latency in ms that is >= parameters.minimum_latency
validCorrect:					1 = response was correct AND latency was >= parameters.minimum_latency; 0 = otherwise


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

inquisit.version: 					Inquisit version run
computer.platform:					the platform the script was run on (win/mac/ios/android)
startDate:							date script was run
startTime:							time script was started
subjectId:							assigned subject id number
groupId:							assigned group id number
sessionId:							assigned session id number
elapsedTime:						time it took to run script (in ms); measured from onset to offset of script
completed:							0 = script was not completed (prematurely aborted); 
									1 = script was completed (all conditions run)

NOTE: all latency/accuracy summary variables are based on correct responses with latencies >= parameters.minimum_latency (default: 100ms)

propCorrect:						proportion correct overall
meanRT:								overall mean latency (in ms)

propCorrectCongruentAlcohol:		proportion correct in congruent Alcohol  trials
meanrtCongruentAlcohol:			mean latency of congruent Alcohol  trials
propCorrectIncongruentAlcohol:	proportion correct in incongruent Alcohol  trials 
meanrtIncongruentAlcohol:			mean latency of incongruent Alcohol  trials

abAlcohol:							Attentional Bias for Alcohol pics : If AB_Alcohol > 0 
									=> faster mean latencies to congruent alcohol trials than incongruent ones

propCorrectCongruentFiller:		proportion correct in congruent Filler trials 
meanrtCongruentFiller:			mean latency of congruent Filler  trials
propCorrectIncongruentFiller:		proportion correct in incongruent Filler trials 
meanrtIncongruentFiller:			mean latency of incongruent Filler  trials

abFiller:							Attentional Bias for FillerA pics ('targets'): If AB_Filler > 0
									=> faster mean latencies to congruent FillerA trials than incongruent ones

___________________________________________________________________________________________________________________	
EXPERIMENTAL SET-UP 
___________________________________________________________________________________________________________________
2 categories tested (Alcohol: alcohol; Filler: filler); within-design
- 1 block of 10 practice trials
- 1 block of 80 trials: 40 Alcohol trials (alcohol-neutral pairings) and 40 Filler (filler1-filler2 pairings)
	10 alcohol/neutral simple pictures, all pictures presented 4 times
	=> right/left, followed by prime/not followed by prime => 10 * 4 = 40 trials
	- Filler Trials: same for filler trials
	Note: all 80 trials are randomly sampled without replacement

	DEFAULT TRIAL SEQUENCES
	fixation cross (500ms) -> target image pair (1000ms) -> tp_isi (0ms)-> probe (max. 1000ms)	(latency measured from onset of probe until response or offset of probe; whichever comes first)

___________________________________________________________________________________________________________________	
STIMULI
___________________________________________________________________________________________________________________
Stimuli were generously shared by Dr. Fillmore and can be easily edited under EDITABLE STIMULI

___________________________________________________________________________________________________________________	
INSTRUCTIONS 
___________________________________________________________________________________________________________________
Original Instructions were generously shared by Dr. Fillmore.
They have been slightly edited by Millisecond Software.
They can be edited under section 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:

/readyDuration:							the duration (in ms) of the get-ready-trial (default: 3000ms)
/fixationDuration:/targetduration:		the duration of the fixation cross (default: 500ms)/the targets (default: 1000ms)
/tpIsi:								target-probe interstimulus interval in ms (default: 0ms)

/probeDuration:							the duration of the probe presentation (default: 1000ms)
											Note: by default this scripts allows for responses for the entire probe duration;
											the trial terminates after parameters.probeduration is over

/iti:									intertrialpause in ms (default: 0ms)
/probe:									the symbol used for the probe (default: X)
/responseKeyLeft:						the left response button (default: "N")
/responseKeyRight:						the right response button (default: "M")


/minimumLatency:						the minimum latency of a correct response that is included into summary variables
										(default: 100ms)

Physical Settings of Display:				Note: change the settings to optimize the display on your computer screen

/targetLeftX:-target_right_x:			the x-coordinate in % of the right/left target (default: 27%, 73%)
/targetY:								the y-coordinate of the target (default: center at 50%)
/fixationCrossHeight:					the height of the fixation cross in canvas height percentage (default: 5%)
/probeHeight:							the height of the probe in canvas height percentage (default: 5%)
/imageHeight:							the height of the image in canvas height percentage (default: 40%)