Sleep Vision
A bedside camera that learns how you actually sleep.
Apple Watch biometrics and a live video feed, fused on a sub-100ms timeline, with an LLM that compares each night to published sleep research and tells you what changed.
Personal project, 2024
- video ⇄ watch sync
- <100ms
- on-device
- 100%
What’s in it
- Apple Watch heart data synced to video within 100ms
- PyTorch + FFmpeg pipeline for real-time feature extraction
- LLM-generated nightly feedback grounded in research
How it works
Capture
An overhead camera and Apple Watch stream in parallel; heart-rate and motion are fused with the video on a sub-100ms shared timeline.
Extract
A PyTorch + FFmpeg pipeline pulls real-time features from the feed, movement, position, restlessness, frame by frame.
Explain
An LLM compares each night against published sleep research and writes plain-language feedback on what actually changed.
Made with PyTorch, FFmpeg, Swift.