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

Add files using upload-large-folder tool

Browse files
Files changed (3) hide show
  1. README.md +33 -12
  2. eesm23-in-ear-eeg.h5 +2 -2
  3. eesm23-scalp-eeg.h5 +2 -2
README.md CHANGED
@@ -14,13 +14,18 @@ Processed HDF5 export of the [EESM23 OpenNeuro dataset](https://doi.org/10.18112
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.
@@ -29,27 +34,43 @@ Brief device data-loss gaps are interpolated before filtering to prevent FIR-ker
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
 
14
 
15
  ## Preprocessing
16
 
17
+ Generated with `Ear-EEG-FM-Benchmark/dataset/preprocess_eesm23.py` using schema/eegfm version `0.5.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
+ - real sensor/data-loss NaN/Inf samples are preserved and recorded in overall
24
+ and per-channel quality fields
25
+ - the ear-EEG and scalp outputs are strictly row-aligned; a session is excluded
26
+ from both when either modality is missing/unreadable, and a window is retained
27
+ only when it exists in both modalities
28
+ - recording bounds are checked separately for every 4-second window
29
  - all signal values are stored as `float32` microvolts at 250 Hz
30
 
31
  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.
 
34
 
35
  | File | Channels | Shape `(N, C, T)` | Size |
36
  |---|---|---:|---:|
37
+ | `eesm23-in-ear-eeg.h5` | RB, RT, LB, LT | `(108673, 4, 1000)` | 1.66 GiB |
38
+ | `eesm23-scalp-eeg.h5` | M1, F3, C3, O1, M2, F4, C4, O2 | `(108673, 8, 1000)` | 3.28 GiB |
39
 
40
  Label distribution:
41
 
42
+ | Wake | N1 | N2 | N3 | REM |
43
+ |---:|---:|---:|---:|---:|
44
+ | 9,631 | 9,044 | 51,302 | 17,458 | 21,238 |
 
45
 
46
+ ## Retained and discarded windows
47
 
48
+ The source scoring files define 119,518 potential 4-second windows, of which
49
+ 115,906 carry one of the five retained sleep-stage labels and 3,612 are labeled
50
+ `Artefact`. The final files contain 108,673 strictly paired windows per
51
+ modality. The exclusions are:
52
 
53
+ | Reason | Windows |
54
+ |---|---:|
55
+ | `Artefact` label (outside the five-class task) | 3,612 |
56
+ | Entire `sub-006/ses-002` pair: truncated/unreadable PSG | 7,217 |
57
+ | `sub-002/ses-001`: PSG window has no in-bounds ear-EEG partner | 15 |
58
+ | `sub-010/ses-002`: PSG window has no in-bounds ear-EEG partner | 1 |
59
+ | **Total excluded, including `Artefact`** | **10,845** |
60
+
61
+ Among the five-class candidates, 7,233 windows are excluded by recording
62
+ availability or strict pairing. No window is excluded because it contains
63
+ NaN/Inf. The final files retain 3,491 in-ear windows and 13,328 scalp windows
64
+ with at least one non-finite sample; their indices remain paired even when
65
+ quality differs between modalities.
66
+
67
+ ## HDF5 schema (v0.5)
68
 
69
  ```text
70
  /data (N, C, 1000) float32
71
  /durations (N,) int64
72
  /nan_fraction (N,) float32
73
+ /channel_nan_fraction (N, C) float32
74
  /labels (N,) int64
75
  /sample_id (N,) int64
76
  /subject (N,) string
eesm23-in-ear-eeg.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9fc0b2b7d97a3f6248a1cccea67043095f8e98ae4388b60097b527e45890f193
3
- size 1828928328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2112ee1ec836b00206c9554afb899d4d1d790687a56ce4f0383e0f44a168cb49
3
+ size 1782963240
eesm23-scalp-eeg.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34de1fc13780a9de42cb1079137785a686c6f997db2c1dc64e1f927c33076396
3
- size 3088115976
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:380c18555fcbbe016aa74a0cca557a2e75bf65013037144303e018e345d947f5
3
+ size 3523484392