Skip to content

Commit 731f7e5

Browse files
author
daiyang07
committed
update
1 parent 51dd0d1 commit 731f7e5

8 files changed

+49
-5
lines changed

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/MultiChannelSleepNet.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# MultiChannelSleepNet
22
### MultiChannelSleepNet: A Transformer-based Model for Automatic Sleep Stage Classification with PSG
33
#### *by: Yang Dai, Xiuli li, Shanshan Liang, Lukang Wang, Qingtian Duan, Hui Yang, Chunqing Zhang, Xiaowei Chen, Longhui Li\*, Xingyi Li\*, and Xiang Liao\*
4-
4+
This work has been accepted for publication in [IEEE Journal of Biomedical and Health Informatics (JBHI).](https://ieeexplore.ieee.org/document/10146380)
55

66
## Abstract
77
![AttnSleep Architecture](imgs/MultiChannelSleepNet.png)
8-
Automatic sleep stage classification plays an essential role in sleep quality measurement and sleep disorder diagnosis. Although many approaches have been developed, most use only single-channel electroencephalogram signals for classification. Polysomnography (PSG) provides multiple channels of signal recording, enabling the use of the appropriate method to extract and integrate the information from different channels to achieve higher sleep staging performance. We present a transformer encoder-based model, MultiChannelSleepNet, for automatic sleep stage classification with multichannel PSG data, whose architecture is implemented based on the transformer encoder for single-channel feature extraction and multichannel feature fusion. In a single-channel feature extraction block, transformer encoders extract features from time-frequency images of each channel independently. Based on our integration strategy, the feature maps extracted from each channel are fused in the multichannel feature fusion block. Another set of transformer encoders further capture joint features, and a residual connection preserves the original information from each channel in this block. Experimental results on three publicly available datasets demonstrate that our method achieves higher classification performance than state-of-the-art techniques. MultiChannelSleepNet is an efficient method to fully use the information from multichannel PSG data, which facilitates precision sleep staging in clinical applications.
8+
Automatic sleep stage classification plays an essential role in sleep quality measurement and sleep disorder diagnosis. Although many approaches have been developed, most use only single-channel electroencephalogram signals for classification. Polysomnography (PSG) provides multiple channels of signal recording, enabling the use of the appropriate method to extract and integrate the information from different channels to achieve higher sleep staging performance. We present a transformer encoder-based model, MultiChannelSleepNet, for automatic sleep stage classification with multichannel PSG data, whose architecture is implemented based on the transformer encoder for single-channel feature extraction and multichannel feature fusion. In a single-channel feature extraction block, transformer encoders extract features from time-frequency images of each channel independently. Based on our integration strategy, the feature maps extracted from each channel are fused in the multichannel feature fusion block. Another set of transformer encoders further capture joint features, and a residual connection preserves the original information from each channel in this block. Experimental results on three publicly available datasets demonstrate that our method achieves higher classification performance than state-of-the-art techniques. MultiChannelSleepNet is an efficient method to extract and integrate the information from multichannel PSG data, which facilitates precision sleep staging in clinical applications.
99

1010

1111
## Requirmenets:
@@ -24,7 +24,7 @@ We used three public datasets in this study:
2424
- [SleepEDF-78](https://physionet.org/content/sleep-edfx/1.0.0/)
2525
- [SHHS](https://sleepdata.org/datasets/shhs)
2626

27-
This project currently only provides pre-processing code for SleepEDF-20 and SleepEDF-78. We will update the code of SHHS later.
27+
This project currently only provides pre-processing code for SleepEDF-20 and SleepEDF-78, and only provides code for sample-wise k-fold cross-validation. We will update the code in the future.
2828
After downloading the datasets, please place them in the folder with the corresponding name in the directory `dataset`.
2929
You can run the `dataset_prepare.py` to extract events from the original record (.edf)
3030

@@ -45,6 +45,7 @@ To easily reproduce the results you can follow the next steps:
4545
4. Run `result_evaluate.py` to get the evaluation report. It concludes the various valuation metrics we described in paper.
4646

4747

48+
4849
## Contact
4950
Yang Dai
5051
Center for Neurointelligence, School of Medicine

model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def forward(self, x):
6565
x2 = self.transformer_encoder_2(x2)
6666
x3 = self.transformer_encoder_3(x3)
6767

68-
x = torch.cat((x1, x2), dim=2)
69-
x = torch.cat((x, x3), dim=2)
68+
x = torch.cat([x1, x2, x3], dim=2)
7069

7170
x = self.drop(x)
7271
x = self.layer_norm(x)

0 commit comments

Comments
 (0)