Cognitum/Happiness Score0.3.0
happiness
+0.0

Happiness Score

Research Hard ESP32-S3 24 KB live

Composite well-being score derived from gait energy, movement fluidity, and breathing-based affect inference. Sampled from CSI motion and respiration channels on the ESP32-S3.

Gait energy
Affect state
Breathing

Live metrics

Happiness
+0.0 / hr
Gait energy
CSI motion · J/s
Affect state
confidence —
Breathing
breaths / min
Wellbeing 7-day
+0.0 vs last week
Happiness score · last 5 minutes
Composite 0–100
Affect state mix
Rolling 5-minute distribution
Recent events
From the local event bus · happiness_score, gait_energy, affect_state, wellbeing

Live stream

Real-time happiness score, gait energy, breathing waveform, and affect inference from the ESP32-S3 CSI/respiration channels. Sample rate is 1 Hz on the composite output.

streaming · 1 Hz CH · COMPOSITE
Composite happiness — last 2 minutes
paused
Last
composite
Wellbeing
smoothed
Max · window
2 min
Min · window
2 min
Δ / min
trend
happiness wellbeing (smoothed) tick —
Gait energy
CSI subcarriers · energy units
Breathing waveform
— breaths/min · synthetic from CSI envelope
CSI motion intensity — last 24 frames
Per-subcarrier amplitude · darker = quiet, brighter = motion
Affect inference
Soft-max over 5 states

History

Aggregated happiness and wellbeing trends over time. Window aggregation is local-only.

archive · rolling buffer WIN · 6h
Trend window
Mean
window avg
Peak
happiness
Trough
happiness
σ
std deviation
Samples
in window
happiness wellbeing gait energy (rescaled)
Aggregate
Across selected window
Mean
Peak
Low
Variance
Samples
Time-of-day pattern
Mean happiness by hour
Day comparison
Last 7 days · mean and range

Insights

Correlations and patterns mined from the rolling 24-hour buffer. All compute is on-device.

Gait energy vs happiness
Pearson r = —
Affect dwell time
Total seconds in each state · 24 h
INSIGHT MATRIX · 7 × 24 ROLLING WEEK
Hour × day · happiness field
Mean happiness per cell · 168 cells maximum
Best windows
Top-5 sustained high-happiness intervals
WhenMeanLength
Recommendations
Heuristic suggestions from on-device patterns

    Calibration

    Establish per-environment baselines for gait energy and respiration. Stand still during the baseline step, then walk a normal pace during the gait step.

    Calibration wizard
    Idle — press Start
    1
    Quiet baseline
    5 seconds of stillness to capture noise floor.
    2
    Walking gait
    10 seconds at a comfortable pace.
    3
    Breathing baseline
    5 seconds of normal breathing.
    ready
    Stored baselines
    CSI quiet
    Gait peak
    Breath rate
    Last run
    never
    Score sensitivity
    Adjust how reactive the composite is to short-term shifts.
    8 s
    0.50
    Reset
    Clear baselines and start fresh.

    Hardware

    Sensor topology, firmware, and connectivity for the ESP32-S3 deployment of Happiness Score.

    ESP32-S3 module
    Primary compute
    online
    SoC
    ESP32-S3 N16R8
    Cores
    2 × Xtensa LX7 @ 240 MHz
    RAM (PSRAM)
    8 MB
    Cog footprint
    24 KB flash
    Firmware
    happiness@0.3.0
    Uptime
    CSI motion channel
    802.11 channel-state inference
    streaming
    Subcarriers
    52
    Rate
    100 Hz
    Noise floor
    Last packet
    Breathing channel
    CSI envelope ⇒ respiration estimate
    stable
    Method
    Hilbert envelope + bandpass
    Band
    0.10 – 0.50 Hz
    Current
    Confidence
    Event bus
    Emitted by this cog onto the local bus
    EventHzPayload
    happiness_score1{ value: 0–100, ts }
    gait_energy5{ energy: float, fluidity: 0–1 }
    affect_state1{ state: enum, conf: 0–1 }
    wellbeing0.1{ score: 0–100, window: "10m" }

    Settings

    Composite weights, sampling, and notification preferences. Stored locally.

    Score weights
    Linear combination of inputs · auto-normalised to 1.0
    0.45
    0.25
    0.30
    sum: 1.00 (normalised at runtime)
    Sampling
    Trade-off between responsiveness and battery
    Notifications
    Local alerts on threshold crossings
    Privacy & data
    On-device processing only · no cloud egress