Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com), Millisecond
Last Modified: July 17, 2026 by K. Borchert (katjab@millisecond.com), Millisecond
Script Copyright © Millisecond Software, LLC
This Inquisit script provides trials and instructions for adaptive DUAL n-back tasks with emotional words and paired images that appear in 16 different screen locations (see Schweitzer et al, 2013).
This script is uses the Inquisit framework of the dual n-back script that follows the adaptive dual nback procedure provided by Jaeggi et al (2010). This script provides code to run N=1 to infinite levels of N.
Jaeggi S.M, Studer-Luethi, B., Buschkuehl, M, Su, Y.-F., Jonides, J., Perrig, W.J. (2010). The relationship between n-back performanceand matrix reasoning - implications for training and transfer. Intelligence, 38, 625-635.
Schweizer,S., Grahn,G., Hampshire,A., Mobbs,D. and Dalgleish, T. (2013). Training the Emotional Brain: Improving Affective Control through Emotional Working Memory Training. The Journal of Neuroscience, 33(12):5301–5311
20 minutes
In dual n-back tasks, participants are presented with two sequences of stimuli in two modalities at the same time Here: a) VISUAL: a random sequence of images (paired with auditory words) that can be presented in 16 different locations on the screen and b) AUDITORY: a random sequence of 20 spoken words In each trial one visual and one auditory stimulus are presented and participants are asked to indicate whether the currently presented stimuli fulfill the following criteria:
For N=1 trials: - is the location of the image the same as the one in the previous trial? If so (it's a target), and press "A". If not, don't press "A".
- is the word the same as the one in the previous trial? If so (it's a target), and press "L". If not, don't press "L".
For N=2 trials: - is the location of the image the same as the one two trials before? If so (it's a target), and press "A". If not, don't press "A". - is the word the same as the one two trials before? If so (it's a target), and press "L". If not, don't press "L".
Etc.
The instructions are not original to Schweizer et al (2013). They are based on the instructions used for
Adaptive Dual n-back task by Jaeggi et al (2010).
The instructions are presented by using Scalable Vector Graphics (SVG) images.
Check instructions in script 'emoadaptdualnback_instruct_inc.iqjs'
File Name: emotionaladaptivedualnback_summary*.iqdat
| Name | Description |
|---|---|
| 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 |
| inquisit.version | Inquisit version number |
| computer.platform | Device platform: win | mac |ios | android |
| computer.touch | 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities |
| computer.hasKeyboard | 0 = no external keyboard detected; 1 = external keyboard detected |
| completed | 0 = Test was not completed 1 = Test was completed |
| totalBlocks | The total number of blocks run |
Visual Modality |
|
| vTargetTrialCounter | The total number of visual target trials run |
| vTotalHits | The number of total hits across all experimental blocks for the visual modality |
| vHitRate | The visual hit rate (responding correctly to a visual target) |
| vMissRate | The visual miss rate |
| vNontargetTrialCounter | The total number of visual nontarget trials run |
| vTotalFA | The number of total false alarms across all experimental blocks for the visual modality |
| vFaRate | The visual FA rate (responding to a NON visual target) |
| vCrRate | The correct rejection rate for visual nontargets |
| zVHitRate | The z-score of the visual hitrate |
| zVFARate | The z-score of the visual FA rate |
| dPrimeVisual | Difference btw. (zscore of hitrate - zscore of FArate): measure of Sensitivity => Range (in this script) -5.1516586840152740479 <= dprime <= 5.1516586840152740479 (=perfect performance) => The higher the value, the better signals were overall distinguished from noise (d' = 0: chance performance; negative d-primes: participant treated nontargets as targets and targets as nontargets) |
| cVisual | 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 is present (liberal response style) may favor faster responding in speed-accuracy trade-off response paradigms positive: favoring caution (conservative response style) |
Auditory Modality |
|
| aTargetTrialCounter | The total number of auditory target trials run |
| aTotalHits | The number of total hits across all experimental blocks for the auditory modality |
| aHitRate | The auditory hit rate (responding correctly to a auditory target) |
| aMissRate | The auditory miss rate |
| aNontargetTrialCounter | The total number of auditory nontarget trials run |
| aTotalFA | The number of total false alarms across all experimental blocks for the auditory modality |
| aFaRate | The auditory FA rate (responding to a NON auditory target) |
| aCrRate | The correct rejection rate for auditory nontargets |
| zAHitRate | The z-score of the auditory hitrate |
| zAFARate | The z-score of the auditory FA rate |
| dPrimeAudio | Difference btw. (zscore of hitrate - zscore of FArate): measure of Sensitivity |
| cAudio | C-criterion for auditory modality |
| aTotalHits | The number of total hits across all experimental blocks for the auditory modality |
| vTotalFA | The number of total false alarms across all experimental blocks for the visual modality |
| aTotalFA | The number of total false alarms across all experimental blocks for the auditory modality |
File Name: emotionaladaptivedualnback_raw.iqdat
| Name | Description |
|---|---|
| date | Date the session was run |
| time | Time the session was run |
| subject | Participant ID |
| group | Group number |
| session | Session number |
| build | Inquisit version number |
| computer.platform | Device platform: win | mac |ios | android |
| computer.touch | 0 = device has no touchscreen capabilities; 1 = device has touchscreen capabilities |
| computer.hasKeyboard | 0 = no external keyboard detected; 1 = external keyboard detected |
| blockcode | The name the current block (built-in Inquisit variable) |
| blocknum | The number of the current block (built-in Inquisit variable) |
| trialcode | The name of the currently recorded trial (built-in Inquisit variable) |
| trialnum | The number of the currently recorded trial (built-in Inquisit variable) trialnum is a built-in Inquisit variable; it counts all trials run even those that do not store data to the data file. |
| totalBlocks | The total number of experimental blocks run |
| n | The type of N-back trial |
| startTrialCounter | Counts the number of start trials run |
| visualStim | Image presented |
| vPosition | Contains the position of the current image (1-16) |
| xpos | Horizontal coordinate of the current image position (proportion of canvas) |
| ypos | Vertical coordinate of the current image position (proportion of canvas) |
| vCurrentTarget | The position number of the current target shape |
| audioStim | Audio Stim presented |
| aStimNumber | Contains item number of the currently presented text |
| vCurrentTarget | The item number of the current target text |
| response1 | The value of the first response (if any) |
| response2 | The value of the second response (if any) |
| correct | 1 = if correct response, 0 = otherwise |
| latency1 | The latency value of response1 (in ms) |
| latency2 | The latency value of response2 (in ms) |
| latency | The latency value of the last response made (if any), MAX=3000 (=no response made) |
| trialHitv | Trial Hit for visual stimulus (1 = hit, 0 = no hit) (visual Hit: any trial response -either the first or the second- for a visual target) |
| trialMissv | Trial Miss for visual stimulus (1 = miss, 0 = no miss) (visual Miss: no trial response for a visual target if a visual target was presented) |
| trialCRv | Trial Correct Rejection for visual stimulus (1 = CR, 0 = no CR) (visual CR: no trial response for a visual target if no visual target was presented) |
| trialFAv | Trial False Alarm for visual stimulus (1 = FA, 0 = no FA) (visual FA: any trial response for visual target -either the first or the second- if no visual target was presented) |
| trialHita | Trial Hit for auditory stimulus (1 = hit, 0 = no hit) (auditory Hit: any trial response -either the first or the second- for an auditory target) |
| trialMissa | Trial Miss for auditory stimulus (1 = miss, 0 = no miss) (auditory Miss: no trial response for an auditory target if an auditory target was presented) |
| trialCRa | Trial Correct Rejection for auditory stimulus (1 = CR, 0 = no CR) (auditory CR: no trial response for an auditory target if no auditory response was presented) |
| trialFAa | Trial False Alarm for auditory stimulus (1 = FA, 0 = no FA) (auditory FA: any trial response for an auditory target -either the first or the second- if no auditory response was presented) |
| vHits | The number of Hits for visual modality |
| vFalseA | The number of False Alarms for visual modality |
| vMisses | The number of Misses for visual modality |
| vCorrReject | The number of Correct Rejections for visual modality |
| aHits | The number of Hits for auditory modality |
| aFalseA | The number of False Alarms for auditory modality |
| aMisses | The number of Misses for auditory modality |
| aCorrReject | The number of Correct Rejections for auditory modality |
| consecutive3 | 1 = at some point during the block, participant responded correctly to 3+ consecutive trials; 0 = otherwise |
| consecutive5 | 1 = at some point during the block, participant responded incorrectly to 5+ consecutive trials; 0 = otherwise |
The procedure can be adjusted by setting the following parameters.
| Name | Description | Default |
|---|---|---|
Design |
||
| startN | The starting N ( StartN > 0) | 1 |
| numberTestBlocks | Number of test blocks run | 20 |
Sizing Parameters |
||
| imageSize | The size of the images in proportion to the canvas height | 23% |
Timing Parameters |
||
| stimulusPresentationTime | The presentation time (in ms) of the stimuli | 500 |
| soa | The stimulus onset asynchrony in ms; also Response Window !!!In this script: Response Window = 3000 ms + 500 ms feedback => actual SOA is 3500ms (500ms more than advertised) | 3000 |
Debugging |
||
| debugmode | Debugmode = 1, target alerts are presented Debugmode = 0, target alerts are turned-off | 0 |