BioniChaos Logo
  • Home
  • About
  • Contact
Signal Generation & Features
Peak-to-Peak (µV) 0.0
Spectral Entropy 0.00

Overview: Unlocking Insights from EEG Data

Electroencephalography (EEG) stands as a vital window into the intricate workings of the human brain. By capturing electrical activity across the scalp, EEG provides a continuous multidimensional time series that can be analyzed for a wide range of applications, spanning from seizure detection to real-time brain-computer interfaces (BCIs). The raw temporal data, while informative, is heavily obscured by noise and complex physiological overlays. To extract meaning, neuroscientists and engineers compute discrete quantitative **features** across multiple analytical domains.

Time Domain Features

Time domain analysis involves examining the EEG signal directly as it varies over time $V(t)$. This type of analysis focuses on the signal's structural geometry, amplitude, and time-based statistics to extract meaningful parameters that reflect the brain's aggregate electrical activity.

  • Amplitude Measures: Peak-to-Peak amplitude measures the absolute difference between the maximum and minimum voltage boundaries within a specific sliding epoch time window. It acts as a primary heuristic for signal strength, prominent transient events (like K-complexes), or artifacts.
  • Statistical Parameters: Metrics such as Variance ($\sigma^2 = \frac{1}{N-1} \sum_{i=1}^N (x_i - \mu)^2$), Standard Deviation, Skewness, and Kurtosis help determine the probabilistic distribution of the wave over time. High variance indicates significant fluctuations, while positive skewness indicates asymmetrical right-tailed distribution profiles.
  • Hjorth Parameters: Time domain descriptors introduced by Bo Hjorth that measure signal properties.
    Activity: The overall variance of the signal.
    Mobility: Computed as $M = \sqrt{\frac{var(x')}{var(x)}}$, where $x'$ is the first derivative, representing mean frequency.
    Complexity: The ratio of mobility of the derivative to the mobility of the signal $C = \frac{M(x')}{M(x)}$, indicating waveform fractality and intricacy.

Frequency Domain Features

Frequency domain analysis shifts the perspective by transforming the temporal $V(t)$ signal into its orthogonal frequency components $X(f)$ using spectral equations. The core of this process is the Fourier Transform:

$$ X(f) = \int_{-\infty}^{\infty} x(t) e^{-j 2 \pi f t} dt $$

Once transformed, we generate the Power Spectral Density (PSD), which reveals the power distribution across classical clinical bands: Delta (0.5-4 Hz), Theta (4-8 Hz), Alpha (8-13 Hz), Beta (13-30 Hz), and Gamma (30-100 Hz). Band power features are indispensable; for instance, heightened alpha relative power strongly correlates with relaxed wakefulness with eyes closed, while elevated gamma reveals active multisensory cognitive binding.

Event-Related Potentials (ERPs)

Event-Related Potentials are specific electrocortical responses that are directly time-locked to sensory, cognitive, or motor events. Because individual ERPs are microvolt-level signals often buried in larger background noise, researchers use ensemble epoch averaging to boost the signal-to-noise ratio. Key components include early latency sensory peaks (P1, N1), mid-latency cognitive control markers (P2, N2), and the celebrated P300 (P3) peak—a large positive deflection occurring roughly 300 ms post-stimulus, intimately tied to attention allocation, context updating, and novelty detection.

How to Use the Interactive Feature Simulator

This web application serves as a synthetic real-time EEG signal generator and diagnostic feature extraction lab. It simulates raw cortical data and processes it live into dual domains: Time and Frequency.

  • Dominant Carrier Band (Hz): This slider dictates the primary oscillatory rhythm generated by the simulated neuron pool. Shifting this from Delta (slow, deep sleep) up through Beta and Gamma (fast, active cognition) dynamically updates both the time-domain waveform density and shifts the primary spectral peak on the lower FFT diagnostic chart.
  • Signal Complexity (Non-linear): Adjusting this parameter injects harmonic distortions and chaotic phase modulations into the base carrier. At low levels, the wave resembles a pure sine function. As complexity increases, the wave mimics true organic brain activity, directly inflating the calculated Spectral Entropy shown in the extraction readouts.
  • Stochastic Noise (Entropy): Introduces randomized wide-band Brownian and white noise into the signal trajectory, mimicking muscular electromyography (EMG) artifact bleed, poor electrode impedance, or 60 Hz environmental line noise. Observe how high noise levels muddy the frequency domain and falsely elevate Time Domain Peak-to-Peak values.
  • Demo Mode & Audio: Engaging the "Start Demo" command isolates the current environmental state and cycles through a pre-programmed sequence of neurological states (e.g., deep delta sleep transitioning into high-frequency active wakefulness). You may toggle the Sound button to engage the Web Audio API, which maps the primary active frequency band to a sonified pitch envelope, providing an auditory analog of the brain's rhythm.

Technical Details: Advanced Analytics & Network Dynamics

Beyond simple spectral analysis, modern computational neuroscience leverages Time-Frequency transformations, Connectivity mapping, Non-linear dynamics, and Graph Theoretical mathematics to decode the brain's dense multi-electrode arrays.

Time-Frequency & Wavelets

Because EEG signals are highly non-stationary (their statistical properties evolve dynamically), pure frequency analysis often loses critical temporal timing. The Short-Time Fourier Transform (STFT) applies sliding windows to capture this evolution, mapping a spectrogram. More robustly, the Continuous Wavelet Transform (CWT) applies scaling and shifting wavelets, offering high temporal resolution for high frequencies and high spectral resolution for low frequencies, perfect for isolating transient epileptic spikes.

Connectivity & Network Synchronization

Connectivity features assess the relationships and interactions between different spatial regions of the brain. The classic metric is Coherence, measuring the linear synchronization between two regions $x$ and $y$ at a specific frequency $f$:

$$ C_{xy}(f) = \frac{|S_{xy}(f)|^2}{S_{xx}(f) S_{yy}(f)} $$

However, simple coherence is susceptible to volume conduction (the blurring of electrical signals through the skull). Advanced metrics like the Phase Lag Index (PLI) quantify the consistency of phase angle differences, discarding zero-phase relationships to reveal true underlying functional connectivity. Furthermore, Granger Causality employs autoregressive modeling to determine directionality—whether signal $X$ predicts the future values of signal $Y$.

Non-Linear Dynamics & Chaos Theory

Linear analysis misses the complex, chaotic dynamics inherent to neural networks. Non-linear features map the EEG time series into multi-dimensional state spaces.
Lyapunov Exponents: Measure the exponential rate at which nearby trajectories in phase space diverge. A positive maximal exponent $\lambda_1 > 0$ strictly identifies chaotic behavior.
Sample Entropy (SampEn): Quantifies structural complexity and unpredictability, calculated as the negative natural logarithm of the conditional probability that two sequences similar for $m$ points remain similar at $m+1$ points, reducing the bias found in Approximate Entropy (ApEn).

Graph Theoretical Architecture

By modeling the brain as a graph matrix $G = (V, E)$, where $V$ represents nodes (electrodes/regions) and $E$ represents edges (connectivity weights), we compute topological network features. The Clustering Coefficient ($C_i$) evaluates local processing segregation, defined as the fraction of triangles around a node relative to the total possible connections. Network Path Length ($L$) assesses global integration by averaging the shortest paths between all node pairs. A healthy brain operates as a "Small-World Network," striking an optimal energetic balance between high local clustering and extremely short global path lengths, maximizing processing efficiency and cognitive resilience.

Future Directions

The extraction of features from EEG data is undergoing a paradigm shift driven by the integration of deep learning and edge computing. Future systems will move away from hand-crafted analytical features and increasingly rely on Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) architectures that automatically learn hierarchical spatio-temporal representations directly from raw multi-channel arrays.

Furthermore, real-time edge processing—enabled by low-power analog neuromorphic chips embedded directly within wearable EEG headsets—will allow these complex mathematically intense calculations (like real-time continuous wavelet transforms or phase-amplitude coupling) to occur locally on the device with zero transmission latency. This will pave the way for closed-loop, highly responsive Brain-Computer Interfaces (BCIs), personalized neurofeedback regimens, and ultra-fast automated seizure abortion systems capable of predicting electrical storms before they biologically manifest.

Explore Related Neuroscience Tools

  • Seizure Simulation & 3D EEG Spatial Mapping - Brain seizure simulation and live multi-electrode layout visualization.
  • ICA/PCA Signal Separation - Brain EEG signal blind source separation cocktail party mixer.
  • Neural Cognitive Streamer - Real-time cognitive performance metric and neural streamer interface.
  • Hypnogram Architecture Lab - Interactive circadian sleep architecture and polysomnography simulator.