This repository contains the research code for the experiments in our paper "Is Limited Participant Diversity Impeding EEG-based Machine Learning?", accepted at NeurIPS 2025.
-
Create and activate conda/mamba environment
mamba env create -f environment.yml mamba activate participant-diversity-paper -
Install the package
pip install -e . -
Request access to the datasets and refer to the following repositories to harmonise and convert them to BIDS format.
-
Create a copy of the
user_config.example.ymlfile and rename it touser_config.yml. Then open it and configure the paths to the dataset folders and the directory, where you want outputs to be saved. -
To run experiments with the pretrained LaBraM model, download the labram-base.pth checkpoint to the root folder of this repository from the official labram repo.
Individual trials can be run with the run_trial.py script.
python core/run_trial.py \
--model TCN --dataset TUAB --task normality \
--n_participants 10 --n_segments 10 \
--output_root results/
Alternatively, use the run_experiments.ipynb notebook to generate configurations (and submit slurm jobs) for all experiments to reproduce the paper results.
@article{bomatter2025limited,
title={Is Limited Participant Diversity Impeding EEG-based Machine Learning?},
author={Bomatter, Philipp and Gouk, Henry},
journal={arXiv preprint arXiv:2503.13497},
year={2025}
}