Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bronze Frazer
bfrazer2
bfrazer2@illinois.edu
Dataset + Task + Model
"wav2sleep: A Unified Multi-Modal Approach to Sleep Stage Classification from Physiological Signals"
https://arxiv.org/pdf/2411.04644
Description
This PR integrates the wav2sleep model (arXiv:2411.04644) into PyHealth for automated sleep stage classification from polysomnography (PSG) biosignals. It adds a dataset, task, and model following the standard PyHealth pattern.
Wav2SleepDatasetingests EDF recordings and annotations from 7 sleepdata.org cohorts (SHHS, MESA, WSC, CHAT, CFS, CCSHS, MROS), auto-generating a metadata CSV on first load.Wav2SleepStagingnormalizes channel names across datasets, remaps annotations to 4 classes (Wake, Light, Deep, REM), and produces an availability mask for missing modalities.Wav2Sleepimplements the three-stage architecture: per-modality CNN Signal Encoders → a Transformer-based Epoch Mixer with stochastic modality masking → a dilated conv Sequence Mixer, ending in a 4-class linear classifier.File Guide