Skip to content

Add Dzianok2022, the Nencki-Symfonia visual oddball P300 dataset - #1366

Open
ptlnextdoor wants to merge 1 commit into
NeuroTechX:developfrom
ptlnextdoor:fix/oss-moabb-nencki
Open

ptlnextdoor wants to merge 1 commit into
NeuroTechX:developfrom
ptlnextdoor:fix/oss-moabb-nencki

Conversation

@ptlnextdoor

Copy link
Copy Markdown

This adds Dzianok2022, the visual oddball task of the Nencki-Symfonia dataset, to the P300 datasets. It gives MOABB a 42-subject P300 dataset with 127 channels and a CC0 license. A user can run it with P300() and any of the evaluations.

The dataset is OpenNeuro ds004621 (paper). Both #913 and #916 list it as an open item. I found no PR for it.

What the loader does

  • Each subject has one recording of about 22 minutes with 660 stimuli: 81 targets, 81 distractors and 498 standards.
  • Target is the target marker (S 6). NonTarget is the standard (S 5) and the distractor (S 7). The loader drops the key press, break and run-start markers. The event meanings come from the deposit's task-oddball_events.json.
  • Subjects 37 and 38 are joined from several recordings. The loader turns the joins into EDGE boundary annotations, so no epoch crosses one.
  • The deposit is 83 GB because it also has MSIT+, reaction-time and resting-state recordings. The loader fetches only the oddball files (about 700 MB per subject). It uses the NEMAR mirror, and OpenNeuro S3 when MOABB_DOWNLOAD_PROVIDER=upstream.
  • Four channels have no montage position: the two earlobe channels, and O9 and O10.
  • The patch also adds the summary row, the DOI cache entries, the API docs entry and a changelog entry.

Results

I ran WithinSessionEvaluation with P300(resample=128) on subjects 1 and 2 only, to limit the download. Score is ROC AUC, 5-fold.

Pipeline Subject 1 Subject 2 Mean
Xdawn + LDA 0.691 0.839 0.765
XdawnCovariances + TangentSpace + LDA 0.773 0.908 0.841

Both are above chance. The scores are lower than on typical P300 speller datasets. The distractors also evoke a P3, so they may be hard to separate from targets. I did not test this.

Tests

  • New moabb/tests/test_dzianok2022.py has 2 offline tests. One builds a BrainVision file with the deposit's marker format and checks the event codes, the join annotation and the montage. The other checks that the mirror download asks only for the oddball task.
  • test_dzianok2022.py, test_metadata.py, test_lazy_imports.py, test_summary_trials.py, test_datasets.py and test_doi_validation.py give 3489 passed and 796 skipped locally.
  • pre-commit passes on the changed files.

Not checked

  • Subjects 3 to 42. In particular, I did not read the joined recordings of subjects 37 and 38. Their join handling is tested only with synthetic markers.
  • The S3 download path. The real data came through the NEMAR mirror. The mirror reports on004621 v1.0.0, while the DOI in the metadata is for snapshot v1.0.4. I did not compare the oddball files of the two versions.
  • The Sphinx docs build.

Questions for maintainers

  1. Should the distractor have its own event (Distractor) so that a user can pick target against standard only? It would keep the default behavior and add the 3-stimulus design.
  2. Subjects 2, 14 and 17 pressed the key for most distractors. The paper leaves them out of its behavioral summary only. The loader keeps their EEG and says so in the docstring.

AI disclosure: this PR was prepared with AI assistance (Claude, Anthropic).

Add the oddball task of OpenNeuro ds004621: 42 healthy adults, 127
channels, 1000 Hz, CC0. The target marker is Target. The standard and
distractor markers are NonTarget.

The loader downloads only the oddball files, from the NEMAR mirror or,
as a fallback, from OpenNeuro S3. The deposit holds three other tasks,
and its full size is 83 GB.

Also add the summary row, the DOI cache entries, the API docs entry and
the changelog entry.

AI disclosure: this commit was prepared with AI assistance (Claude,
Anthropic).
Copilot AI balanced review requested due to automatic review settings November 19, 2026 02:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants