SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.13497 · 2025

Is Limited Participant Diversity Impeding EEG-based Machine Learning?

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.13497.json · badge: /api/ran/2503.13497.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
bomatter/participant-diversity-paper canonical (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
build_metrics Ran
ran on a synthesized input
bomatter/participant-diversity-paper/core/metrics.py
code served (permissive licence) · get_code("ae52a8ce4041acdd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torchmetrics
from torchmetrics import MetricCollection
from torchmetrics.wrappers import MetricTracker

torch.manual_seed(0)

ARGS = {
    'metrics': {
        'MeanSquaredError': {},
        'MeanAbsoluteError': {},
    },
    'names': ['mse', 'mae'],
    'prefixes': ['train', 'val'],
    'device': 'cpu',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchmetrics — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_output_dir Ran
ran on a synthesized input
bomatter/participant-diversity-paper/core/utils.py
code served (permissive licence) · get_code("694e0b297ce926db")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from pathlib import Path

ARGS = {
    'output_root': '/tmp/experiment_outputs',
    'config': {
        'experiment_name': 'exp_001',
        'dataset': 'mnist',
        'task': 'classification',
        'model': 'resnet18',
        'n_participants': 10,
        'n_segments': 5,
        'seed': 42
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_trial_configs Ran
ran on a synthesized input
bomatter/participant-diversity-paper/core/utils.py
code served (permissive licence) · get_code("f0ec818c340f1959")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'dataset': 'TUAB',
    'task': 'classification',
    'model': 'LaBraM',
    'batch_size': 64,
    'max_batches': 50000,
    'evaluation_interval': 500,
    'early_stopping_patience': 5,
    'augmentation': None,
    'checkpoint': None,
    'learning_rate': None,
    'n_participants': [25, 50],
    'n_segments': [5, 10],
    'contiguous': False,
    'seed': [42, 43],
    'experiment_name': 'baseline'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_nan_or_inf Ran
ran on a synthesized input
bomatter/participant-diversity-paper/core/mAtt.py
code served (permissive licence) · get_code("4f47b9a63c67a59c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor to test the function
# The function checks for inf and nan values
A = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                   [5.0, 6.0, 7.0, 8.0]], dtype=torch.float32)

ARGS = {
    "A": A
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_existing_splits Ran
ran on a synthesized input
bomatter/participant-diversity-paper/core/datasets.py
code served (permissive licence) · get_code("0ba695cf372038f0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import pandas as pd
import tempfile
import shutil

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
io_path = Path(temp_dir)

# Create necessary CSV files
train_data = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
val_data = pd.DataFrame({'col1': [5, 6], 'col2': [7, 8]})
test_data = pd.DataFrame({'col1': [9, 10], 'col2': [11, 12]})

train_data.to_csv(io_path / 'train.csv', index=False)
val_data.to_csv(io_path / 'val.csv', index=False)
test_data.to_csv(io_path / 'test.csv', index=False)

# Create split_metadata.json
verification_metadata = {
    'train_size': 0.7,
    'val_size': 0.15,
    'test_size': 0.15,
    'seed': 42
}

with open(io_path / 'split_metadata.json', 'w') as f:
    json.dump(verification_metadata, f)

ARGS = {
    'io_path': io_path,
    'verification_metadata': verification_metadata
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_pos_def Not yet run
unverified (harvested, no recorded run)
bomatter/participant-diversity-paper/core/mAtt.py
code served (permissive licence) · get_code("97d4c97ee913a736")
How it ran

no invocation recorded.

submit_slurm_job Not yet run
unverified (harvested, no recorded run)
bomatter/participant-diversity-paper/core/utils.py
code served (permissive licence) · get_code("3396a132b46e7f9b")
How it ran

no invocation recorded.

symmetric Not yet run
unverified (harvested, no recorded run)
bomatter/participant-diversity-paper/core/mAtt.py
code served (permissive licence) · get_code("fb630094fc8f5169")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_nan_or_inf 1 other paper
1 dated earlier
2210.01986 (2022-10)
MAtt: A Manifold Attention Network for EEG Decoding
is_pos_def 1 other paper
1 dated earlier
2210.01986 (2022-10)
MAtt: A Manifold Attention Network for EEG Decoding
symmetric 1 other paper
1 dated earlier
2210.01986 (2022-10)
MAtt: A Manifold Attention Network for EEG Decoding

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The application of machine learning (ML) to electroencephalography (EEG) has great potential to advance both neuroscientific research and clinical applications. However, the generalisability and robustness of EEG-based ML models often hinge on the amount and diversity of training data. It is common practice to split EEG recordings into small segments, thereby increasing the number of samples substantially compared to the number of individual recordings or participants. We conceptualise this as a multi-level data generation process and investigate the scaling behaviour of model performance with respect to the overall sample size and the participant diversity through large-scale empirical studies. We then use the same framework to investigate the effectiveness of different ML strategies designed to address limited data problems: data augmentations and self-supervised learning. Our findings show that model performance scaling can be severely constrained by participant distribution shifts and provide actionable guidance for data collection and ML research. The code for our experiments is publicly available online.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.13497")
get_code_for_paper("2503.13497")
have("2503.13497")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.13497.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.13497.svg)](https://syntology.ai/paper/2503.13497)

Connect an agent — have() is free.