Skip to content

Commit 3837ecb

Browse files
committed
Add awake detection classifiers and optimize REM detection logic
- Introduced `refine_awake_detection.py` for enhanced awake detection using heart rate samples and sleep stages. - Added `two_stage_classifier.py` implementing a two-stage classification approach for distinguishing awake vs sleep and NREM vs REM stages. - Created `two_stage_v2.py` to incorporate consecutive awake signals requirement for improved accuracy. - Updated `remOptimizedClassifier.ts` to utilize learned awake prior probabilities based on time since sleep onset, enhancing the prediction model.
1 parent 4e18d2c commit 3837ecb

12 files changed

Lines changed: 3133 additions & 13 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,5 @@ credentials.json
280280
notes/screenshots/*.png
281281
hardcoded_findings.txt
282282
notes/fitbit_merged_training_data.json
283+
notes/raw_sleep_data.json
284+
scripts/parse_fitbit_takeout.py
164 KB
Loading
150 KB
Loading

0 commit comments

Comments
 (0)