4rooms commited on
Commit
4eef0c2
·
verified ·
1 Parent(s): 2d3fbc1

Add model card with citations, dataset links, and evaluation results

Browse files
Files changed (1) hide show
  1. README.md +140 -3
README.md CHANGED
@@ -1,3 +1,140 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - sleep-staging
6
+ - eeg
7
+ - pytorch
8
+ - physioex
9
+ pretty_name: PhysioEx Pretrained Models
10
+ ---
11
+
12
+ # PhysioEx — Pretrained Sleep Staging Models
13
+
14
+ Pretrained deep learning models for automatic sleep staging from [PhysioEx](https://github.com/guidogagl/physioex) (Gagliardi et al. 2025).
15
+
16
+ All models follow the AASM 5-class standard: **W, N1, N2, N3, REM**.
17
+
18
+ ## Available Models
19
+
20
+ | Model | Architecture | Training Dataset | Channels | Pipeline | Params | Reference |
21
+ |---|---|---|---|---|---|---|
22
+ | `seqsleepnet-phan` | BiLSTM + Attention | Sleep-EDF | EEG | seqsleepnet (STFT) | 659K | Phan et al. 2019 |
23
+ | `tinysleepnet-supratak` | CNN + LSTM | Sleep-EDF | EEG | raw | 83K | Supratak & Guo 2020 |
24
+ | `sleeptransformer-phan` | Transformer | SHHS | EEG | seqsleepnet (STFT) | 2.1M | Phan et al. 2022 |
25
+ | `lseqsleepnet-phan` | Long-sequence BiLSTM | SHHS | EEG | seqsleepnet (STFT) | 1.8M | Phan et al. 2023 |
26
+ | `chambon2018` | Braindecode CNN | MASS SS3 | EEG | raw (128 Hz) | 220K | Chambon et al. 2018 |
27
+ | `tsinalis-2016` | 2-layer CNN | Sleep-EDF | EEG | identity | 145K | Tsinalis et al. 2016 |
28
+
29
+ *Models are added as training completes. Check back for updates.*
30
+
31
+ ## Usage
32
+
33
+ ```python
34
+ from physioex.models import load_from_pretrained
35
+
36
+ # Load a pretrained model
37
+ model = load_from_pretrained("seqsleepnet-phan", verbose=True)
38
+
39
+ # Use for inference or embedding extraction
40
+ from physioex.models import extract_embeddings, load_embeddings
41
+
42
+ # Extract embeddings on a new dataset
43
+ path = extract_embeddings(model, dataset, model_name="seqsleepnet-phan", ...)
44
+
45
+ # Or download pre-extracted embeddings from HuggingFace
46
+ path = load_embeddings("seqsleepnet-phan", "hmc", verbose=True)
47
+ ```
48
+
49
+ ## Cross-Dataset Evaluation (SeqSleepNet-Phan)
50
+
51
+ Zero-shot transfer from Sleep-EDF to other datasets (voting evaluation):
52
+
53
+ | Dataset | ACC | Macro F1 | κ |
54
+ |---|---|---|---|
55
+ | **Sleep-EDF** (train) | 0.8101 | 0.7575 | 0.7421 |
56
+ | DCSM | 0.6649 | 0.5839 | 0.5370 |
57
+ | MESA | 0.6330 | 0.5546 | 0.4921 |
58
+ | MASS | 0.6033 | 0.5422 | 0.4655 |
59
+ | HMC | 0.5851 | 0.5574 | 0.4464 |
60
+ | WSC | 0.4928 | 0.4577 | 0.3255 |
61
+ | Parkinsons | 0.4428 | 0.3902 | 0.2737 |
62
+ | SHHS | 0.3989 | 0.3597 | 0.2434 |
63
+ | Alzheimers | 0.2582 | 0.1449 | 0.0239 |
64
+
65
+ ## Pre-extracted Embeddings
66
+
67
+ Contextualized per-epoch embeddings are available as separate dataset repos:
68
+
69
+ | Model | HuggingFace Repo | Datasets |
70
+ |---|---|---|
71
+ | SeqSleepNet-Phan | [`4rooms/seqsleepnet-phan-embeddings`](https://huggingface.co/datasets/4rooms/seqsleepnet-phan-embeddings) | 20 datasets, 12.5K subjects |
72
+
73
+ ## Datasets
74
+
75
+ | Dataset | Source | URL |
76
+ |---|---|---|
77
+ | Sleep-EDF | PhysioNet | https://physionet.org/content/sleep-edfx/1.0.0/ |
78
+ | HMC | PhysioNet | https://physionet.org/content/hmc-sleep-staging/1.1/ |
79
+ | DCSM | ERDA/KU | https://erda.ku.dk/public/archives/db553715ecbe1f3ac66c1dc569826eef/published-archive.html |
80
+ | SHHS | NSRR | https://sleepdata.org/datasets/shhs |
81
+ | MESA | NSRR | https://sleepdata.org/datasets/mesa |
82
+ | HomePAP | NSRR | https://sleepdata.org/datasets/homepap |
83
+ | STAGES | NSRR | https://sleepdata.org/datasets/stages |
84
+ | MASS | CEAMS | http://ceams-carsm.ca/mass/ |
85
+ | WSC | NSRR | https://sleepdata.org/datasets/wsc |
86
+ | MrOS | NSRR | https://sleepdata.org/datasets/mros |
87
+
88
+ ## Citations
89
+
90
+ ```bibtex
91
+ @article{gagliardi2025physioex,
92
+ author={Gagliardi, Guido and Alfeo, Luca and Cimino, Mario G C A and Valenza, Gaetano and De Vos, Maarten},
93
+ title={PhysioEx, a new Python library for explainable sleep staging through deep learning},
94
+ journal={Physiological Measurement},
95
+ url={http://iopscience.iop.org/article/10.1088/1361-6579/adaf73},
96
+ year={2025},
97
+ }
98
+
99
+ @article{phan2019seqsleepnet,
100
+ title={SeqSleepNet: End-to-End Hierarchical Recurrent Neural Network for Sequence-to-Sequence Automatic Sleep Staging},
101
+ author={Phan, Huy and Andreotti, Fernando and Cooray, Navin and Chen, Oliver Y and De Vos, Maarten},
102
+ journal={IEEE Transactions on Neural Systems and Rehabilitation Engineering},
103
+ year={2019},
104
+ }
105
+
106
+ @inproceedings{supratak2020tinysleepnet,
107
+ title={TinySleepNet: An Efficient Deep Learning Model for Sleep Stage Scoring based on Raw Single-Channel EEG},
108
+ author={Supratak, Akara and Guo, Yike},
109
+ booktitle={IEEE EMBC},
110
+ year={2020},
111
+ }
112
+
113
+ @article{phan2022sleeptransformer,
114
+ title={SleepTransformer: Automatic Sleep Staging with Interpretability and Uncertainty Quantification},
115
+ author={Phan, Huy and Mikkelsen, Kaare and Ch\'en, Oliver Y and Koch, Philipp and Mertins, Alfred and De Vos, Maarten},
116
+ journal={IEEE Transactions on Biomedical Engineering},
117
+ year={2022},
118
+ }
119
+
120
+ @article{phan2023lseqsleepnet,
121
+ title={L-SeqSleepNet: Whole-cycle Long Sequence Modelling for Automatic Sleep Staging},
122
+ author={Phan, Huy and Ch\'en, Oliver Y and Koch, Philipp and Lu, Zhongxiang and McLoughlin, Ian and Mertins, Alfred and De Vos, Maarten},
123
+ journal={IEEE Transactions on Neural Systems and Rehabilitation Engineering},
124
+ year={2023},
125
+ }
126
+
127
+ @article{chambon2018deep,
128
+ title={A deep learning architecture for temporal sleep stage classification using multivariate and multimodal time series},
129
+ author={Chambon, Stanislas and Galtier, Mathieu and Arnal, Pierrick and Wainrib, Gilles and Gramfort, Alexandre},
130
+ journal={IEEE Transactions on Neural Systems and Rehabilitation Engineering},
131
+ year={2018},
132
+ }
133
+
134
+ @article{tsinalis2016automatic,
135
+ title={Automatic Sleep Stage Scoring with Single-Channel EEG Using Convolutional Neural Networks},
136
+ author={Tsinalis, Orestis and Matthews, Paul M and Guo, Yike and Zafeiriou, Stefanos},
137
+ journal={arXiv:1610.01683},
138
+ year={2016},
139
+ }
140
+ ```