4rooms commited on
Commit
1c5d0cd
·
verified ·
1 Parent(s): 4fc3293

Add dataset card with 8 datasets

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - sleep-staging
6
+ - eeg
7
+ - embeddings
8
+ - physioex
9
+ - tsinalis
10
+ pretty_name: Tsinalis-2016 Embeddings
11
+ size_categories:
12
+ - 1K<n<10K
13
+ ---
14
+
15
+ # Tsinalis-2016 Embeddings
16
+
17
+ Pre-extracted per-epoch embeddings from **TsinalisCNN** (Tsinalis et al. 2016),
18
+ trained on Sleep-EDF via [PhysioEx](https://github.com/guidogagl/physioex).
19
+
20
+ Each subject directory contains:
21
+ - `embeddings.npy` — `(n_epochs, 500)` per-epoch embeddings (bfloat16)
22
+ - `labels.npy` — `(n_epochs,)` AASM sleep stage labels
23
+
24
+ **Note:** Tsinalis concatenates L=5 epochs before convolution. Embeddings are
25
+ extracted using centered windows (each epoch gets the feature vector from the
26
+ window centered on it).
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from physioex.models import load_embeddings
32
+ path = load_embeddings("tsinalis-2016", "hmc", verbose=True)
33
+ ```
34
+
35
+ ## Linear Probe Results (5-fold subject-wise CV)
36
+
37
+ | Dataset | Subjects | ACC | MF1 | κ | F1-W | F1-N1 | F1-N2 | F1-N3 | F1-REM |
38
+ |---|---|---|---|---|---|---|---|---|---|
39
+ | sleepedf | 153 | **0.8297** | **0.7563** | **0.7631** | 0.93 | 0.41 | 0.86 | 0.80 | 0.78 |
40
+ | mass_ss05 | 26 | 0.8157 | 0.7004 | 0.7297 | 0.72 | 0.26 | 0.87 | 0.82 | 0.83 |
41
+ | mass_ss02 | 19 | 0.8062 | 0.6925 | 0.7134 | 0.70 | 0.28 | 0.87 | 0.83 | 0.78 |
42
+ | mass_ss03 | 62 | 0.7950 | 0.7039 | 0.6923 | 0.77 | 0.33 | 0.87 | 0.76 | 0.80 |
43
+ | mass_ss04 | 40 | 0.7842 | 0.6791 | 0.6865 | 0.73 | 0.24 | 0.86 | 0.79 | 0.77 |
44
+ | mass_ss01 | 53 | 0.7473 | 0.6691 | 0.6388 | 0.83 | 0.36 | 0.83 | 0.61 | 0.72 |
45
+ | dcsm | 255 | 0.7329 | 0.5575 | 0.5947 | 0.82 | 0.02 | 0.73 | 0.77 | 0.45 |
46
+ | hmc | 151 | 0.6634 | 0.6088 | 0.5473 | 0.72 | 0.25 | 0.70 | 0.74 | 0.63 |
47
+
48
+ ## Model Details
49
+
50
+ - **Architecture**: TsinalisCNN (Tsinalis et al. 2016) — 2-layer CNN on concatenated 5-epoch signal
51
+ - **Training data**: Sleep-EDF (153 subjects, single EEG channel)
52
+ - **Pipeline**: `identity` (Sleep-EDF) / `raw` (other datasets, resample to 100 Hz)
53
+ - **Sequence length**: L=5 epochs
54
+ - **Embedding dim**: 500
55
+
56
+ ## Datasets
57
+
58
+ | Dataset | Source | URL |
59
+ |---|---|---|
60
+ | Sleep-EDF | PhysioNet | https://physionet.org/content/sleep-edfx/1.0.0/ |
61
+ | HMC | PhysioNet | https://physionet.org/content/hmc-sleep-staging/1.1/ |
62
+ | DCSM | ERDA/KU | https://erda.ku.dk/public/archives/db553715ecbe1f3ac66c1dc569826eef/published-archive.html |
63
+ | MASS | CEAMS | http://ceams-carsm.ca/mass/ |
64
+
65
+ ## Citations
66
+
67
+ ```bibtex
68
+ @article{gagliardi2025physioex,
69
+ author={Gagliardi, Guido and Alfeo, Luca and Cimino, Mario G C A and Valenza, Gaetano and De Vos, Maarten},
70
+ title={PhysioEx, a new Python library for explainable sleep staging through deep learning},
71
+ journal={Physiological Measurement},
72
+ url={http://iopscience.iop.org/article/10.1088/1361-6579/adaf73},
73
+ year={2025},
74
+ }
75
+
76
+ @article{tsinalis2016automatic,
77
+ title={Automatic Sleep Stage Scoring with Single-Channel EEG Using Convolutional Neural Networks},
78
+ author={Tsinalis, Orestis and Matthews, Paul M and Guo, Yike and Zafeiriou, Stefanos},
79
+ journal={arXiv:1610.01683},
80
+ year={2016},
81
+ }
82
+ ```