arXiv:2610.09792cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09792

A Proof-of-Concept Study of Weakly Supervised Labeling of Fine-Grained EEG Components for Artifact Attenuation

Lu Wang-Nöth, Hai Huang, Philipp Heiler, Shuqiong Wu, Liyun Zhang, Helmut Mayer

Lu Wang-Nöth 1^{1}[0009-0002-7443-121X], Hai Huang 1^{1}[0000-0001-8745-8142], Philipp Heiler 2^{2}, Shuqiong Wu 3^{3}[0000-0003-1501-9719], Liyun Zhang 4^{4}[0000-0003-3174-6588], and Helmut Mayer 1^{1}[0000-0002-9439-2695]

1^{1} Institute for Applied Computer Science,

University of the Bundeswehr Munich, Munich, Germany

lu.wang-noeth@protonmail.com

2^{2} brainboost GmbH, Munich, Germany

3^{3} Graduate School of Engineering Science, The University of Osaka, Osaka, Japan

4^{4} Graduate School of Frontier Sciences, The University of Tokyo, Tokyo, Japan

Abstract. Electroencephalography (EEG) is highly susceptible to electromyographic (EMG) artifacts, whose temporal heterogeneity and spatial-spectral overlap with neural activity can leave mixed sources after blind source separation. Existing artifact-removal methods are further limited by scarce reliable component-level ground truth: expert annotations are costly and subjective, while no established method provides realistic simulation-based ground truth for EMG contamination in multichannel scalp EEG. To address these limitations, we propose a framework combining a frequency-aware high-dimensional representation with Multi-Instance Learning. The representation unfolds separated components into frequency-resolved intra-components, creating a space in which mixed neural and muscular activity becomes more separable, while the weakly supervised learning formulation enables artifact-likelihood scores for individual intra-components to be learned from epoch-level labels without finer-grained ground truth. The resulting intra-component classifier supports fine-grained EMG artifact detection and score-guided attenuation. Experiments on held-out subjects show that the framework learns informative intra-component scores and reduces artifact-related spectral deviations most clearly for jaw tension, with moderate effects for raising eyebrows and limited effects for frowning.

Keywords: Electroencephalography · Blind source separation · Fine-grained components · Weak supervision

1 Introduction

Electroencephalography (EEG) measures neural activity with high temporal resolution and is widely used in cognitive neuroscience, clinical research, and brain-computer interfaces (BCIs). However, EEG recordings are highly susceptible

L. Wang-Nöth et al.

to non-neural artifact contamination. Among these artifacts, electromyographic (EMG) activity is particularly challenging because muscle activity is often broadband, transient, spatially heterogeneous, and partially overlapping with neural activity in both frequency and sensor space [6,15]. Consequently, EMG artifacts can distort spectral estimates and compromise downstream analyses, including neural decoding, biomarker discovery, and task-related spectral interpretation.

Independent component analysis (ICA) is one of the most widely used approaches for EEG artifact correction [4,13]. ICA decomposes multichannel EEG into statistically independent components, after which artifact-related components can be rejected manually or automatically. Several automated approaches have been proposed, including rule-based and learned classifiers for independent components [16,21]. Despite these advances, ICA-based cleaning remains limited when neural and muscular activity are not cleanly separated into distinct components, particularly in low-density EEG settings (<32 channels) [1,12]. In such cases, rejecting an entire component may remove useful neural information, whereas retaining it may leave residual EMG contamination. Beyond ICA, EEG artifact correction has also been addressed using regression, wavelet denoising, subspace reconstruction, and hybrid approaches [2,8,10,14,17]. Regression-based methods can be effective when appropriate reference channels are available, but they depend on assumptions about the relationship between reference channels and contaminated EEG. Wavelet-based and ICA-wavelet methods can attenuate transient artifacts, but their performance depends on the choice of wavelet basis, thresholding strategy, and component-selection criteria. Artifact subspace reconstruction and related subspace methods can suppress large-amplitude non-stationary artifacts, but their behavior depends on calibration data and rejection thresholds. These methods are valuable for EEG preprocessing, yet they typically make correction decisions at the level of channels, time windows, or entire components. These operating scales can be too coarse when neural and muscular activity coexist within the same unit. This motivates artifact correction at a finer level.

