NM000161: eeg dataset, 20 subjects#

BNCI 2024-001 Handwritten Character Classification dataset

Access recordings and metadata through EEGDash.

Citation: Markus R. Crell, Gernot R. Müller-Putz (2024). BNCI 2024-001 Handwritten Character Classification dataset.

Modality: eeg Subjects: 20 Recordings: 40 License: CC-BY-4.0 Source: nemar

Metadata: Complete (90%)

Quickstart#

Install

pip install eegdash

Access the data

from eegdash.dataset import NM000161

dataset = NM000161(cache_dir="./data")
# Get the raw object of the first recording
raw = dataset.datasets[0].raw
print(raw.info)

Filter by subject

dataset = NM000161(cache_dir="./data", subject="01")

Advanced query

dataset = NM000161(
    cache_dir="./data",
    query={"subject": {"$in": ["01", "02"]}},
)

Iterate recordings

for rec in dataset:
    print(rec.subject, rec.raw.info['sfreq'])

If you use this dataset in your research, please cite the original authors.

BibTeX

@dataset{nm000161,
  title = {BNCI 2024-001 Handwritten Character Classification dataset},
  author = {Markus R. Crell and Gernot R. Müller-Putz},
}

About This Dataset#

BNCI 2024-001 Handwritten Character Classification dataset

BNCI 2024-001 Handwritten Character Classification dataset.

Dataset Overview

  • Code: BNCI2024-001

  • Paradigm: imagery

  • DOI: 10.1016/j.compbiomed.2024.109132

View full README

BNCI 2024-001 Handwritten Character Classification dataset

BNCI 2024-001 Handwritten Character Classification dataset.

Dataset Overview

  • Code: BNCI2024-001

  • Paradigm: imagery

  • DOI: 10.1016/j.compbiomed.2024.109132

  • Subjects: 20

  • Sessions per subject: 1

  • Events: letter_a=1, letter_d=2, letter_e=3, letter_f=4, letter_j=5, letter_n=6, letter_o=7, letter_s=8, letter_t=9, letter_v=10

  • Trial interval: [0, 3] s

  • Runs per session: 2

  • File format: MAT

Acquisition

  • Sampling rate: 500.0 Hz

  • Number of channels: 60

  • Channel types: eeg=60, eog=4

  • Channel names: AF3, AF4, AF7, AF8, C1, C2, C3, C4, C5, C6, CP1, CP2, CP3, CP4, CP5, CP6, CPz, Cz, EOG1, EOG2, EOG3, EOG4, F1, F2, F3, F4, F5, F6, F7, F8, FC1, FC2, FC3, FC4, FC5, FC6, FT10, FT7, FT8, FT9, Fp1, Fp2, Fpz, Fz, M1, M2, O1, O2, Oz, P1, P2, P3, P4, P5, P6, P7, P8, PO3, POz, Pz, T7, T8, TP7, TP8

  • Montage: eogl1 eogl2 eogl3 eogr1 af7 af3 afz af4 af8 f7 f5 f3 f1 fz f2 f4 f6 f8 ft7 fc5 fc3 fc1 fcz fc2 fc4 fc6 ft8 t7 c5 c3 c1 cz c2 c4 c6 t8 tp7 cp5 cp3 cp1 cpz cp2 cp4 cp6 tp8 p7 p5 p3 p1 pz p2 p4 p6 p8 ppo1h ppo2h po7 po3 poz po4 po8 o1 oz o2

  • Hardware: BrainVision

  • Software: EEGLAB

  • Reference: right mastoid

  • Sensor type: active electrodes

  • Line frequency: 50.0 Hz

  • Online filters: 50 Hz notch

  • Cap manufacturer: Brain Products GmbH

  • Auxiliary channels: EOG (4 ch, horizontal, vertical)

Participants

  • Number of subjects: 20

  • Health status: healthy

  • Age: mean=27.5, std=3.92

  • Gender distribution: male=11, female=11

  • Handedness: {‘right’: 22}

  • BCI experience: not specified

  • Species: human

