Task dossier

Attention Network Test (ANT)

T000015T000015-antSmoke testedWeb preview availableUpdated Jun 19, 2026

ANT implementation measuring alerting, orienting, and executive-control effects from cue and flanker manipulations.

Attention Network Test (ANT) flow diagram
Attention Network Test (ANT) 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/T000015-ant.git
cd T000015-ant
# Follow the README for local setup and run steps

Attention Network Test (ANT)

Maturity: smoke_tested

FieldValue
NameAttention Network Test (ANT)
Versionv1.1.2
URL / Repositoryhttps://github.com/TaskBeacon/T000015-ant
Short DescriptionANT implementation measuring alerting, orienting, and executive-control effects from cue and flanker manipulations.
Created ByZhipeng Cao (zhipeng30@foxmail.com)
Date Updated2026-03-02
PsyFlow Version0.1.9
PsychoPy Version2025.1.1
ModalityBehavior / EEG
LanguageChinese
Voice Namezh-CN-YunyangNeural

Run Modes

  • Human (default): python main.py
  • QA: python main.py qa --config config/config_qa.yaml
  • Scripted Sim: python main.py sim --config config/config_scripted_sim.yaml
  • Sampler Sim: python main.py sim --config config/config_sampler_sim.yaml

1. Task Overview

This ANT presents a target arrow flanked by congruent or incongruent arrows, with cue manipulations (no, center, double, spatial). Participants respond to the center arrow direction. The task enables estimation of alerting, orienting, and executive-control effects from reaction time and accuracy contrasts.

2. Task Flow

Task Flow

Block-Level Flow

StepDescription
SetupLoad config, initialize mode context (human/qa/sim), create window, preload stimuli, initialize triggers.
InstructionShow instruction_text (voice optional in human mode).
Block LoopGenerate ANT conditions and run trial loop through run_trial(...).
Block SummaryCompute block accuracy and show block_break.
FinalizeShow good_bye, send exp_end, save CSV, close trigger runtime, quit PsychoPy.

Trial-Level Flow

StepDescription
FixationShow fixation cross (+) for fixation_duration.
Cue (optional)Show center/double/spatial cue for cue_duration if condition requires it.
Flanker ResponseShow 5-arrow stimulus and capture left/right response during stim_duration.
FeedbackShow correct/incorrect/no-response feedback text.
ITIBlank interval sampled from iti_duration.

Controller Logic

No adaptive controller is used in this ANT baseline variant.

3. Configuration Summary

a. Subject Info

FieldMeaning
subject_idParticipant ID (3 digits).
subnameParticipant name (pinyin).
ageAge (5-60).
genderMale or Female.

b. Window Settings

ParameterValue
window.size[1920, 1080]
window.unitsdeg
window.fullscreentrue
window.bg_colorgray
window.monitor_width_cm60
window.monitor_distance_cm72

c. Stimuli

NameTypeDescription
fixationtextCentral fixation cross.
cue_centertextCenter cue (*).
cue_up, cue_downtextSpatial cues at upper/lower locations.
congruent_*textCongruent 5-arrow arrays.
incongruent_*textIncongruent 5-arrow arrays.
correct_feedbacktextCorrect response message.
incorrect_feedbacktextIncorrect response message.
no_response_feedbacktextMiss/no-response message.
instruction_texttextboxChinese ANT instructions.
block_breaktextInter-block summary screen.
good_byetextEnd-of-task message.

d. Timing

PhaseDuration
cue_duration0.1 s
fixation_duration0.5 s
stim_duration1.0 s
feedback_duration0.5 s
iti_durationRandom in [0.8, 1.2] s

e. Triggers

EventCode
exp_onset254
exp_end255
block_onset252
block_end253
fixation_onset1
center_cue_onset11
double_cue_onset12
spatial_cue_up_onset13
spatial_cue_down_onset14
stim_1111 ... stim_422221-58 family
left_key_press201
right_key_press202
feedback_correct_response221
feedback_incorrect_response222
feedback_no_response223

4. Methods (for academic publication)

Participants completed an Attention Network Test combining cue manipulations with flanker congruency conflict. Each trial began with fixation, followed by an optional cue (none, center, double, or spatial), and then a five-arrow target array in which the central arrow defined the required response.

Participants responded to center-arrow direction while ignoring flankers. Congruent and incongruent flankers were used to quantify executive-control costs, while cue contrasts enabled alerting and orienting effect estimates. Feedback and jittered inter-trial intervals were included to stabilize performance and timing.

The implementation is EEG-compatible and includes explicit event markers for fixation, cue class, condition-encoded target onset, response channel, and outcome.