Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Latent Space Robustness and Uncertainty of EEG-ML Models under Realistic Distribution Shifts

Neeraj Wagh, Jionghao Wei|ArXiv.org|Sep 22, 2022
EEG and Brain-Computer InterfacesNeuroscience4 citations
TL;DR

This paper proposes a multi-pronged framework to evaluate the real-world robustness of EEG machine learning models during development, using four instrumentation-inspired data shifts (band-pass filtering, quantization, narrowband, and broadband noise) to assess latent space integrity via Delaunay neighborhood graphs and predictive uncertainty using Monte Carlo dropout. The key contribution is demonstrating that these measures anticipate out-of-distribution performance degradation better than task accuracy alone, with fully-supervised encoders showing higher performance but lower robustness compared to self-supervised and traditional feature encoders.

ABSTRACT

The recent availability of large datasets in bio-medicine has inspired the development of representation learning methods for multiple healthcare applications. Despite advances in predictive performance, the clinical utility of such methods is limited when exposed to real-world data. This study develops model diagnostic measures to detect potential pitfalls before deployment without assuming access to external data. Specifically, we focus on modeling realistic data shifts in electrophysiological signals (EEGs) via data transforms and extend the conventional task-based evaluations with analyses of a) the model's latent space and b) predictive uncertainty under these transforms. We conduct experiments on multiple EEG feature encoders and two clinically relevant downstream tasks using publicly available large-scale clinical EEGs. Within this experimental setting, our results suggest that measures of latent space integrity and model uncertainty under the proposed data shifts may help anticipate performance degradation during deployment.

Motivation & Objective

  • To address the gap in evaluating EEG-ML model robustness under real-world data shifts prior to deployment, especially when external data is unavailable.
  • To develop domain-guided data transformations that reflect realistic instrumentation variability in EEG acquisition.
  • To evaluate model robustness through three complementary lenses: task performance, latent space topological integrity, and predictive uncertainty.
  • To demonstrate that these diagnostic measures can anticipate in-the-wild performance degradation more effectively than task accuracy alone.

Proposed method

  • Proposed four realistic EEG data shifts: (1) 1–25 Hz band-pass filtering, (2) reduced quantization precision, (3) narrowband impedance noise, and (4) broadband Gaussian noise.
  • Developed a topological measure of latent space integrity using Delaunay neighborhood graphs to detect structural changes under perturbations.
  • Applied Monte Carlo dropout to estimate predictive uncertainty, enabling uncertainty-aware model interpretation.
  • Evaluated three EEG feature encoders—fully-supervised (FSE), self-supervised (SSE), and power spectral density-based (PSDE)—across two downstream tasks: EEG grade classification and brain age regression.
  • Used two large-scale public EEG datasets (TUH and NMT) to validate the framework across diverse clinical data.
  • Correlated changes in latent space integrity and uncertainty with task performance under data shifts to identify robustness patterns.

Experimental results

Research questions

  • RQ1Can instrumentation-related data shifts realistically simulate real-world EEG variability and predict model failure in deployment?
  • RQ2How do different EEG feature encoders (FSE, SSE, PSDE) differ in their latent space integrity and predictive uncertainty under realistic data shifts?
  • RQ3To what extent do latent space integrity and predictive uncertainty correlate with out-of-distribution performance on held-out test sets?
  • RQ4Can measures of uncertainty and latent space structure serve as early indicators of model failure when ground truth is unavailable?

Key findings

  • The 1–25 Hz band-pass filter and strong broadband noise (σ=0.1) had the most pronounced negative effects on both latent space integrity and task performance, especially in brain age regression.
  • Fully-supervised encoders (FSE) achieved the highest absolute task performance but showed the least robustness under data shifts, with marginal increases in uncertainty and latent space disruption.
  • Self-supervised (SSE) and power spectral (PSDE) encoders exhibited more stable performance across shifts, suggesting better generalization despite lower absolute accuracy.
  • Latent space integrity, measured via Delaunay neighborhood graph topology, correlated strongly with out-of-distribution performance, indicating its value as a diagnostic tool.
  • Predictive uncertainty increased significantly only under the strongest broadband noise (σ=0.1), suggesting limited sensitivity to milder shifts, though it remained informative for failure detection.
  • The combination of latent space analysis and uncertainty quantification outperformed task accuracy alone in anticipating real-world performance degradation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.