Experimental Protocol

  • Paradigm: imagery

  • Task type: handwriting

  • Number of classes: 10

  • Class labels: letter_a, letter_d, letter_e, letter_f, letter_j, letter_n, letter_o, letter_s, letter_t, letter_v

  • Trial duration: 8.5 s

  • Study design: Handwritten character task with 10 letters (a,d,e,f,j,n,o,s,t,v) using right index finger. Letters fade in (2s), remain visible (0.5s), fade out (2s), then 4s writing phase. Each letter written 60 times across 15 runs.

  • Feedback type: Training included visual feedback showing finger position; main paradigm had no feedback during writing (only fixation cross)

  • Stimulus type: letter cue

  • Stimulus modalities: visual

  • Primary modality: visual

  • Mode: offline

  • Training/test split: True

  • Instructions: Start movement when letter fades out completely; write letter during 4s writing phase; stop hand at last position until next letter appears; execute home movement during fade-in to return to comfortable starting position

  • Stimulus presentation: fade_in_duration=2.0s, visible_duration=0.5s, fade_out_duration=2.0s, writing_duration=4.0s, total_trial_duration=8.5s

HED Event Annotations

Schema: HED 8.4.0 | Browse: https://www.hedtags.org/hed-schema-browser

letter_a
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/a

letter_d
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/d

letter_e
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/e

letter_f
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/f

letter_j
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/j

letter_n
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/n

letter_o
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/o

letter_s
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/s

letter_t
     ├─ Sensory-event, Experimental-stimulus, Visual-presentation
     └─ Agent-action
        └─ Write
           ├─ Hand
           └─ Label/t

letter_v
├─ Sensory-event, Experimental-stimulus, Visual-presentation
└─ Agent-action
   └─ Write
      ├─ Hand
      └─ Label/v

Paradigm-Specific Parameters

  • Detected paradigm: motor_imagery

  • Imagery tasks: handwriting of letters a, d, e, f, j, n, o, s, t, v

  • Cue duration: 2.0 s

  • Imagery duration: 4.0 s

Data Structure

  • Trials: 60

  • Blocks per session: 15

  • Block duration: 340 s

  • Trials context: per_class

Preprocessing

  • Data state: raw

  • Preprocessing applied: True

  • Steps: notch filtering, bandpass filtering, bad channel interpolation, EOG artifact correction (SGEYESUB), ICA for artifact removal, re-referencing to CAR, bad segment rejection, lowpass filtering, downsampling, epoching

  • Highpass filter: 0.3 Hz

  • Lowpass filter: 70.0 Hz

  • Bandpass filter: {‘low_cutoff_hz’: 0.3, ‘high_cutoff_hz’: 70.0}

  • Notch filter: [50] Hz

  • Filter type: Butterworth

  • Filter order: 4

  • Artifact methods: ICA, SGEYESUB

  • Re-reference: car

  • Downsampled to: 128 Hz

  • Epoch window: [-4.5, 4.0]

  • Notes: Two datasets created: dataset 1 (0.3-3 Hz, 10 Hz sampling) and dataset 2 (0.3-40 Hz, 128 Hz sampling). Bad segments rejected if exceeding ±120 μV or kurtosis/probability > 7 SD from mean.

Signal Processing

  • Classifiers: Shrinkage Linear Discriminant Analysis (sLDA), EEGNet CNN

  • Feature extraction: low-frequency EEG, broadband EEG, continuous kinematics decoding

  • Frequency bands: analyzed=[0.3, 70.0] Hz

  • Spatial filters: CAR

Cross-Validation

  • Method: 2-times repeated 5-fold cross-validation

  • Folds: 5

  • Evaluation type: cross_session

Performance (Original Study)

  • Accuracy: 26.2%

  • 10 Letters Direct Lowfreq: 23.1

  • 10 Letters Twostep: 26.2

  • 5 Letters Direct Lowfreq: 39.0

  • 5 Letters Twostep: 46.7

  • Kinematics Correlation Range: 0.10-0.57

  • Chance Level Correlation: 0.04

BCI Application

  • Applications: communication, character_selection

  • Environment: laboratory

  • Online feedback: False

