Task dossier

AX-CPT Task

T000001T000001-ax-cptSmoke testedWeb preview availableUpdated Jun 19, 2026

A task measuring cognitive control, context processing, and goal maintenance.

AX-CPT Task flow diagram
AX-CPT Task flow diagram
Preview path
This task ships with a matched HTML companion so the browser preview can stay aligned to the canonical local repository.
Quick start
Clone locally, then follow the README for install and run instructions.
git clone https://github.com/TaskBeacon/T000001-ax-cpt.git
cd T000001-ax-cpt
# Follow the README for local setup and run steps

AX-CPT Task

Maturity: smoke_tested

FieldValue
NameAX-CPT Task
Versionmain (1.1.0)
URL / Repositoryhttps://github.com/TaskBeacon/T000001-ax-cpt
Short DescriptionA task measuring cognitive control, context processing, and goal maintenance.
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

This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cognitive control and context processing. Participants are presented with a series of letter pairs (cue followed by probe). They must make a specific target response only when the cue is an 'A' and the probe is an 'X' (AX trials). For all other combinations (AY, BX, BY), a different response (or no response) is required.

2. Task Flow

Task Flow

Block-Level Flow

StepDescription
1. InstructionInstructions are displayed at the beginning of the experiment.
2. Trial ExecutionEach block runs for a set number of trials, as defined in config.yaml.
3. Block BreakAfter each block, a break screen is shown with the accuracy for the current block.
4. GoodbyeAfter all blocks are complete, a "goodbye" message is displayed.

Trial-Level Flow

StepDescription
1. FixationA central fixation cross (+) is displayed.
2. Cue PresentationThe cue letter (A or B) is presented.
3. Inter-Stimulus Interval (ISI) FixationA central fixation cross (+) is displayed for a short duration.
4. Probe Presentation & ResponseThe probe letter (X or Y) is presented, and the participant responds.
4. FeedbackFeedback (Correct, Incorrect, or Too Slow) is displayed.
5. Inter-Trial Interval (ITI)A blank screen is shown before the next trial.

Controller Logic

ComponentDescription
Condition schedulingBlockUnit.generate_conditions() uses config-defined AX/AY/BX/BY weights.
Response scoringsrc/run_trial.py derives the target response from cue-probe identity.
Block summarymain.py computes probe accuracy for the inter-block feedback screen.

Runtime Context Phases

Phase LabelMeaning
context_cuecontext cue stage in src/run_trial.py responder context.
delay_fixationdelay fixation stage in src/run_trial.py responder context.
probe_responseprobe response stage in src/run_trial.py responder context.

3. Configuration Summary

a. Subject Info

FieldMeaning
subject_idSubject Identifier
subnameSubject Name
ageAge
genderGender

b. Window Settings

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

c. Stimuli

NameTypeDescription
fixationtextCentral cross +.
cue_AtextThe cue letter 'A'.
cue_BtextThe cue letter 'B'.
probe_XtextThe probe letter 'X'.
probe_YtextThe probe letter 'Y'.
correct_feedbacktext"正确" (Correct) in white.
incorrect_feedbacktext"错误" (Incorrect) in white.
no_response_feedbacktext"未反? (No response) in white.
instruction_texttextboxInstructions explaining the task.
instruction_text_voicevoiceVoice instructions for the task.
block_breaktextFeedback shown between blocks.
good_byetextFinal message at the end of the task.

d. Timing

PhaseDuration (s)Config Variable
fixation0.5fixation_duration
cue0.5cue_duration
isi0.5isi_duration
probe1.0 (max response time)probe_duration
feedback0.5feedback_duration
itirandom 0.8?.2iti_duration

e. Triggers

EventCode
exp_onset98
exp_end99
block_onset100
block_end101
cue_onset10
probe_onset20
AX_trial_onset30
AY_trial_onset31
BX_trial_onset32
BY_trial_onset33
key_press40
no_response41
feedback_correct_response51
feedback_incorrect_response52
feedback_no_response53
feedback_onset60

4. Methods (for academic publication)

Participants perform an AX-CPT task, a continuous performance paradigm used to measure cognitive control and context processing. Each trial consists of a cue letter (A or B) followed by a probe letter (X or Y). Participants are instructed to press the 'f' key if the cue is 'A' and the probe is 'X' (AX trials). For all other cue-probe combinations (AY, BX, BY), they are instructed to press the 'j' key.

The task begins with a fixation cross, displayed for 500ms. The cue letter is then presented for 500ms, followed by a brief inter-stimulus interval (ISI) fixation of 500ms, and then the probe letter for up to 1000ms or until a response is made. Feedback (correct, incorrect, or no response) is provided for 500ms, followed by a randomized inter-trial interval between 800ms and 1200ms.

The task is structured into 4 blocks of 40 trials each (total 160 trials). Trial types (AX, AY, BX, BY) are presented in a weighted randomized order within each block (AX=40%, AY=10%, BX=10%, BY=40%) to preserve strong context expectancy while retaining critical low-frequency AY/BX control trials. This design allows for the examination of proactive and reactive cognitive control strategies.