Skip to main content

N-Back

The N-Back task is a continuous performance measure of working memory updating (Owen et al., 2005). Participants view a sequence of letters and must identify when the current letter matches the one shown N items ago. Performance is quantified using signal detection theory (d-prime and criterion), providing precise measures of working memory capacity that separate sensitivity from response bias.

ActivitySpec: lamp.nback

Cognitive domain: Working memory, working memory updating

Configurationโ€‹

SettingDescription
LevelsN-back levels to run (supports 1, 2, 3)
Trials per LevelNumber of trials per level (clamped 10-100)
Stimulus DurationLetter display duration (ms)
ISIInter-stimulus interval (ms)
Target ProportionProportion of trials that are targets
API settings fields
Dashboard SettingAPI FieldTypeDefault
Levelslevelsnumber[][1, 2]
Trials per Leveltrials_per_levelnumber20
Stimulus Durationstimulus_duration_msnumber1500
ISIisi_msnumber2000
Target Proportiontarget_proportionnumber0.3

Sample Instructionsโ€‹

"Letters will appear one at a time. Tap MATCH if the current letter is the same as the one shown 1 letter ago."

Usageโ€‹

Consonants are displayed one at a time (vowels are excluded to prevent word-forming strategies). Each letter is shown for a configurable duration, followed by a blank inter-stimulus interval. The participant taps "Match" if the current letter is the same as the letter shown N items ago.

Trial outcomes are classified as: Hit (correct match), Miss (missed match), False Alarm (incorrect match), or Correct Rejection (correctly withheld response). d-prime is computed with log-linear correction (Hautus, 1995) to handle extreme proportions.

Multi-level support is built in: by default the task runs 1-back then 2-back sequentially, with a transition screen between levels.

Scoringโ€‹

d-prime (sensitivity) is the primary metric -- higher values indicate better discrimination between targets and non-targets. Criterion measures response bias (negative = liberal, positive = conservative).

References
  1. Owen, A. M. et al. (2005). N-back working memory paradigm: a meta-analysis of normative functional neuroimaging studies. Human Brain Mapping, 25(1), 46-59. DOI: 10.1002/hbm.20131
  2. Hautus, M. J. (1995). Corrections for extreme proportions and their biasing effects on estimated values of d'. Behavior Research Methods, Instruments, & Computers, 27(1), 46-51.

Dataโ€‹

static_dataโ€‹

FieldTypeDescription
n_levelnumberN-back level
d_primenumberSignal detection sensitivity
criterionnumberResponse bias
hit_ratenumberProportion of targets correctly identified
false_alarm_ratenumberProportion of non-targets incorrectly identified
hitsnumberCorrect match responses
missesnumberMissed targets
false_alarmsnumberIncorrect match responses
correct_rejectionsnumberCorrectly withheld responses
hit_rt_meannumberMean RT on hits (ms)
hit_rt_mediannumberMedian RT on hits (ms)
hit_rt_sdnumberRT standard deviation on hits (ms)
scorenumberOverall score
correct_answersnumberTotal correct (hits + correct rejections)
wrong_answersnumberTotal errors (misses + false alarms)
total_questionsnumberTotal trials
questionnaireobjectPost-game ratings: clarity (1-5), happiness (1-5)

temporal_slicesโ€‹

One entry per trial.

FieldTypeDescription
itemnumberTrial index
levelnumberN-back level (1, 2, or 3)
typebooleanWhether the response was correct
valuenullUnused
durationnumberReaction time (ms)
letterstringDisplayed letter
is_targetbooleanWhether this was a target trial
respondedbooleanWhether the participant responded
outcomestring"hit", "miss", "false_alarm", or "correct_rejection"

Cortex Featuresโ€‹

No Cortex features are currently available for this activity.

View in Portal | Python SDK | API Reference