A second major challenge is the lack of reliable component-level ground truth. Prior work has often relied on expert annotations, which require substantial manual effort and introduce subjective bias. Moreover, recent studies suggest that artifact correction and rejection do not always improve downstream EEG analyses and may even reduce decoding performance when removed artifacts covary with the experimental condition or when neural signal is removed together with artifacts [3,11]. Synthetic data could provide theoretical ground truth, but it may not capture the spatial, spectral, and anatomical variability present in realistic recording conditions [10,17]. This limitation is especially relevant for EMG contamination, whose spatial distribution across electrodes depends on muscle source, head anatomy, electrode montage, and task context. Moreover, to our knowledge, no established method currently provides validated, realistic simulations of how EMG artifacts appear in multi-channel EEG. Such a simulation would prescribe source structures and spatial distributions which should be inferred from real recordings.

To address these limitations, we combine the frequency-aware high-dimensional representation proposed in [19] with weakly supervised Multi-Instance Learning (MIL) [5]. MIL is a weakly supervised framework in which labels are provided for bags of instances rather than for individual instances. In the classical binary formulation, a positive bag contains at least one positive instance, whereas a negative bag contains none, enabling instance-level scores to be learned from bag-level supervision. Instead of treating each source-separated component as an indivisible unit, the high-dimensional representation unfolds each component along the frequency dimension into frequency-resolved intra-components. This design is motivated by the observation that neural and muscular activity that remains mixed at the component level may become more separable when represented at the intra-component level. Whereas [19] introduced the frequency-aware representation, the present work uses this representation as the instance space for weakly supervised EMG artifact learning and evaluates whether the resulting intra-component scores can guide fine-grained artifact attenuation. We formulate artifact detection in this representation as a weakly supervised MIL problem. Each EEG epoch, defined as a short EEG segment, is treated as a bag, and the frequency-resolved intra-components derived from that epoch are treated as instances. The model is trained using only epoch-level labels: resting eyes-open (EO) and eyes-closed (EC) epochs are treated as putatively clean examples, whereas epochs containing instructed jaw tension, raising eyebrows, or frowning are treated as artifact-contaminated examples. Because these weak labels are defined by experimental condition, the model could in principle learn condition-specific neural or behavioral differences rather than EMG contamination alone. We reduce potential subject-specific confounding through subject-wise splits and address this limitation in the interpretation of the learned scores, using reconstruction-based spectral validation rather than treating them as definitive artifact labels. By learning to predict epoch-level contamination from bags of intra-components, the shared encoder and score head can subsequently be reused to assign scores to individual intra-components without requiring component-level or intra-component-level annotations. Under this weak-supervision formulation, the model is encouraged to assign high scores to intra-components that are predictive of artifact-contaminated epochs. These scores should be interpreted as artifact-likelihood scores rather than verified annotations.

Rather than as a benchmark against conventional epoch-level classifiers, epoch-level performance serves primarily to support the central objective of this work: learning interpretable intra-component artifact-likelihood scores from weak supervision for fine-grained artifact removal. Previous studies for artifact removal differ concerning datasets, channel montages, artifact definitions, and reference. Available benchmarks address narrower settings, including artifact-segment detection [9], component classification [16], and single-channel semi-synthetic denoising [22]. To our knowledge, none pairs realistic multi-channel EEG–EMG mixtures with clean references under a matching protocol. Therefore, the present study does not demonstrate superiority over existing artifact-

L. Wang-Nöth et al.

removal methods; rather, it should be viewed as a proof of concept for weakly supervised intra-component artifact-likelihood learning.

The main contributions of this work are as follows:

– We formulate EMG artifact detection as a weakly supervised MIL problem in which EEG epochs serve as bags and frequency-resolved intra-components serve as instances.

– We show that epoch-level supervision can induce intra-component artifact-likelihood scores without relying on costly and subjective fine-grained annotations or currently unavailable realistic simulation-based ground truth.

– We evaluate whether score-guided attenuation of high-scoring intra-components reduces artifact-related spectral deviations, with the clearest effects observed for jaw tension, moderate effects for raising eyebrows and limited effects for frowning.

References (22)