Initialize NeuroAnalyzer
using NeuroAnalyzer
eeg = load("files/eeg.hdf")using NeuroAnalyzer
eeg = load("files/eeg.hdf")EEG electrode pops refer to sudden, transient voltage spikes or pops that appear in EEG recordings. These artifacts are typically caused by loose or poor electrode connections, sudden movements, or skin-electrode impedance changes. They can distort the signal and interfere with analysis.
Identifying Electrode Pops
Causes
Detection Methods
Correction/Removal Strategies
Best Practices
Automated repair:
remove_pops(eeg;
ch = "Fp1")Do not repair, just detect:
remove_pops(eeg;
ch = "Fp1",
repair = false)Use 2-second window:
remove_pops(eeg;
ch = "Fp1",
window = 2.0)Use 10-sample detection segments:
remove_pops(eeg;
ch = "Fp1",
r = 10)remove_pops() and remove_pops!() must be applied to a continuous (non-epoched signal).
Tip: It is recommended do demean (remove_dc()) the signal prior to removing pops.
Both remove_pops() and remove_pops!() return the list of detected pops:
eeg_clean, pl, ls, rs = remove_pops(eeg;
ch = "eeg")pl contains the indices of detected pops, with a shape of (channel, sample number).
ls and rs define the lengths of segments—before and after each pop—that start at zero-crossings.
Repairs are applied within these defined segments.