🌙
Cognitum/Dream Stagev0.9.0 LIVE

🌙 Dream Stage

Classifies sleep stages — REM, NREM 1/2, and deep — using motion density and breathing rate patterns captured through WiFi CSI on the ESP32-S3. No camera, no wearable; signals are drawn from ambient radio scattering.

😴
Current stage
NREM 2
in stage for 14 min · cycle 3 of 5
⏱️
Total sleep
6h 42m
since 23:14
🌀
REM
1h 24m
21%
💤
Deep (NREM3)
1h 18m
19%
Sleep quality
87 / 100
conf 0.94
🫁
Breathing
13.4bpm
cycle 3 of 5
Tonight's hypnogram
Live updating · started 23:14 · auto-scrolling
live
Awake REM NREM 1 NREM 2 Deep
Stage distribution
Time spent per stage tonight
Recent events
Streaming · last 5 stage transitions and detections

Live Monitor

Real-time biosignals derived from WiFi CSI scatter. Motion density, breathing rate, and per-subcarrier amplitude update at 10 Hz.

Breathing waveform
13.4 breaths / min · variability ±0.4
regular
Motion density
Rolling 60s window · normalized index
low
CSI subcarrier amplitude
52 subcarriers × 200 frames · ESP32-S3 channel 6, 20 MHz
stream
Vitals
Derived from CSI
13
breaths / min
Stage confidence
0.94 · classifier softmax
Heart proxy
62
Motion idx
0.08

Hypnogram

Full-night sleep architecture. Each step represents a 30-second epoch classified by the model. Hover to inspect cycles.

Tonight · 23:14 → 06:00 (live)
5 expected cycles · currently mid-cycle 3
zoom
Awake REM NREM 1 NREM 2 Deep (NREM 3)
Cycle timing
Per cycle, in minutes
REM density
Time-of-night histogram
Deep sleep window
Most deep sleep in first 3 hours

Events

Stream of classifier emissions: sleep_stage, rem_detected, deep_sleep, sleep_quality. Streaming from the cog over MCP.

Tonight's count
sleep_stage
42
rem_detected
2
deep_sleep
2
sleep_quality
1
Event rate
Per-minute throughput, last 30 min
Event stream
Auto-scrolls · newest first · click event to inspect payload

History

Past nights — sleep architecture and quality trends across the last 14 nights.

14-night architecture
Each card replays the night's hypnogram · hover to lift · tonight is live
14 nights
Awake REM NREM 1 NREM 2 Deep
Sleep quality trend
Score / 100 · rolling 14 nights
Total sleep time
Hours per night

Hardware

ESP32-S3 sensor module capturing WiFi Channel State Information. CSI is fed through breathing extraction and motion-density estimators before classification.

📡esp32-bedroom-01
online
modelESP32-S3-WROOM
firmwarecogs-dream-stage 0.9.0
uptime14h 22m
wifi rssi-46 dBm
channel6 (2437 MHz, 20 MHz)
⚙️CSI capture
26 KB
sample rate100 Hz
subcarriers52 (HT20)
packets / s98.4
buffer42 / 256
🧠Classifier
int8 model
arch1D-CNN + GRU
params184k
inference17 ms / epoch
accuracy0.86 vs PSG
Packet rate
CSI frames / second from ESP32
WiFi RSSI
Signal strength of probe AP
Source
cogs-dream-stage cog spec
Health
name: dream-stage
version: 0.9.0
category: health
difficulty: hard
size: 26 KB
hardware:
  - ESP32-S3
inputs:
  - csi.motion
  - csi.breathing
events:
  - sleep_stage
  - rem_detected
  - deep_sleep
  - sleep_quality
source: cognitum-one/cogs/src/cogs/dream-stage

Settings

Tune classifier behaviour, event emissions, and capture parameters.

Classifier
Stage detection thresholds
REM detection sensitivity
Lower = fewer false REM detections
0.65
Deep sleep threshold
Motion-density cutoff for NREM 3
0.22
Epoch length
Classification window in seconds
Smoothing
Majority vote across N epochs
Event emissions
What this cog publishes to the bus
sleep_stage
Fires on every classified epoch
rem_detected
Fires once when entering a REM episode
deep_sleep
Fires on transitions into NREM 3
sleep_quality
Single end-of-night summary score
CSI capture
ESP32-S3 sensor parameters
Sample rate
Higher = better resolution, more power
WiFi channel
Pick a quiet channel for cleaner CSI
Bandwidth
HT20 = 52 subcarriers, HT40 = 114
Low-power mode
Drop sample rate when room is empty