Return to the Alcohol Dot Probe Task page
___________________________________________________________________________________________________________________	

										ALCOHOL DOT PROBE TASK - with images
											Measure of Attentional Bias
												(in Portuguese)
___________________________________________________________________________________________________________________

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

Script Copyright © 03-09-2020 Millisecond Software

Millisecond Software thanks Dr. Fillmore for ample assistance and generously sharing the original stimuli!
Portuguese translations kindly provided by Luiz Victorino.
___________________________________________________________________________________________________________________
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 FILE INFORMATION 
___________________________________________________________________________________________________________________
The default data stored in the data files are:

(1) Raw data file: 'alcoholdotprobe_portuguese_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
script.sessionid:					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
target_position:					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
target_image:						stores the currently presented target (e.g. alcohol) image
comp_image:							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_portuguese_summary*.iqdat' (a separate file for each participant)

computer.platform:					the platform the script was run on (win/mac/ios/android)
script.startdate:					date script was run
script.starttime:					time script was started
script.subjectid:					assigned subject id number
script.groupid:						assigned group id number
script.sessionid:					assigned session id number
script.elapsedtime:					time it took to run script (in ms); measured from onset to offset of script
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)

propcorrect_congruent_Alcohol:		proportion correct in congruent Alcohol  trials
meanrt_congruent_Alcohol:			mean latency of congruent Alcohol  trials
propcorrect_incongruent_Alcohol:	proportion correct in incongruent Alcohol  trials 
meanrt_incongruent_Alcohol:			mean latency of incongruent Alcohol  trials

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

propcorrect_congruent_Filler:		proportion correct in congruent Filler trials 
meanrt_congruent_Filler:			mean latency of congruent Filler  trials
propcorrect_incongruent_Filler:		proportion correct in incongruent Filler trials 
meanrt_incongruent_Filler:			mean latency of incongruent Filler  trials

AB_Filler:							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 and provided 
as htm/html pages that can be edited by changing the provided htm/html files.
To edit htm/html-files: open the respective documents in simple Text Editors such as TextEdit (Mac)
or Notepad (Windows).

Portuguese translations kindly provided by Luiz Victorino.

___________________________________________________________________________________________________________________	
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)
/tp_isi:								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)
/responsekey_left:						the left response button (default: "N")
/responsekey_right:						the right response button (default: "M")

/minimum_latency:						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

/target_left_x-target_right_x:			the x-coordinate in % of the right/left target (default: 27%, 73%)
/target_y:								the y-coordinate of the target (default: center at 50%)
/fixationcross_height:					the height of the fixation cross in canvas height percentage (default: 5%)
/probe_height:							the height of the probe in canvas height percentage (default: 5%)
/imageheight:							the height of the image in canvas height percentage (default: 40%)