Skip to main content

4. Engagement & Focus

Track your Engagement Index (EI) in real time and calibrate a binary focus classifier.

Engagement Index Trend

EI trend

EI = β / (α + θ) — higher EI = more engaged.

ElementMeaning
Blue lineEMA-smoothed EI
Red horizontal lineAlert threshold (default 0.3)
Red curve segmentEI below threshold
Δ 30S / 30S AVGChange and average over last 30s

FFT window: 2s (500 samples), hop: 0.5s, EMA α = 0.1. First 30s excluded. Reference: Pope et al. (1995).

Focus Classification

Focus calibration

A 4-state machine: IDLE → Waiting Warmup (30s) → Collecting Baseline (15s) → Active.

During baseline, choose a calibration video. The median EI is captured as the reference. Every decision window (default 15s), the current EI median is compared against the baseline → Focused or Not focused.

Reference EI is editable after baseline completes.

Tuning

ParameterDefaultEnv Variable
Warmup30sVITE_FOCUS_WARMUP
Baseline window15sVITE_FOCUS_BASELINE
Decision window15sVITE_FOCUS_DECISION

Next

Ask AI to interpret your EEG dataConfigure tuning parameters