Papers › DeepSleepNet: a Model for Automatic Sleep Stage Scoring based on Raw Single-Channel EEG

DeepSleepNet: a Model for Automatic Sleep Stage Scoring based on Raw Single-Channel EEG

12 Mar 2017arXiv:1703.04046archive 2025-07-28

Akara Supratak, Hao Dong, Chao Wu, Yike Guo

The present study proposes a deep learning model, named DeepSleepNet, for automatic sleep stage scoring based on raw single-channel EEG. Most of the existing methods rely on hand-engineered features which require prior knowledge of sleep analysis. Only a few of them encode the temporal information such as transition rules, which is important for identifying the next sleep stages, into the extracted features. In the proposed model, we utilize Convolutional Neural Networks to extract time-invariant features, and bidirectional-Long Short-Term Memory to learn transition rules among sleep stages automatically from EEG epochs. We implement a two-step training algorithm to train our model efficiently. We evaluated our model using different single-channel EEGs (F4-EOG(Left), Fpz-Cz and Pz-Oz) from two public sleep datasets, that have different properties (e.g., sampling rate) and scoring standards (AASM and R&K). The results showed that our model achieved similar overall accuracy and macro F1-score (MASS: 86.2%-81.7, Sleep-EDF: 82.0%-76.9) compared to the state-of-the-art methods (MASS: 85.9%-80.5, Sleep-EDF: 78.9%-73.7) on both datasets. This demonstrated that, without changing the model architecture and the training algorithm, our model could automatically learn features for sleep stage scoring from different raw single-channel EEGs from different datasets without utilizing any hand-engineered features.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1703.04046")

Code

Syntology Ran 0 of 33 code samples harvested from 3 repositories linked to this paper; 33 have no recorded run.

By repository: official repository: 17 samples from 1 repository, 0 ran; community (archive-listed): 16 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

akaraspt/deepsleepnet officialmentioned in papermentioned on GitHubtfApache-2.0 report
CVxTz/EEG_classification mentioned on GitHubApache-2.0 report
UKBWorks/AccSleepNet mentioned on GitHubtfApache-2.0 report
emadeldeen24/eval_ssl_ssc mentioned on GitHubpytorch report
famousgrouse/AccSleepNet mentioned on GitHubtfApache-2.0 report
leesk212/new_deepsleepnet mentioned on GitHubtf report
wangjinzhuo/wearables mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

33 samples harvested; 0 ran; 0 honoured the contract we drafted; 33 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

33unverified

