Skip to main content
Have a personal or library account? Click to login
Attention-Based Fusion of EEG Spectrograms and Scalograms for Schizophrenia Detection Using Vision Transformers Cover

Attention-Based Fusion of EEG Spectrograms and Scalograms for Schizophrenia Detection Using Vision Transformers

Open Access
|Jul 2026

Figures & Tables

Table 1.

Comparison of Recent EEG-Based Schizophrenia Detection Methods.

ReferenceMethodRepresentationStrengthsLimitations
[9]RNNRaw EEGLearns temporal dependencies directly from EEG sequencesLimited spatial feature extraction and weak discrimination capability
[10]Multi-domain Connectome CNNEEG connectivity matricesCaptures functional brain connectivity across multiple domainsHigh computational cost due to connectivity estimation
[11]Effective Connectivity AnalysisEffective connectivity featuresProvides interpretable neurophysiological insightsComplex preprocessing and limited real-time applicability
[12]LSTMRaw EEGCaptures long-term temporal dependencies effectivelyIgnores spatial relationships among EEG channels
[13]Hybrid Deep Neural NetworkRaw EEGLearns complementary deep feature representationsHigh computational complexity and training cost
[14]CNN–LSTMRaw EEGExtracts both spatial and temporal featuresLarge model size and longer training time
[15]CNN (Scalogram-based)ScalogramEffectively captures time-frequency informationUses only a single representation
[16]Wavelet Feature EngineeringWavelet coefficientsGood for non-stationary EEG signal representationDepends on handcrafted features
[17]Deep Residual Network (ResNet)EEG feature mapsStrong hierarchical feature learning capabilityHigh computational and training cost
[20]Machine Learning with Sensor + Source FeaturesSensor & source EEGCombines complementary EEG informationRequires source localization and preprocessing complexity
[21]Nonlinear Signal ProcessingNonlinear EEG featuresCaptures nonlinear brain dynamicsFeature-engineering dependent approach
[22]Deep Learning with Connectivity ImagesEffective connectivity imagesIntegrates connectivity with deep learningComputationally expensive preprocessing pipeline
[23]Wavelet-Based Single-Channel EEGSingle-channel EEGLow hardware complexityLimited spatial information
[24]1D TransformerRaw EEGCaptures long-range temporal dependenciesRequires large datasets and high computation
[25]LeViT-based Spatial–Temporal MappingEEG feature mapsEfficient local + global feature extractionDoes not exploit multimodal EEG representations
Figure 1.

Schematic diagram of the proposed attention-based fusion framework for schizophrenia detection using EEG spectrograms and scalograms with a Vision Transformer architecture.

Figure 2.

Illustration of the proposed attention-based cross-representation fusion framework.

Figure 3.

Schematic diagram of the ViT.

Table 2.

List of Simulation Parameters.

CategoryParameterValue / Description
EEG AcquisitionSampling Frequency256 Hz
Number of Channels20
Epoch Length2–5 seconds
Frequency Range0.5 – 50 Hz
Dataset Split80% Train / 20% Validation
PreprocessingBand-pass Filter0.5 – 50 Hz
NormalizationZ-score
Artifact RemovalOptional (ICA / Filtering)
Spectrogram (STFT)Window TypeHamming
Window Length256 samples
Overlap50%
FFT Points256
Output Size224 × 224
Scalogram (CWT)Mother WaveletMorlet
Scales1 – 128
Frequency ResolutionAdaptive
Output Size224 × 224
Image ProcessingImage TypeRGB
Image Size224 × 224 × 3
Data AugmentationRotation, Flipping, Scaling
Patch EmbeddingPatch Size16 × 16
Number of Patches (N)196
Embedding Dimension (d)768
Attention FusionFusion TypeCross-Attention
Attention Heads8
Fusion StrategyBidirectional (S↔C)
Projection MatrixLearnable
Vision TransformerModel TypeViT-Base
Number of Layers12
Hidden Dimension768
MLP Size3072
Dropout0.1
TrainingOptimizerAdam
Learning Rate1e-4
Batch Size16 / 32
Epochs50 – 100
Weight Decay1e-5
ClassificationActivationSoftmax
Loss FunctionCategorical Cross-Entropy
Figure 4.

Time–Frequency Representations of EEG Signals for Normal and Schizophrenia Classes: (a) Spectrogram of the Normal class (b) Scalogram of the Normal class (c) Spectrogram of the Schizophrenia class (d) Scalogram of the Schizophrenia class.

Figure 5.

Training and Validation Loss Curves of the Proposed Model During Learning.

Figure 6.

Training and Validation Accuracy Curves of the Proposed Model During Learning.

Figure 7.

Attention Map Visualization of the Proposed Model for EEG Signal Classification (a) Normal (b) SZ.

Figure 8.

Confusion Matrices of the Proposed Model for Schizophrenia Classification on Dataset 1(a) Training Confusion Matrix (b) Validation Confusion Matrix.

Table 3.

Performance Metrics Comparison Using Random Data Splitting (Dataset: 1).

