Task-aware conditional diffusion model for EMG artifact removal in single-channel EEG
Wenqiang Li, Li-Cheng Jin, Bo Wang, Rong-Xing Wei, Qing-Hao Meng
Key points
From the paper's conclusion- We propose TaskEEGDiT, a task-conditioned diffusion framework for EMG artifact removal.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Residual Attention-Based Algorithm for EEG Artifact RemovalEngineering Research Express · 2026
- Diff-ADN: A diffusion-guided artifact denoising network with deterministic residual refinement for EEG.Journal of neural engineering · 2026
- A statistical mixture-of-experts framework for EMG artifact removal in EEG: Empirical insights and a proof-of-concept application.Journal of neural engineering · 2026
- Physiological Artifact Suppression in EEG Signals Using an Efficient Multi-Scale Depth-Wise Separable Convolution and Variational Attention Deep Learning Model for Improved Neurological Health Signal QualityTechnologies · 2025
- A Proof-of-Concept Study of Weakly Supervised Labeling of Fine-Grained EEG Components for Artifact AttenuationarXiv · 2026
- ICA-S3M: switching state-space model guided automatic EEG artifact removal from independent componentsFrontiers in Neuroscience · 2026