Interpretable EEG Microstates: Improving Modified K-Means Temporal Dynamics with a Recurrent, Person-Specific Variational Deep Embedding

Saheed Faremi, Andrea Visentin, Luca LongoarXiv 2026

TL;DR

Brain electrical activity blinks through stable, split-second patterns called "microstates," which researchers traditionally classify using a rigid clustering algorithm that spits out a flat sequence of labels—throwing away all the rich geometry in between. By using a generative deep learning model (Conv-VADE) instead, the authors show we can match the accuracy of classical methods while unlocking a continuous, explorable "map" of brain states. Most surprisingly, they discover that the true temporal rhythm of the brain hides inside this continuous latent trajectory, getting almost completely erased the moment we discretize it into standard labels.

What Problem Does This Paper Address?

Imagine listening to a symphony, except your headphones only output the name of the loudest chord every tenth of a second: C-major, C-major, G-minor. That is roughly how neuroscientists have analyzed Electroencephalographic (EEG) microstates for decades.

Microstates are brief, 60-to-120-millisecond periods where the electric field across your scalp settles into a quasi-stable pattern—often called the "atoms of thought." The standard tool for finding them is Modified K-Means, a geometric clustering algorithm that looks at snapshots of peak brain activity and assigns each moment a discrete hard label (e.g., State A, B, C, or D).

While reliable, Modified K-Means is a dead end for deeper inspection. It gives you a label and an average scalp map, with no continuous space between states, no measure of uncertainty, and no ability to generate new, realistic brain maps. Generative deep learning models can build rich, continuous latent spaces, but nobody knew if they would preserve the delicate temporal dynamics of brain activity—or how to interpret their internal dimensions when resting-state EEG has no "ground-truth" labels to check against.

Methods

To replace rigid clustering with a fluid, inspectable representation, the authors adapt a Convolutional Variational Deep Embedding (Conv-VADE) model, evaluated across cluster counts from $K = 3$ to $20$.

Figure 1: Convolutional VADE architecture for generative EEG microstate segmentation. GFP- peak topographic maps (40 × 40, interpolated from 56–61 channels) pass through four stride-2 convolutions to a 32-dimensional latent space (µ, log σ2).
  1. Image-based Generative Clustering: Peaks in Global Field Power (GFP—essentially instants of highest signal-to-noise across scalp electrodes) are interpolated into $40 \times 40$ 2D topographic images. A convolutional encoder compresses these into a 32-dimensional continuous latent space governed by a Gaussian-mixture prior, clustering the brain states jointly while learning to reconstruct them. Crucially, the loss function includes a custom penalty to enforce polarity invariance (since oscillating brain waves flip positive/negative poles without changing the underlying spatial network).
  2. Fair Back-Fitting: To compare apples to apples with Modified K-Means, the authors decode the learned cluster centers back into sensor space and map them onto the continuous EEG recording using the exact same smoothing routines as the classical baseline.
  3. Factor-Free Interpretability & Five-Axis RQA: Because resting-state brain data lacks ground-truth labels (like "object size" or "rotation" in computer vision), standard disentanglement metrics fail. Instead, the authors inspect active capacity (how many of the 32 dimensions actually do work), latent traversals (smoothly sliding along one dimension to watch scalp maps morph), and Recurrence Quantification Analysis (RQA). RQA measures determinism (DET)—how often a trajectory repeats ordered patterns rather than random noise—across five views of the data, ranging from stripped-down label jumps to the full 32D latent path.

Datasets

The models are trained and evaluated on preprocessed, eyes-closed resting-state EEG recordings from 203 participants in the open-access LEMON dataset (Leipzig Study for Mind-Body-Emotion Interactions), recorded across 56–61 scalp channels. No new benchmark datasets are introduced.

Key Insights and Ideas

  • Discretization Destroys Temporal Structure: If you look at a standard sequence of microstate labels, it looks nearly 100% deterministic. However, once you strip out "dwell time" (the tendency of a state to simply stick around for several frames), the transitions between states drop to near-randomness. Yet inside Conv-VADE's continuous 32D latent trajectory, strong, genuine deterministic patterns persist across every single subject. Hard labels throw away the brain's subtle transitional choreography; the continuous latent space keeps it.
Figure 2: Determinism across representations; labels show surrogate z-scores (cf. Table 1).
  • Broadband EEG is Secretly an Alpha-Wave Average: By filtering the data into classic frequency bands, the authors show that alpha waves (8–13 Hz) explain the most variance and linger the longest (145 ms), while beta waves (13–30 Hz) zip by in 104 ms. Standard broadband microstate stats are heavily skewed by alpha power—meaning two studies could report different microstate durations simply because one group of participants was slightly drowsier.
  • No Latent Collapse: Deep variational models are notorious for ignoring most of their latent dimensions. Here, Conv-VADE actively uses ~31 out of 32 dimensions, scaling gracefully as $K$ increases and producing smooth, realistic scalp-map deformations when traversed.

Key Results

  • Map & Variance Parity: Conv-VADE recovers essentially the same canonical scalp templates as Modified K-Means (spatial correlation $|r| = 0.831$). After a one-step correction for 2D grid-to-sensor interpolation blur, Global Explained Variance (GEV) nearly matches the geometric optimum (0.801 vs. 0.821).
  • Richer Transition Syntax: On dwell-stripped state jumps, Conv-VADE captures significantly more structured transitions than Modified K-Means (DET = 0.341 vs. 0.267, Cohen's $d = 2.66$, higher in all 203 subjects) while maintaining strong long-range temporal memory (Hurst exponent $H = 0.833$).
  • Massive Latent Recurrence: The 32D latent trajectory exhibits a determinism of 0.700 with a massive surrogate $z$-score of 23.88 above phase-randomized noise ($z > 2$ in 100% of subjects), proving the internal representation captures deep temporal dynamics.
Figure 3: (a) Active dimensions versus K; (b) band GEV (bars) and dwell duration (line).

Limitations and Future Work

The authors note three clear boundaries to their findings:

  1. Smoothing Biases: Post-fit label assignment relies on standard Pascual-Marqui temporal smoothing, which artificially inflates state durations compared to raw, unsmoothed assignments.
  2. Model vs. Biology: High recurrence in the 32D latent space proves the model organizes trajectories deterministically, not necessarily that it maps one-to-one onto a specific neural circuit.
  3. Unnamed Dimensions: Knowing 30.6 dimensions are active doesn't tell us what they mean biologically.

Future work will aim to map specific latent axes to concrete physiological features (like anterior-posterior brain gradients or band power), audit how smoothing affects transition statistics, and test the framework on external datasets.

Summary updated

BibTeX
@misc{faremi2026interpretable,
  author = {Saheed Faremi and Andrea Visentin and Luca Longo},
  title = {{Interpretable EEG Microstates: Improving Modified K-Means Temporal Dynamics with a Recurrent, Person-Specific Variational Deep Embedding}},
  year = {2026},
  eprint = {2611.38379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38379},
}
Figure