Skip to content
← Back to tasks
T000006Decision & reward

Monetary Incentive Delay (MID) Task

A task measuring reward anticipation and feedback processing using adaptive timing

Before you start

Task language
Chinese
Responses
See procedure and configuration
Acquisition
EEG
Version
1.1.2
Piloted

Pilot use reported. Review the task documentation for the scope and remaining limitations.

Use the browser preview to explore the procedure. Review the local setup and task documentation before collecting research data.

Task flow

Monetary Incentive Delay (MID) Task flow diagram

Run locally

Get the task package, then follow its installation and run instructions in the guide below.

git clone https://github.com/TaskBeacon/T000006-mid.git
cd T000006-mid
Browser preview source

Use this separate browser implementation when adapting the preview.

Task guide

Repository updated Sep 08, 2026 · Maintainer documentation

Monetary Incentive Delay (MID) Task

Maturity: piloted

FieldValue
NameMonetary Incentive Delay (MID) Task
Versionmain (1.1.0)
URL / Repositoryhttps://github.com/TaskBeacon/T000006-mid
Short DescriptionA task measuring reward anticipation and feedback processing using adaptive timing
Created ByZhipeng Cao (zhipeng30@foxmail.com)
Date Updated2026/02/16
PsyFlow Version0.1.8
PsychoPy Version2025.1.1
ModalityBehavior/EEG
LanguageChinese
Voice Namezh-CN-YunyangNeural

1. Task Overview

The Monetary Incentive Delay (MID) Task is designed to assess reward processing and motivational control. Participants respond to brief target stimuli that follow cues indicating potential monetary gain, loss, or neutral outcomes. By analyzing reaction times and success rates, the task evaluates anticipatory and feedback-related cognitive processes. An adaptive timing algorithm adjusts target durations based on participant performance, maintaining consistent task difficulty.

2. Task Flow

Task Flow

Block-Level Flow

StepDescription
Load ConfigLoad task configuration and subject form
Collect Subject InfoCollect demographic/subject info using SubInfo form
Setup TriggersInitialize trigger sender using serial port (COM3)
Initialize Window/InputCreate PsychoPy window and keyboard handler
Load StimuliLoad all stimuli via StimBank, convert instructions to voice, preload
Setup ControllerCreate adaptive controller from config
Show InstructionsPresent text and voice instruction before starting
Loop Over BlocksFor each block: countdown, run 60 trials, compute and show block feedback
Show GoodbyePresent final feedback with total score
Save DataSave all trial data to CSV
CloseClose serial port and quit PsychoPy

Trial-Level Flow

StepDescription
CueShow condition-specific cue (win/lose/neutral) with trigger
AnticipationDisplay fixation; allow response (early keypress logged)
TargetShow target with adaptive duration; record response
Pre-feedback FixationDisplay fixation before feedback
FeedbackPresent hit/miss feedback based on performance
Adaptive UpdateUpdate target duration based on hit/miss outcome

Controller Logic

FeatureDescription
Adaptive DurationTarget duration adjusts between 0.04 and 0.37 seconds
Step Size±0.03 seconds
Accuracy Target66% accuracy threshold
Condition SpecificTracks performance separately by condition (win/lose/neutral)
LoggingPerformance logs are printed to PsychoPy console

Runtime Context Phases

Phase LabelMeaning
anticipation_fixationanticipation fixation stage in src/run_trial.py responder context.
target_response_windowtarget response window stage in src/run_trial.py responder context.

3. Configuration Summary

a. Subject Info

FieldMeaning
subject_idUnique participant number (101?99, 3 digits)
subnameParticipant name (pinyin)
ageParticipant age (5?0)
genderParticipant gender (Male/Female)

b. Window Settings

ParameterValue
size[1920, 1080]
unitsdeg
screen1
bg_colorgray
fullscreenTrue
monitor_width_cm60
monitor_distance_cm72

c. Stimuli

NameTypeDescription
fixationtextCentral cross "+"
win_cuecircleMagenta circle (reward)
lose_cuerectYellow square (punishment)
neut_cuetriangleCyan triangle (neutral)
win_targetcircleBlack circle target
lose_targetrectBlack square target
neut_targettriangleBlack triangle target
win_hit_feedbacktextbox“击?+10 分?(black text, SimHei)
win_miss_feedbacktextbox“未击中 +0 分?
lose_hit_feedbacktextbox“击?-0 分?
lose_miss_feedbacktextbox“未击中 -10 分?
neut_hit_feedbacktextbox“击?+0 分?
neut_miss_feedbacktextbox“未击中 -0 分?
instruction_texttextboxMulti-line Chinese instructions (includes scoring rules)
block_breaktextInter-block message showing block, accuracy, and score
good_byetextEnd screen showing final score

d. Timing

PhaseDuration (s)
cue0.3
anticipationrandom 1.0?.2
targetadaptive (0.04?.37)
prefeedback fixationrandom 0.6?.8
feedback1.0

e. Triggers

EventCode
exp_onset98
exp_end99
block_onset100
block_end101
win_cue_onset10
win_anti_onset11
win_target_onset12
win_hit_fb_onset13
win_miss_fb_onset14
win_key_press15
win_no_response16
lose_cue_onset20
lose_anti_onset21
lose_target_onset22
lose_hit_fb_onset23
lose_miss_fb_onset24
lose_key_press25
lose_no_response26
neut_cue_onset30
neut_anti_onset31
neut_target_onset32
neut_hit_fb_onset33
neut_miss_fb_onset34
neut_key_press35
neut_no_response36
fixation_onset1

f. Adaptive Controller

ParameterValue
initial_duration0.2
min_duration0.04
max_duration0.37
step0.03
target_accuracy0.66
condition_specifictrue

4. Methods (for academic publication)

Participants performed a computerized Monetary Incentive Delay (MID) task to assess motivational processing under different reward contingencies. The task consisted of 3 blocks, each comprising 60 trials, totaling 180 trials. Each trial began with a cue, a colored shape (circle, square, or triangle), signaling whether the trial was a reward, punishment, or neutral condition. Following a variable anticipation phase (1.0?.2 s), a black target appeared briefly. Participants were instructed to press the spacebar as quickly as possible upon target onset.

The target's presentation duration was controlled by an adaptive algorithm that updated the duration after each trial based on performance. Initial target duration was set to 0.2 s and was adjusted between 0.04 and 0.37 s using ±0.03 s increments to stabilize performance at a target accuracy of 66%, tracked separately by condition.

Feedback followed the target phase, based on whether participants responded within the target duration. “击中?(“hit? and “未击中?(“miss? messages were shown with point gain/loss specific to the cue type. After each block, a break screen summarized the participant's accuracy and cumulative score. The task began with audio-visual instructions and ended with a final message displaying total score.

5. References

The task is originally developed by Knutson 2000:

Knutson, B., Westdorp, A., Kaiser, E., & Hommer, D. (2000). FMRI visualization of brain activity during a monetary incentive delay task. Neuroimage, 12(1), 20-27.

Here, we adopted the ABCD Study design of the task:

Casey, B. J., Cannonier, T., Conley, M. I., Cohen, A. O., Barch, D. M., Heitzeg, M. M., ... & Dale, A. M. (2018). The adolescent brain cognitive development (ABCD) study: imaging acquisition across 21 sites. Developmental cognitive neuroscience, 32, 43-54.