ADformer: A Multi-Granularity Spatial-Temporal Transformer for EEG-Based Alzheimer Detection
Authors: Yihe Wang, Nadia Mammone, Darina Petrovsky, Alexandros T. Tzallas, Francesco C. Morabito, Xiang Zhang
Organizations: Department of Computer Science, University of North Carolina - Charlotte, Charlotte, North Carolina 28223, United States. · DICEAM Department, University Mediterranea of Reggio Calabria Via Zehender, Feo di Vito, 89122 Reggio Calabria, Italy. · School of Nursing, Duke University, Durham, North Carolina 27708, United States. · Department of Informatics & Telecommunications, University of Ioannina, Kostakioi, GR-47100, Arta, Greece.
Electroencephalography has emerged as a cost-effective, efficient tool to help neurologists detect Alzheimer's Disease. However, most existing approaches rely heavily on manual feature engineering or data transformation. While these techniques may help with small-scale datasets, they often cause information loss and distortion when applied to large-scale data, ultimately limiting model performance. Moreover, the limited subject scale and demographic diversity of datasets used in prior studies hinder comprehensive evaluation of model robustness and generalizability, thus restricting their applicability in real-world clinical settings. To address these challenges, we propose ADformer, a novel multi-granularity spatial-temporal transformer that captures both temporal and spatial features from raw EEG signals, enabling effective end-to-end representation learning. Our model introduces multi-granularity embedding strategies across both spatial and temporal dimensions, leveraging a two-stage intra-inter-granularity self-attention mechanism to learn local patterns within each granularity and global dependencies across granularities. We evaluate ADformer on 4 large-scale datasets totaling 1,713 subjects, one of the largest corpora for EEG-based AD detection to date, under a cross-validated, subject-independent setting. Experimental results demonstrate that ADformer consistently outperforms existing methods, achieving subject-level F1 scores of 87.11%, 89.83%, 67.99%, and 84.42% on the 4 datasets, respectively, in distinguishing Alzheimer's Disease patients from healthy control subjects.
Figures & tables
Fig. 1: Token embedding methods. Transformer and Informer [ 27 , 28 ] use a single cross-channel timestamp as a token, while iTransformer [ 29 ] uses the full series from a single channel as a token. PatchTST [ 30 ] adopts a patch of timestamps from a single channel as a token. For ADformer, we propose a token embedding method with a branch that repeatedly segments the EEG into patches of varying lengths, each of which is defined as a granularity, and embeds these cross-channel patches. Another branch repeatedly upscales the number of EEG channels using 1-D convolutions, with each mapped pseudo-channel count defined at a given granularity, and embeds the full EEG series for each channel.
Fig. 2: Subject-dependent/independent setups. In the subject-dependent setup, samples from the same subject can appear in both the training and test sets, causing information leakage and allowing shortcut learning [ 70 ] . In the subject-independent setup, samples from the same subject are exclusively in either the training or test set, which is more challenging and practically meaningful.
Fig. 3: Overview of ADformer. a) Architecture. b) For the i -th patch length Li (granularity i ) and input sample xin , we first apply data augmentation to obtain xin(i) , which is then segmented into cross-channel non-overlapping patches xp(i) . These patches are projected into the latent space and fused with granularity and positional embeddings to yield the final patch representation x(i) . c) For the j -th pseudo-channel number Fj (granularity j ) and input xin , we generate an augmented view xin(j) . Channel-wise positional embeddings are added to the transposed input (xin(j))T , followed by a linear projection to scale the channel dimension. We then project the resulting channel series into the latent space and combine it with granularity embeddings to produce the final channel representation x(j) . d-e) We perform intra-granularity self-attention to model dependencies within each granularity and inter-granularity self-attention to enable cross-granularity interaction. We introduce a router mechanism in the inter-granularity attention to reduce computational and memory complexity.
Datasets
Task
#Subjects
Sampling Rate
#Channels
#1-s Samples
Classes
ADFTD
RS & PS
88
500–>128 Hz
19
185,656
HC vs AD vs FTD
CNBPM
RS
189
256–>128 Hz
19
140,165
HC vs AD vs MCI
P-ADIC
RS
249
500–>128 Hz
19
542,490
HC vs AD vs MCI vs SCZ vs DEP
CAUEEG
RS & PS & HV
1187
200–>128 Hz
19
1,720,783
HC vs DEM vs MCI
TABLE I: Processed Dataset Statistics. All datasets are downsampled to 128Hz, segmented into 1s, half overlapping samples. RS - Resting State; PS - Photic Stimulation; HV - Hyperventilation. HC - Healthy Controls; AD : Alzheimer’s Disease; FTD : Frontotemporal Dementia; MCI : Mild Cognitive Impairment; SCZ : Schizophrenia; DEP : Depression; DEM : Dementia.
TABLE II: Multi-Class Classification Results. All classes in the datasets are used for brain disorder detection.
Fig. 4: Confusion Matrix . Sample- and subject-level confusion matrix for multi-class classification results on 4 datasets.
TABLE III: AD/Dementia vs HC Results. The DEM vs HC in CAUEEG and AD vs HC in the other 3 datasets.
TABLE IV: HC vs AD vs VD Results. The HC vs AD vs VD classification results of the CAUEEG dataset.
TABLE V: Sample Length Study. We evaluate how different lengths T impact the performance on the AD/Dementia vs HC task.
Fig. 5: Sample Lengths. F1 score comparison for different sample lengths T .
TABLE VI: Overlapping Rate Study. We evaluate how different sample overlapping ratios impact the performance of ADFTD and CAUEEG on the AD/Dementia vs HC task.
Fig. 6: Overlap Rates. F1 score trends across different overlap rates.
TABLE VII: Ablation Study. Effectiveness of each module of our method on the AD/Dementia vs HC task.
Fig. 7: Ablation Study. F1 score of ablation studies across different model variants by removing modules on the AD/Dementia vs HC task.
Biological heterogeneity in Alzheimer's Disease (AD) poses a critical diagnostic challenge, particularly for traditional linear methods that fail to capture non-linear neural dynamics. To address this, we propose a diagnostic framework utilizing the Large Brain Model (LaBraM), pretrained on over 2,500 hours of EEG data. By integrating these high-dimensional latent embeddings with a non-linear Random Forest classifier, our approach effectively isolates robust disease markers. Under a rigorous subject-independent 5-fold cross-validation protocol, the method achieves an ROC-AUC of 89.36% +/- 3.49%, PR AUC of 81.45% +/- 4.43%, and Balanced Accuracy of 82.44% +/- 4.34% in distinguishing dementia patients from healthy controls. Notably, this performance uses only 8-second EEG segments, surpassing traditional spectral baselines, including band-power and parameterized oscillatory features (FOOOF). Post-hoc occlusion analysis confirms the model captures clinically validated biomarkers, specifically occipital-frontal Alpha and Theta rhythm degradation. Additional neurophysiological alignment analysis demonstrated that higher LaBraM-predicted dementia probability significantly correlated with worse cognitive performance, greater clinical severity, increased theta and alpha relative power, and higher aperiodic exponent. These findings demonstrate that deep latent representations extract clinically relevant signatures from noisy signals, enabling precise, rapid, and data-efficient diagnosis.
Maggie Lin, Chung-Lin Hou, Tzyy-Ping Jung
Department of Bioengineering University of California, San Diego La Jolla, CA 92037, USA · Research and Development HippoScreen Neurotech Corp. Taipei, Taiwan · Swartz Center for Computational Neuroscience University of California, San Diego La Jolla, CA 92037, USA
The detection of Alzheimers disease (AD) is considered crucial, as timely intervention can improve patient outcomes. Electroencephalogram (EEG)-based diagnosis has been recognized as a non-invasive, accessible, and cost-effective approach for AD detection; however, it faces challenges related to data availability, accuracy of modern deep learning methods, and the time-consuming nature of expert-based interpretation. In this study, a novel lightweight and high-performance model, DeepTokenEEG, was designed for the diagnosis of AD and the classification of EEG signals from AD patients, individuals with other neurological conditions, and healthy subjects. Unlike traditional heavy-weight models, DeepTokenEEG ultilizes spatial and temporal tokenizer that effectively captures AD-related biomarkers in both temporal and frequency domain with only 0.29 million paramaters. Trained in a combined dataset of 274 subjects, including 180 AD cases, and 94 healthy controls, the proposed method achieves a maximum recorded accuracy of 100% on specific frequency bands, representing an improvement of 1.41-15.35% over state-of-the-art methods on the same dataset. These results indicate the potential of DeepTokenEEG for early detection and screening of AD, with promising applicability for deployment due to its compact size.
Thinh Nguyen-Quang, Minh Long Ngo, Ngoc-Son Nguyen +7
Hanoi University of Science and Technology, Hanoi, Vietnam · VNU University of Engineering and Technology, Hanoi, Vietnam · Central Military Hospital 108, Hanoi, Vietnam +1
Electroencephalography (EEG) is a promising, non-invasive, and cost-effective modality for Alzheimer's disease (AD) detection, but deep learning methods are limited by small and imbalanced clinical datasets. Generative augmentation offers a solution, yet existing approaches rely on inefficient class-specific models or fail to capture complex spatial and temporal brain dynamics. To address this, we propose GraM-Diff, a unified classifier-guided Graph-Mamba diffusion framework for EEG synthesis. It embeds Graph Convolutional Networks within a diffusion U-Net to model inter-electrode connectivity and Bidirectional Mamba state-space blocks for linear-complexity long-range temporal modeling. Latent-space classifier guidance lets a single model generate both healthy and pathological EEG within a shared representation, avoiding fragmented per-cohort pipelines. Across four EEG-based AD benchmarks, synthetic augmentation improves classification, yields superior Context-FID and correlation scores over strong generative baselines, and enhances robustness in data-scarce settings.
M. Tanveer, Ayush Singh Rana, Sanskriti Jain +5
Indian Institute of Technology Indore, Indore 453552, Madhya Pradesh, India