Models’ performance
We began the verification of our approach by constructing a set of 28 deep learning models designed to discriminate between AD and CN participants, comprising seven models for each of the four tested architectures: timeCNN, EEGNet, fftCNN, and ANN, following the data partitioning procedure described in the “Alzheimer Dataset and Data Partitioning” subsection. The resulting classification performance metrics, reported separately for both classes, are summarized in Table 3.
Table 3 Performance metrics obtained for each of the 7 trained models for each of the 4 tested architectures. The results are reported separately for both classes. All metric values are expressed as percentages.
As can be seen in Table 3, the individual models achieved overall accuracies ranging from approximately 71% to 98%, with notable differences in stability and class-specific performance. Among the compared approaches, the CNN operating on frequency-domain representation (fftCNN) yielded the highest mean classification accuracy of 85.59%, outperforming both time-domain models, timeCNN (82.42%) and EEGNet (80.75%), and the ANN model based on engineered features (80.41%). The fftCNN also exhibited balanced performance across both diagnostic categories, reaching 87.57% precision and 86.79% recall for AD, and 83.94% precision with 84.10% recall for CN. This pattern indicates that the spectral CNN generalizes well across subjects and does not exhibit strong bias toward either class. The best individual fftCNN (Model 4) achieved an accuracy of 95.81%.
Although the average accuracy of timeCNN (82.42%) was close to that of fftCNN, class-specific metrics revealed that it did not maintain a consistent bias across runs: some models achieved higher accuracy (recall) for AD (up to 97.45%), while others favored CN, indicating that the discriminative temporal features captured by the network varied substantially between training folds. This variability suggests that temporal representation may be less robust in capturing stable disease-related patterns compared to spectral ones.
EEGNet, although achieving only a slightly lower average accuracy (80.75%) than timeCNN (82.42%), exhibited a considerably higher asymmetry between classes, with mean recall values of 74.60% for AD and 88.44% for CN. However, unlike timeCNN, which alternated between favoring AD and CN across repetitions, EEGNet consistently maintained a recall bias toward the CN class across all trained models. This stability suggests that, although EEGNet operated directly on time-domain signals, its architectural design enabled it to capture patterns relevant to AD. In particular, the use of temporal convolutional kernels tuned to physiologically meaningful EEG rhythms allowed the network to extract a subset of spectral–spatial patterns associated with AD-related activity.
Finally, the ANN model, trained on hand-crafted features, not only achieved the lowest average accuracy (80.41%) but also exhibited the highest variability across repetitions (71.43–98.73%). While one model (Model 4) reached near-perfect performance (98.73%), others performed substantially lower (approximately 70–75%), indicating the strong dependence of this architecture on subject partitioning and random initialization. The standard deviations of 14.49% and 16.64% for recall in the AD and CN classes, respectively, further illustrate the model’s instability.
Overall, fftCNN achieved the highest average classification accuracy and the most balanced class-wise performance within the studied dataset, while maintaining relatively low variability across repetitions. These findings suggest that, for this cohort, the most discriminative information for differentiating AD from CN in resting-state EEG is primarily expressed in the frequency domain.
The superior performance of the spectral CNN representation may be partially explained by its closer correspondence to electrophysiological alterations commonly associated with Alzheimer’s disease. Previous studies have consistently reported characteristic spectral changes in AD43,44,45, including a slowing of neural activity manifested by increased power in lower-frequency bands together with reductions in alpha- and beta-band activity. Such alterations are naturally represented in the frequency domain and may therefore provide a more informative basis for classification than temporal EEG signals alone.
In addition to the physiological relevance of spectral features, the employed representation itself may facilitate the learning process. The spectral images preserve frequency-domain information for each EEG channel and arrange channel-specific spectra in a consistent order within a two-dimensional input space. Consequently, convolutional filters can learn patterns that jointly involve frequency content and channel-dependent activity, enabling the network to capture spectral differences associated with Alzheimer’s disease across multiple recording sites. Such a representation may provide a more informative basis for classification than purely temporal signal representations. Consequently, the observed performance differences should be interpreted as effects of the complete analysis pipelines, encompassing both the adopted EEG representation and the classifier architecture, rather than as consequences of architecture alone.
To further assess the clinical relevance of the obtained results, an additional subject-level evaluation was performed. For each participant, class probabilities predicted for all EEG segments were averaged and a single diagnostic label was assigned according to the resulting mean probability vector. Subject-level performance metrics (Table 4) were then calculated using these aggregated predictions, with each participant represented by one predicted label and one reference diagnosis.
Table 4 Subject-level classification performance reported as mean ± standard deviation across the seven subject-independent test folds.
The subject-level analysis revealed that all neural-network models benefited from aggregation across EEG segments. The largest improvement was observed for timeCNN, whose accuracy increased from 82.42% at the segment level to 87.30% at the subject level. This result suggests that, although individual segment predictions were occasionally incorrect, the model produced highly consistent probability estimates across segments belonging to the same subject, allowing aggregation to recover the correct diagnosis. In contrast, fftCNN exhibited only a modest increase in accuracy (from 85.59% to 87.30%). Rather than indicating inferior performance, this result suggests that the spectral model already produced highly reliable segment-level predictions, leaving less room for improvement through aggregation. Importantly, both timeCNN and fftCNN achieved the same subject-level accuracy of 87.30%, despite the substantially higher segment-level accuracy of fftCNN. This observation suggests that the spectral representation provides more discriminative information at the level of individual EEG segments, whereas the time-domain model relies more strongly on averaging across multiple segments from the same subject.
To evaluate the statistical significance of performance differences between models, a Friedman test was conducted using subject-level balanced accuracy values obtained in the seven cross-validation folds. The test did not reveal significant differences between the evaluated models (\(\chi ^2 = 1.129\), \(p = 0.772\)). Consequently, pairwise Wilcoxon signed-rank tests were performed for completeness and likewise showed no statistically significant differences between any pair of models (all \(p> 0.29\)).
These findings should be interpreted in the context of the relatively small number of independent observations (\(n = 7\) folds). Although fftCNN achieved the highest mean classification accuracy and one of the highest balanced accuracy values, the available sample size does not provide sufficient statistical power to detect significant differences between models. Nevertheless, fftCNN consistently exhibited strong performance across folds, achieved the highest segment-level accuracy, maintained balanced performance between diagnostic classes, and showed comparatively low variability across repetitions, which collectively motivated its selection for the subsequent explainability analyses.
AveragedLIME explanation analysis
To extract the most meaningful patterns distinguishing the AD and CN cohorts, the explainability analysis focused on the best-performing model, namely Model 4 of the fftCNN architecture. AveragedLIME was employed to identify the frequency–channel regions that contributed most strongly to the model’s predictions and to reveal the characteristic EEG patterns associated with each diagnostic group.
To obtain class-level explanations, LIME was applied to all EEG trials from the training dataset. For each trial, a saliency map was generated using 2000 perturbations of rectangular superpixels of size \(5 \times 2\), corresponding to one EEG channel and 0.5 Hz along the frequency axis. The number of perturbations was selected as a compromise between explanation stability and computational cost. The resulting saliency maps were subsequently averaged separately within the AD and CN classes, yielding two global saliency maps that summarize the spectral–channel regions most influential for the network’s decisions.
Figure 2 presents representative local LIME explanations for five randomly selected EEG trials from each class together with the corresponding class-averaged saliency maps. For each trial, the upper row shows the input spectral image, whereas the lower row presents the associated LIME explanation. The last column contains the average input image and the corresponding averagedLIME saliency map computed across all training trials belonging to the given class.
Fig. 2
Representative local LIME explanations and corresponding averagedLIME saliency maps for the AD and CN classes. For each class, five randomly selected EEG trials are shown together with their original spectral representations (top row) and corresponding LIME saliency maps (bottom row). The last column presents the class-averaged input image and the averagedLIME saliency map.
As can be observed, substantial variability exists both in the input representations and in the corresponding local saliency maps. This variability reflects differences in spectral characteristics between individual EEG segments and results in explanation patterns that are often highly localized and trial-specific. While individual explanations provide insight into the network’s decisions for particular samples, they do not readily reveal the global characteristics distinguishing the AD and CN groups. In contrast, averaging explanations across a large number of trials suppresses sample-specific fluctuations and highlights the spectral–channel regions that consistently contribute to the model’s predictions. Consequently, the averagedLIME maps provide a more stable and interpretable representation of the decision patterns learned by the network.
The visual comparison presented in Fig. 2 suggests that averaging explanations substantially reduces the variability observed in individual LIME maps and reveals more coherent class-level patterns. However, the resulting averagedLIME maps could still be influenced by the particular composition of the training data used to generate them. To evaluate whether the identified spectral–channel structures represent reproducible characteristics learned by the model rather than artifacts of a specific train–test split, pairwise similarity between class-level saliency maps obtained independently across cross-validation folds was quantified using Pearson correlation, Spearman correlation, and Intersection over Union (IoU).
For the Alzheimer’s disease class, averagedLIME explanations demonstrated substantial consistency across folds, achieving mean Pearson and Spearman correlations of (0.704 ± 0.068) and (0.605 ± 0.084), respectively. The overlap of the most salient regions reached an average IoU of (0.472 ± 0.073). Lower but still moderate consistency was observed for the normal control class, with Pearson and Spearman correlations of (0.520 ± 0.099) and (0.482 ± 0.085), respectively, and an average IoU of (0.298 ± 0.069).
These results indicate that the major spectral–channel structures identified by averagedLIME were recurrent across independently trained models and were not solely determined by a particular fold composition. The higher stability observed for the AD class suggests that the disease-related patterns learned by the network were more consistent across subjects and cross-validation splits. In contrast, the lower agreement observed for the CN class is likely associated with greater physiological heterogeneity among healthy individuals. Together with the visual inspection presented in Fig. 2, these findings support the central assumption of averagedLIME: although individual explanations may be highly variable, aggregation reveals robust explanatory patterns that persist across independently trained models.
While inter-fold stability assesses whether explanations remain consistent across independently trained models, it does not address another important aspect of explanation reliability: sensitivity to the perturbation parameters used by the explanation algorithm itself. This issue is particularly relevant for LIME, whose explanations are generated by fitting a local surrogate model to randomly perturbed versions of the analyzed image. Consequently, the resulting attribution maps may potentially depend on the number of generated perturbations or on the size of the perturbed regions.
To evaluate the robustness of averagedLIME explanations with respect to these design choices, an additional sensitivity analysis was performed. The reference explanations were generated using 2000 perturbations and a perturbation grid of size (\(5\times 2\)). Subsequently, new explanations were computed using alternative perturbation settings, including different numbers of perturbations (1000 and 3000) and different perturbation grid sizes ((\(3\times 1\)) and (\(7\times 3\))). Similarity between the resulting class-level saliency maps and the reference maps was quantified using the same metrics as employed in the stability analysis, namely Pearson correlation, Spearman correlation, and IoU.
Because the preceding stability analysis demonstrated that averagedLIME explanations were highly reproducible across independently trained models, repeating the sensitivity analysis for every cross-validation fold would provide largely redundant information while substantially increasing computational cost. Therefore, the sensitivity study was performed using the best-performing classifier (Model 4 of the fftCNN architecture), whose explanations served as the reference for all subsequent analyses.
The results of the sensitivity analysis are presented in Table 5. For the perturbation number analysis, averagedLIME explanations exhibited a remarkably high degree of robustness. Pearson and Spearman correlations exceeded 0.96 for both classes even when the number of perturbations was reduced by 50% relative to the reference setting (1000 vs. 2000 perturbations). Increasing the number of perturbations by 50% (3000 vs. 2000 perturbations) produced only marginal improvements, with correlation coefficients approaching unity. Similarly, IoU values remained high, increasing from 0.76–0.85 for 1000 perturbations to 0.92–0.96 for 3000 perturbations. These findings indicate that the principal attribution patterns identified by averagedLIME are already highly stable at 1000 perturbations and are largely unaffected by substantial changes in perturbation sampling density.
In contrast, modifying the perturbation grid size had a considerably stronger influence on the resulting explanations. Increasing the grid size to \(7\times 3\) reduced Pearson correlations to approximately 0.80 while maintaining relatively high Spearman correlations (0.77–0.79), suggesting that the general ranking of important regions was preserved despite changes in attribution magnitude and localization. A similar pattern was observed for the smaller \(3\times 1\) grid, where Pearson correlations decreased further (0.42–0.46), whereas Spearman correlations remained comparable to those obtained for the larger grid. These results indicate that the precise spatial distribution of attribution values depends on the selected superpixel size, although the relative importance ordering of the identified regions remains substantially more stable.
Taken together, the results suggest that averagedLIME explanations are highly robust to the number of perturbation samples but moderately sensitive to the spatial granularity of the perturbation grid. Combined with the previously demonstrated inter-fold stability, these findings support the conclusion that the major explanatory patterns identified by averagedLIME represent genuine properties of the trained model rather than artifacts of random perturbation sampling, while also highlighting the importance of selecting an appropriate superpixel size for detailed spatial interpretation.
Table 5 Sensitivity of LIME explanations to perturbation parameters. Metrics were computed between the reference explanations and explanations generated using modified perturbation settings.Comparison and validation of explanation methods
The preceding section demonstrated that averagedLIME explanations were both stable across independently trained models and robust to perturbation parameter selection. An important remaining question is whether the identified explanatory patterns are specific to LIME or instead reflect more general properties of the trained classifier. To address this issue, two additional explanation methods, SHAP and Grad-CAM, were applied to the same model and dataset.
SHAP explanations were generated using DeepSHAP with a background distribution represented by 20 reference samples obtained through k-means clustering of the training data. This configuration was selected as a compromise between computational efficiency and the ability to capture the variability of the training set while maintaining a manageable number of reference points for Shapley value estimation. Grad-CAM explanations were obtained from the final convolutional layer, where gradients of the target class score were used to estimate the importance of individual feature maps. The resulting weighted activation maps were subsequently projected back to the input space to obtain class-specific saliency maps highlighting spectral–spatial regions that contributed positively to the model prediction. As in the case of LIME, explanations were computed for all training trials and subsequently averaged within the AD and CN classes, yielding global class-level attribution maps for each explanation method. A visual comparison of the resulting explanations is presented in Fig. 3, which shows the averaged input representations together with the corresponding averagedLIME, SHAP, and Grad-CAM saliency maps for the AD and CN classes.
Fig. 3
Global mean representations for the AD and CN classes. The columns show averaged input images, averaged LIME saliency maps, averaged SHAP saliency maps, and averaged Grad-CAM saliency maps, respectively.
Visual inspection of the averaged input representations reveals clear differences between the AD and CN classes. In both groups, the dominant structures consist of two prominent vertical bands located approximately within the 4–6 Hz and 9–11 Hz frequency ranges. However, their relative prominence differs between classes. In the AD group, the lower-frequency component is more pronounced, particularly across frontal and temporal channels, whereas in the CN group greater emphasis is observed around 9–11 Hz, corresponding to the alpha frequency range. Additionally, the AD representation exhibits more pronounced horizontal structures extending across multiple channels within approximately 12–30 Hz, while the corresponding patterns are weaker and less spatially extended in the CN class.
These differences are reflected in the averagedLIME explanations, although the network does not simply focus on the strongest regions of the input images. For the CN class, the most salient attribution region is concentrated within approximately 5–9 Hz and is particularly visible over frontal and temporal channels. Interestingly, this region is shifted toward lower frequencies relative to the strongest alpha-band activity observed in the averaged input representation. In contrast, the AD explanations emphasize regions located around 8–10 Hz together with several localized vertical structures distributed across higher frequencies. The resulting attribution patterns differ substantially between classes.
The SHAP-based explanations largely confirm the regions identified by averagedLIME. Although the resulting maps appear more diffuse and less spatially localized, increased attribution values remain concentrated within similar frequency ranges for both classes. In particular, the low-frequency region highlighted by averagedLIME in the CN class remains visible in the SHAP maps, while the AD explanations preserve both the activity around 8–10 Hz and the broader structures observed at higher frequencies. This agreement between two conceptually different explanation techniques suggests that the identified patterns are unlikely to be artifacts of a particular attribution method.
Grad-CAM produced substantially different attribution patterns from those obtained using averagedLIME and SHAP. In particular, the prominent low-frequency regions identified by the perturbation-based methods were only weakly represented in the Grad-CAM maps. For the CN class, the localized activation around 5–9 Hz highlighted by averagedLIME and confirmed by SHAP was largely absent, while the dominant Grad-CAM activations were concentrated within broad horizontal structures extending across multiple frequency bands. Similarly, for the AD class, the localized vertical patterns observed around 8–10 Hz in both averagedLIME and SHAP were not clearly preserved in the Grad-CAM explanations. Despite these differences, Grad-CAM emphasized horizontal structures located within the same EEG channels highlighted by the two other methods. These channel-specific patterns were considerably more pronounced in the Grad-CAM maps and extended across wider frequency ranges, particularly for the AD class. This observation suggests that while averagedLIME and SHAP primarily identify localized spectral regions contributing to the classification decision, Grad-CAM captures broader channel-level feature representations learned by the deeper convolutional layers of the network. Overall, averagedLIME and SHAP exhibit a high degree of agreement, consistently identifying similar spectral–channel regions despite differences in attribution smoothness and spatial localization. In contrast, Grad-CAM emphasizes broader channel-level structures and shows weaker correspondence with the localized frequency-specific patterns highlighted by the perturbation-based methods.
An important observation is that the salient attribution regions are not generally aligned with the areas of highest power visible in the averaged input representations. Instead, the explanation methods consistently assign high importance to regions corresponding to relative reductions in spectral power. This finding suggests that the classifier detected primarily deviations from dominant spectral activity rather than the strongest signal components themselves.
In addition to visual comparison, quantitative similarity analysis was performed between explanation techniques. Pairwise agreement between averagedLIME, SHAP, and Grad-CAM was quantified using Pearson correlation, Spearman correlation an IoU computed from the corresponding class-level saliency maps. The results are summarized in Table 6.
Table 6 Agreement between class-level explanation maps generated by averagedLIME, SHAP, and Grad-CAM.
The quantitative agreement analysis largely confirmed the observations derived from visual inspection of the saliency maps. As shown in Table 6, the highest agreement was observed between averagedLIME and SHAP. For the AD class, Pearson and Spearman correlations reached 0.641 and 0.549, respectively, while for the CN class the corresponding values were lower (0.379 and 0.277). Similarly, the overlap of the most salient regions was substantially greater for the LIME–SHAP pair than for any comparison involving Grad-CAM, with IoU values of 0.271 and 0.156 for the AD and CN classes, respectively.
In contrast, comparisons involving Grad-CAM yielded near-zero or slightly negative correlation coefficients, indicating that the spatial organization of the attribution patterns identified by Grad-CAM differed substantially from those obtained using averagedLIME and SHAP. This observation is consistent with the visual comparison presented in Fig. 3, where Grad-CAM emphasized broad channel-level structures while the perturbation-based methods highlighted more localized spectral–channel regions.
Although the previous analysis quantified the similarity between different explanation methods, it did not reveal whether the resulting attribution patterns remained consistent across independently trained models. To investigate this aspect, an additional stability analysis was performed using class-level saliency maps obtained from the seven cross-validation folds. Pairwise similarity between folds was quantified separately for averagedLIME, SHAP, and Grad-CAM using the same evaluation metrics.
The inter-fold stability results are summarized in Table 7. Among the evaluated explanation techniques, averagedLIME exhibited the highest stability across independently trained models. For the AD class, mean Pearson and Spearman correlations reached 0.704 and 0.605, respectively, while the overlap of the most salient regions achieved an IoU of 0.472. Stability was lower for the CN class but remained moderate, with Pearson and Spearman correlations of 0.520 and 0.482 and an IoU of 0.298.
SHAP explanations demonstrated a similar but slightly weaker trend. For the AD class, Pearson and Spearman correlations reached 0.576 and 0.509, respectively, while the corresponding IoU was 0.329. Comparable values were obtained for the CN class, where Pearson and Spearman correlations equaled 0.473 and 0.430 and the IoU reached 0.243. These results indicate that the major explanatory patterns identified by SHAP remain reasonably consistent across folds, although with lower reproducibility than those obtained using averagedLIME.
Grad-CAM produced the least stable explanations. While moderate stability was still observed for the AD class (Pearson = 0.549, Spearman = 0.553), the overlap of the most salient regions was substantially lower (IoU = 0.225). The effect was even more pronounced for the CN class, where all stability measures decreased markedly, reaching Pearson and Spearman correlations of approximately 0.25 and an IoU of only 0.109. This finding suggests that Grad-CAM explanations are considerably more dependent on the particular train–test split than the two other methods.
A consistent pattern across all three explanation techniques was the higher stability observed for the AD class compared with the CN class. This trend indicates that disease-related attribution patterns are more reproducible across independently trained models, whereas explanations associated with healthy controls exhibit greater variability. Overall, the results demonstrate that averagedLIME provides the most reproducible class-level explanations, followed by SHAP, while Grad-CAM yields substantially less stable attribution maps across cross-validation folds.
Table 7 Inter-fold stability of class-level explanation maps generated by averagedLIME, SHAP, and Grad-CAM, quantified using Pearson correlation, Spearman correlation, and Intersection over Union (IoU). Values correspond to mean pairwise similarity between maps obtained from independent cross-validation folds.
Having established that the major attribution patterns are reasonably stable across independently trained models, the next question concerns their generalization beyond the training data. To evaluate this aspect, a train–test agreement analysis was performed using the best-performing fftCNN model (Model 4).
Class-level explanation maps were generated independently for the training and test subsets and subsequently compared using Pearson correlation, Spearman correlation, and IoU. This analysis assessed whether the spectral–channel structures identified as important during training were preserved when explanations were computed from previously unseen EEG segments. The corresponding train–test agreement results for all three XAI techniques are presented in Table 8.
Table 8 Train–test agreement of class-level explanation maps generated by averagedLIME, SHAP, and Grad-CAM. Values quantify the similarity between explanation maps obtained from the training and unseen test subsets of the representative cross-validation fold.
Overall, the obtained similarities were higher than those observed in the inter-fold stability analysis, indicating that the principal explanatory patterns identified within the selected model generalize well from the training data to previously unseen EEG segments. Among the evaluated methods, averagedLIME exhibited the strongest train–test consistency. For the AD class, Pearson and Spearman correlations reached 0.899 and 0.849, respectively, while the overlap of the most salient regions achieved an IoU of 0.591. Lower values were obtained for the CN class, with Pearson and Spearman correlations of 0.514 and 0.525 and an IoU of 0.232. These results indicate that the major spectral–channel structures identified by averagedLIME are largely preserved when explanations are computed from unseen samples.
SHAP produced a similar pattern, yielding high train–test correlations for the AD class (Pearson = 0.877, Spearman = 0.837) and moderate agreement for the CN class (Pearson = 0.409, Spearman = 0.287). The overlap of the most salient regions was lower than for averagedLIME but remained non-negligible for both classes. Together with the previously observed agreement between averagedLIME and SHAP, these findings suggest that these two approaches capture explanatory patterns that generalize beyond the training set.
Grad-CAM demonstrated substantially weaker train–test consistency. Although moderate Pearson and Spearman correlations were obtained for the AD class (0.755 and 0.686, respectively), the overlap of the most salient regions remained low (IoU = 0.181). For the CN class, all similarity measures decreased markedly, reaching Pearson and Spearman correlations of only 0.046 and 0.096, respectively, with an IoU of 0.075. These results indicate that Grad-CAM explanations are considerably less reproducible across datasets than the perturbation-based methods.
Consistent with the previous agreement and stability analyses, higher train–test agreement was observed for the AD class than for the CN class across all three explanation techniques. This observation suggests that the disease-related attribution patterns learned by the classifier are more distinct and reproducible than those associated with healthy controls. Overall, the results further support averagedLIME as the most reliable explanation method among the evaluated approaches, with SHAP providing partially convergent evidence and Grad-CAM exhibiting substantially weaker generalization properties.
Agreement and generalization analyses indicated that the identified attribution patterns were reproducible across methods, folds, and datasets. However, reproducibility alone did not guarantee that the highlighted regions were genuinely involved in the classifier’s decision-making process. To address this question, a perturbation-based faithfulness analysis was performed.
Faithfulness was quantified by masking the most salient regions identified by each explanation method and measuring the resulting decrease in prediction confidence. Larger confidence reductions indicate that the removed regions contribute more strongly to the model’s decisions. The corresponding results are summarized in Table 9.
Table 9 Faithfulness evaluation based on confidence drop after masking the most salient regions identified by each explanation method. Results are reported separately for the Alzheimers disease (AD) and normal control (CN) classes.
AveragedLIME and SHAP produced the largest confidence reductions for both classes. For the AD class, masking the regions identified by averagedLIME reduced prediction confidence by \(0.401 \pm 0.195\), while SHAP produced a comparable reduction of \(0.384 \pm 0.229\). Similar behavior was observed for the CN class, with confidence decreases of \(0.142 \pm 0.095\) and \(0.159 \pm 0.096\) for averagedLIME and SHAP, respectively. These results indicate that the regions highlighted by these two approaches are strongly associated with the classifier’s predictions. In contrast, Grad-CAM exhibited substantially lower faithfulness scores. The average confidence reduction reached only \(0.035 \pm 0.075\) for the AD class and \(0.002 \pm 0.046\) for the CN class, indicating that masking the regions emphasized by Grad-CAM had only a limited effect on the model’s output. This finding suggests that the broad attribution patterns produced by Grad-CAM are less directly related to the specific input regions driving the classification decision.
The faithfulness results were consistent with the previous agreement, stability, and train–test analyses. AveragedLIME and SHAP not only produced more reproducible explanations and higher cross-method agreement, but also identified regions whose removal substantially affected model predictions. Grad-CAM, in contrast, exhibited lower agreement with alternative explanation methods, reduced stability across folds, weaker train–test consistency, and markedly lower faithfulness scores.
The previous analyses collectively supported the reliability of the obtained explanations. The remaining question was whether the identified attribution patterns corresponded directly to the physiological differences observed between the AD and CN groups. To investigate this relationship, an attribution spectral difference analysis was performed.
For each explanation method, class-level attribution differences (AD–CN) were compared with the corresponding spectral power differences between the two groups. Pearson and Spearman correlations were computed to quantify the relationship between attribution strength and physiological signal differences. The results are summarized in Table 10.
Table 10 Correlation between attribution differences (AD–CN) and spectral power differences (AD–CN).
Moderate negative correlations were observed for both averagedLIME and SHAP. Pearson correlations reached \(-0.396\) and \(-0.340\) for averagedLIME and SHAP, respectively, while the corresponding Spearman correlations equaled \(-0.209\) and \(-0.381\). In contrast, Grad-CAM exhibited virtually no association with the spectral power differences, with both correlation coefficients remaining close to zero.
The observed negative correlations indicate that regions receiving high attribution values frequently did not correspond to locations exhibiting the strongest spectral power differences between AD and CN subjects. In many cases, the opposite tendency was observed, with highly attributed regions occurring in areas where group-level power differences were relatively weak or exhibited an opposite direction. Consequently, attribution maps cannot be interpreted as direct visualizations of disease-related spectral alterations.
This finding has important implications for interpretation of the obtained explanations. Attribution maps identify spectral–spatial regions that contribute to the classifier’s discrimination between AD and CN subjects, whereas the underlying spectral representations indicate the direction and magnitude of physiological signal differences. Therefore, physiological interpretation requires joint analysis of both information sources. Considered in isolation, attribution maps reveal which regions are important for classification, but they do not indicate whether the associated spectral activity is increased or decreased in either group.
Together, these results suggest that the classifier does not primarily rely on the largest univariate spectral power differences between groups. Instead, it appears to exploit more complex spectral–channel relationships that become apparent only through the learned representation. This observation further supports the interpretation framework adopted in the present study, in which saliency maps are analyzed jointly with the corresponding averaged spectral representations rather than being interpreted as direct physiological activation maps.
Patterns’ analysis
Although individual local saliency maps shown in Fig. 2 vary considerably across trials, averaging the local explanations reveals stable class-level attribution patterns (Fig. 3). The previous analyses demonstrated that these patterns are reproducible across folds, generalize to unseen data, and are strongly associated with the classifier’s decisions. The remaining question concerns their physiological interpretation.
To facilitate interpretation of the identified spectral–channel patterns, the attribution maps were summarized within three standard EEG frequency bands: theta (4–8 Hz), alpha (8–13 Hz), and beta (13–30 Hz). Mean band-specific attribution values were subsequently visualized as scalp maps for averagedLIME (Fig. 5), DeepSHAP (Fig. 6), and Grad-CAM (Fig. 7). For reference, Fig. 4 presents analogous scalp maps derived from the mean spectral power of the input representations.
Now, the spectral–spatial patterns driving the CNN decisions become more clearly discernible. In the global LIME saliency map for the AD class, the most prominent model sensitivity was localized within the alpha band, predominantly over occipital regions, with additional foci of increased relevance in the parietal and frontal areas. In contrast, reduced relevance was observed bilaterally across the frontotemporal regions, indicating that these locations contributed less to the network’s AD-related discriminative features. In the beta band, enhanced model relevance was most evident over the left temporal area (around electrode T5), with significantly weaker effects extending to the right centro-temporal, occipital, and left frontal regions. Finally, in the theta band, both temporal lobes exhibited lowered contribution to the model’s decision process. As expected for a binary classification problem, the relevance distribution associated with the CN class reflected an inverse pattern relative to that observed for AD, indicating that the network relied on complementary spectral–spatial features when discriminating between the two groups.
Fig. 4
Scalp maps illustrating mean spectral power of the input images for the AD and CN groups across the analyzed frequency bands.
Fig. 5
Scalp maps illustrating mean band-specific attribution values obtained from averagedLIME explanations for the AD and CN groups across the analyzed frequency bands.
Fig. 6
Scalp maps illustrating mean band-specific attribution values obtained from averaged SHAP explanations for the AD and CN groups across the analyzed frequency bands.
Fig. 7
Scalp maps illustrating mean band-specific attribution values obtained from averaged Gram-CAM explanations for the AD and CN groups across the analyzed frequency bands.
The SHAP-derived maps exhibited spatial patterns largely consistent with those revealed by averagedLIME; however, these effects were substantially less apparent under standard visualization conditions (Fig. 3). In Figs. 4–6, each map is shown using its native color scale rather than a standardized one, because applying identical scaling would render the SHAP patterns nearly indistinguishable — the dynamic range of SHAP attributions is roughly half that of LIME. This approach allows clearer visualization of the frequency–spatial motifs identified by both methods, illustrating that, despite their lower contrast, SHAP maps corroborate the patterns highlighted by averagedLIME. The attenuation of SHAP activations becomes particularly evident in Fig. 3, where all saliency maps are displayed using a unified color scale, causing the SHAP-derived features to appear more diffuse and less distinct. Overall, this comparison underscores that SHAP confirms the same spectral–spatial tendencies as LIME, but with more subtle and distributed relevance.
The Grad-CAM maps revealed a markedly different attribution structure. Unlike averagedLIME and SHAP, which highlighted localized spectral–spatial regions, Grad-CAM produced broad and spatially diffuse activation patterns extending across large portions of the scalp. The most prominent activations were observed for the AD class, particularly within the alpha and beta bands. In contrast, the CN maps exhibited uniformly low attribution values across all three frequency bands. This behavior is consistent with the previous quantitative analyses. Grad-CAM demonstrated substantially lower agreement with both averagedLIME and SHAP, reduced stability across cross-validation folds, weaker train–test consistency, and markedly lower faithfulness scores. Consequently, although Grad-CAM broadly distinguishes between the AD and CN classes, the resulting patterns provide considerably less spatial specificity than those provided by the two other approaches. For this reason, the detailed interpretation presented in the remainder of this section focuses primarily on the spectral–spatial patterns consistently identified by averagedLIME and independently corroborated by SHAP.
At first glance, the spectral–spatial patterns identified by averagedLIME and corroborated by SHAP appear inconsistent with classical electrophysiological findings reported for Alzheimer’s disease5. Resting-state EEG studies typically describe reduced alpha activity, particularly over posterior and frontal regions, together with increased low-frequency activity in the theta and delta bands5,6. In contrast, the attribution maps presented in Figs. 5 and 6 exhibit pronounced alpha-related relevance for the AD class and enhanced theta-related relevance for the CN class.
This apparent discrepancy arises from the fundamentally different meaning of attribution maps and physiological signal representations. LIME and SHAP do not quantify neural activity or spectral power directly; instead, they identify the spectral–spatial features that most strongly influence the classifier’s decision. Consequently, high attribution values should not be interpreted as increased EEG power in a given region or frequency band. Rather, they indicate that variations within these regions contribute substantially to discrimination between AD and CN subjects. In this sense, attribution maps represent decision evidence within the learned feature space rather than direct physiological activity.
Consequently, attribution maps alone are insufficient to determine whether a given spectral–spatial feature corresponds to increased or decreased activity in the AD group. To infer the direction of the underlying effects, the explanation maps must be interpreted jointly with the averaged input representations, which provide information about the corresponding group-level spectral power differences. When the attribution maps are examined together with the mean EEG representations (Fig. 4), a coherent set of disease-related patterns emerges. Specifically, the results suggest: (i) reduced alpha activity over occipital regions; (ii) a less pronounced alpha attenuation extending to parietal and frontal areas; (iii) decreased beta activity, most prominently over the left temporal region and, to a lesser extent, over right temporal, frontal, and occipital regions; and (iv) increased theta activity within lateral temporal areas. These patterns were consistently identified by averagedLIME and independently supported by SHAP.
Importantly, the resulting hypotheses are broadly consistent with previous EEG studies of Alzheimer’s disease. Alpha attenuation has been consistently reported in resting-state EEG studies of Alzheimer’s disease and is widely regarded as one of the characteristic electrophysiological manifestations of the disorder10,43,44. Previous studies have associated this phenomenon with cholinergic deficits and impaired neuronal synchronization accompanying disease progression45. Likewise, a shift of the EEG power spectrum toward lower frequencies, accompanied by reduced coherence of faster rhythms in Alzheimer’s disease has been documented in previous studies43,46. The reduction in beta-band activity observed in the present study, particularly over temporal regions, is also in agreement with previous reports describing decreases in alpha- and beta-band power in AD47. Furthermore, the combination of increased theta activity and reduced beta activity identified by the proposed framework resembles the characteristic spectral slowing frequently associated with disease progression17.
At the same time, these findings should be interpreted with appropriate caution. Attribution maps indicate sensitivity of the classifier to discriminative spectral–spatial structures rather than direct neurophysiological mechanisms. Therefore, the identified patterns should not be regarded as validated biomarkers or definitive evidence of underlying disease processes. Instead, they should be viewed as candidate discriminative structures learned by the CNN that warrant further neuroscientific investigation and validation on independent datasets and populations.