Tags

  • Pathology: Healthy

  • Modality: Motor

  • Type: Motor

Documentation

  • Description: Classification of handwritten letters from EEG through continuous kinematic decoding

  • DOI: 10.1016/j.compbiomed.2024.109132

  • License: CC-BY-4.0

  • Investigators: Markus R. Crell, Gernot R. Müller-Putz

  • Senior author: Gernot R. Müller-Putz

  • Contact: gernot.mueller@tugraz.at

  • Institution: Graz University of Technology

  • Department: Institute of Neural Engineering

  • Address: Graz, Austria

  • Country: Austria

  • Repository: BNCI Horizon 2020

  • Data URL: https://bnci-horizon-2020.eu/database/data-sets

  • Publication year: 2024

  • Ethics approval: Ethics Committee at Graz University of Technology

  • Keywords: Brain-computer interface (BCI), Electroencephalography (EEG), Handwriting, Continuous movement decoding, Non-invasive

Abstract

This study explores the classification of ten letters (a,d,e,f,j,n,o,s,t,v) from non-invasive neural signals of 20 participants. Letters were classified with direct classification from low-frequency and broadband EEG, and a two-step approach comprising continuous decoding of hand kinematics followed by classification. The two-step approach yielded significantly higher performances of 26.2% for ten letters and 46.7% for five letters. Hand kinematics could be reconstructed with correlation of 0.10 to 0.57 (average chance level: 0.04). Results suggest movement speed as the most informative kinematic for decoding short hand movements.

Methodology

Participants wrote 10 letters using right index finger with motion capture tracking (30 Hz, 2D positions). Two-round session with 7 runs (round 1) and 8 runs (round 2), 40 trials per run, 8.5s per trial. Training phase included 4 steps: observation, guided following, unguided following, and execution without feedback. Classification using sliding-window approach with sLDA and EEGNet CNN. Trajectory decoding using EEGNet architecture adapted for regression of position-based (px, py, vx, vy), distance-based (d, ḋ, θ, θ̇), and speed-based (s) kinematics.

References

Crell, M. R., & Muller-Putz, G. R. (2024). Handwritten character classification from EEG through continuous kinematic decoding. Computers in Biology and Medicine, 182, 109132. https://doi.org/10.1016/j.compbiomed.2024.109132 Notes .. versionadded:: 1.3.0 This dataset is notable for exploring non-invasive EEG-based handwritten character classification, which could enable communication for individuals with limited movement capacity. The study demonstrated that handwritten characters can be classified from non-invasive EEG and that decoding movement kinematics prior to classification improves performance. Appelhoff, S., Sanderson, M., Brooks, T., Vliet, M., Quentin, R., Holdgraf, C., Chaumon, M., Mikulan, E., Tavabi, K., Hochenberger, R., Welke, D., Brunner, C., Rockhill, A., Larson, E., Gramfort, A. and Jas, M. (2019). MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis. Journal of Open Source Software 4: (1896). https://doi.org/10.21105/joss.01896 Pernet, C. R., Appelhoff, S., Gorgolewski, K. J., Flandin, G., Phillips, C., Delorme, A., Oostenveld, R. (2019). EEG-BIDS, an extension to the brain imaging data structure for electroencephalography. Scientific Data, 6, 103. https://doi.org/10.1038/s41597-019-0104-8 Generated by MOABB 1.5.0 (Mother of All BCI Benchmarks) NeuroTechX/moabb

Dataset Information#

Dataset ID

NM000161

Title

BNCI 2024-001 Handwritten Character Classification dataset

Author (year)

Crell2024

Canonical

Importable as

NM000161, Crell2024

Year

2024

Authors

Markus R. Crell, Gernot R. Müller-Putz

License

CC-BY-4.0

Citation / DOI

Unknown

Source links

OpenNeuro | NeMAR | Source URL

Found an issue with this dataset?

If you encounter any problems with this dataset (missing files, incorrect metadata, loading errors, etc.), please let us know!

Report an Issue on GitHub

Technical Details#

Subjects & recordings
  • Subjects: 20

  • Recordings: 40

  • Tasks: 1

