🇺🇦 Українська

🧠 Brainwave Oscillations — EEG Simulator

Visualise the four major EEG frequency bands using a Kuramoto coupled-oscillator model. Adjust the brain-state preset or coupling strength and watch synchrony emerge — just like during meditation, deep sleep, or focused cognition.

δ Delta (0.5–4 Hz) θ Theta (4–8 Hz) α Alpha (8–13 Hz) β Beta (13–30 Hz)

Brain State Preset

Coupling & Noise

Stats

Sync order r
Dominant band
Mean freq (Hz)

About This Simulation

Real EEG signals are a superposition of oscillations from millions of neurons. This simulation uses the Kuramoto model — N coupled phase oscillators with natural frequencies drawn from a Lorentzian distribution centred on each band. The coupling K controls how strongly oscillators pull each other toward a common phase; above a critical coupling Kc, the order parameter r jumps from near-zero to near-one, representing the phase transition from incoherence to synchrony.

Four EEG bands dominate different cognitive states: delta (δ) appears during deep sleep; theta (θ) during memory consolidation and drowsiness; alpha (α) during relaxed, eyes-closed wakefulness; and beta (β) during active cognition and alertness. The scrolling waveform mimics a four-channel EEG trace, while the power spectrum bar chart shows the relative dominance of each band.

About Brainwave Oscillations

The brain generates rhythmic electrical oscillations at characteristic frequencies that correlate with different mental states and cognitive functions. These rhythms — recorded by electroencephalography (EEG) — arise from synchronised activity among millions of neurons and are classified into five main bands: delta (0.5–4 Hz, deep sleep), theta (4–8 Hz, drowsiness and memory encoding), alpha (8–13 Hz, relaxed wakefulness), beta (13–30 Hz, active thinking), and gamma (30–100 Hz, focused attention and feature binding). Understanding these oscillations underlies clinical applications from epilepsy diagnosis to brain-computer interfaces.

This simulation visualises each frequency band as a sinusoidal wave and allows you to adjust amplitude and frequency within each band, add multiple bands together to see a composite waveform, and observe how the balance of rhythms shifts across sleep stages and cognitive tasks.

Frequently Asked Questions

What causes brainwave oscillations?

Oscillations emerge from rhythmic excitation and inhibition among neural networks. Interneurons (inhibitory neurons) create periodic "windows" during which pyramidal (excitatory) cells can fire, producing rhythmic bursts. Thalamo-cortical loops amplify slower rhythms (alpha, delta) by sending rhythmic bursts back and forth between the thalamus and cortex. Local cortical circuits generate faster gamma rhythms through excitatory-inhibitory balance.

What are the main EEG frequency bands and their associated states?

Delta (0.5–4 Hz) dominates deep slow-wave sleep and is abnormally present in brain damage. Theta (4–8 Hz) is associated with drowsiness, memory consolidation in the hippocampus, and REM sleep. Alpha (8–13 Hz) is the dominant "idle" rhythm of the relaxed, eyes-closed brain and is suppressed by visual input or mental effort. Beta (13–30 Hz) accompanies active cognition, motor planning, and anxiety. Gamma (30–100 Hz) is linked to focused attention, sensory binding, and working memory.

How does EEG measure brainwaves?

EEG places electrodes on the scalp that detect tiny voltage fluctuations (typically 10–100 µV) caused by the synchronised postsynaptic potentials of millions of cortical neurons. The signal is amplified and filtered, then analysed with Fourier transforms to extract the power spectrum across frequency bands. Clinical EEG uses the International 10-20 system of electrode placement with 19–256 electrodes spaced at 10% or 20% intervals across the skull.

What is alpha suppression and why does it happen?

Alpha waves (8–13 Hz) are suppressed — a phenomenon called event-related desynchronisation (ERD) — when the brain processes visual or cognitive tasks. Opening your eyes typically reduces occipital alpha power by 50–80% within 1–2 seconds. This occurs because alpha rhythms reflect an "idling" state of the visual cortex; when stimulated, local inhibitory mechanisms give way to more irregular, task-specific beta and gamma activity.

What are sleep spindles and K-complexes?

Sleep spindles are brief bursts of 12–16 Hz oscillations lasting 0.5–2 seconds that appear during Stage 2 NREM sleep. They are generated by thalamo-cortical circuits and are thought to consolidate memories by replaying hippocampal sequences. K-complexes are large, high-amplitude waveforms (amplitude >75 µV) also in Stage 2 sleep, thought to suppress arousal and protect sleep in response to external stimuli.

Can brainwaves be controlled voluntarily?

