Evaluating the Generalizability of EEG-Based AI Models in Alzheimer’s and Dementia Diagnosis

Rajkumar Saini, Foteini Liwicki, Sumit Rakesh, Hamam Mokayed, Sarthak Acharya, Daljeet Singh, Vibha GuptamedRxiv 2025

Abstract

INTRODUCTION: We thoroughly investigated the generalizability of deep learning models trained on electroencephalography (EEG) data to detect Alzheimer’s disease and dementia at the individual subject level. Although average model performance appears strong, it may obscure large inter-individual variability, raising concerns for clinical deployment. METHODS: We trained a Hopfield-enhanced deep neural network on a publicly available EEG dataset consisting of 88 participants, including individuals diagnosed with Alzheimer’s disease (AD), frontotemporal dementia (FTD), and cognitively normal controls (CN). Resting-state EEG recordings were segmented and used to train the model in a leave-one-subject-out (LOSO) cross-validation setup. RESULTS: While the model demonstrated high average performance (e.g., up to 83% accuracy), subject-level results revealed inconsistencies. Some individuals achieved perfect prediction even at the first training epoch, suggesting spurious memorization, while others predicted falsely throughout. DISCUSSION: Our findings highlight that strong group-level performance may be misleading in clinical settings. Models should be evaluated per individual before being considered for diagnostic use.

Introduction: The Gap Between Research and Clinical Reality

The field of AI-driven dementia diagnosis is rapidly expanding, with many studies reporting high accuracies using EEG data. However, a significant gap remains between high-performing research models and reliable clinical tools. Most studies report group-level metrics, which can obscure catastrophic failures for specific individuals. In a clinical setting, accuracy for the individual patient is paramount. This study investigates "subject-level generalizability" to determine if models perform consistently across different individuals or merely succeed on "easy" cases while failing others entirely.

Methodology: HopfieldEEGNet5 and LOSO Validation

The researchers developed HopfieldEEGNet5, a custom architecture designed to extract spatiotemporal features from raw EEG signals.

Architecture of the Hopfield-enhanced deep neural network (HopfieldEEGNet5) used for EEG signal processing.

The model features a backbone of four 2D convolutional layers followed by a Hopfield-enhanced layer. Modern Hopfield networks function as associative memory, helping the model stabilize patterns and integrate temporal dynamics over 30-second EEG segments.

To ensure rigorous testing of generalizability, the study employed Leave-One-Subject-Out (LOSO) cross-validation. This ensures the model is always tested on a previously unseen individual, preventing data leakage. The dataset, sourced from OpenNeuro (ID: ds004504), included 88 participants (36 AD, 23 FTD, and 29 CN) with 19-channel resting-state EEG recordings.

Results: The "Hidden" Reality of Average Metrics

While the model achieved strong average performance across various tasks—such as 92.4% accuracy for AD vs. CN—subject-level analysis revealed significant inconsistencies.

Distribution of subject-level performance metrics, illustrating the bimodal nature of model accuracy across the cohort.

As shown in the performance distribution, while 63% of subjects in the AD vs. CN task achieved perfect 100% accuracy, a "hard tail" of individuals resulted in performance at or below chance. This bimodal distribution suggests that average metrics are heavily skewed by "easy" subjects, masking total failure on others. Furthermore, some subjects showed 100% accuracy from the very first epoch, suggesting the model may latch onto spurious correlations or individual-specific artifacts rather than genuine biological markers of disease.

Discussion and Clinical Implications

The findings highlight that group-level performance can be misleading. Clinical AI must be generalizable and validated at the individual level. The observed "checkpoint instability"—where a model might correctly predict a subject at one epoch but fail at the next—poses a significant risk for clinical deployment.

Future work should focus on Uncertainty Awareness, implementing calibrated confidence scores to allow models to "defer" to human specialists when uncertainty is high. Additionally, external validation across different centers and hardware is necessary to ensure "hard" subjects are not just artifacts of specific recording environments.

Conclusion

While Hopfield-enhanced networks show promise in capturing complex EEG patterns, patient-level validation is essential. To avoid premature clinical translation, the AI community must prioritize individual-level reliability over impressive average statistics. Group-level metrics alone are insufficient for tools intended for individual patient care.

Summary updated

Abstract

INTRODUCTION We thoroughly investigated the generalizability of deep learning models trained on electroencephalography (EEG) data to detect Alzheimer’s disease and dementia at the individual subject level. Although average model performance appears strong, it may obscure large inter-individual variability, raising concerns for clinical deployment. METHODS We trained a Hopfield-enhanced deep neural network on a publicly available EEG dataset consisting of 88 participants, including individuals diagnosed with Alzheimer’s disease (AD), frontotemporal dementia (FTD), and cognitively normal controls (CN). Resting-state EEG recordings were segmented and used to train the model in a leave-onesubject-out (LOSO) cross-validation setup across multiple detection tasks: AD vs. CN, AD vs. FTD, FTD vs. CN, and AD vs. FTD vs. CN. RESULT While the model demonstrated high average performance (e.g., up to 83% accuracy), subject-level results revealed inconsistencies. Some individuals achieved perfect prediction even at the first training epoch, suggesting spurious memorization, while others predicted falsely throughout, with performance below chance. These patterns persisted despite consistent training conditions and no data leakage. DISCUSSION Our findings highlight that strong group-level performance may be misleading in clinical settings, where decisions are made at the individual level. The models should be generalizable across individuals and be evaluated per individual before being considered for diagnostic use. Hopfield networks show promise in capturing patterns in EEG data, but patient-level validation and transparent reporting are essential to avoid premature clinical translation. Highlights Deep learning models trained on EEG can achieve high average performance in detecting Alzheimer’s and dementia disease. The subject-level evaluation revealed significant variability, including below-chance performance for some indi- viduals despite overall strong results. Group-level metrics alone may be misleading; General- izable models and individual-level validation are critical before the clinical adoption of EEG-based AI models.
BibTeX
@misc{saini2025evaluating,
  author = {Rajkumar Saini and Foteini Liwicki and Sumit Rakesh and Hamam Mokayed and Sarthak Acharya and Daljeet Singh and Vibha Gupta},
  title = {{Evaluating the Generalizability of EEG-Based AI Models in Alzheimer’s and Dementia Diagnosis}},
  year = {2025},
  doi = {10.1101/2025.09.10.25334048},
  howpublished = {medRxiv},
}
Figure