BioniChaos Logo
  • Home
  • About
  • Contact
BAND: ALPHA (α)
DOMINANT: 10.0 Hz
RMS: 35.4 μV
ENTROPY: 0.42
Advanced Diagnostics & Filters

1. Overview: Neurodynamics and Electrophysiological Foundations

Electroencephalography (EEG) is a non-invasive neuroimaging modality that records macroscopic electrical activity across the cerebral cortex. The microvolt-level potential fluctuations recorded at the scalp originate primarily from the spatial and temporal summation of excitatory and inhibitory postsynaptic potentials (EPSPs and IPSPs) generated by vertically oriented pyramidal neurons in cortical layers III, V, and VI [1]. When thousands of synchronized apical dendrites depolarize simultaneously, they produce dipole fields whose extracellular current loops propagate through brain tissue, the meninges, skull bone, and scalp via volume conduction [1].

Under normal physiological conditions, continuous EEG waveforms exhibit distinct frequency bands reflecting underlying thalamocortical and corticocortical feedback loops:

  • Delta Band ($\delta$, $0.5 - 4\text{ Hz}$): High amplitude ($>75\,\mu\text{V}$) slow waves prominent during slow-wave non-REM Stage N3 sleep and pathological metabolic encephalopathy [1].
  • Theta Band ($\theta$, $4 - 8\text{ Hz}$): Characteristic of somnolence, drowsiness, hypnagogic transitions, meditative absorption, and hippocampal memory processing.
  • Alpha Band ($\alpha$, $8 - 13\text{ Hz}$): The classic posterior basic rhythm prominent in occipital regions during wakeful relaxation with eyes closed, attenuated instantly upon visual fixation via Berger's alpha blockade.
  • Beta Band ($\beta$, $13 - 30\text{ Hz}$): Low-amplitude, high-frequency desynchronized potentials associated with active cognitive engagement, mental calculation, focused alertness, and benzodiazepine pharmacology.
  • Gamma Band ($\gamma$, $>30\text{ Hz}$): Microvolt potentials associated with feature binding, cross-modal sensory integration, and conscious cortical processing.

In epileptogenesis, abnormal hypersynchronous bursting of cortical pyramidal populations overcomes surrounding GABAergic inhibition [1]. This manifests as paroxysmal interictal epileptiform discharges (IEDs), periodic sharp waves, or generalized $3\text{ Hz}$ spike-and-wave discharges pathognomonic of absence epilepsy [1]. This laboratory models these physiological, state-dependent, and epileptiform oscillations in real-time using multi-oscillator nonlinear differential signal synthesis.

2. How to Use: Laboratory Controls & Experimental Workflows

The EEG Waveform Simulator gives researchers and students full manual control over theoretical and clinical parameters governing macroscopic electrogenesis:

  • Start Demo / Stop Demo (`#demoBtn`): Launches an autonomous guided diagnostic tour through 10 physiological and pathological brain states (e.g., wakeful alpha, slow-wave delta sleep, hyperventilation buildup, and 3 Hz spike-and-wave paroxysms). Clicking any control or the canvas immediately stops the demo and restores your previous baseline.
  • Reset Baseline (`#resetBtn`): Instantly clears transient alterations, filter states, and noise offsets, restoring the default $10\text{ Hz}$ wakeful occipital alpha baseline.
  • Sound ON/OFF (`#soundToggleBtn`): Toggles real-time acoustic sonification of the primary neural carrier frequency and epileptogenic spike bursts via binaural beat entrainment and dynamic clipping sound generation.
  • EEG State Selector (`#stateSelect`): Populates validated electroclinical presets including meditative trance, REM sleep, hyperventilation-induced slowing, generalized tonic-clonic periodic spikes, and classical absence seizures.
  • Dominant Rhythm Slider ($f_0$): Tunes the primary oscillator frequency from $0.5$ to $45.0\text{ Hz}$ with continuous sub-Hz precision.
  • Voltage Amplitude Slider ($V_{pk}$): Scales peak-to-peak voltage between $5\,\mu\text{V}$ and $150\,\mu\text{V}$, mimicking clinical calibration scales.
  • Pink Noise Slider: Injects stochastic $1/f^\alpha$ biological thermal noise and volume conduction variance into the signal envelope.
  • Epileptogenic Spike Period Slider: Controls the recurrence interval ($T_{\text{spike}}$) of high-voltage, short-duration paroxysmal depolarizing shifts (PDS).
  • Oscilloscope Modes: Switch dynamically between Single-Trace high-resolution view, 4-Channel Anterior-Posterior Bipolar Montage (Fp1-F3, C3-P3, P3-O1, T3-T5), Real-Time FFT Spectral Power Density, and 2D Voltage-Velocity Phase Space orbits.