Licence: 0 of the 33 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AutoFill akaraspt/deepsleepnet/tensorlayer/db.py official repository unverified Apache-2.0 (permissive) · 3b51567b0bc63e90 · report
binary_cross_entropy akaraspt/deepsleepnet/tensorlayer/cost.py official repository unverified Apache-2.0 (permissive) · 81b6458092927680 · report
cross_entropy akaraspt/deepsleepnet/tensorlayer/cost.py official repository unverified Apache-2.0 (permissive) · 0e00a572f223b76d · report
custom_bidirectional_rnn akaraspt/deepsleepnet/predict.py official repository unverified Apache-2.0 (permissive) · 04c098a6ba43b473 · report
custom_rnn akaraspt/deepsleepnet/predict.py official repository unverified Apache-2.0 (permissive) · 064bae2c04995aa2 · report
edf_header akaraspt/deepsleepnet/dhedfreader.py official repository unverified Apache-2.0 (permissive) · ac3f662d47f23f8b · report
identity akaraspt/deepsleepnet/tensorlayer/activation.py official repository unverified Apache-2.0 (permissive) · 2fef975d13bfc196 · report
leaky_relu akaraspt/deepsleepnet/tensorlayer/activation.py official repository unverified Apache-2.0 (permissive) · b16e6b18197632b6 · report
load_cifar10_dataset akaraspt/deepsleepnet/tensorlayer/files.py official repository unverified Apache-2.0 (permissive) · 6f149cef997b8e84 · report
load_edf akaraspt/deepsleepnet/dhedfreader.py official repository unverified Apache-2.0 (permissive) · e94bd02f6d1864c9 · report
load_mnist_dataset akaraspt/deepsleepnet/tensorlayer/files.py official repository unverified Apache-2.0 (permissive) · 252a8f498ef72208 · report
load_ptb_dataset akaraspt/deepsleepnet/tensorlayer/files.py official repository unverified Apache-2.0 (permissive) · ccaf634afdd7830a · report
ramp akaraspt/deepsleepnet/tensorlayer/activation.py official repository unverified Apache-2.0 (permissive) · f2caa1576f0501d5 · report
sigmoid_cross_entropy akaraspt/deepsleepnet/tensorlayer/cost.py official repository unverified Apache-2.0 (permissive) · 77743670f997e3ab · report
softmax_cross_entrophy_loss akaraspt/deepsleepnet/deepsleep/loss.py official repository unverified Apache-2.0 (permissive) · 1e604648947460bc · report
softmax_seq_loss_by_example akaraspt/deepsleepnet/deepsleep/loss.py official repository unverified Apache-2.0 (permissive) · 4c23e9bf962a1b2c · report
tal akaraspt/deepsleepnet/dhedfreader.py official repository unverified Apache-2.0 (permissive) · 31a62c06a1ccff22 · report
adam UKBWorks/AccSleepNet/deepsleep/optimize.py community (archive-listed) unverified Apache-2.0 (permissive) · 2dead6ef52205bfa · report
adam_clipping UKBWorks/AccSleepNet/deepsleep/optimize.py community (archive-listed) unverified Apache-2.0 (permissive) · 12aa20fe451df600 · report
adam_clipping_list_lr UKBWorks/AccSleepNet/deepsleep/optimize.py community (archive-listed) unverified Apache-2.0 (permissive) · 2f86a4759c547fbb · report
aug_X CVxTz/EEG_classification/code/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 948446dc8ee8b426 · report
chunker CVxTz/EEG_classification/code/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · a21257d9277c7df3 · report
conv_1d UKBWorks/AccSleepNet/deepsleep/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · 724c9602de0fcf21 · report
edf_header CVxTz/EEG_classification/deepsleepnet_data/dhedfreader.py community (archive-listed) unverified Apache-2.0 (permissive) · 51fa8715abe8383c · report
get_balance_class_downsample UKBWorks/AccSleepNet/deepsleep/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 772f864bc6603c9e · report
get_balance_class_oversample UKBWorks/AccSleepNet/deepsleep/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 04dd9bacafd0f202 · report
get_num_class UKBWorks/AccSleepNet/deepsleep/sleep_stage.py community (archive-listed) unverified Apache-2.0 (permissive) · 4a37d1075883f9bb · report
load_edf CVxTz/EEG_classification/deepsleepnet_data/dhedfreader.py community (archive-listed) unverified Apache-2.0 (permissive) · f70f0c0364819172 · report
max_pool_1d UKBWorks/AccSleepNet/deepsleep/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · 9f4ba08dcda3490e · report
rescale_array CVxTz/EEG_classification/code/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b3b38076f9dfe7d1 · report
softmax_cross_entrophy_loss UKBWorks/AccSleepNet/deepsleep/loss.py community (archive-listed) unverified Apache-2.0 (permissive) · c80a1d8eacbebc0e · report
tal CVxTz/EEG_classification/deepsleepnet_data/dhedfreader.py community (archive-listed) unverified Apache-2.0 (permissive) · 8f778b5ef2f0d198 · report
variable_with_weight_decay UKBWorks/AccSleepNet/deepsleep/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · 173cbcba0b84c159 · report

Tasks

EEGElectroencephalogram (EEG)Sleep Stage Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Sleep Stage Detection MASS SS3 DeepSleepNet Accuracy 86.2% #4 of 6 Archive leaderboard report
Sleep Stage Detection MASS SS3 DeepSleepNet Cohen's kappa 0.8 #4 of 6 Archive leaderboard report
Sleep Stage Detection MASS SS3 DeepSleepNet Macro-F1 0.817 #4 of 6 Archive leaderboard report
Sleep Stage Detection Sleep-EDF DeepSleepNet Accuracy 82% #6 of 8 Archive leaderboard report
Sleep Stage Detection Sleep-EDF DeepSleepNet Cohen's kappa 0.76 #6 of 8 Archive leaderboard report
Sleep Stage Detection Sleep-EDF DeepSleepNet Macro-F1 0.769 #6 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections