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.
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.
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