Channels & sampling rate
  • Channels: 60

  • Sampling rate (Hz): 500.0

  • Duration (hours): 33.61688888888889

Tags
  • Pathology: Healthy

  • Modality: Visual

  • Type: Motor

Files & format
  • Size on disk: 10.2 GB

  • File count: 40

  • Format: BIDS

License & citation
  • License: CC-BY-4.0

  • DOI: —

Provenance

Electrode Layout#

Electrode layout — EEG · 60 sensors — 60 channels

Dataset Statistics#

Age distribution (n=20, range 27–27 yr)

25

Channel counts: 60 ch (n=40 recordings)

Sampling frequencies: 500.0 Hz (n=40 recordings)

Total recording duration: 33 h

NEMAR Processing Statistics#

The plots below are generated by NEMAR’s automated EEG pipeline. The histogram shows pipeline success for data cleaning and ICA decomposition, the percentage of data frames and EEG channels retained after artefact removal, line noise per channel (RMS, dB), and the age/gender distribution of participants.

HED event descriptors word cloud HED event descriptors word cloud — NM000161

File Explorer#

Browse the BIDS file structure of this dataset. Records are fetched on demand from the EEGDash catalog the first time you open the explorer.

Files:
Size:
Subjects:
Click to load file structure…

API Reference#

Use the NM000161 class to access this dataset programmatically.

class eegdash.dataset.NM000161(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#

Bases: EEGDashDataset

BNCI 2024-001 Handwritten Character Classification dataset

Study:

nm000161 (NeMAR)

Author (year):

Crell2024

Canonical:

Also importable as: NM000161, Crell2024.

Modality: eeg; Experiment type: Motor; Subject type: Healthy. Subjects: 20; recordings: 40; tasks: 1.

Parameters:
  • cache_dir (str | Path) – Directory where data are cached locally.

  • query (dict | None) – Additional MongoDB-style filters to AND with the dataset selection. Must not contain the key dataset.

  • s3_bucket (str | None) – Base S3 bucket used to locate the data.

  • **kwargs (dict) – Additional keyword arguments forwarded to EEGDashDataset.

data_dir#

Local dataset cache directory (cache_dir / dataset_id).

Type:

Path

query#

Merged query with the dataset filter applied.

Type:

dict

records#

Metadata records used to build the dataset, if pre-fetched.

Type:

list[dict] | None

Notes

Each item is a recording; recording-level metadata are available via dataset.description. query supports MongoDB-style filters on fields in ALLOWED_QUERY_FIELDS and is combined with the dataset filter. Dataset-specific caveats are not provided in the summary metadata.

References

OpenNeuro dataset: https://openneuro.org/datasets/nm000161 NeMAR dataset: https://nemar.org/dataexplorer/detail?dataset_id=nm000161

Examples

>>> from eegdash.dataset import NM000161
>>> dataset = NM000161(cache_dir="./data")
>>> recording = dataset[0]
>>> raw = recording.load()
__init__(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#
save(path: str, overwrite: bool = False, offset: int = 0)[source]#

Save datasets to files by creating one subdirectory for each dataset:

path/
    0/
        0-raw.fif | 0-epo.fif
        description.json
        raw_preproc_kwargs.json (if raws were preprocessed)
        window_kwargs.json (if this is a windowed dataset)
        window_preproc_kwargs.json  (if windows were preprocessed)
        target_name.json (if target_name is not None and dataset is raw)
    1/
        1-raw.fif | 1-epo.fif
        description.json
        raw_preproc_kwargs.json (if raws were preprocessed)
        window_kwargs.json (if this is a windowed dataset)
        window_preproc_kwargs.json  (if windows were preprocessed)
        target_name.json (if target_name is not None and dataset is raw)
Parameters:
  • path (str) –

    Directory in which subdirectories are created to store

    -raw.fif | -epo.fif and .json files to.

  • overwrite (bool) – Whether to delete old subdirectories that will be saved to in this call.

  • offset (int) – If provided, the integer is added to the id of the dataset in the concat. This is useful in the setting of very large datasets, where one dataset has to be processed and saved at a time to account for its original position.

See Also#