Zachary1150 commited on
Commit
7392df7
·
verified ·
1 Parent(s): 47b6c91

Add files using upload-large-folder tool

Browse files
Files changed (3) hide show
  1. README.md +47 -43
  2. eesm23-in-ear-eeg.h5 +2 -2
  3. eesm23-scalp-eeg.h5 +2 -2
README.md CHANGED
@@ -1,67 +1,71 @@
1
  ---
2
- license: unknown
3
  tags:
4
  - eeg
5
  - sleep-staging
6
  - in-ear-eeg
 
 
7
  ---
8
 
9
  # EESM23-Processed
10
 
11
- Preprocessed HDF5 export of the **EESM23** (Aarhus in-ear EEG sleep) BIDS
12
- dataset — 10 subjects, 2 nights each (`ses-001`, `ses-002`), one 30-second
13
- AASM scoring epoch per row (`Wake` / `N1` / `N2` / `N3` / `REM`; `Artefact`
14
- epochs dropped). `sub-006/ses-002` PSG is skipped — the source `.set` file is
15
- truncated on disk.
16
 
17
  ## Preprocessing
18
 
19
- **Only** a 0.1–100 Hz band-pass + 50 Hz notch filter is applied, on the full
20
- continuous recording before slicing into 30 s epochs (to avoid per-epoch
21
- filter edge effects). Nothing else: **no re-referencing, no resampling, no
22
- channel renaming**. Channel names are kept exactly as in the source BIDS
23
- `channels.tsv`.
24
 
25
- Device data-loss gaps (NaN samples) are linearly interpolated before
26
- filtering (a long FIR kernel otherwise smears each NaN across a wide window)
27
- and the true NaN positions are restored afterward, so `nan_fraction` still
28
- reflects genuine data quality rather than a filtering artifact.
 
 
29
 
30
- Generated by `dataset/preprocess_eesm23.py` in the EEGFM repo.
31
 
32
  ## Files
33
 
34
- | file | channels | epochs (N) | sfreq | epoch length |
35
- |---|---|---|---|---|
36
- | `eesm23-in-ear-eeg.h5` | 4: RB, RT, LB, LT (acq=earEEG, original names) | 16553 | 250 Hz | 30.0 s (7500 samples) |
37
- | `eesm23-scalp-eeg.h5` | 8: M1, F3, C3, O1, M2, F4, C4, O2 (acq=PSG) | 15526 | 250 Hz | 30.0 s (7500 samples) |
38
 
39
  Label distribution:
40
 
41
- | | Wake | N1 | N2 | N3 | REM |
42
- |---|---|---|---|---|---|
43
- | in-ear | 1501 | 1369 | 7792 | 2667 | 3224 |
44
- | scalp | 1375 | 1293 | 7329 | 2494 | 3035 |
45
 
46
- ## HDF5 schema (v0.2)
47
 
48
- ```
49
- /data (N, C, T) float32 signal, µV
50
- /durations (N,) int64 valid samples per epoch (== T here, fixed-length)
51
- /nan_fraction (N,) float32 fraction of non-finite samples in the epoch
52
- /labels (N,) int64 index into attrs['class_names']
53
- /subject (N,) str 'sub-001' ...
54
- /session (N,) str 'ses-001' / 'ses-002'
55
- /task (N,) str 'sleep'
56
- /run (N,) str '' (unused, sessions are not run-qualified)
57
- /trial_id (N,) int64 row index in the source scoring events.tsv
58
- /ch_names (C,) str channel names, as in source BIDS channels.tsv
59
-
60
- attrs: sfreq, n_class, class_names, unit ('uV'), eegfm_version,
61
- source_bids_path, bids_dataset_name, preprocess_config_json, created_at
62
- ```
63
 
64
- `preprocess_config_json` (per file) records the exact filter settings, e.g.:
65
- ```json
66
- {"acq": "earEEG", "sessions": ["001", "002"], "epoch_sec": 30.0, "filter_low": 0.1, "filter_high": 100.0, "notch": 50.0}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ```
 
 
 
 
 
1
  ---
2
+ license: cc0-1.0
3
  tags:
4
  - eeg
5
  - sleep-staging
6
  - in-ear-eeg
