Document Motor processing and hierarchy
Browse files
README.md
CHANGED
|
@@ -1,66 +1,48 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
# Motor
|
| 10 |
|
| 11 |
-
|
| 12 |
-
17:066010, in-ear sensing for motor task classification) BIDS dataset — 6
|
| 13 |
-
subjects, 1–4 runs each, one motor-imagery trial per row (`left` / `right`
|
| 14 |
-
hand). Trial windows are taken directly from each event's own
|
| 15 |
-
onset/duration in `events.tsv` (always 4.0 s here) — **not** the paper's own
|
| 16 |
-
[-1, +2] s classification epoch (see note below).
|
| 17 |
|
| 18 |
-
##
|
| 19 |
-
|
| 20 |
-
**Only** a 0.1–100 Hz band-pass + 50 Hz notch filter is applied, on the full
|
| 21 |
-
continuous recording before slicing into trials (to avoid per-trial filter
|
| 22 |
-
edge effects). Nothing else: **no resampling, no channel renaming**.
|
| 23 |
-
Channel names are kept exactly as in the source BIDS `channels.tsv`.
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
`duration` column in `events.tsv` (the movement-hold period marked in the
|
| 29 |
-
recording), *not* a value stated by the paper as its classification window.
|
| 30 |
-
Wu et al. 2020's own EEGNet pipeline (§2.2.1) uses a [-1, +2] s = 3 s window
|
| 31 |
-
around arrow onset, 250 Hz, 4-38 Hz filter — independent of this `duration`
|
| 32 |
-
column. That paper-matched variant lives separately in this repo's source
|
| 33 |
-
project as `motor-eeg.h5` / `motor-ear-eeg.h5`; do not confuse it with the
|
| 34 |
-
files here.
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
##
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
```
|
| 48 |
-
/data (N, C, T) float32 signal, µV
|
| 49 |
-
/durations (N,) int64 valid samples per trial (== T here, fixed-length)
|
| 50 |
-
/nan_fraction (N,) float32 fraction of non-finite samples in the trial
|
| 51 |
-
/labels (N,) int64 index into attrs['class_names'] (['left','right'])
|
| 52 |
-
/subject (N,) str 'sub-01' ...
|
| 53 |
-
/session (N,) str 'ses-01'
|
| 54 |
-
/task (N,) str 'motor'
|
| 55 |
-
/run (N,) str 'run-01' ... 'run-04'
|
| 56 |
-
/trial_id (N,) int64 row index in the source events.tsv
|
| 57 |
-
/ch_names (C,) str channel names, as in source BIDS channels.tsv
|
| 58 |
|
| 59 |
-
|
| 60 |
-
source_bids_path, bids_dataset_name, preprocess_config_json, created_at
|
| 61 |
-
```
|
| 62 |
|
| 63 |
-
|
| 64 |
-
```json
|
| 65 |
-
{"filter_low": 0.1, "filter_high": 100.0, "notch": 50.0, "trial_window": "events_tsv onset/duration (label-defined length)"}
|
| 66 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: Motor Processed EEG
|
| 3 |
+
task_categories:
|
| 4 |
+
- time-series-classification
|
| 5 |
tags:
|
| 6 |
+
- eeg
|
| 7 |
+
- ear-eeg
|
| 8 |
+
- motor-task
|
| 9 |
+
- bids
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Motor Processed EEG
|
| 13 |
|
| 14 |
+
Paper-aligned scalp-EEG and ear-EEG HDF5 files for binary left/right motor-task classification, prepared for the [Ear-EEG FM Benchmark](https://github.com/zhikaili1150/Ear-EEG-FM-Benchmark).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
| File | Samples | Shape | Size | SHA-256 |
|
| 19 |
+
|---|---:|---|---:|---|
|
| 20 |
+
| `motor-eeg.h5` | 1,083 | `(1083, 122, 750)` | 396,762,364 bytes | `104fd2333f44aa7ca3a9976d5e65dbb00223ac45294c9e5f94b8bbbc24818bfb` |
|
| 21 |
+
| `motor-ear-eeg.h5` | 1,097 | `(1097, 6, 750)` | 20,130,804 bytes | `bc88050fcfd5242bc0166224b25f399234774029661d9ab970320f8d57fb032f` |
|
| 22 |
|
| 23 |
+
The leading dimension differs because peak-to-peak rejection is applied independently to scalp and ear channels.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
## Processing and hierarchy
|
| 26 |
|
| 27 |
+
- Source hierarchy: `subject / session / run / block / trial`
|
| 28 |
+
- Source trials: 1,114 experimental trials across 6 subjects; each trial lasts 10 s
|
| 29 |
+
- H5 sample: one 3 s window from `-1` to `+2` s relative to event onset
|
| 30 |
+
- Signal processing: 4–38 Hz band-pass, 250 Hz output sampling rate, 750 time points
|
| 31 |
+
- Labels: `left` (`0`) and `right` (`1`)
|
| 32 |
+
- Rejection: peak-to-peak amplitude greater than 800 uV
|
| 33 |
+
- `trial_id`: experimental trial identifier from `events.tsv:trial_id`
|
| 34 |
+
- `split_group_id`: paper-defined experimental block from `events.tsv:block_id`; treat it as indivisible within its recording when constructing data splits
|
| 35 |
+
- Data unit: uV, stored as `float32`
|
| 36 |
|
| 37 |
+
The HDF5 schema version is `0.4.0`. Each file also stores subjects, sessions, runs, recording IDs, event/sample IDs, channel names, window bounds, preprocessing metadata, and class names.
|
| 38 |
|
| 39 |
+
## Download
|
| 40 |
|
| 41 |
+
```bash
|
| 42 |
+
huggingface-cli download Zachary1150/Motor-Processed \
|
| 43 |
+
--repo-type dataset --local-dir data
|
| 44 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
## Source
|
|
|
|
|
|
|
| 47 |
|
| 48 |
+
The original recordings accompany *An investigation of in-ear sensing for motor task classification* and are distributed through [IEEE DataPort](https://ieee-dataport.org/open-access/ear-eeg-recording-brain-computer-interface-motor-task). Users are responsible for complying with the original dataset terms.
|
|
|
|
|
|
|
|
|