DatasetPrecisionRecallF1-scoreAccuracy
Training0.9928 ± 0.00120.9911 ± 0.00150.9920 ± 0.00130.9920 ± 0.0012
Validation0.9928 ± 0.00240.9786 ± 0.00410.9857 ± 0.00330.9857 ± 0.0032
Figure 9.

Confusion Matrices of the Proposed Model for Schizophrenia Classification on Dataset 2 (a) Training Confusion Matrix (b) Validation Confusion Matrix.

Table 4.

Performance Metrics Comparison Using Random Data Splitting (Dataset: 2).

DatasetPrecisionRecallF1-scoreAccuracy
Training0.9937 ± 0.00110.9922 ± 0.00140.9930 ± 0.00120.9930 ± 0.0011
Validation0.9937 ± 0.00230.9875 ± 0.00380.9906 ± 0.00300.9906 ± 0.0028
Figure 10.

ROC and AUC curves (a) Dataset 1 (b) Dataset 2.

Table 5.

Subject-Level 5-Fold Cross-Validation Results (Proposed Method: Dataset:1).

FoldAccuracy (%)Precision (%)Recall (%)F1-Score (%)
Fold 198.2198.3598.0298.18
Fold 298.4798.6298.2898.44
Fold 398.0598.1997.9198.03
Fold 498.6398.7498.4598.59
Fold 598.3298.4898.1198.29
Mean ± SD98.34 ± 0.2198.48 ± 0.2098.15 ± 0.1998.31 ± 0.20
Table 6.

Subject-Level 5-Fold Cross-Validation Results (Proposed Method: Dataset:2).

FoldAccuracy (%)Precision (%)Recall (%)F1-Score (%)
Fold 198.5898.6998.4198.55
Fold 298.7698.8898.6098.74
Fold 398.4998.6198.3398.47
Fold 498.9199.0298.7698.89
Fold 598.6798.8098.5298.65
Mean ± SD98.68 ± 0.1598.80 ± 0.1698.52 ± 0.1798.66 ± 0.16
Table 7.

Statistical Significance Analysis of the Proposed Method Using Paired t-Test and Wilcoxon Signed-Rank Test.

MetricPaired t-test (t)Paired t-test (p-value)Wilcoxon WWilcoxon p-valueSignificant (p < 0.05)
Accuracy7.660.0016150.0313Yes
Precision8.000.0013150.0313Yes
Recall8.720.0010150.0313Yes
Fl-score7.820.0015150.0313Yes
Table 8.

Ablation Study of Different Model Variants on Dataset 1 Using Subject-Level 5-Fold Cross-Validation.

Model VariantPrecisionRecallF1-scoreAccuracy
ViT (Spectrogram)97.21 ± 0.2996.93 ± 0.3197.07 ± 0.3097.10 ± 0.30
ViT (Scalogram)97.74 ± 0.2597.46 ± 0.2797.60 ± 0.2697.63 ± 0.26
Feature Fusion (Without Attention)98.13 ± 0.2297.86 ± 0.2397.99 ± 0.2298.02 ± 0.22
Feature Fusion + Attention (Proposed)98.48 ± 0.2098.15 ± 0.1998.31 ± 0.2098.34 ± 0.21
Table 9.

Ablation Study of Different Model Variants on Dataset 2 Using Subject-Level 5-Fold Cross-Validation.

Model VariantPrecisionRecallF1-scoreAccuracy
ViT (Spectrogram)97.56 ± 0.2497.28 ± 0.2597.42 ± 0.2497.45 ± 0.24
ViT (Scalogram)98.04 ± 0.2097.81 ± 0.2197.92 ± 0.2097.96 ± 0.21
Feature Fusion (Without Attention)98.43 ± 0.1898.16 ± 0.1998.29 ± 0.1898.31 ± 0.18
Feature Fusion + Attention (Proposed)98.80 ± 0.1698.52 ± 0.1798.66 ± 0.1698.68 ± 0.15
Table 10.

Comparison with the state-of-the-art methods (K-fold Cross Validation).

CategoryStudyModel DescriptionDataset CompositionAccuracy (%)
Deep CNNBagherzadeh et al. [22]DenseNet12114 SZ – 14 Healthy96.26
Classical MLSharma et al. [23]KNN14 SZ – 14 Healthy97.20
TransformerShoeibi et.al [24]Transformer26 SZ – 30 Healthy97.62
LeViTBeilin et.al [25]Transformer-85.04
Proposed VariantsThis WorkViT (Spectrogram)14 SZ – 14 Healthy96.80
Proposed VariantsThis WorkViT (Scalogram)14 SZ – 14 Healthy97.27
Proposed VariantsThis WorkFusion (Without Attention)14 SZ – 14 Healthy97.80
Proposed MethodThis WorkFusion with Attention Mechanism14 SZ – 14 Healthy98.13
DOI: https://doi.org/10.2478/ias-2026-0014 | Journal eISSN: 1554-1029 | Journal ISSN: 1554-1010
Language: English
Page range: 274 - 293
Published on: Jul 30, 2026
Published by: Cerebration Science Publishing Co., Limited
In partnership with: Paradigm Publishing Services
Publication frequency: Volume open

© 2026 Farah Shan, Shalini Z. Ninoria, published by Cerebration Science Publishing Co., Limited
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.