Whack-A-Mole Test - Keyboard

Technical Manual

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com), Millisecond

Created: January 04, 2021

Last Modified: January 12, 2025 by K. Borchert (katjab@millisecond.com), Millisecond

Script Copyright © Millisecond Software, LLC

Background

This script implements an Inquisit implementation of the 'Whack-a-mole' task, a go/nogo task for children, published at: https://fablab.yale.edu/page/assays-tools Project downloaded: WackAMole.zip

The Inquisit implementation of this script is based on e-prime script 'WackTheMole2.0_Go_NoGo.es'

The downloaded project comes with two 'whack-a-mole' e-prime scripts as well as several information files. - 'mole_agree.html' (included with this script as well) - please read - 'Mole_Instrux.pdf' (additional verbal instructions) - 'Mole_Parameters.pdf' (see below under Task Description)

Millisecond was given permission to include this task in the Millisecond Library by Dr. BJ Casey.

References

Casey, B. J., Trainor, R. J., Orendi, J. L., Schubert, A. B., Nystrom,L. E., Giedd, J. N., Castellanos, F. X., Haxby, J. V., Noll, D. C., Cohen, J. D., Forman, S. D., Dahl, R. E., & Rapoport, J. L. (1997). A developmental functional MRI study of prefrontal activation during performance of a Go-No-Go task. Journal of Cognitive Neuroscience, 9, 835–847.

Durston, S., Tottenham, N. T., Thomas, K. M., Davidson, M. C., Eigsti, I. M., Yang, Y., Ulug, A. M., Casey, B. J. (2003) Differential patterns of striatal activation in young children with and without ADHD. Biological Psychiatry, 15, 871-878.

Duration

12 minutes

Description

The following information is provided by 'Mole_Parameters.pdf' (downloaded with original eprime script package):

Wack-A-Mole Task • Wack the Mole (WTM) is a version of the Go/NoGo paradigm, a response inhibition task (Casey et al, 1997).

• WTM is designed to examine how parametrically manipulating preceding context (the number of Go trials) affects inhibition of a preponent response (NoGo trials). (Durston et al, 2002)

• As the number of Go trials increases, the salience of the “go” response increases. Thus, increasing Go trials is expected to increase the conflict between the two responses and require greater cognitive control.

Task design • Subjects are asked to press a button in response to visually presented stimuli (a mole), but to avoid responding to a less frequent non-target (an eggplant).

• The task consists of four runs, which lasted on average 2 min and 21 seconds each. Each run contains an average total of 53 trials, with an average of 42 go trials, resulting in an average of 12 NoGo trials per run.

• The type of NoGo trial (with 1-7 preceding Go trials) was weighted such that more Go trials preceded NoGos in the first and last runs. The order of presentation of the different types of NoGo trials was pseudorandomized. Stimulus duration was 1500 milliseconds. The interstimulus interval is 5 seconds.

Procedure

The default setup of this script uses 5 different 'routines' that differ in
the number of go trials that precede one nogo trial:
n1: 1 go trial -> 1 nogo trial
n2: 2 go trials -> 1 nogo trial
n3: 3 go trials -> 1 nogo trial
n4: 4 go trials -> 1 nogo trial
n5: 5 go trials -> 1 nogo trial


routines 'n0,'n6', and 'n7' also included in this script but they are currently not run by default setup


(1) Practice:
- runs 3 routines in sequence: n2, n4, n1 (10 trials total: 7 go, 3 nogo trials)
- participants receive feedback after each response

(2) Test: 4 runs (in fixed sequence)
- routines run by each run can be edited under section "Editable Lists"
- !if the number of routines run is changed, edited the expt-element at the end of the script accordingly!

Run1:
- runs 13 routines (n1,n3,n1,n3,n3,n1,n5,n2,n5,n3,n5,n4,n5) in random order => 54 trials total (41 go: 13 nogo trials)
- participants receive feedback after each response

Run2:
- runs 14 routines (n2,n3,n3,n5,n5,n1,n5,n1,n5,n1,n4,n3,n2,n2) in random order => 56 trials total (42 go: 14 nogo trials)
- participants receive feedback after each response

Run3:
- runs 14 routines (n5,n5,n4,n1,n2,n5,n5,n1,n4,n1,n1,n3,n3,n1) in random order => 55 trials total (41 go: 14 nogo trials)
- participants receive feedback after each response

Run4:
- runs 14 routines (n3,n3,n1,n5,n4,n3,n5,n3,n3,n1,n5,n1,n1,n3) in random order => 55 trials total (41 go: 14 nogo trials)
- participants receive feedback after each response

Routine Count across the 4 runs:
n1: 15
n2: 5
n3: 15
n4: 5
n5: 15

( in this script summary variables by 'routine' are calculated for n1, n3, and n5 routines)



Trial Sequence (default timing based on e-prime script; can be edited under section Editable Parameters):

Go Trial (Mole):
- Mole image presented for max. 1800ms
- feedback for: 300ms
- empty hole for iti duration (variable):
iti = 2000ms (parameters.totalTrialDuration) - RT ( for noresponses, the RT is the max. stimulusduration = 1800)
=> total duration: 2300ms

Nogo Trial (Vegetable)
- Vegetable image presented for max. 1300ms ( the duration of the vegetable is shorter by 500ms)
- feedback for: 300ms
- empty hole for iti duration (variable):
iti = 2000ms (parameters.totalTrialDuration) - RT ( for noresponses, the RT is the max. stimulusduration = 1300)
=> total duration: 2300ms

