Parametric removal of hardware-induced square-like artifacts in EEG signals
Although Electroencephalography (EEG) is widely used in clinical and research settings, its practical utility is often limited by a low signal-to-noise ratio (SNR) alongside physiological and non-physiological artifacts. While most studies focus on biological contamination, this work addresses the complementary problem of EEG recordings corrupted by externally induced hardware artifacts. We propose a non-destructive parametric framework that successfully removes a low-frequency square-wave artifact introduced during acquisition, where conventional Blind Source Separation (BSS) and spatial filtering fail. Artifact parameters are estimated via a hybrid global-local optimization combining Particle Swarm Optimization (PSO) and Pattern Search (PS). After subtraction, residual transition outliers are detected via Median Absolute Deviation (MAD) and gradient criteria, and are corrected using a bidirectional Autoregressive (AR) cross-fading method fitted to adjacent clean data. The pipeline was validated on a cohort of 33 natively contaminated subjects alongside a controlled semi-synthetic benchmark of 4 clean EEG recordings subjected to artificial artifact injection. Quantitative evaluations confirm the method’s effectiveness, achieving an average 23– 26 dB attenuation of harmonics, a 12– 14 dB net spectral SNR improvement, and an 89– 93 % reduction in artificial inter-channel spectral coherence. Crucially, ground-truth validation demonstrates near-perfect time-domain waveform recovery (Pearson’s r > 0.93 on average) and negligible topographical distortion ( Δ Topo ≈ 0 μ V 2 / Hz ), while modifying less than 2 % of cortical temporal samples. These results position the proposed methodology as a robust, non-destructive alternative to blanket data rejection, enabling the recovery of heavily contaminated EEG recordings for downstream neurophysiological analysis.
Authors
- Ana Maria Barbancho (ORCID: https://orcid.org/0000-0002-3283-5905)
- Isabel Barbancho (ORCID: https://orcid.org/0000-0001-7002-9106)
- Lorenzo J. Tardón (ORCID: https://orcid.org/0000-0002-5441-225X)
- Sergio Guillén (ORCID: https://orcid.org/0000-0002-0676-8446)
Institutions
- Universidad de Málaga (ES)
Publication Details
- Journal
- Computers in Biology and Medicine
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1016/j.compbiomed.2026.112107
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00