Skip to content

v1.0.1 - Sleep Stage Smoothing & UI Fixes

Latest

Choose a tag to compare

@jeremymanning jeremymanning released this 20 Jan 21:09

What's New

Sleep Tracking Improvements

  • HMM Temporal Smoothing: Implemented Hidden Markov Model Forward Algorithm to prevent rapid sleep stage switching ('jitter')
  • Minimum Dwell Times: States now persist for at least 60 seconds (120s for REM) before transitioning
  • Hysteresis: Requires higher confidence to exit a state than to enter, reducing false transitions

UI Fixes

  • Tab Bar Text Clipping: Fixed bottom navigation labels being cut off on mobile web
  • Tab Labels: Now displayed in uppercase for consistency
  • Renamed Tabs: 'Favorites' → 'Saved', 'Dream' → 'Sleep' for clarity
  • About Page Back Button: Now always navigates to home screen (fixes issue when navigating directly to about page or after refresh)

Technical Details

  • New services/temporalSmoothing.ts module with HMM implementation
  • Exponential smoothing (α=0.3) applied to raw probabilities before HMM
  • Integrated with existing remOptimizedClassifier.ts