Script Author (orig): J.D. Allen, Ph.D. (jd.allen@brainhealthconsulting.org) for Brain Health Consulting, LLC
credit: The original Inquisit MAFT was generously provided by J.D. Allen and was updated for Inquisit 7 by Millisecond
Last Modified: January 10, 2025 by K. Borchert (katjab@millisecond.com), Millisecond
Script Copyright © Millisecond Software, LLC
This script implements the Memory & Affective Flexibility Task (MAFT, Allen et al, 2025), a behavioral tool to assess two components of affective control: emotional working memory and affective flexibility. The working memory task is based on the nBack procedure suggested by Jaeggi et all (2010) using images differing in their valence (neutral,negative,positive). The flexibility task, randomly interwoven into the nBack procedure, requires a quick shift from the working memory task to a procedure that requires the evaluation of the valence of presented images instead.
25 minutes
Participants are presented a sequence of images. NBack memory trials require participants to determine whether the current image matched one shown N trials earlier. They are asked to press the 'A' key if it the same; otherwise they are asked to press the 'L' key. Affective switch trials, randomly interspersed within the nBack procedure, require participants to evaluate whether the presented image is positive ('S' key) or negative ('K' key). The switch trials present the text “POSITIVE or NEGATIVE?” above the image.
provided by original authors
Images taken from the International Affective Picture System (IAPS)
Lang PJ, Bradley MM, Cuthbert BN. International affective picture system
(IAPS): Affective ratings of pictures and instruction manual. Tech Rep A-8.
Gainesville FL: Univ Florida. (2008).
provided by original authors
can be edited in script 'maft_instructions_inc.igjs'
File Name: "maft_summary.iqdat"
| Name | Description |
|---|---|
| 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 |
| 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 |
| totalBlocks | The total number of experimental blocks run |
Nback - Test Performance Metrics |
|
| propCorrectNBackOverall | PropCorrect responses across all target and nontarget nBack trials |
| meanCorrRTNBackOverall | Mean correct response time across all target and nontarget nBack trials |
| propNoResponsesNBackOverall | Proportion no responses across all target and nontarget nBack trials |
| propCorrectNBackAmb | PropCorrect responses across all target and nontarget nBack trials for Ambiguous Stims |
| meanCorrRTNBackAmb | Mean correct response time across all target and nontarget nBack trials for Ambiguous Stims |
| propNoResponsesNBackAmb | Proportion no responses across all target and nontarget nBack trials for Ambiguous Stims |
| propCorrectNBackNeg | PropCorrect responses across all target and nontarget nBack trials for Negative Stims |
| meanCorrRTNBackNeg | Mean correct response time across all target and nontarget nBack trials for Negative Stims |
| propNoResponsesNBackNeg | Proportion no responses across all target and nontarget nBack trials for Negative Stims |
| propCorrectNBackPos | PropCorrect responses across all target and nontarget nBack trials fo Positive Stims |
| meanCorrRTNBackPos | Mean correct response time across all target and nontarget nBack trials for Positive Stims |
| propNoResponsesNBackPos | Proportion no responses across all target and nontarget nBack trials for Positive Stims |
Switch - Test Performance Metrics |
|
| propCorrectSwitchOverall | PropCorrect responses across all Switch trials |
| meanCorrRTSwitchOverall | Mean correct response time across all Switch trials |
| propNoResponsesSwitchOverall | Proportion no responses across all Switch trials |
| propCorrectSwitchAmb | PropCorrect responses across all Switch trials for Ambiguous Stims |
| meanCorrRTSwitchAmb | Mean correct response across all Switch trials for Ambiguous Stims |
| propNoResponsesSwitchAmb | Proportion no responses across all Switch trials for Ambiguous Stims |
| propCorrectSwitchNeg | PropCorrect responses across all Switch trials for Negative Stims ( this refers to the actually presented valence of the stim during the trial; not the emotion condition of the block) |
| meanCorrRTSwitchNeg | Mean correct response time across all Switch trials for Negative Stims ( this refers to the actually presented valence of the stim during the trial; not the emotion condition of the block) |
| propNoResponsesSwitchNeg | Proportion no responses across all Switch trials for Negative Stims |
| propCorrectSwitchPos | PropCorrect responses across all Switch trials fo Positive Stims ( this refers to the actually presented valence of the stim during the trial; not the emotion condition of the block) |
| meanCorrRTSwitchPos | Mean correct response across all Switch trials for Positive Stims ( this refers to the actually presented valence of the stim during the trial; not the emotion condition of the block) |
| propNoResponsesSwitchAmb | Proportion no responses across all Switch trials for Positive Stims |
File Name: maft.iqdat
| Name | Description |
|---|---|
| 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 |
| date | Date the session was run |
| time | Time the session was run |
| subject | Participant ID |
| group | Group number |
| session | Session number |
| 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 current level N tested |
| startTrialCounter | Keeps track of how many start trials have been run |
| stimulusItem.1 | The image presented |
| stimulusNumber.1 | The item index of the presented image |
| emotion | The block "emotion" index: 1 = ambiguous; 2 = negative; 3 = positive |
| blockValence | The block valence (amb, neg, pos) |
| valence | The stimulus valence (congruent with blockValence except for trial.ntSwitchrev) |
| currentTarget | The item number of the current target |
| response | The Response of the participant (scancode of response button) 0 = no response 31 = 'A' key (target key) 38 = 'L' key (non-target key) 32 = 'S' key (positive key) 37 = 'K' key (negative key) (57 = spacebar) |
| responseText | The letter of the pressed response key |
| responseCategory | "Correct", "Incorrect", "No Response" |
| correct | The correctness of the response (1 = correct; 0 = otherwise) |
| latency | How fast a participant responded within the given timeframe, if at all (in ms) no responses = the entire trialduration |
| list.blockAcc.mean | Proportion correct during the current block (start trials are excluded from block acc assessment by default, editable) |
The procedure can be adjusted by setting the following parameters.
| Name | Description | Default |
|---|---|---|
Design |
||
| allowPracticeRepeat | True: practice can be repeated as often as indicated false: practice cannot be repeated | true |
| excludeStartTrialfromPerformanceMeasure | True (1): performance during start trials that cannot be targets yet is not considered for Block level performance analyses, e.g. for feedback purposes (default) false (0): performance during start trials that cannot be targets yet IS considered for block performance analyses (default) | true |
Timing Parameters |
||
| soa | Stimulus onset asynchrony in ms | 4500 |
| stimulusPresentationTime | The duration (in ms) that the images are presented | 1500 |