{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/sleepyco-automatic-sleep-scoring-with-feature","title":"SleePyCo: Automatic Sleep Scoring with Feature Pyramid and Contrastive Learning","arxiv_id":"2209.09452","date":"2022-09-20","proceeding":null,"authors":["Seongju Lee","Yeonguk Yu","Seunghyeok Back","Hogeon Seo","Kyoobin Lee"],"abstract":"Automatic sleep scoring is essential for the diagnosis and treatment of sleep disorders and enables longitudinal sleep tracking in home environments. Conventionally, learning-based automatic sleep scoring on single-channel electroencephalogram (EEG) is actively studied because obtaining multi-channel signals during sleep is difficult. However, learning representation from raw EEG signals is challenging owing to the following issues: 1) sleep-related EEG patterns occur on different temporal and frequency scales and 2) sleep stages share similar EEG patterns. To address these issues, we propose a deep learning framework named SleePyCo that incorporates 1) a feature pyramid and 2) supervised contrastive learning for automatic sleep scoring. For the feature pyramid, we propose a backbone network named SleePyCo-backbone to consider multiple feature sequences on different temporal and frequency scales. Supervised contrastive learning allows the network to extract class discriminative features by minimizing the distance between intra-class features and simultaneously maximizing that between inter-class features. Comparative analyses on four public datasets demonstrate that SleePyCo consistently outperforms existing frameworks based on single-channel EEG. Extensive ablation experiments show that SleePyCo exhibits enhanced overall performance, with significant improvements in discrimination between the N1 and rapid eye movement (REM) stages.","url_abs":"https://arxiv.org/abs/2209.09452v1","url_pdf":"https://arxiv.org/pdf/2209.09452v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"sleepyco-automatic-sleep-scoring-with-feature","repo_url":"https://github.com/gist-ailab/sleepyco","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"eeg-1","task_name":"EEG"},{"task_slug":"eeg","task_name":"Electroencephalogram (EEG)"},{"task_slug":"sleep-stage-detection","task_name":"Sleep Stage Detection"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/sleep-stage-detection-on-mass-single-channel","task":"Sleep Stage Detection","dataset":"MASS (single-channel)","model":"SleePyCo (C4-A1 only)","rank_in_archive_order":1,"of":2,"metrics":{"Accuracy":"86.8%","Cohen's Kappa":"0.811","Macro-F1":"0.825"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-montreal-archive-of","task":"Sleep Stage Detection","dataset":"Montreal Archive of Sleep Studies","model":"SleePyCo (C4-A1 only)","rank_in_archive_order":1,"of":2,"metrics":{"Accuracy":"86.8%","Cohen's kappa":"0.811","Macro-F1":"0.825"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-physionet-challenge-1","task":"Sleep Stage Detection","dataset":"PhysioNet Challenge 2018","model":"SleePyCo (C3-A2 only)","rank_in_archive_order":2,"of":2,"metrics":{"Accuracy":"80.9%","Cohen's Kappa":"0.737","Macro-F1":"0.789"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-physionet-challenge","task":"Sleep Stage Detection","dataset":"PhysioNet Challenge 2018 (single-channel)","model":"SleePyCo (C3-A2 only)","rank_in_archive_order":1,"of":2,"metrics":{"Accuracy":"80.9%","Cohen's Kappa":"0.737","Macro-F1":"0.789"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-shhs-single-channel","task":"Sleep Stage Detection","dataset":"SHHS (single-channel)","model":"SleePyCo (C4-A1 only)","rank_in_archive_order":3,"of":5,"metrics":{"Accuracy":"87.9%","Cohen's Kappa":"0.830","Macro-F1":"0.807"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-sleep-edf","task":"Sleep Stage Detection","dataset":"Sleep-EDF","model":"SleePyCo (Fpz-Cz only)","rank_in_archive_order":1,"of":8,"metrics":{"Accuracy":"86.8%","Cohen's kappa":"0.820","Macro-F1":"0.812"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-sleep-edf-single","task":"Sleep Stage Detection","dataset":"Sleep-EDF (single-channel)","model":"SleePyCo (Fpz-Cz only)","rank_in_archive_order":1,"of":2,"metrics":{"Accuracy":"86.8%"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-sleep-edfx","task":"Sleep Stage Detection","dataset":"Sleep-EDFx","model":"SleePyCo (Fpz-Cz only)","rank_in_archive_order":2,"of":3,"metrics":{"Accuracy":"84.6%","Cohen's Kappa":"0.787","Macro-F1":"0.790"},"uses_additional_data":false},{"leaderboard":"/sota/sleep-stage-detection-on-sleep-edfx-single","task":"Sleep Stage Detection","dataset":"Sleep-EDFx (single-channel)","model":"SleePyCo (Fpz-Cz only)","rank_in_archive_order":2,"of":3,"metrics":{"Accuracy":"84.6%","Cohen's Kappa":"0.787","Macro-F1":"0.790"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers","held":null,"reason":"arxiv_id_not_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"by_repo":[{"repo":"gist-ailab/sleepyco","kind":"official","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"ce1c4fab60f1a47fb472d1f7523e80654f0f01c794d9df17b9a36bfada339718","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}