| Channel | Clean data | Peak | Above 1/f | Center of gravity |
|---|
How peak alpha is found
- Used data: the whole recording for a baseline. For other recordings: the parts that start at an “Eyes closed” marker (until the next marker).
- Each channel is cut into 4 s pieces (one every 2 s). Pieces with bad contact, blinks, movement or muscle activity are removed (same checks as below).
- The spectra of the clean pieces are averaged. 4 s pieces give a resolution of 0.25 Hz.
- EEG power always falls with frequency (the “1/f background”). A straight line is fitted to it in log-log scale, over 2–40 Hz without 6–14 Hz.
- Peak = the frequency between 7 and 13 Hz that rises highest above this line, refined between bins. Center of gravity = the mean frequency of the power above the line, weighted by that power. If both are close, the peak is well defined.
- The main result averages the channels behind the ears (TP9, TP10 on the Muse), where alpha is strongest. Devices without such channels use all channels.
- Reliable means: at least 60 s of clean data, the peak is at least 2 dB above the background, and the first and second half of the data (and the channels) agree within 0.5 Hz.
Processing steps
Raw: all channels of the device, no artifact handling. Each column is one 4 s window (one every 0.5 s); the mean is removed and a Hann window applied, as the FFT needs it.
Processed:
- Each channel is cut into 2 s pieces (one every 0.5 s). Slow drift is removed from each piece (linear detrend).
- A piece is removed if it has bad contact: flat (std dev < 1 µV), saturated (at the sensor limit, e.g. ≥ 950 µV on the Muse 2) or very noisy (std dev > 100 µV).
- A piece is removed if it has a blink or movement: peak-to-peak above 150 µV, or much larger than normal for this channel (more than 3 robust standard deviations above its median).
- A piece is removed if it has muscle activity (jaw, forehead): 30–45 Hz power much higher than normal for this channel (same 3-deviation rule).
- Each 4 s column averages the spectra of all clean pieces inside it, from all channels. If no piece is clean, the column stays empty.
Power per frequency = power in a 1 Hz wide bin, e.g. 10 Hz = 9.5–10.5 Hz.
OpenBCI board: the board sends raw values with a large offset and mains hum. So its data is filtered already while it is shown and recorded: high-pass 0.5 Hz, notch at 50 Hz and 100 Hz. “Raw” means: no artifact handling on top of this.
Note: the 2 s pieces have a lower frequency resolution than the 4 s raw windows. A sharp peak spreads a little into its neighbor bins and looks about 15% lower in Processed. This is the same for all segments, so compare Processed with Processed (% change, peak ratio), not absolute µV² between Raw and Processed.
Raw · Where is the peak? Share of 5–15 Hz power. White dashed lines = markers.
Processed (artifacts removed) · Where is the peak? Empty = no clean data.
Removed pieces per channel
| Channel | Clean | Bad contact | Blink / movement | Muscle |
|---|
Peak ratio at target: power at target ÷ average power of the other 5–15 Hz bins (smoothed over 4 s). Dashed line at 1× = no peak. Thick lines = segment averages.
How to read: the higher the line, the more the target frequency stands out from its neighbors. Entrainment shows as a step up after “AVE start” and a step down after “AVE stop”. The ratio does not change if all frequencies get stronger or weaker together (for example because the contact gets better), so it shows the shape of the spectrum, not the overall signal strength.
Average spectrum per segment (segments start at each marker). Shaded = target frequency.
How to read: compare the stimulation line with the dashed baseline line. Entrainment shows as a bump at the target frequency that the baseline does not have (or a higher bump). If the whole line is higher everywhere, that is a general power change, not entrainment.
Only windows that lie fully inside one segment are used. Natural alpha (about 8–12 Hz) rises when you close your eyes. Use the same eye state for baseline and stimulation, or the change may come from the eyes, not the entrainment.
| Channel | Last value (µV) | Std dev, 1 s (µV) |
|---|
Power in 1 Hz bins (e.g. 10 Hz = 9.5–10.5 Hz), from the last 4 s, average of channels with good contact. White line = baseline. % = change vs. baseline.
–
Now
Over time · where is the peak? (share of 5–40 Hz power)
Plays a sine tone on this computer's audio output (headphone / aux jack → amplifier → vibrator), like the Chladni Tuner. The tone depends on which EEG frequency stands out: 10 Hz → 69.3 Hz, 8–9 Hz → 849 Hz, 6–7 Hz → 1483 Hz, nothing detected → 10 Hz. “Detected” = peak ratio (power at the frequency ÷ average of the other 5–15 Hz bins) ≥ threshold for 1.5 s; it ends when the ratio stays below 80% of the threshold for 1.5 s. If two buckets are detected, the current tone stays. Start with a low volume: the vibrator is rated max 1 A. While recording, each switch is saved as a marker.