3. Technical Details: Mathematical Modeling, Filtering & Architecture

The composite EEG potential $V(t)$ at any instant $t$ is synthesized through a multi-harmonic equation incorporating primary thalamocortical resonance, coupled secondary harmonics, non-stationary colored noise, ocular artifacts, and epileptiform transients:

$$V(t) = A_0 \sin(2\pi f_0 t + \phi_0) + \sum_{k=1}^{M} A_k \sin(2\pi f_k t + \phi_k) + S_{\text{spike}}(t) + \eta_{\text{pink}}(t) + B_{\text{blink}}(t)$$

Where:

  • $A_0$ and $f_0$ represent the primary rhythm amplitude and frequency.
  • $S_{\text{spike}}(t)$ models paroxysmal depolarizing shifts via asymmetric exponential decay functions: $$S_{\text{spike}}(t) = A_{\text{spk}} \cdot \exp\left(-\frac{(t \bmod T_{\text{spk}})^2}{2\sigma_{\text{rise}}^2}\right) - A_{\text{wave}} \cdot \exp\left(-\frac{((t \bmod T_{\text{spk}}) - \Delta t)^2}{2\sigma_{\text{fall}}^2}\right)$$
  • $\eta_{\text{pink}}(t)$ is generated via a 3-pole Voss-McCartney $1/f$ pink noise filtration network approximating the power law spectral decay $P(f) \propto 1/f^\beta$ typical of human electrocorticography.
  • $B_{\text{blink}}(t)$ simulates slow ($0.25 - 0.5\text{ Hz}$) asymmetric EOG eye-blink dipole deflections.

Signal entropy is computed across running time-domain epochs using Shannon Spectral Entropy:

$$H_{\text{spec}} = -\sum_{i=1}^{N} p_i \ln(p_i), \quad \text{where } p_i = \frac{P(f_i)}{\sum_{j=1}^N P(f_j)}$$

All rendering pipelines run strictly on an uninhibited, hardware-accelerated 60 FPS `requestAnimationFrame` loop. Canvas backing stores continuously sample `window.devicePixelRatio` to maintain crisp sub-pixel vector rendering without ever mutating CSS layout containers, preventing layout shifts and memory leaks.

4. Future Directions & Clinical Roadmap

Future extensions of this simulation suite will incorporate 64-channel 10-20 system spherical spline topographic voltage mapping, automated Interictal Epileptiform Discharge (IED) detection algorithms using 1D convolutional neural network inference directly in WebAssembly, and Lab Streaming Layer (LSL) WebSocket bridging for live streaming from OpenBCI and Emotiv hardware headsets.

Explore Related Neuroscience & Biophysics Laboratories

Seizure Simulator

Explore clinical 3D seizure propagation mechanics and dynamic ictal-interictal transition models.

Neurofeedback Lab

Simulate real-time closed-loop cognitive operant conditioning and band power feedback.

ICA / PCA EEG Mixer

Blind source separation laboratory for decomposing mixed scalp potentials and ocular artifacts.

NeuroStream Visualizer

High-throughput real-time cognitive performance streaming and mental workload analytics.