Interpretable EEG Microstate Discovery via Variational Deep Embedding: A Systematic Architecture Search with Multi-Quadrant Evaluation
Summary
This paper presents Conv-VaDE, a variational deep embedding model for interpretable EEG microstate discovery that jointly learns topographic reconstruction and probabilistic soft clustering. It includes a systematic architecture search evaluated on resting-state EEG data to determine optimal model configurations for stability and interpretability.
View Cached Full Text
Cached at: 05/13/26, 06:22 AM
# Interpretable EEG Microstate Discovery via Variational Deep Embedding: A Systematic Architecture Search with Multi-Quadrant Evaluation
Source: [https://arxiv.org/html/2605.10947](https://arxiv.org/html/2605.10947)
\\copyrightclause
Copyright for this paper by its authors\. Use permitted under Creative Commons License Attribution 4\.0 International \(CC BY 4\.0\)\.\\conferenceLate\-breaking work, Demos and Doctoral Consortium, colocated with the 4th World Conference on eXplainable Artificial Intelligence: July 01–03, 2026, Fortaleza, Brazil
\[orcid=0009\-0007\-8428\-7019, email=126100912@umail\.ucc\.ie, \]\\cormark\[1\]\\fnmark\[1\]
\[orcid=0000\-0003\-3702\-4826, email=andrea\.visentin@ucc\.ie, \]\\fnmark\[1\]
\[orcid=0000\-0002\-2718\-5426, email=luca\.longo@ucc\.ie, \]\\fnmark\[1\]
\\cortext
\[1\]Corresponding author\.\\fntext\[1\]These authors contributed equally\.
Andrea VisentinLuca LongoSchool of Computer Science and Information Technology, University College Cork, Western Road, Cork, T12 XF62, IrelandArtificial Intelligence and Cognitive Load Research Lab, University College Cork, IrelandInsight RI Research Centre for Data Analytics, University College Cork, Ireland
\(2026\)
###### Abstract
EEG microstate analysis segments continuous brain electrical activity into brief, quasi\-stable topographic configurations that reflect discrete functional brain states\. Conventional approaches such as Modified K\-Means operate directly in electrode space with hard assignment, offering no learned latent representation, no generative decoder, and no mechanism to decode latent configurations into verifiable scalp topographies, limiting both model transparency and interpretability\. To address this, we present a Convolutional Variational Deep Embedding \(Conv\-VaDE\) model that jointly learns topographic reconstruction and probabilistic soft clustering in a shared latent space\. Conv\-VaDE enables generative decoding of cluster prototypes into verifiable scalp topographies, replacing opaque hard partitioning with probabilistic soft assignment\. A polarity invariance scheme and a four\-dimensional grid search over cluster count \(K∈\[3,20\]K\\in\[3,\\,20\]\), latent dimensionality, network depth, and channel width are conducted to systematically reveal how each architectural design choice shapes the quality, stability, and interpretability of learned EEG microstate representations\. The model is evaluated on the LEMON resting\-state eyes\-closed EEG dataset with ten participants using topographic template formation, clustering stability, and global explained variance \(GEV\)\. The architecture search reveals that depthL=4L\\\!=\\\!4appears consistently across all 18 best\-performing configurations, yielding a best\-case GEV of 0\.730 and a silhouette of 0\.229 atK=4K\\\!=\\\!4across the model sweeps, where moderately deep networks with compact channel widths and small latent dimensionality dominate across the fullKKrange\. These results establish that principled architecture search, rather than model scale, is the key to interpretable and stable EEG microstate discovery via variational deep embedding\.
###### keywords:
EEG microstates\\sepVariational autoencoder\\sepGaussian mixture model\\sepPolarity invariance\\sepHyperparameter sweep\\sepClustering validation\\sepMechanistic Interpretability
## 1Introduction
EEG microstates are brief, quasi\-stable spatial distributions of scalp electric potential, typically lasting 60–120 ms, that partition continuous brain activity into a sequence of discrete functional states\[MICHEL2018577,Lehmann:2009\]\. Lehmann and colleagues established that microstate temporal statistics, including mean duration, occurrence rate, transition probabilities, and fractional coverage, are sensitive biomarkers, with subsequent work linking them to cognitive processing and neuropsychiatric conditions such as schizophrenia and depression\[brechet2022eeg,murphy2020abnormalities,Lehmann:2009\]\.
Modified K\-Means \(ModKMeans\), the predominant clustering algorithm for microstate analysis, assigns each time point to the nearest microstate class based on spatial correlation, treating opposite\-sign maps as equivalent\. This hard assignment discards information about transitional or ambiguous regions where the scalp topography may genuinely reflect a mixture of two or more underlying microstates\. Furthermore, the convention of fixingK=4K\\\!=\\\!4microstates, while grounded in early group\-level findings, may not capture the full complexity of individual brain dynamics; the optimal cluster count is known to vary across datasets, recording conditions, and clinical populations\[MICHEL2018577\]\. Critically, ModKMeans operates directly in electrode space with no learned representation and no decoder, offering no mechanism to reconstruct or verify the cluster centres it discovers as scalp topographies\. Recent deep learning architectures applied to EEG microstates\[zhao2025identifying,sikka2020investigating,thukral2025convolutional\]address some of these shortcomings by learning nonlinear mappings that enable reconstruction of cluster centres as scalp topographies\. However, these approaches either rely on post\-hoc clustering of a frozen latent space or frame microstates as supervised classification, and the challenge of determining the optimal number of microstates remains unresolved\.
This gap motivates a generative approach that couples a learned decoder with a probabilistic clustering mechanism capturing assignment uncertainty\. Variational Deep Embedding \(VaDE\)\[jiang2017variational\]combines a variational autoencoder with a Gaussian mixture model prior to jointly learn structured representations and probabilistic cluster assignments\. The present study extends VaDE to EEG microstate analysis through a Convolutional Variational Deep Embedding \(Conv\-VaDE\) model and investigates how cluster count, latent dimensionality, network depth, and channel width affect the quality, stability, and interpretability of learned microstate templates in a systematic four\-dimensional grid search\.
## 2Related Work
Conventional microstate analysis\.Microstate analysis was formalised by Lehmann et al\.\[Lehmann:2009\]and systematised by Michel and Koenig\[MICHEL2018577\], who established the pipeline of bandpass filtering, Global Field Power \(GFP\) peak extraction, spatial clustering, and temporal label assignment that underpins contemporary microstate research\. Four canonical classes \(usually referred to as A–D\) were identified through large\-scale normative studies\[koenig1999deviant,KOENIG200241\]and remain the standard reference\. Modified K\-Means and Atomize and Agglomerate Hierarchical Clustering are the predominant clustering algorithms\[Poulsen289850\], both operating in electrode space with hard assignments, whereby each time point is assigned to exactly one microstate\. These methods achieve polarity invariance through their distance metric, typically the absolute spatial correlation, rather than through the representation itself; a scalp topography and its sign\-inverted counterpart are treated as representing the same microstate during assignment, meaning the algorithm handles polarity implicitly without explicitly encoding this invariance into the model\. Clustering quality is conventionally assessed via Global Explained Variance \(GEV\), which measures how well the assigned microstate templates account for the observed scalp topography\[MICHEL2018577\]\. The standard analysis pipeline applies Modified K\-Means \(ModKMeans\), which fits prototype scalp voltage distributions by clustering multichannel EEG voltage vectors sampled at GFP peaks, where spatial configurations are most stable\. The resulting microstate templates are then projected back onto the full continuous EEG recording, assigning every time point to its most correlated microstate map, thereby capturing the temporal extent of each microstate beyond the isolated GFP peak\. While four canonical microstate classes are widely reported in the literature, this number reflects an empirical convention rather than a constraint of the algorithm itself\[Poulsen289850,vonwegner2018eeg\]\.
Deep learning for EEG microstates\.Deep learning architectures have been explored across multiple aspects of EEG microstate research\. Thukral et al\.\[thukral2025convolutional\]trained a convolutional autoencoder on EEG topographic maps and clustered the latent space with ModKMeans, improving silhouette and Davies\-Bouldin scores over direct electrode\-space clustering\. Zhao et al\.\[zhao2025identifying\]framed microstate identification as supervised sequence\-to\-sequence classification, achieving 74\.26% accuracy\. Sikka et al\.\[sikka2020investigating\]developed an LSTM\-based autoencoder to capture complex temporal dependencies in EEG data, using the learned representations to model microstate transitions across the continuous recording\. These approaches rely on post\-hoc clustering procedures applied outside the network, and without a generative decoder, the internal representations cannot be reconstructed, leaving the discovered microstate templates as a black box\. Additionally, none of them enforces polarity invariance during training\. The absence of polarity invariance risks creating redundant clusters that split a single brain state along an irrelevant sign axis\.
Deep clustering and variational methods\.Deep clustering methods that jointly optimise representation learning and clustering within a single network offer a more coherent alternative to post\-hoc clustering, where representation learning and clustering are treated as separate tasks\. Deep Embedded Clustering \(DEC\)\[xie2016unsupervised\]jointly optimises representation learning and clustering but lacks a decoder, meaning it only optimises the clustering objective, leaving no room to visualise or inspect the scalp topographies\. Its improved variant, Improved Deep Embedded Clustering \(IDEC\)\[guo2017improved\], addresses this by adding a reconstruction loss and a decoder, but the decoder is deterministic rather than generative, preventing probabilistic assignment of EEG segments to microstate templates\. Variational Deep Embedding \(VaDE\)\[jiang2017variational\]addresses this by embedding a Gaussian Mixture Model \(GMM\) prior, a probabilistic model that assumes data is generated from a mixture ofKKGaussian distributions, into the VAE framework, optimising a mixture\-augmented evidence lower bound that trains encoder, decoder, and GMM parameters end\-to\-end\. This is distinct from two\-stage pipelines that cluster a frozen latent space post hoc, because the clustering objective shapes latent geometry during learning\. Simple, Scalable, and Stable Variational Deep Clustering \(S3VDC\) extended VaDE with interleaved Kullback\-Leibler divergence \(KL\) regularisation during pretraining to prevent posterior collapse, a failure mode where the approximate posterior ignores the latent code and the decoder generates from the prior alone\[fu2019cyclical,cao2020simple\]\. Fu et al\.\[fu2019cyclical\]showed that cyclical annealing of the KL weight mitigates this collapse by allowing the encoder to learn informative representations before the full KL penalty is applied\.
Explainability perspective\.From an explainability perspective, the distinction between intrinsic and post\-hoc methods is central to this work\[rudin2019stop\]\. Post\-hoc approaches such as LIME\[ribeiro2016should\], which explains individual predictions by fitting a simple interpretable model locally, and SHAP\[lundberg2017unified\], which assigns each input feature a contribution value based on cooperative game theory, explain an already\-trained model by approximating its decision boundary locally, but require a separate attribution step and do not guarantee faithfulness to the model’s internal reasoning\. Intrinsic explainability, by contrast, is built into the model architecture: the explanation is the model’s own output rather than an external approximation\. In the context of generative models, VAE decoders provide intrinsic explainability by mapping latent codes to data space\[9166477\]\. Systematic architecture evaluation complements this by revealing how design choices affect model behaviour, contributing to model transparency in the sense of Lipton’s taxonomy\[lipton2018mythos\]\.
## 3Methodology
This study adopts a secondary research approach, utilising the existing LEMON resting\-state EEG dataset to construct and empirically evaluate a novel Conv\-VAE\-GMM architecture\.111Code and sweep results are available at[https://github\.com/fayisode/microstate\-architecture\-search](https://github.com/fayisode/microstate-architecture-search)\.The hypothesis is: if a VaDE\-based Conv\-VaDE model with a GMM prior is trained on resting\-state EEG data and subjected to a systematic four\-dimensional architecture search over cluster count, latent dimensionality, network depth, and channel width, then moderately deep architectures with compact channel widths will consistently dominate the search space, yielding the most stable and interpretable microstate templates as evidenced by higher silhouette scores, lower Davies\-Bouldin indices, higher Calinski\-Harabasz indices, and higher GEV, while the generative decoder will enable direct reconstruction of each GMM component centre into a verifiable scalp topography\.
Figure 1:Conv\-VaDE processes EEG recordings into topographic maps and clusters them using a convolutional encoder with a GMM\-structured latent space, trained via a seven\-component objective and evaluated across multiple representation and distance metrics\.Data Understanding and Preparation\.The LEMON dataset\[babayan2019mind\]comprises eyes\-closed resting\-state EEG atfs=250f\_\{s\}\\\!=\\\!250Hz, 61 channels, 10–10 montage\. Ten participants were selected from the dataset\. A common average reference and zero\-phase FIR bandpass filter \(2–20 Hz\) preserves temporal alignment and prevents phase\-induced microstate boundary blurring\. GFP peaks are extracted via Pycrostates\[ferat2022pycrostates\]\(min\. inter\-peak distance: 3 samples\) and projected onto40×4040\\\!\\times\\\!40topographic images via azimuthal equidistant projection and cubic interpolation\[ahmed2022examining\]\. Z\-score normalisation with±5σ\\pm 5\\sigmaclipping is computed on the training split only:xnorm=clip\(\(x−x¯train\)/σtrain,−5,\+5\)x\_\{\\mathrm\{norm\}\}=\\mathrm\{clip\}\(\(x\-\\bar\{x\}\_\{\\mathrm\{train\}\}\)/\\sigma\_\{\\mathrm\{train\}\},\\,\-5,\\,\+5\)\. A 90/10 train/evaluation split maximises training data; the evaluation set is left unaugmented\.
Model Architecture\.The encoder maps𝐱∈ℝ1×40×40\\mathbf\{x\}\\\!\\in\\\!\\mathbb\{R\}^\{1\\times 40\\times 40\}through fourConv2dlayers \(ndf→2ndf→4ndf→8ndf\\texttt\{ndf\}\\\!\\to\\\!2\\texttt\{ndf\}\\\!\\to\\\!4\\texttt\{ndf\}\\\!\\to\\\!8\\texttt\{ndf\}\) with batch normalisation, LeakyReLU \(α=0\.2\\alpha\\\!=\\\!0\.2\), and dropout \(p=0\.2p\\\!=\\\!0\.2\), then adaptive average pooling and FC layers producing\(𝝁ϕ,log𝝈ϕ2\)∈ℝdz\(\\boldsymbol\{\\mu\}\_\{\\phi\},\\log\\boldsymbol\{\\sigma\}^\{2\}\_\{\\phi\}\)\\\!\\in\\\!\\mathbb\{R\}^\{d\_\{z\}\}via reparameterisation\[kingma2022autoencodingvariationalbayes\]\. The decoder mirrors this withConvTranspose2dand a linear final activation\. The GMM prior\[jiang2017variational\]p\(𝐳\)=∑k=1Kπk𝒩\(𝐳;𝝁k\(c\),diag\(𝝈k2\(c\)\)\)p\(\\mathbf\{z\}\)\\\!=\\\!\\sum\_\{k=1\}^\{K\}\\pi\_\{k\}\\mathcal\{N\}\(\\mathbf\{z\};\\boldsymbol\{\\mu\}\_\{k\}^\{\(c\)\},\\mathrm\{diag\}\(\\boldsymbol\{\\sigma\}\_\{k\}^\{2\(c\)\}\)\)is optimised end\-to\-end\. The search variesK∈\{3,…,20\}K\\\!\\in\\\!\\\{3,\\ldots,20\\\},dz∈\{16,32,64\}d\_\{z\}\\\!\\in\\\!\\\{16,32,64\\\}, depth∈\{2,3,4\}\\,\\in\\\!\\\{2,3,4\\\},ndf∈\{32,64,128\}\\texttt\{ndf\}\\\!\\in\\\!\\\{32,64,128\\\}, yielding 486 unique configurations evaluated across 10 subjects\.
Polarity Invariance and Training Objective\.Polarity invariance \(𝐱\\mathbf\{x\}and−𝐱\-\\mathbf\{x\}are the same state\) is enforced at three levels: \(1\) sign\-flip augmentation of the training set, with GMM initialisation on the unaugmented subset; \(2\) polarity\-invariant lossℒrecon=min\(MSE\(𝐱^,𝐱\),MSE\(𝐱^,−𝐱\)\)⋅Dx\\mathcal\{L\}\_\{\\mathrm\{recon\}\}\\\!=\\\!\\min\(\\mathrm\{MSE\}\(\\hat\{\\mathbf\{x\}\},\\mathbf\{x\}\),\\mathrm\{MSE\}\(\\hat\{\\mathbf\{x\}\},\-\\mathbf\{x\}\)\)\\cdot D\_\{x\},Dx=1600D\_\{x\}\\\!=\\\!1600; \(3\) encoder regularisationℒpol=MSE\(𝝁ϕ\(𝐱\),𝝁ϕ\(−𝐱\)\)\\mathcal\{L\}\_\{\\mathrm\{pol\}\}\\\!=\\\!\\mathrm\{MSE\}\(\\boldsymbol\{\\mu\}\_\{\\phi\}\(\\mathbf\{x\}\),\\boldsymbol\{\\mu\}\_\{\\phi\}\(\-\\mathbf\{x\}\)\),λpol=0\.1\\lambda\_\{\\mathrm\{pol\}\}\\\!=\\\!0\.1\. The total loss isℒ=ℒrecon\+βℒKL\+λeℒentropy\+λsℒsep\+λbℒbatch\+λtℒtight\+λpolℒpol\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{recon\}\}\+\\beta\\mathcal\{L\}\_\{\\mathrm\{KL\}\}\+\\lambda\_\{e\}\\mathcal\{L\}\_\{\\mathrm\{entropy\}\}\+\\lambda\_\{s\}\\mathcal\{L\}\_\{\\mathrm\{sep\}\}\+\\lambda\_\{b\}\\mathcal\{L\}\_\{\\mathrm\{batch\}\}\+\\lambda\_\{t\}\\mathcal\{L\}\_\{\\mathrm\{tight\}\}\+\\lambda\_\{\\mathrm\{pol\}\}\\mathcal\{L\}\_\{\\mathrm\{pol\}\}, whereℒentropy\\mathcal\{L\}\_\{\\mathrm\{entropy\}\}\(λe=0\.3/logK\\lambda\_\{e\}\\\!=\\\!0\.3/\\log K\) prevents weight collapse;ℒsep\\mathcal\{L\}\_\{\\mathrm\{sep\}\}\(λs=50\.0\\lambda\_\{s\}\\\!=\\\!50\.0\) penalises topographic redundancy via mean pairwise\|Pearsonr\|\|\\mathrm\{Pearson\}\\,r\|;ℒbatch\\mathcal\{L\}\_\{\\mathrm\{batch\}\}\(λb=5\.0\\lambda\_\{b\}\\\!=\\\!5\.0\) enforces uniform cluster usage;ℒtight\\mathcal\{L\}\_\{\\mathrm\{tight\}\}\(λt=0\.2\\lambda\_\{t\}\\\!=\\\!0\.2\) pulls samples toward assigned cluster priors\[cao2020simple\]\. Cyclicalβ\\beta\-annealing \(βmax=0\.1\\beta\_\{\\max\}\\\!=\\\!0\.1, 4 cycles\)\[fu2019cyclical\]modulates KL pressure; auxiliary losses are zeroed for 3 epochs then linearly ramped over 10\.
Training Procedure\.Pretraining runs 200 steps \(β=10−3\\beta\\\!=\\\!10^\{\-3\}, no auxiliary losses\), followed by GMM initialisation via bisecting K\-Means on unaugmented latent means \(flat forK≤4K\\\!\\leq\\\!4, iterative bisection forK\>4K\\\!\>\\\!4\), prior frozen for 5 epochs, dead clusters \(<1%<\\\!1\\%\) reinitialised from the largest surviving cluster\. Main training runs up to 100 epochs with dual Adam optimisers \(encoder/decoder:η=10−3\\eta\\\!=\\\!10^\{\-3\},λL2=10−5\\lambda\_\{L2\}\\\!=\\\!10^\{\-5\}; GMM:η=5×10−4\\eta\\\!=\\\!5\\\!\\times\\\!10^\{\-4\}\), gradient clipping at 5\.0 and 1\.0, and early stopping onS~⋅GEV\\sqrt\{\\tilde\{S\}\\cdot\\mathrm\{GEV\}\}\(S~=\(sil\+1\)/2\\tilde\{S\}\\\!=\\\!\(\\mathrm\{sil\}\+1\)/2\), with ReduceLROnPlateau \(patience=10=\\\!10\)\.
Evaluation\.Clustering quality is assessed in the latent space via Silhouette, Davies–Bouldin, Calinski–Harabasz, and Dunn indices\. Reconstruction quality is measured with MSE, SSIM \(range=10\.0=\\\!10\.0\), and spatial correlation\. Topographic fidelity is evaluated via GEV computed through backfitting:GEV=∑tGFP2\(t\)ρ2\(t\)/∑tGFP2\(t\)\\mathrm\{GEV\}\\\!=\\\!\\sum\_\{t\}\\mathrm\{GFP\}^\{2\}\(t\)\\rho^\{2\}\(t\)/\\sum\_\{t\}\\mathrm\{GFP\}^\{2\}\(t\)\. For eachKK, the best configuration is selected by the highest mean GEV averaged across all 10 subjects\.
## 4Results and Discussion
Table[1](https://arxiv.org/html/2605.10947#S4.T1)reports the best configuration perKKfrom the architecture sweep, selected by highest mean GEV across 10 subjects\. Figures[2](https://arxiv.org/html/2605.10947#S4.F2)and[3](https://arxiv.org/html/2605.10947#S4.F3)visualise Q1 clustering metric landscapes and architecture parameter effects across the sweep space\. Figures[4](https://arxiv.org/html/2605.10947#S4.F4)and[5](https://arxiv.org/html/2605.10947#S4.F5)demonstrate the explainability of Conv\-VaDE through decoded cluster centroids, latent space structure, temporal clustering, and cluster distribution analysis\. AtK=4K\\\!=\\\!4, the best architecture \(dz=16d\_\{z\}\\\!=\\\!16,L=4L\\\!=\\\!4,nf=32n\_\{f\}\\\!=\\\!32\) achieves a silhouette of0\.229±0\.0390\.229\\pm 0\.039and a Davies–Bouldin index of1\.28±0\.131\.28\\pm 0\.13, indicating well\-separated and compact clusters in the learned latent space, with a global explained variance of0\.730±0\.0720\.730\\pm 0\.072confirming strong topographic representational fidelity in electrode space\.
Table 1:Architecture sweep: best configuration perKKby GEV \(held\-out 10% split,n=10n\\\!=\\\!10subjects\)\. Q1 Sil = latent Euclidean silhouette\.KKdzd\_\{z\}DepthndfQ1 Sil↑\\uparrowGEV↑\\uparrow3164320\.2340\.7104164320\.2290\.7305164320\.1950\.7416164320\.1650\.7607164320\.1710\.7718164320\.1670\.7779324320\.1860\.78610164320\.1620\.79211164320\.1580\.798
KKdzd\_\{z\}DepthndfQ1 Sil↑\\uparrowGEV↑\\uparrow12644320\.1620\.80313164320\.1720\.80614324320\.1600\.81415164320\.1610\.81016164320\.1500\.81717644320\.1640\.81318164320\.1610\.81719164320\.1650\.81720164320\.1570\.821
\(a\)Silhouette
\(b\)Davies–Bouldin
\(c\)Calinski–Harabasz
\(d\)GEV
Figure 2:Q1 \(latent Euclidean\) clustering metric landscapes across theK×L×dzK\\times L\\times d\_\{z\}sweep space\. Each heatmap panel is faceted bydzd\_\{z\}, with rows showing depthLLand columns showing cluster countKK;nfn\_\{f\}is averaged\. Colour intensity encodes metric magnitude\.\(a\)Silhouette
\(b\)Davies–Bouldin
\(c\)Calinski–Harabasz
\(d\)GEV
Figure 3:Architecture parameter effects on Q1 \(latent Euclidean\) clustering metrics\. Each panel shows the marginal effect of one sweep dimension \(dzd\_\{z\},LL,nfn\_\{f\}\) on a given metric, aggregated across allKKvalues\.Explainability of Decoded Centroids\.The core explainability claim of Conv\-VaDE is that GMM cluster centres can be decoded into inspectable scalp topographies\. Figure[4](https://arxiv.org/html/2605.10947#S4.F4)shows the four decoded centroids atK=4K\\\!=\\\!4, each rendered as a circular scalp map in the original40×4040\\\!\\times\\\!40pixel grid\. The topographies reveal distinct spatial patterns consistent with known microstate classes: anterior\-posterior gradients and lateral asymmetries are clearly visible, confirming that the decoder has learned a meaningful mapping from latent cluster centres to physiologically plausible scalp distributions\.
Figure 4:Decoded GMM cluster centroids atK=4K\\\!=\\\!4\(dz=16d\_\{z\}\\\!=\\\!16,L=4L\\\!=\\\!4,nf=32n\_\{f\}\\\!=\\\!32, subject 010012\)\. Each panel shows the decoder output𝐱^k=gθ\(𝝁k\(c\)\)\\hat\{\\mathbf\{x\}\}\_\{k\}=g\_\{\\theta\}\(\\boldsymbol\{\\mu\}\_\{k\}^\{\(c\)\}\)for clusterkk, rendered as a circular scalp topography\. Colour encodes z\-scored amplitude \(RdBu\_r\)\.Figure[5](https://arxiv.org/html/2605.10947#S4.F5)provides further explainability evidence\. The centroid correlation matrix \([5\(a\)](https://arxiv.org/html/2605.10947#S4.F5.sf1)\) shows moderate\-to\-high absolute correlations \(\|r\|=0\.54\|r\|\\\!=\\\!0\.54–0\.920\.92\), indicating shared global topographic structure while signed differences capture polarity contrasts\. The PCA projection \([5\(b\)](https://arxiv.org/html/2605.10947#S4.F5.sf2)\) confirms that the GMM prior imposes separable cluster structure in the first two principal components\. The temporal clustering \([5\(c\)](https://arxiv.org/html/2605.10947#S4.F5.sf3)\) reveals characteristic rapid alternation between states consistent with the 60–120 ms durations reported in the literature\[MICHEL2018577\]\. The approximately balanced cluster distribution \([5\(d\)](https://arxiv.org/html/2605.10947#S4.F5.sf4)\) confirms that batch entropy regularisation prevents mode collapse\.
\(a\)Centroid correlation
\(b\)Latent PCA
\(c\)Segmentation
\(d\)Cluster distribution
Figure 5:Explainability analysis atK=4K\\\!=\\\!4\(subject 010012\)\. \(a\) Signed Pearson correlation between decoded centroids\. \(b\) PCA of the 16D latent space coloured by GMM assignment\. \(c\) GFP trace and microstate ribbon showing temporal clustering\. \(d\) Cluster sample counts and fractional coverage\.Discussion\.The multi\-quadrant framework reveals an asymmetry a single metric would obscure\. ModKMeans templates are native electrode vectors optimised for spatial correlation, giving a structural advantage on GEV\. Conv\-VaDE decoded centroids must transit from the40×4040\\\!\\times\\\!40pixel grid back to 61 electrodes before GEV is computed, attenuating the correlation that GEV weights quadratically\. Comparing Q4 places both methods on equal footing in decoded topographic space; Q1 and Q2 characterise latent quality that ModKMeans cannot provide\.
The polarity scheme addresses a failure visible at highKK: without it, the GMM allocates separate components to each polarity, halving the useful cluster count\. Q1 silhouette generally declines from 0\.234 atK=3K\\\!=\\\!3to 0\.157 atK=20K\\\!=\\\!20\(Table[1](https://arxiv.org/html/2605.10947#S4.T1)\), though the decline is not strictly monotonic, indicating that latent cluster separation degrades as the number of states increases\. The polarity scheme eliminates mirror\-image duplicates but does not prevent semantic splitting of related brain states\.
The architecture sweep fills a gap absent from prior work: optimaldzd\_\{z\}, depth, and channel width for topographic EEG data cannot be assumed from image benchmarks\. DepthL=4L\\\!=\\\!4dominates all 18 top\-ranked configurations across everyKKvalue\. Latent dimensionality shows low sensitivity:dz=16d\_\{z\}\\\!=\\\!16dominates in 14 of 18 best configurations across the fullKKrange, withdz∈\{32,64\}d\_\{z\}\\\!\\in\\\!\\\{32,64\\\}appearing only atK∈\{9,12,14,17\}K\\\!\\in\\\!\\\{9,12,14,17\\\}, suggesting that the40×4040\\\!\\times\\\!40topographic input is sufficiently represented by a compact latent space regardless of cluster count\. Channel widthnf=32n\_\{f\}\\\!=\\\!32suffices in all 18 best configurations, confirming that the40×4040\\\!\\times\\\!40topographic input does not benefit from wider convolutional filters\.
## 5Conclusion
This paper presented Conv\-VaDE, a convolutional variational deep embedding model for explainable EEG microstate analysis that jointly learns topographic reconstruction and probabilistic soft clustering\. Decoded GMM cluster centres produce inspectable scalp topographies without post\-hoc processing \(Figure[4](https://arxiv.org/html/2605.10947#S4.F4)\), and the structured latent space enables direct visualisation of cluster geometry \(Figure[5](https://arxiv.org/html/2605.10947#S4.F5)\)\. Three contributions were introduced: a three\-level polarity invariance scheme eliminating redundant clusters; a seven\-component objective preventing mode collapse acrossK∈\[3,20\]K\\\!\\in\\\!\[3,\\,20\]; and a four\-dimensional architecture sweep over 486 configurations evaluated through a multi\-quadrant metric framework on 10 subjects\. Population\-level generalisation requires validation on larger cohorts\. Future work targets latent\-space backfitting to close the GEV gap, multi\-subject generalisation, and temporal transition modelling\. The source code, trained model configurations, and sweep results are publicly available at[https://github\.com/fayisode/microstate\-architecture\-search](https://github.com/fayisode/microstate-architecture-search)\.
###### Acknowledgements\.
This research was conducted at the Artificial Intelligence and Cognitive Load Research Lab, University College Cork, and supported by Research Ireland \- Taighde Éireann, under Grant Nos\. 18/CRT/6223 and 12/RC/2289\-P2, co\-funded by the European Regional Development Fund\. For the purpose of Open Access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission\.
## Declaration on Generative AI
The authors used Grammarly to help with grammar check, spelling correction, and stylistic clarity during the preparation of this manuscript\.
## ReferencesSimilar Articles
Mechanistic Interpretability of EEG Foundation Models via Sparse Autoencoders
This paper applies TopK Sparse Autoencoders to three EEG foundation models (SleepFM, REVE, LaBraM) to extract interpretable feature dictionaries and introduces a framework for concept steering, revealing representational failures and clinical entanglements.
EEG-VID: Task-Guided Latent Predictive Pretraining for EEG Decoding and Assistive Target Selection
EEG-VID introduces task-guided latent predictive pretraining to improve EEG decoding under session and subject shifts, achieving above-chance target selection in assistive robotics scenarios.
Continuous First, Discrete Later: VQ-VAEs Without Dimensional Collapse
This paper addresses the issue of dimensional collapse in VQ-VAEs, showing that representations often occupy a low-dimensional subspace. It proposes an 'AE Warm-Up' strategy that trains the model as an unquantized autoencoder first, which improves reconstruction quality and increases effective latent dimensionality.
Rethinking EEG-Based Disease Diagnosis: Decoupling Instance Representation Learning from Subject-Level Supervision
This paper proposes BridgeMIL, a two-stage framework for EEG-based disease diagnosis that decouples instance representation learning from subject-level supervision using multiple instance learning. It achieves state-of-the-art accuracy on three EEG disease datasets, outperforming strong baselines.
Comparing Post-Hoc Explainable AI Methods for Interpreting Black-Box EEG Models in Depression Detection
This paper compares several post-hoc explainability methods applied to an InceptionTime model for EEG-based depression detection, finding partial convergence among methods while highlighting methodological variability and limitations.