joncarter commited on
Commit
bb5b7ee
·
verified ·
1 Parent(s): b0d9856

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +90 -0
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - sleep-staging
5
+ - cardio-respiratory
6
+ - non-causal
7
+ - wav2sleep
8
+ - polysomnography
9
+ - time-series
10
+ - pytorch
11
+ library_name: wav2sleep
12
+ pipeline_tag: time-series-classification
13
+ ---
14
+
15
+ # wav2sleep
16
+
17
+ Cardio-respiratory sleep staging (4-class: Wake, Light, Deep, REM)
18
+
19
+ ## Model Description
20
+
21
+ This is a **wav2sleep** model for automatic sleep stage classification from cardio-respiratory signals (ECG, PPG, respiratory).
22
+ wav2sleep is a unified multi-modal deep learning approach that can process various combinations
23
+ of physiological signals for sleep staging.
24
+
25
+ - **Paper**: [wav2sleep: A Unified Multi-Modal Approach to Sleep Stage Classification](https://arxiv.org/abs/2411.04644)
26
+ - **Repository**: [GitHub](https://github.com/joncarter1/wav2sleep)
27
+ - **Conference**: ML4H 2024
28
+
29
+ ## Model Details
30
+
31
+ | Property | Value |
32
+ |----------|-------|
33
+ | **Input Signals** | ECG, PPG, ABD, THX |
34
+ | **Output Classes** | 4 |
35
+ | **Architecture** | Non-causal (bidirectional) |
36
+
37
+ ### Signal Specifications
38
+
39
+ | Signal | Samples per 30s epoch |
40
+ |--------|----------------------|
41
+ | ECG, PPG | 1,024 |
42
+ | ABD, THX | 256 |
43
+ | EOG-L, EOG-R | 4,096 |
44
+
45
+ ## Usage
46
+
47
+ ```python
48
+ from wav2sleep import load_model
49
+
50
+ # Load model from Hugging Face Hub
51
+ model = load_model("wav2sleep")
52
+
53
+ # Or load from local checkpoint
54
+ model = load_model("/path/to/checkpoint")
55
+ ```
56
+
57
+ For inference on new data:
58
+
59
+ ```python
60
+ from wav2sleep import load_model, predict_on_folder
61
+
62
+ model = load_model("wav2sleep")
63
+ predict_on_folder(
64
+ input_folder="/path/to/edf_files",
65
+ output_folder="/path/to/predictions",
66
+ model=model,
67
+ )
68
+ ```
69
+
70
+ ## Training Data
71
+
72
+ The model was trained on polysomnography data from multiple publicly available datasets
73
+ managed by the National Sleep Research Resource (NSRR), including SHHS and MESA.
74
+
75
+ ## Citation
76
+
77
+ ```bibtex
78
+ @misc{carter2024wav2sleep,
79
+ title={wav2sleep: A Unified Multi-Modal Approach to Sleep Stage Classification from Physiological Signals},
80
+ author={Jonathan F. Carter and Lionel Tarassenko},
81
+ year={2024},
82
+ eprint={2411.04644},
83
+ archivePrefix={arXiv},
84
+ primaryClass={cs.LG},
85
+ }
86
+ ```
87
+
88
+ ## License
89
+
90
+ Apache 2.0