Task-aware conditional diffusion model for EMG artifact removal in single-channel EEG
OBJECTIVE: Electroencephalography (EEG) is highly susceptible to electromyography (EMG) artifacts, which can obscure task-relevant neural oscillations and degrade downstream analysis. Existing denoising methods usually treat EEG as task-agnostic signals and may attenuate physiologically meaningful rhythms during artifact removal. This study aims to develop a task-aware single-channel EEG denoising framework that suppresses EMG artifacts while preserving task-dependent neural oscillatory characteristics. APPROACH: We propose TaskEEGDiT, a task-conditioned diffusion framework for EMG artifact removal. The model introduces task-wise spectral prototypes as conditioning signals to guide denoising toward task-relevant spectral distributions, while the noisy EEG is used as a sample-specific reference to constrain the reverse diffusion process and enable deterministic reconstruction. TimeMixer is adopted as the noise prediction backbone to capture non-stationary temporal dynamics and multi-scale dependencies. A multi-constraint joint loss further combines denoising diffusion probabilistic model (DDPM) noise prediction, encoder-based temporal content preservation, and power spectral density (PSD)-based spectral style alignment. MAIN RESULTS: Experiments on motor imagery EEG and sleep EEG datasets show that TaskEEGDiT outperforms tuned baseline models and a task-conditioned DSATCN variant across correlation coefficient, signal-to-noise ratio, spectral-domain relative root mean square error, and time-domain relative root mean square error. TaskEEGDiT achieves SNRs of 13.841 dB and 15.781 dB on the motor imagery and sleep EEG datasets, respectively, improving over DSATCN (task-conditioned) by 2.177 dB and 2.433 dB. Additional analyses across signal-to-noise ratio (SNR) levels, task conditions, and sleep EEG subjects support robustness, while real-recording results provide preliminary evidence of applicability. With 10-step Denoising Diffusion Implicit Models (DDIM) accelerated sampling, inference time is reduced to 345.684 ms per 2-s EEG segment. SIGNIFICANCE: TaskEEGDiT demonstrates that task-wise spectral prototype conditioned diffusion modeling can improve EMG artifact removal while limiting alterations to task-relevant EEG spectral characteristics, supporting faster-than-real-time EEG denoising for online brain-computer interface and neurophysiological monitoring scenarios.
Authors
- Li-Cheng Jin (ORCID: https://orcid.org/0000-0003-4128-4743)
- Wenqiang Li (ORCID: https://orcid.org/0009-0001-9397-4108)
- Bo Wang (ORCID: https://orcid.org/0000-0002-5474-860X)
- Qing‐Hao Meng (ORCID: https://orcid.org/0000-0002-9915-7088)
- Rong-Xing Wei
Institutions
- Tianjin University (CN)
Publication Details
- Journal
- Journal of Neural Engineering
- Published
- 2026-11-25
- DOI
- https://doi.org/10.1088/1741-2552/aec6dc
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Key Research and Development Program of Jiangxi Province