Add SleepStagingDREAMT task for DREAMT wearable sleep dataset#957
Open
ErieMAdames wants to merge 3 commits intosunlabuiuc:masterfrom
Open
Add SleepStagingDREAMT task for DREAMT wearable sleep dataset#957ErieMAdames wants to merge 3 commits intosunlabuiuc:masterfrom
ErieMAdames wants to merge 3 commits intosunlabuiuc:masterfrom
Conversation
- Add pyhealth/tasks/sleep_staging_dreamt.py: sleep staging task that segments overnight E4 signals into 30s epochs with 2/3/5-class labels - Add tests/core/test_sleep_staging_dreamt.py: 26 unit tests using synthetic data, completing in ~3 seconds - Add examples/dreamt_sleep_wake_lstm.py: LSTM ablation study with signal subset and label granularity experiments - Add docs RST file and update tasks.rst index - Register SleepStagingDREAMT in pyhealth/tasks/__init__.py Made-with: Cursor
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.
Authors: Jash Parekh (jashrp2@illinois.edu), Tom Wang (twwang2@illinois.edu), Erie M. Adames (eadames2@illinois.edu)
Contribution Type: Standalone Task (Option 3)
Paper: Wang et al., "DREAMT: Dataset for Real-time Sleep Stage Estimation using Multisensor Wearable Technology", CHIL 2024
Paper Link: https://proceedings.mlr.press/v248/wang24a.html
Overview
This PR adds a sleep staging task (
SleepStagingDREAMT) for the existing DREAMT dataset in PyHealth. The task segments overnight Empatica E4 wearable signals into 30-second epochs and assigns sleep stage labels with support for 2-class (wake/sleep), 3-class (wake/NREM/REM), and 5-class (W/N1/N2/N3/R) granularity.Task (
sleep_staging_dreamt.py)BaseTaskwithinput_schemaandoutput_schemaAblation Study (
examples/dreamt_sleep_wake_lstm.py)Two ablation studies with 5-fold participant-level cross-validation:
--demoflag using fully synthetic data (no dataset download required)Unit Tests (
tests/core/test_sleep_staging_dreamt.py)tmp_pathFile Guide
pyhealth/tasks/sleep_staging_dreamt.pypyhealth/tasks/__init__.pySleepStagingDREAMTimport (1 line)tests/core/test_sleep_staging_dreamt.pyexamples/dreamt_sleep_wake_lstm.py--demomodedocs/api/tasks/pyhealth.tasks.SleepStagingDREAMT.rstdocs/api/tasks.rst