7
+ - scalp-eeg
8
+ - hdf5
9
  ---
10
 
11
  # EESM23-Processed
12
 
13
+ Processed HDF5 export of the [EESM23 OpenNeuro dataset](https://doi.org/10.18112/openneuro.ds005178.v1.0.0). It contains paired in-ear EEG and scalp EEG sleep-staging samples from the scored `ses-001` and `ses-002` recordings of 10 subjects.
 
 
 
 
14
 
15
  ## Preprocessing
16
 
17
+ Generated with `Ear-EEG-FM-Benchmark/dataset/preprocess_eesm23.py` using schema/eegfm version `0.4.0`:
 
 
 
 
18
 
19
+ - 0.1–100 Hz band-pass and 50 Hz notch filtering on each continuous recording
20
+ - no re-referencing, resampling, or channel renaming
21
+ - each labeled 30-second AASM scoring event is split into seven non-overlapping 4-second windows; the final 2 seconds are unused
22
+ - classes: `Wake`, `N1`, `N2`, `N3`, `REM`; `Artefact` events are dropped
23
+ - windows containing non-finite samples are dropped
24
+ - all signal values are stored as `float32` microvolts at 250 Hz
25
 
26
+ Brief device data-loss gaps are interpolated before filtering to prevent FIR-kernel contamination, after which the original NaN positions are restored before window selection.
27
 
28
  ## Files
29
 
30
+ | File | Channels | Shape `(N, C, T)` | Size |
31
+ |---|---|---:|---:|
32
+ | `eesm23-in-ear-eeg.h5` | RB, RT, LB, LT | `(111594, 4, 1000)` | 1.70 GiB |
33
+ | `eesm23-scalp-eeg.h5` | M1, F3, C3, O1, M2, F4, C4, O2 | `(95339, 8, 1000)` | 2.88 GiB |
34
 
35
  Label distribution:
36
 
37
+ | Modality | Wake | N1 | N2 | N3 | REM |
38
+ |---|---:|---:|---:|---:|---:|
39
+ | in-ear | 9,725 | 9,268 | 52,746 | 17,983 | 21,872 |
40
+ | scalp | 8,203 | 7,898 | 45,010 | 15,645 | 18,583 |
41
 
42
+ Source-data notes:
43
 
44
+ - `sub-006/ses-002` PSG is skipped because the source `.set` file is truncated and cannot be read.
45
+ - `sub-002/ses-001` and `sub-007/ses-002` PSG yield no windows after the non-finite-sample quality rule.
46
+
47
+ ## HDF5 schema (v0.4)
 
 
 
 
 
 
 
 
 
 
 
48
 
49
+ ```text
50
+ /data (N, C, 1000) float32
51
+ /durations (N,) int64
52
+ /nan_fraction (N,) float32
53
+ /labels (N,) int64
54
+ /sample_id (N,) int64
55
+ /subject (N,) string
56
+ /session (N,) string
57
+ /task (N,) string
58
+ /acquisition (N,) string
59
+ /run (N,) string
60
+ /recording_id (N,) string
61
+ /trial_id (N,) int64
62
+ /event_id (N,) int64
63
+ /split_group_id (N,) int64
64
+ /window_start_sample (N,) int64
65
+ /window_stop_sample (N,) int64
66
+ /ch_names (C,) string
67
  ```
68
+
69
+ `event_id` and `split_group_id` identify the source 30-second scoring row. Keep all windows sharing a split group together when constructing train/validation/test partitions.
70
+
71
+ Important attributes include `sfreq`, `class_names`, `unit`, `eegfm_version`, `preprocess_config_json`, `split_group_kind`, and `window_reference`.
eesm23-in-ear-eeg.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2696190f5ffdf78664078586eef1f1ab4d013d4e424e76b4aa3812fe85a7720b
3
- size 1990377120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fc0b2b7d97a3f6248a1cccea67043095f8e98ae4388b60097b527e45890f193
3
+ size 1828928328
eesm23-scalp-eeg.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:83d6cc80a09fd79bab63968970e059383deb1d193e8d0f0ddc7174931e7b411b
3
- size 3730016416
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34de1fc13780a9de42cb1079137785a686c6f997db2c1dc64e1f927c33076396
3
+ size 3088115976