EEGDex — Technical Reference
Metrics, Formulas &
Normal Values
Band-power and sleep-architecture analysis from consumer EEG (Muse). Direct spectral readouts, EEG-staged hypnogram, and derived micro-architecture markers.
27 metrics total: 13 Core · 11 Advanced · 3 Research
⚠️
Important: EEGDex is a scaffold, not a shipped node — as of 2026-09-20 a DSP module and its selftest exist, but no EEGDex app, bundle or hand-authored registry is built, and the adapter layer routes EEG files to an EEGDSP that resolves to undefined in every shipped bundle. This guide documents the manifest's intended metrics, not measured behaviour. Consumer dry-electrode EEG (4-channel Muse) has higher artifact rates and lower spatial resolution than clinical PSG. Contact quality gates every downstream metric.
Evidence
Measured
Validated
Emerging
Experimental
Heuristic
fill = trust
📶
Signal & Contact
Direct signal-quality readouts that gate everything downstream
% Contact
Fraction of the recording with all electrodes in good contact
Core
Formula
mean(all-channel contact ≥ threshold)
% Analyzable
Fraction of the recording usable after artifact rejection
Core
Formula
1 − artifactRejectedFraction
Total Power
Broadband EEG power over (0, 45] Hz, the band the transform sums
Advanced
Formula
Σ P(f) over (0, 45] Hz
🌊
Band Powers
Relative power in the canonical EEG bands
δ rel
Delta-band ([0.5, 4) Hz) relative power, as the engine bands it
Core
Formula
median over epochs with a spectrum of P([0.5, 4) Hz) / Σ P(f) over (0, 45] Hz
θ rel
Theta-band ([4, 8) Hz) relative power, as the engine bands it
Core
Formula
median over epochs with a spectrum of P([4, 8) Hz) / Σ P(f) over (0, 45] Hz
α rel
Alpha-band ([8, 12) Hz) relative power, as the engine bands it
Core
Formula
median over epochs with a spectrum of P([8, 12) Hz) / Σ P(f) over (0, 45] Hz
σ rel
Sigma-band ([12, 16) Hz) relative power, as the engine bands it
Advanced
Formula
median over epochs with a spectrum of P([12, 16) Hz) / Σ P(f) over (0, 45] Hz
β rel
Beta-band ([16, 30) Hz) relative power, as the engine bands it
Advanced
Formula
median over epochs with a spectrum of P([16, 30) Hz) / Σ P(f) over (0, 45] Hz
α/θ
Ratio of alpha to theta band power
Advanced
Formula
median over epochs with nonzero theta power of P([8, 12) Hz) / P([4, 8) Hz)
SEF95
Frequency below which 95 % of the epoch's examined power sits
Advanced
Formula
median over epochs of min{ f : Σ P(≤ f) ≥ 0.95 × Σ P over (0, 45] Hz }
🌙
Sleep Architecture
EEG-staged hypnogram and micro-architecture markers
REM %
Fraction of total sleep time scored REM from EEG
Core
Formula
remEpochs / totalSleepEpochs
Spindles
Sleep-spindle count per minute of staged N2 and N3
Research
Formula
detections / staged NREM minutes, over an epoch-relative sigma envelope
FAA
ln(α right) − ln(α left) over frontal channels (AF7/AF8)
Research
Formula
ln(αAF8) − ln(αAF7)
Calm
Composite relaxation index blended from band ratios
Advanced
Formula
weighted blend of α/θ, β suppression, and stability
Hypnogram
Per-epoch sleep-stage series scored from one EEG channel
Core
Formula
stageEpoch(bands) per 30 s epoch, median-smoothed
TST
Hours of epochs scored N1, N2, N3 or REM
Core
Formula
30 s × (N1 + N2 + N3 + REM) / 3600
SE
Percent of SCORED epochs that are sleep, not of the recording span
Core
Formula
100 × sleepEpochs / scoredEpochs
Deep %
Fraction of total sleep time the model classes deep
Core
Formula
100 × deep / sleepEpochs
Light %
Fraction of total sleep time the model classes light
Core
Formula
100 × light / sleepEpochs
Wake %
Percent of SCORED epochs scored wake, not of the recording span
Advanced
Formula
100 × W / scoredEpochs
SOL
Minutes of elapsed epochs before the first epoch scored as sleep
Core
Formula
0.5 × elapsed epochs before the first sleep epoch
REM Lat
Minutes from the first sleep epoch to the first epoch scored REM
Advanced
Formula
0.5 × (first REM epoch − first sleep epoch)
WASO
Minutes scored wake strictly between the first and last sleep epoch
Core
Formula
0.5 × wake epochs between the first and last sleep epoch
Shifts
Count of stage transitions over the scored series
Advanced
Formula
transitions over the scored series, where an unscorable epoch BREAKS the run
REM Per
Count of REM runs, merged across a non-REM gap of up to 5 minutes
Advanced
Formula
maximal REM runs merged across a gap of ≤ 10 epochs
SWA Decay
Change in NREM delta power per NREM stretch, against the first stretch
Research
Formula
100 × leastSquaresSlope(median delta power vs stretch index) / first stretch's median
📖
Abbreviation Index
All abbreviations used in EEGDex reference
| Abbr | Meaning |
|---|---|
| EEG | Electroencephalography |
| FAA | Frontal Alpha Asymmetry |
| N1 | Non-REM sleep stage 1 |
| N2 | Non-REM sleep stage 2 |
| N3 | Non-REM sleep stage 3, slow-wave sleep |
| PSD | Power Spectral Density |
| REM | Rapid Eye Movement sleep |
| SEF95 | Spectral Edge Frequency, 95 % |
| SOL | Sleep-Onset Latency |
| SWA | Slow-Wave Activity |
| WASO | Wake After Sleep Onset |