Technical Architecture#
This page covers the data layout, pEYEpline philosophy, and output structure. For a detailed stage-by-stage breakdown, see pEYEpline Stages.
Data Structure#
A MultiplEYE dataset lives in one folder named by language, country, lab, and year.
Inside you find the raw eye-tracking sessions, stimulus materials, psychometric test exports,
and participant questionnaires. The naming follows the pattern
MultiplEYE_{LANG}_{COUNTRY}_{CITY}_{LAB}_{YEAR} (e.g. MultiplEYE_HR_HR_Zagreb_1_2025).
The top-level folder looks like this:
MultiplEYE_HR_HR_Zagreb_1_2025/
├── eye-tracking-sessions/ # one subfolder per participant
│ ├── 015_HR_hr_Zagreb_1_S1/ # session = participant + recording
│ │ ├── 015_HR_hr_Zagreb_1.edf
│ │ ├── 015_HR_hr_Zagreb_1.asc
│ │ └── logfiles/ # PsychoPy output
│ ├── 016_HR_hr_Zagreb_1_S1/
│ ├── pilot_sessions/ # optional
│ └── test_sessions/ # optional
├── psychometric-tests-sessions/ # raw PT exports per session
│ ├── 015_HR_hr_Zagreb_1_PT1/
│ │ ├── WMC/
│ │ ├── RAN/
│ │ ├── Stroop_Flanker/
│ │ ├── WikiVocab/
│ │ └── PLAB/
│ └── participant_configs_HR_hr_1/
├── stimuli_MultiplEYE_HR_HR_Zagreb_1_2025/
│ ├── aoi_HR_hr_1/
│ ├── stimuli_images_HR_hr_1/
│ ├── question_images_HR_hr_1/
│ ├── config/ # lab config, stimulus order, metadata
│ ├── multipleye_stimuli_experiment_HR.xlsx
│ └── multipleye_comprehension_questions_HR.xlsx
├── participant_questionnaire_HR_hr_1_2025/
└── documentation/
A session identifier carries the participant ID, language, country, lab, and session type.
The format is {PID}_{LANG}_{country}_{lab}_{session}. For example 015_HR_hr_Zagreb_1_S1
means participant 015, Croatian, lab Zagreb 1, eye-tracking session 1.
Session types are S / ET for eye-tracking and PT for psychometric tests.
The participant ID is always three digits and unique only within a dataset.
The pEYEpline works session-by-session and assumes a fixed set of logfiles per session.
Each session folder must contain an EDF (or ASC) file and a logfiles/ subfolder with:
completed_stimuli.csv— which stimuli the participant actually readquestion_order_versions.csv— which randomisation version was usedEXPERIMENT_{...}.txt— trial-level log from PsychoPyGENERAL_LOGFILE_{...}.txt— contains the stimulus order version number
Stimulus definitions live in the stimulus folder, shared across all sessions.
The AOI files ({stimulus}_aoi.csv and {stimulus}_aoi_questions.csv) define word- and
character-level interest areas per stimulus. The config folder contains the lab hardware
settings, the stimulus order randomisation table, and the experiment metadata form.
pEYEpline Philosophy#
Every stage reads the output of the previous stage and can be toggled on or off.
The configuration YAML controls which stages run. Output files are cached on disk; when
recalculate: false the pEYEpline skips recomputation and validates file counts against the
expected number of completed stimuli.
Two experiment types are supported through the same interface. MultiplEYE uses one
session per participant. MeRID splits the stimulus order across two sessions — the
MeridDataCollection overrides the stimulus loading logic while keeping everything else
identical.
The pEYEpline is batch-oriented. It discovers all sessions in a data collection, runs a preflight check on all of them, converts EDFs to ASC, loads session-level metadata, and then loops over each session for the heavy computation (gaze processing, event detection, reading measures, answers, sanity checks). Psychometric tests run once at the end over all sessions.
For a full stage-by-stage description, head over to pEYEpline Stages.
Output Structure#
Everything lands in preprocessed_data/{data_collection_name}/, organised by stage.
Each stage has its own folder with subfolders per session. This keeps the data tidy and
makes it easy to see what’s been processed.
preprocessed_data/{dcn}/
├── asc/ # converted ASC files
├── raw_data/ # per-trial gaze samples
├── metadata/ # session metadata, calibrations, validations;
│ # also keeps a copy of the preprocessing config used in the
│ # most recent run (original filename), overwritten on re-run
├── fixations/ # detected fixations
├── saccades/ # detected saccades
├── scanpaths/ # AOI-mapped fixations
├── reading_measures/ # word-level reading measures
├── comp_answers/ # comprehension question answers
├── sanity_checks/ # quality reports and plots
├── psychometric_tests/ # PT results table (+ merged per-participant table)
├── codebook/ # CSV codebook package, availability and generated bundles
├── documentation/ # questionnaire assets and codebook mappings
├── participants.csv
├── codebook.csv # flat copy of the codebook field table
├── {dcn}_overview.yaml
└── stimuli_{dcn}/ # copy of stimulus assets used
Filenames follow a consistent pattern. Per-trial files are named
{sid}_{trial}_{stimulus}_{stage}.csv. Psychometric test outputs use
psychometric_results_{dcn}.csv (one row per session with all test metrics) and
psychometric_results_{dcn}_merged.csv (sessions merged per participant when tests are
disjoint). The merged table combines PT1 and PT2 data for the same subject.
Every run writes the codebook package. codebook/ contains fields.csv, views.csv,
relations.csv, the display group tables, semantic_categories.csv, availability.csv,
environment.csv and the generated JSON and zip bundles. The root codebook.csv is a flat copy
of fields.csv for quick inspection. The display groups are column presets for EyeStore, not data
filters.
The dataset overview records how the data was processed. {dcn}_overview.yaml contains a
processing_config section with the algorithm settings used for the run: event-detection
parameters (detection_eye, fixation_method, fixation_minimum_duration_ms,
fixation_velocity_threshold, fixation_dispersion_threshold, fixation_include_nan,
saccade_method, saccade_minimum_duration, saccade_threshold, saccade_threshold_factor,
saccade_minimum_threshold, saccade_include_nan), velocity-estimation parameters
(velocity_estimation_method, velocity_smoothing_window_ms, velocity_polynomial_degree,
velocity_padding), data-loss settings (data_loss_missingness_column), fixation drift
correction settings (fixation_correction, fixation_correction_algorithm,
fixation_correction_kwargs), psychometric scoring thresholds
(psym_wikivocab_{min,max}_rt, psym_stroop_{min,max}_rt, psym_flanker_{min,max}_rt), eye and
column mappings (tracked_eye, trial_cols, trial_col, page_col, stimulus_col,
word_idx_col, char_idx_col) and fixed design decisions that are not configurable
(aoi_enlargement, reading_measures_null_fill, scanpath_drop_unmapped,
per_trial_loss_weighting). These values are read from the
resolved configuration, so the overview always reflects what was actually applied.
Fixation correction is on by default. aoi_enlargement is none when correction is active
(corrected fixations land on the AOIs) and half_line_spacing when correction is off. When
correction is active, fixations/ contains the corrected fixations, fixations_uncorrected/
keeps the raw detections and scanpaths, reading measures and sanity plots use the corrected data.
When correction is off, fixations/ and all downstream outputs stay uncorrected and
fixations_uncorrected/ is not written. See Fixation Correction for the full output
contract.
The lab configuration, including Script_direction and final-dot geometry, is loaded per resolved
stimulus version. A collection that uses stimulus_versions therefore keeps each session tied to
the direction and dot position of the stimulus folder it actually saw. The separate processing_environment
block records the pipeline git revision plus the pymovements, edf2asc and Python versions.
Reading times are recorded in seconds. The session overview stores total_reading_time_s, the
dataset overview averages it as mean_total_reading_time_s, and mean_wpm is computed as
total_words / (total_reading_s / 60). Negative spans caused by out-of-order ASC start/stop
messages are clamped to 0 and logged as a warning, so reading times are never negative.
The session overview records participant context. The participant section is a convenience
subset for quick access in the session metadata. It combines the normalised participant
questionnaire with the psychometric-test sessions: gender, bi_monolingualism (derived from the
distinct native languages), the available psychometric_tests, tests_conducted_this_session and
tests_conducted_separate_session, has_pt_data_same_day_as_session,
gap_to_previous_session_days, gap_to_next_session_days,
gap_to_psychometric_tests_days, and a curated psychometric_test_scores subset. The full
participant-level data is centralised in participants.csv.