Yes, through neurofeedback training. Subjects view a real-time display of their own EEG power in a specific band and learn to increase or decrease it through mental strategies. Alpha neurofeedback has shown promise for reducing anxiety and enhancing creativity; theta/alpha training is used for attention-deficit disorders. Sustained practice can shift resting-state power spectra, though effect sizes in clinical trials are modest.

What is the role of gamma waves in consciousness?

Gamma oscillations (30–100 Hz) are hypothesised to underlie the "binding" of disparate neural representations into unified conscious percepts — the binding problem. Synchronized gamma between distant cortical areas may allow features processed in separate regions (e.g., colour in V4, motion in V5) to be integrated. However, the causal role of gamma in consciousness remains debated; studies show gamma correlates strongly with attention, but whether it is cause or consequence is unclear.

What is the difference between EEG and MEG?

Electroencephalography (EEG) measures electrical potentials at the scalp, which are smeared by the poorly conducting skull. Magnetoencephalography (MEG) measures the tiny magnetic fields (femtotesla range) produced by neural currents using superconducting quantum interference devices (SQUIDs). MEG has better spatial resolution (~3 mm vs ~1 cm for EEG) and is unaffected by skull conductance, but requires a magnetically shielded room and costs several million pounds per system.

How are brainwaves used in brain-computer interfaces?

Brain-computer interfaces (BCIs) decode EEG signals to control external devices. The P300 BCI exploits a gamma-range event-related potential 300 ms after a target stimulus to let paralysed users type. Motor imagery BCIs detect beta desynchronisation over the motor cortex when users imagine moving their hand, enabling cursor control. Consumer EEG headsets with 1–16 dry electrodes are used for meditation feedback, gaming, and attention monitoring, though with far lower signal quality than clinical systems.

What causes the transition between sleep stages?

Sleep stage transitions are orchestrated by the interaction of a circadian process (the ~24-hour clock driven by the suprachiasmatic nucleus) and a homeostatic process (adenosine accumulation during wakefulness). As sleep pressure builds during the day, adenosine inhibits wake-promoting neurons in the basal forebrain. During NREM sleep, slow oscillations replay hippocampal memories into the cortex for consolidation, and growth hormone is released in pulses during slow-wave sleep.

About this simulation

This simulator models the four main EEG frequency bands with a Kuramoto coupled-oscillator model: many virtual neurons with slightly different natural frequencies gradually pull into a shared phase. Delta, theta, alpha and beta oscillators each drive one channel of a scrolling waveform and a live power-spectrum bar chart. It is a simplified educational model, not a recording of real patient brain activity.

🔬 What it shows

Four oscillator populations — delta (0.5–4 Hz), theta (4–8 Hz), alpha (8–13 Hz) and beta (13–30 Hz) — synchronise according to the Kuramoto model. Their weighted sum forms the scrolling waveform, whilst the bar chart shows each band's relative power and the sync order r shows overall coherence.

🎮 How to use

Choose a Brain State Preset (Active/Focused, Relaxed/Meditative, Drowsy, Deep Sleep or Custom) to set the four bands' power balance, or switch to Custom and drag the δ/θ/α/β power sliders individually. The Coupling K slider strengthens synchrony, Noise σ adds random jitter to each oscillator, and Reset/Pause restart or freeze the simulation.

💡 Did you know?

The alpha rhythm was the first human brainwave ever recorded, described by German psychiatrist Hans Berger in 1929 after he invented electroencephalography. The Kuramoto model driving this simulation, devised by physicist Yoshiki Kuramoto in 1975, remains one of the simplest mathematical descriptions of how coupled oscillators spontaneously fall into synchrony.

Frequently asked questions

What do the four coloured bands represent?

Each colour is a standard EEG band: delta (0.5 to 4 Hz, linked to deep sleep), theta (4 to 8 Hz, drowsiness and memory), alpha (8 to 13 Hz, relaxed wakefulness) and beta (13 to 30 Hz, alert thinking), each modelled as its own group of coupled oscillators.

How is the scrolling waveform built?

At every step, the cosines of all oscillator phases within a band are averaged, multiplied by that band's power weight, and plotted as one line, so the trace is a direct sum of many individual oscillators rather than a single wave.

What does the Coupling K slider do?

K sets how strongly oscillators within a band pull each other towards a common phase. Raising K drives the synchrony order r from near zero (incoherent) towards one (fully synchronised); at low K the oscillators drift independently.

What does the Noise σ slider do?

Noise σ adds a small random jitter to every oscillator's phase on each step, working against the coupling force, so higher noise makes it harder for a band to stay synchronised even when coupling is strong.

What is the difference between a preset and Custom mode?

Each preset assigns fixed power weights to the four bands (Deep Sleep favours delta, Active/Focused favours beta), whilst Custom reveals four sliders so you can set each band's power independently, including combinations with no single physiological match.