Evaluation Without Selection Single-Trial EEG

Evaluation Without Selection -analysis code Code for "Single-Trial EEG Shapes Confidence and Speed" The data are the open OpenNeuro data set ds004295 (Stolz, Pickering, & Mueller, 2022; https://doi.org/10.18112/openneuro.ds004295.v1.0.0). Files File -What it does - `extract_eeg_full.py` | Preprocessing (ICA, filtering, robust re-reference) and all single-trial, block and person EEG measures → `trials_full.csv`, `blocks_full.csv`, `person_full.csv`, `waveforms_full.csv` - `extract_eeg.py` - `--behavior-only`: builds `behavior_corrected.csv` from `RevEx1_behavioralData.mat` (corrects the task-label error) and checks it against the EEG markers - `check_ds004295_behavior.py` -Stand-alone verification of the three issues in the shared behavioural files -`qlearning_ds004295.py` -Reinforcement-learning models (RW, RW2, RW2K and two P3 models) → `results/qlearning/` - `decision_ds004295.py` | Decision-time EEG (CPP, pre-response theta), whole-scalp decoding, GLM-HMM → `paper2_addon/` -`ewos_analysis.R` | All statistics, tables and figures (Parts A–E, see the header of the script) -`run_all.bat` | Windows: runs everything in order and skips finished steps Run order ```python extract_eeg_full.py --bids <ds004295> --out <DATA_DIR>python extract_eeg.py --behavior-only --bids <ds004295> --out <DATA_DIR> [--beh-mat <RevEx1_behavioralData.mat>]python qlearning_ds004295.py --data <DATA_DIR>python decision_ds004295.py --bids <ds004295> --out <DATA_DIR> --q <DATA_DIR>/results/qlearningRscript ewos_analysis.R - set DATA_DIR and PART at the top, or the environment variables DS_DIR and DS_PARTICIPANTS``` `decision_ds004295.py` imports `extract_eeg_full.py`, so both must be in the same folder. - Outputs (in DATA_DIR) - `results/` - Models 1–5 and robustness analyses (Part A); `results/choice_path/` - RL, confidence and loss-sensitivity analyses (Part B)- `results_paper2/` - tests across the choice cycle, decoding summary, latent states (Part C)- `results/combined/` - Figures 1–5 and S1, numbered as in the manuscript (Part D)- `results/Results_APA.docx` - APA-formatted summary of Parts A and B (Part E) -Requirements Python ≥ 3.10: `mne` (≥ 1.6), `mne-bids`, `numpy`, `scipy`, `pandas`, `scikit-learn`, `python-picard`; optional `specparam` (or `fooof`), `matplotlib`.R ≥ 4.3: `dplyr`, `tidyr`, `lme4`, `lmerTest`, `ordinal`, `emmeans`, `performance`, `glmmTMB`, `ggplot2`, `patchwork`, `officer`, `flextable` (missing packages are installed automatically). -Notes - Random seeds are fixed in every script (ICA `random_state = 97`; analyses `20261122`/`20261123`).- The strict artifact rule (`EEG_Kept`) reproduces the earlier extraction exactly; other rules are compared in the artifact multiverse (Part A, R6).- GLM-HMM state names are assigned from the fitted weights (largest value weight = `engaged`; largest previous-choice weight among the others = `perseverative`; remaining = `weakly_guided`). The analyses select states by their weights, not by their names.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-25
DOI
https://doi.org/10.5281/zenodo.24543224
Primary Topic
EEG and Brain-Computer Interfaces
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Evaluation Without Selection Single-Trial EEG

amin alvani
Zenodo (CERN European Organization for Nuclear Research)
EEG and Brain-Computer Interfaces
article

Evaluation Without Selection Single-Trial EEG

amin alvani
article en

Abstract

Evaluation Without Selection -analysis code Code for "Single-Trial EEG Shapes Confidence and Speed" The data are the open OpenNeuro data set ds004295 (Stolz, Pickering, & Mueller, 2022; https://doi.org/10.18112/openneuro.ds004295.v1.0.0). Files File -What it does - `extract_eeg_full.py` | Preprocessing (ICA, filtering, robust re-reference) and all single-trial, block and person EEG measures → `trials_full.csv`, `blocks_full.csv`, `person_full.csv`, `waveforms_full.csv` - `extract_eeg.py` - `--behavior-only`: builds `behavior_corrected.csv` from `RevEx1_behavioralData.mat` (corrects the task-label error) and checks it against the EEG markers - `check_ds004295_behavior.py` -Stand-alone verification of the three issues in the shared behavioural files -`qlearning_ds004295.py` -Reinforcement-learning models (RW, RW2, RW2K and two P3 models) → `results/qlearning/` - `decision_ds004295.py` | Decision-time EEG (CPP, pre-response theta), whole-scalp decoding, GLM-HMM → `paper2_addon/` -`ewos_analysis.R` | All statistics, tables and figures (Parts A–E, see the header of the script) -`run_all.bat` | Windows: runs everything in order and skips finished steps Run order ```python extract_eeg_full.py --bids <ds004295> --out <DATA_DIR>python extract_eeg.py --behavior-only --bids <ds004295> --out <DATA_DIR> [--beh-mat <RevEx1_behavioralData.mat>]python qlearning_ds004295.py --data <DATA_DIR>python decision_ds004295.py --bids <ds004295> --out <DATA_DIR> --q <DATA_DIR>/results/qlearningRscript ewos_analysis.R - set DATA_DIR and PART at the top, or the environment variables DS_DIR and DS_PARTICIPANTS``` `decision_ds004295.py` imports `extract_eeg_full.py`, so both must be in the same folder. - Outputs (in DATA_DIR) - `results/` - Models 1–5 and robustness analyses (Part A); `results/choice_path/` - RL, confidence and loss-sensitivity analyses (Part B)- `results_paper2/` - tests across the choice cycle, decoding summary, latent states (Part C)- `results/combined/` - Figures 1–5 and S1, numbered as in the manuscript (Part D)- `results/Results_APA.docx` - APA-formatted summary of Parts A and B (Part E) -Requirements Python ≥ 3.10: `mne` (≥ 1.6), `mne-bids`, `numpy`, `scipy`, `pandas`, `scikit-learn`, `python-picard`; optional `specparam` (or `fooof`), `matplotlib`.R ≥ 4.3: `dplyr`, `tidyr`, `lme4`, `lmerTest`, `ordinal`, `emmeans`, `performance`, `glmmTMB`, `ggplot2`, `patchwork`, `officer`, `flextable` (missing packages are installed automatically). -Notes - Random seeds are fixed in every script (ICA `random_state = 97`; analyses `20261122`/`20261123`).- The strict artifact rule (`EEG_Kept`) reproduces the earlier extraction exactly; other rules are compared in the artifact multiverse (Part A, R6).- GLM-HMM state names are assigned from the fitted weights (largest value weight = `engaged`; largest previous-choice weight among the others = `perseverative`; remaining = `weakly_guided`). The analyses select states by their weights, not by their names.

Zenodo (CERN European Organization for Nuclear Research)
University of Urbino (IT), Islamic Azad University of Arsanjan (IR)
EEG and Brain-Computer Interfaces
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon