EEG Microstate Analysis Framework (EEG-MSAF)
- EEG-MSAF is an end-to-end EEG analysis pipeline that uses microstates—brief, quasi-stable scalp topographies—as biomarkers to distinguish dementia stages.
- It follows a three-stage process: automated feature extraction, classification via lightweight machine-learning models, and SHAP-based feature ranking for interpretability.
- The framework enhances diagnostic accuracy by capturing transient brain dynamics and linking them to neurophysiologically meaningful markers of cognitive impairment.
Searching arXiv for the specified paper and closely related work to ground the article. Searching for (Hasan et al., 18 Aug 2025). EEG Microstate Analysis Framework (EEG-MSAF) is an end-to-end pipeline for dementia-oriented electroencephalography analysis that uses EEG microstates—brief (–$120$ ms), quasi-stable scalp topographies—to identify biomarkers and distinguish dementia (DEM), mild cognitive impairment (MCI), and normal cognition (NC) (Hasan et al., 18 Aug 2025). The framework comprises three stages: automated microstate feature extraction, classification with machine learning, and feature ranking using Shapley Additive Explanations (SHAP) to highlight key biomarkers. In the reported formulation, EEG-MSAF is designed to combine accuracy, generalizability, and interpretability, while addressing the temporal and biological-interpretability limitations of conventional spectral or connectivity analyses and many deep learning approaches (Hasan et al., 18 Aug 2025).
1. Conceptual basis
EEG microstates are described as discrete, quasi-stable topographies that are thought to index the momentary activation of large-scale resting-state networks (RSNs) (Hasan et al., 18 Aug 2025). In the framework, four canonical microstates, , , , and , are functionally linked to auditory, visual, salience/attention, and anterior default-mode networks, respectively. This network-level interpretation is central to EEG-MSAF because Alzheimer’s disease (AD) and its prodromal stage, MCI, are characterized by early disruption of these RSNs.
The framework is motivated by the claim that conventional EEG analyses often average over hundreds of milliseconds or seconds, thereby missing fast transitions between brain states and offering limited spatial specificity (Hasan et al., 18 Aug 2025). EEG-MSAF instead targets microstate parameters such as duration, occurrence, and coverage, which are presented as direct, physiologically interpretable markers of RSN integrity and as complements to fMRI findings on default-mode network decoherence.
A second motivation concerns model class and sample regime. EEG-MSAF feeds 20 microstate features plus global field power into lightweight, tabular machine-learning models—SVM, RF, and XGB—that are reported to perform well with moderate sample sizes (Hasan et al., 18 Aug 2025). The interpretability layer is provided by SHAP, which quantifies each feature’s contribution to multiclass decisions. This suggests a deliberate trade-off: rather than maximizing representational complexity, the framework prioritizes neurophysiological interpretability while retaining strong classification performance.
2. Pipeline architecture and preprocessing
EEG-MSAF is organized into three stages: automated microstate feature extraction, machine-learning classification, and SHAP-based feature ranking (Hasan et al., 18 Aug 2025). The preprocessing sequence for each subject consists of band-pass filtering at $0.5$–$40$ Hz, average reference, -scoring, and cropping of edge artifacts.
The extraction procedure begins with the computation of Global Field Power (GFP) at each time :
$120$0
where $120$1 is electrode $120$2’s potential and $120$3 is the average across $120$4 channels (Hasan et al., 18 Aug 2025). GFP peaks are then identified, and their topographies are extracted.
Microstate segmentation is performed by modified $120$5-means clustering, using Euclidean distance on normalized maps, at the subject level. The number of classes is fixed at $120$6, corresponding to $120$7, $120$8, $120$9, and 0, and selected via maximal total Global Explained Variance (GEV) (Hasan et al., 18 Aug 2025). Subject-level maps are pooled, and 1-means is rerun to derive group-level templates 2. Continuous EEG is subsequently back-fitted by assigning each time point to the nearest template according to highest spatial correlation. A temporal-smoothing constraint is applied by merging segments shorter than 3 ms into neighboring segments.
The resulting four group-level centroids 4 define the canonical microstate topographies. Within the framework, these centroids are not merely clustering artifacts; they serve as the reference states from which subject-level temporal, spatial, and occurrence-based descriptors are derived.
3. Feature representation
For each microstate class 5, EEG-MSAF computes a fixed set of metrics over 6 total time points and 7 (Hasan et al., 18 Aug 2025). The first is Global Explained Variance:
8
where 9.
Mean spatial correlation is defined as
0
and time coverage as
1
Mean duration is computed by
2
where 3 is the number of continuous segments of class 4 and 5 their durations in ms. Occurrence rate is defined as
6
where 7 is the sampling interval in seconds.
Two additional descriptors are specified. The transition probability matrix is optional:
8
and inter-microstate correlation is
9
The reported tabular representation consists of 0 classes 1 metrics plus 2 global GFP, yielding 3 features per subject (Hasan et al., 18 Aug 2025). The framework’s emphasis on mean correlation and occurrence is especially consequential, because these features are later identified as the most informative biomarkers. A plausible implication is that EEG-MSAF treats both topographic fidelity and recurrence structure as primary signatures of neurodegenerative change.
4. Machine-learning and explanation modules
EEG-MSAF evaluates three model families: Support Vector Machine (SVM) with Radial Basis Function kernel, Random Forest (RF), and eXtreme Gradient Boosting (XGB) (Hasan et al., 18 Aug 2025). For one-vs-rest class 4, the SVM decision function is
5
with
6
and hyperparameters 7 and 8.
The RF model is described as an ensemble of 9 trees with majority vote, with grid search over 0 and 1. XGB is formulated as an additive tree model minimizing
2
with
3
and tuned over 4, 5, and 6 (Hasan et al., 18 Aug 2025).
Evaluation uses five-fold stratified cross-validation, ensuring that no subject appears in both train and test splits; hyperparameters are selected via inner cross-validation. Performance metrics are accuracy,
7
together with sensitivity (recall), specificity, precision, and F1-score per class and macro-averaged.
Interpretability is provided by SHAP. For a model 8 and instance 9, the contribution $0.5$0 of feature $0.5$1 is given by
$0.5$2
For tree-based models, TreeSHAP computes exact $0.5$3 in $0.5$4 time, whereas for SVM, KernelSHAP approximates $0.5$5 via weighted linear regression over perturbed feature subsets (Hasan et al., 18 Aug 2025). Across both datasets, SHAP consistently ranks $0.5$6, $0.5$7, $0.5$8, and $0.5$9 among the top biomarkers, with global GFP occasionally emerging as a summary marker.
5. Empirical evaluation and comparative performance
The framework is evaluated on two resting-state EEG datasets (Hasan et al., 18 Aug 2025). CAUEEG is a public dataset with 21 channels at 200 Hz and includes 459 NC, 416 MCI, and 311 DEM subjects, with mean age $40$0 years; Fisher’s exact test confirmed age differences across groups ($40$1). The Thessaloniki dataset is a clinical cohort with 19 channels, resampled to 100 Hz, comprising 29 CN, 23 FTD, and 36 AD subjects, recorded under eyes-open resting conditions with independent clinical labels.
The reported classification performance is as follows:
| Model | CAUEEG (NC/MCI/DEM) | Thessaloniki (CN/FTD/AD) |
|---|---|---|
| CeedNet (DL baseline) | Acc $40$2 | – |
| EEGConvNeXt (baseline) | – | Acc $40$3 |
| EEG-MSAF-RF | Acc $40$4, F1 $40$5 | Acc $40$6, F1 $40$7 |
| EEG-MSAF-XGB | Acc $40$8, F1 $40$9 | Acc 0, F1 1 |
| EEG-MSAF-SVM | Acc 2, F1 3 | Acc 4, F1 5 |
On CAUEEG, EEG-MSAF-SVM improves accuracy by approximately 6 over CeedNet; on the Thessaloniki dataset, it reaches 7 accuracy, comparable to EEGConvNeXt (Hasan et al., 18 Aug 2025). Theta-band (8–9 Hz) features yield the highest multiclass accuracy (0). All reported improvements are statistically significant according to pairwise McNemar’s test (1).
These results are presented as evidence for both generalizability and competitive performance across a public dataset and an independent clinical cohort. Since the same feature family underlies the cross-dataset analysis, a plausible implication is that the discriminative signal is not limited to a single acquisition environment.
6. Biomarkers, default-mode decoherence, and early neurodegeneration
The statistical analysis of microstate features identifies 2 and 3 as the strongest differentiators of NC, MCI, and DEM (Hasan et al., 18 Aug 2025). Specifically, Kruskal–Wallis tests yield 4 with 5 for 6, and 7 with 8 for 9. Post-hoc Dunn–Bonferroni comparisons further show that microstate $120$00 and $120$01 metrics are the only ones to distinguish MCI from NC ($120$02), marking them as early-stage biomarkers.
The reported neurophysiological interpretation centers on two complementary trajectories. Microstate $120$03, associated with the salience/attention network, shows a progressive decrease in occurrence and spatial coherence ($120$04) from NC $120$05 MCI $120$06 DEM, reflecting salience-network breakdown (Hasan et al., 18 Aug 2025). Microstate $120$07, linked to the anterior default-mode network, exhibits a complementary “push” in occurrence but decline in coherence, consistent with compensatory hyperactivity followed by network decoherence in AD.
This opposing trajectory is described as mirroring fMRI findings of RSN imbalance in early AD and is termed “default-mode decoherence” (Hasan et al., 18 Aug 2025). SHAP ranks $120$08 and $120$09 among the top features for classifying MCI versus NC, indicating that anterior DMN disruptions can be detected in the prodromal stage. The framework therefore treats mean correlation as an index of microstate coherence and occurrence as an index of engagement frequency. This suggests that EEG-MSAF captures both functional degradation and compensatory reorganization within large-scale brain networks.
7. Clinical and methodological significance
EEG-MSAF is presented as a fast, cost-effective, and interpretable tool for early dementia screening, suitable for longitudinal monitoring in outpatient or primary-care settings (Hasan et al., 18 Aug 2025). Its clinical rationale derives from the conjunction of three reported properties: automated extraction of well-studied microstate features with established neurophysiological meaning, strong multiclass performance with lightweight tabular models, and transparent SHAP-based explanations.
From a methodological standpoint, the framework is positioned against two limitations: the temporal coarsening of conventional EEG analyses and the black-box character of many deep-learning systems (Hasan et al., 18 Aug 2025). Its response is to preserve transient state structure through microstate segmentation while keeping the feature space compact and interpretable. The prominence of microstates $120$10 and $120$11 in both statistical tests and SHAP rankings further ties predictive performance to a biologically articulated account of salience-network breakdown and anterior default-mode disruption.
A common misconception in EEG biomarker research is that interpretability necessarily entails a large loss in predictive accuracy. The reported results do not support that assumption for this framework: the SVM-based configuration attains $120$12 accuracy on CAUEEG and $120$13 on Thessaloniki while maintaining explicit feature-level attribution through SHAP (Hasan et al., 18 Aug 2025). Conversely, another potential misconception is that classification alone establishes mechanism. The framework does not eliminate that distinction; rather, it provides neurophysiologically meaningful biomarkers that support hypothesis-driven follow-up, including targeted cognitive interventions or amyloid PET. In that sense, EEG-MSAF functions simultaneously as a diagnostic classifier and as a structured lens on early neurodegenerative network dynamics.