Skip to content
AI.info

Research

EEG-D3: A Solution to the Hidden Overfitting Problem of Deep Learning Models

Overview Research area: Deep learning for electroencephalography (EEG) decoding and brain-computer interfaces (BCI), with emphasis on weakly supervised representation learning, non-linear independent

EEG-D3: A Solution to the Hidden Overfitting Problem of Deep Learning Models
arXiv
2512.13806
Published
2025-12-15
Authors
Siegfried Ludwig, Stylianos Bakas, Konstantinos Barmpas, Georgios Zoumpourlis, Dimitrios A. Adamos, Nikolaos Laskaris, Yannis Panagakis, Stefanos Zafeiriou

AI summary

Overview

  • Research area: Deep learning for electroencephalography (EEG) decoding and brain-computer interfaces (BCI), with emphasis on weakly supervised representation learning, non-linear independent component analysis, interpretability, and generalisation.
  • Technical level: Advanced. The paper assumes familiarity with convolutions, contrastive/self-supervised learning, ICA, and EEG signal processing.
  • Scope: The paper introduces EEG-D3 (Disentangled Decoding Decomposition), a weakly supervised pre-training method that splits EEG into independent latent components so downstream classifiers can use genuine brain activity and avoid learning spurious, task-correlated artefacts.

What This Paper Is About

Deep learning models for decoding brain activity report high accuracy on controlled BCI benchmarks, yet they rarely transfer to clinical or consumer use. The authors argue this gap is a hidden overfitting problem: signal artefacts such as eye blinks — and even genuine brain responses like cue-evoked potentials that are correlated with the task but not caused by it — are class-discriminative and get learned as shortcuts. The goal is a method that automatically disentangles EEG into separate latent components, so a classifier can be built only from the components that reflect the intended task.

Key Contributions

  1. An interpretable architecture with fully independent sub-networks. Each latent component is its own sub-network implemented with grouped convolutions, so no information flows between components and each component has its own temporal and spatial filters that can be directly inspected.
  2. A weakly supervised representation learning method for disentangling latent brain dynamics. Rather than predicting class labels, the model predicts which time bin of the trial sequence an input window came from, using trial timing as a form of weak supervision. A shared feature extractor with dataset-specific sequence mappings allows pre-training across heterogeneous datasets.
  3. Latent components of brain activity derived for motor imagery BCIs. The method separates components corresponding to event-related synchronisation (ERS), event-related desynchronisation (ERD), event-related potentials (ERPs), and eye-blink artefacts, which are then characterised through filter analysis and timecourse plots.
  4. Effective few-shot learning on sleep stage classification. The linearly separable latent space produced by pre-training is exploited to learn sleep staging from minimal labelled data.

Main Findings

  • Artefact removal can be undone by deep learning. A simple two-layer convolutional model (8 hidden channels, kernel size 161, padding 80) trained on Fpz electrode data from the HGD dataset for 1000 steps with AdamW (learning rate 0.0003, weight decay 0.001) learned to undo an 8-40 Hz bandpass filter and reconstruct a 0.5-45 Hz signal with MSE loss. On eye-blink trials from unseen test subjects, it recovered most of the artefact, showing that filtering alone does not protect against hidden overfitting.
  • Reliable component separation on motor data. The trained model separated four components over subject-independent folds: a component reflecting reduced eye blinking during the action phase with aligned blinks after trial end (component λ1), a cue-evoked ERP (component λ2), and the ERD (component λ3) and ERS (component λ4) responses. The ERD and ERS appeared during motor execution and to a lesser extent during motor imagery, and did not appear on control trials or eye-blink trials.
  • A six-parameter downstream classifier prevents hidden overfitting. After discarding the sequence mappings and freezing the rest of the model, the authors selected only the ERD and ERS components and trained a binary linear model on the frozen components with only six parameters, including two output biases. Benchmarks (EEGNet and EEGConformer) showed strong hidden overfitting: large gaps between validation accuracy and accuracy on the out-of-distribution control trials of HGD, with paired t-tests reported between training/validation, validation/control, and between control performance of different models (significance marked at p<0.05, p<0.01, p<0.001). The exact numeric accuracy values are shown in the paper's figures but are not reproduced in the text available here.
  • Timecourse consistency as a quantitative diagnostic. The authors defined timecourse consistency (TC) as the average concordance correlation coefficient between a component's responses across pairs of trials of the same subject and setting. A score of 0 means no correlation across trials; 1 means the component behaves identically across trials. The CCC was chosen over Pearson correlation because it accounts for shifts in the prediction distribution across trials.
  • Minimal labelled data suffices downstream. The pre-training uses no explicit class labels, and the authors report that the method generalises well while requiring only minimal labelled data, including a demonstration of few-shot learning on sleep stage classification.

Methodology in Plain English

The authors treat each EEG trial as a sequence in time. Instead of asking the model "which class is this?", they ask "which part of the trial did this input window come from?" The trial is divided into a fixed number of equally spaced time bins (16 in the experiments), and the model must predict the bin. Because different parts of a trial contain different mixes of brain activity — a cue response, a motor response, an eye-blink pattern — the model has to pull those patterns apart to solve the task.

