4rooms commited on
Commit
92539f7
·
verified ·
1 Parent(s): 45c650b

Update model card: 5 models + 5 embedding repos

Browse files
Files changed (1) hide show
  1. README.md +16 -81
README.md CHANGED
@@ -17,58 +17,35 @@ 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
 
@@ -95,46 +72,4 @@ Contextualized per-epoch embeddings are available as separate dataset repos:
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
  ```
 
17
 
18
  ## Available Models
19
 
20
+ | Model | Architecture | Training Dataset | ACC | F1 | κ | Params | Reference |
21
+ |---|---|---|---|---|---|---|---|
22
+ | `sleeptransformer-phan` | Transformer | SHHS | **0.866** | **0.796** | **0.810** | 2.1M | Phan et al. 2022 |
23
+ | `tinysleepnet-supratak` | CNN + LSTM | Sleep-EDF | 0.842 | 0.790 | 0.784 | 83K | Supratak & Guo 2020 |
24
+ | `seqsleepnet-phan` | BiLSTM + Attention | Sleep-EDF | 0.810 | 0.758 | 0.742 | 659K | Phan et al. 2019 |
25
+ | `chambon2018` | Braindecode CNN | MASS SS3 | 0.826 | 0.731 | 0.736 | 29K | Chambon et al. 2018 |
26
+ | `tsinalis-2016` | 2-layer CNN | Sleep-EDF | 0.773 | 0.661 | 0.683 | 145K | Tsinalis et al. 2016 |
 
 
 
27
 
28
  ## Usage
29
 
30
  ```python
31
  from physioex.models import load_from_pretrained
32
 
33
+ model = load_from_pretrained("sleeptransformer-phan", verbose=True)
 
 
 
 
 
 
 
34
 
35
+ # Extract or download embeddings
36
+ from physioex.models import load_embeddings
37
+ path = load_embeddings("sleeptransformer-phan", "hmc", verbose=True)
38
  ```
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ## Pre-extracted Embeddings
41
 
 
 
42
  | Model | HuggingFace Repo | Datasets |
43
  |---|---|---|
44
+ | SeqSleepNet-Phan | [`4rooms/seqsleepnet-phan-embeddings`](https://huggingface.co/datasets/4rooms/seqsleepnet-phan-embeddings) | 25 datasets |
45
+ | TinySleepNet-Supratak | [`4rooms/tinysleepnet-supratak-embeddings`](https://huggingface.co/datasets/4rooms/tinysleepnet-supratak-embeddings) | 25 datasets |
46
+ | SleepTransformer-Phan | [`4rooms/sleeptransformer-phan-embeddings`](https://huggingface.co/datasets/4rooms/sleeptransformer-phan-embeddings) | 8 datasets |
47
+ | Chambon2018 | [`4rooms/chambon2018-embeddings`](https://huggingface.co/datasets/4rooms/chambon2018-embeddings) | 8 datasets |
48
+ | Tsinalis-2016 | [`4rooms/tsinalis-2016-embeddings`](https://huggingface.co/datasets/4rooms/tsinalis-2016-embeddings) | 8 datasets |
49
 
50
  ## Datasets
51
 
 
72
  url={http://iopscience.iop.org/article/10.1088/1361-6579/adaf73},
73
  year={2025},
74
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  ```