Stimuli

taken from original e-prime script 'WackTheMole2.0_Go_NoGo.es'
https://fablab.yale.edu/page/assays-tools
(converted to png files)

Instructions

taken from original e-prime script 'WackTheMole2.0_Go_NoGo.es'
https://fablab.yale.edu/page/assays-tools

can be edited in script "whackamole_gonogo_keyboard_instructions_inc.iqjs"

Summary Data

File Name: whackamole_keyboard_summary*.iqdat

Data Fields

NameDescription
inquisit.version Inquisit version number
computer.platform Device platform: win | mac |ios | android
startDate Date the session was run
startTime Time the session was run
subjectId Participant ID
groupId Group number
sessionId Session number
elapsedTime Session duration in ms
completed 0 = Test was not completed
1 = Test was completed
goTrials Number of go trials run across all routines across all 4 test runs
hits Number of hits across all routines across all 4 test runs
hitRate Hitrate across all routines across all 4 test runs
missRate Miss rate across all routines across all 4 test runs
meanHitRT Mean hit response time (in ms) across all routines across all 4 test runs
noGoTrials Number of nogo trials run across all routines across all 4 test runs
commissions Number of commission errors (spacebar press for nogo trials) across all routines across all 4 test runs
faRate Commission/false alarm rate across all routines across all 4 test runs
corrRejectRate Correct rejection rate across all routines across all 4 test runs (= not responding in nogo trials)
meanCommissionRT Mean commission response time (in ms) across all routines across all 4 test runs
zHitRate Z-score of the hitRate
zFaRate Z-score of the falseAlarm/commission rate
*Adjustments to z-scores as recommended by
Gregg, A. & Sedikides, C. (2010). Narcissistic Fragility
Rethinking Its Links to Explicit and Implicit Self-esteem, Self and Identity, 9:2, 142-161 (p.148)
=> Adjustments are made if the FArate (hitRate) = 0 (increased to 0.005) or 1 (decreased to 0.995)*
dPrime Computes d' (parametric measure of discriminability btw. signals and noise)
=> Range (in this script)
-5.1516586840152740479 <= dprime <= 5.1516586840152740479 (=perfect performance)
=> The higher the value, the better signals (go stims) were distinguished from noise (nogo stims)
(d' = 0: chance performance; negative d-primes: participant treated nontargets as targets and targets as nontargets)
c C-criterion in signal detection:The absolute value of c provides an indication of the strength of
the response bias/response style
negative: participant more likely to report that signal (go stims) is present (liberal response style)
may favor faster responding in speed-accuracy trade-off response paradigms
positive: favoring caution (conservative response style)
By Routine: N1, N2, N3, N4, N5
goTrialsN1 Number of go trials run for n1-routine across all 4 test runs
hitsN1 Number of hits for n1-routine across all 4 test runs
hitRateN1 Hitrate for n1-routine across all 4 test runs
missRateN1 Miss rate for n1-routine across all 4 test runs
meanHitRTN1 Mean hit response time (in ms) for n1-routine across all 4 test runs
noGoTrialsN1 Number of nogo trials run for n1-routine across all 4 test runs
commissionsN1 Number of commission errors (spacebar press for nogo trials) for n1-routine across all 4 test runs
faRateN1 Commission/false alarm rate for n1-routine across all 4 test runs
corrRejectRateN1 Correct rejection rate for n1-routine across all 4 test runs (= not responding in nogo trials)
meanCommissionRTN1 Mean commission response time (in ms) for n1-routine across all 4 test runs
zHitRateN1 Z-score of the N1-hitRate
zFaRateN1 Z-score of the N1-falseAlarm/commission rate
dPrimeN1 Computes d' (parametric measure of discriminability btw. signals and noise) for N1 trials
cN1 The response bias/response style for N1 trials

Raw Data

File Name: whackamole_keyboard_raw*.iqdat

Data Fields

NameDescription
build Inquisit version number
computer.platform Device platform: win | mac |ios | android
date Date the session was run
time Time the session was run
subject Participant ID
group Group number
session Session number
blockCode Name of the current block
blockNum Number of the current block
trialCode Name of the current trial
trialNum Number of the current trial
run Practice, 1, 2, 3, 4
routine N1, n2, n3, n4, n5 (the routine the current trial is run under)
condition G1-g5: numbers the go trials in the current routine
ng1-ng5: numbers the nogo trial after the last go trial count
iti Intertrial interval duration (in ms)
response The participant's response (scancode of response buttons)
57 = spacebar
0 = no response
correct Accuracy of response: 1 = correct response; 0 = otherwise
latency The response latency (in ms); measured from: onset of image
stimulusItem The presented stimuli in order of trial presentation

Parameters

The procedure can be adjusted by setting the following parameters.

NameDescriptionDefault
Timing Parameters
startDuration The empty hole duration (in ms) at start of each run 500
totalTrialDuration The duration (in ms) of the trial (excluding the feedback durations)2000
=> Duration Of Stims + Intertrial Interval (Presentation Of Empty Hole)
moleDuration Mole duration in ms (= response timeout) 1800
vegetableDuration Vegetable duration in ms (= response timeout) 1300
hitFeedbackDuration The duration (in ms) for the feedback image presented after a hit300
crFeedbackDuration The duration (in ms) for the feedback after a correct rejection300
errorFeedbackDuration The duration (in ms) for error feedback300
Sizing Parameters
imageSize The proportional size (relative to canvas height) of the mole images40%
Response Key
goKey The go key (here: spacebar)" "