The architecture enforces this separation structurally. The input (28 electrodes, windows of 1.5 seconds) is passed through trainable generalised Gaussian temporal filters, one per latent component, applied after an FFT. Each component then has its own linear spatial filters, and the model uses grouped convolutions so that components never share information. After further depthwise separable convolution blocks, average pooling, and a pointwise convolution, each component is reduced to a single scalar. The model was trained with 16 latent components, initialised with Gaussian filters centred at 24 Hz with 48 Hz bandwidth, for 100 epochs using AdamW with batch size 32, learning rate 0.001, and weight decay 0.01, on five subject-independent cross-validation folds.

Since different datasets have different trial structures, the model uses one shared feature extractor plus a separate trainable mapping matrix per dataset. These mappings are constrained by a custom Mixed Gaussian Unit activation and a semi-normalisation step, and are discarded after pre-training. The resulting latent space is then inspected: frequency responses of temporal filters, topoplots of spatial filters, and sliding-window "timecourse" plots over trials. For downstream use, the authors manually select the components they identify as ERD and ERS and train a simple linear classifier on the frozen features.

Four motor datasets were combined: HighGamma (HGD, 14 subjects, finger tapping, with control trials), MMIDB from PhysioNet (109 subjects, hand opening/closing, with subjects 88, 89, 92, 100, 104 and 106 dropped), GIST MI (52 subjects, thumb-to-finger touching), and MIVR (26 subjects, motor imagery in virtual reality). Preprocessing included notch filters at 50 Hz and 60 Hz, a 3rd-order zero-phase Butterworth bandpass at 0.05-79.5 Hz, downsampling to 160 Hz, and the 28 electrodes common to all four datasets.

Why This Matters

Impact on research. The paper reframes the EEG deep learning evaluation problem: the issue is not only metric performance on supervised benchmarks, but which parts of the signal a model uses to achieve it. It offers the neuroscience community a tool to isolate individual brain processes, and it argues that reported results in EEG deep learning may be inflated by artefact-driven shortcuts.

Real-world applications.

  • Brain-computer interfaces for patients with neuromuscular impairments, where self-paced real-world movement differs from controlled laboratory trials.
  • Sleep stage classification, where labelled data from trained clinicians is scarce and few-shot learning from minimal labels is valuable.
  • Consumer EEG and neurotechnology products, where recording conditions are far less controlled than in a lab.
  • Clinical diagnostics built on EEG, where models must generalise across subjects and recording setups.

Industry relevance. The method is designed to scale pre-training across heterogeneous datasets from different experimental designs, a practical requirement for companies that accumulate EEG data across studies and devices. All authors are affiliated with Cogitat Ltd. in addition to their academic institutions, and the interpretability of independently attributable filters fits regulatory and trust requirements for medical and consumer applications.

Future Directions

  • Applying the component interpretation paradigm more broadly to contrast activation profiles across additional datasets and to inspect temporal and spatial filters on tasks beyond motor imagery and sleep.
  • Using the method to uncover brain dynamics that are not yet known, as the authors suggest the tool could reveal "heretofore unknown dynamics" rather than only separating recognised components such as ERD, ERS and ERPs.
  • Scaling pre-training further across heterogeneous datasets, given that the shared bottleneck forces component reuse and is argued to improve separation and generalisation.
  • Determining whether more systematic, automated component selection can replace the manual selection of the ERD and ERS components used for downstream classification.

Target Audience

Researchers and practitioners in EEG decoding, brain-computer interfacing, and applied deep learning who care about generalisation beyond benchmark accuracy; neuroscientists interested in separating individual brain processes from EEG recordings; and engineers building clinical or consumer neurotechnology where hidden overfitting on spurious artefacts has practical consequences.

Authors’ abstract

Deep learning for decoding EEG signals has gained traction, with many claims to state-of-the-art accuracy. However, despite the convincing benchmark performance, successful translation to real applications is limited. The frequent disconnect between performance on controlled BCI benchmarks and its lack of generalisation to practical settings indicates hidden overfitting problems. We introduce Disentangled Decoding Decomposition (D3), a weakly supervised method for training deep learning models across EEG datasets. By predicting the place in the respective trial sequence from which the input window was sampled, EEG-D3 separates latent components of brain activity, akin to non-linear ICA. We utilise a novel model architecture with fully independent sub-networks for strict interpretability. We outline a feature interpretation paradigm to contrast the component activation profiles on different datasets and inspect the associated temporal and spatial filters. The proposed method reliably separates latent components of brain activity on motor imagery data. Training downstream classifiers on an appropriate subset of these components prevents hidden overfitting caused by task-correlated artefacts, which severely affects end-to-end classifiers. We further exploit the linearly separable latent space for effective few-shot learning on sleep stage classification. The ability to distinguish genuine components of brain activity from spurious features results in models that avoid the hidden overfitting problem and generalise well to real-world applications, while requiring only minimal labelled data. With interest to the neuroscience community, the proposed method gives researchers a tool to separate individual brain processes and potentially even uncover heretofore unknown dynamics.

Read the original paper