论文信息
论文解读
AI 辅助整理- 方法
- RP与WSST图像融合,ResNet-18/EfficientNet-B0与Vi
- 发现
- 混合模型在Warsaw和ASEEG数据集上分别达82.14%和95.04%准确率,额颞中央电极最具判
- 机会点
- 可探索将RP+WSST融合与混合CNN-ViT架构应用于农业EEG或作物胁迫检测,或迁移至其他生物信号分类任务。
论文摘要
Schizophrenia (SZ) is associated with subtle alterations in neural dynamics that are difficult to capture using conventional electroencephalogram (EEG) features. This study introduces a unified deep learning framework that integrates recurrence plots (RP) with wavelet synchrosqueezed transform (WSST) representations into a single fused image modality and leverages attention-enhanced hybrid convolutional–transformer architectures for subject-level classification. Specifically, we propose RP+WSST image fusion combined with convolutional neural network (CNN)–vision transformer (ViT) hybrids (ResNet-18–ViT and EfficientNet-B0–ViT) to jointly model local spatial patterns and global contextual dependencies. Subject-wise 10-fold cross-validation and a strictly isolated hold-out protocol (70/15/15 split) are employed to prevent subject leakage and provide unbiased performance estimates. Compared with single-backbone CNN and ViT models, the proposed hybrid architecture demonstrates competitive generalization. Interpretability is enhanced using appropriate XAI. Gradient-weighted class activation mapping (Grad-CAM) for the CNN branch and Attention Rollout for the ViT branch. The proposed framework is applied to automated SZ detection from resting-state scalp EEG using two independent databases (Warsaw and Atieh schizophrenia EEG (ASEEG)). On the Warsaw dataset, the ResNet-18–ViT hybrid achieved 82.14% accuracy (AUC 83.58%) using Amor-based WSST features. On the ASEEG dataset, performance reached 95.04% accuracy with AUC values above 95%. Channel-wise analysis identified frontal, temporal, and central electrodes as the most discriminative regions, consistent with known SZ-related electrophysiological abnormalities. These findings demonstrate the practical feasibility of deploying the proposed explainable AI (XAI) framework for reliable EEG-based clinical decision support in psychiatric engineering applications.
全文
Scientific ReportsARTICLE IN PRESS
Article in Press
Explainable schizophrenia detection using fusion
of convolutional neural network and vision
transformer from electroencephalogram
Scientific Reports
Received: 16 April 2026
Accepted: 18 August 2026
Cite this article as: Bagherzadeh S.,
Norouzi M., Kouroshi P .T. et al.
Explainable schizophrenia detection
using fusion of convolutional neural
network and vision transformer
from electroencephalogram. Sci
Rep (2026). https://doi.org/10.1038/
s41598-026-67643-2
Sara Bagherzadeh, Mohammadreza Norouzi, Pouya Tolou Kouroshi, Fatemeh
Farokhshad, Amirhesam Ghasri, Reza Kazemi, Reza Rostami & Ahmad Shalbaf
We are providing an unedited version of this manuscript to give early access to its
findings. Before final publication, the manuscript will undergo further editing. Please
note there may be errors present which affect the content, and all legal disclaimers
apply.
If this paper is publishing under a Transparent Peer Review model then Peer
Review reports will publish with the final article.
https://doi.org/10.1038/s41598-026-67643-2
© The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit
to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do
not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this
article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the
article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain
permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
Explainable Schizophrenia Detection Using Fusion of Convolutional neural
network and Vision Transformer from Electroencephalogram
Sara Bagherzadeh1, Mohammadreza Norouzi 2, Pouya Tolou Kouroshi 3, Fatemeh Farokhshad 1, Amirhesam Ghasri 4,
Reza Kazemi5, Reza Rostami6, Ahmad Shalbaf7
1Department of Biomedical Engineering, Science and Research Branch, Islamic Azad University, Tehran, Iran
2Department of Biotechnology, College of Science, University of Tehran, Tehran, Iran
3Biomedical Engineering Department, School of Electrical Engineering, Iran University of Science and Technology
(IUST), Tehran, Iran
4Department of Biological Sciences, Tarbiat Modares University, Tehran, Iran
5Department of Entrepreneurship, University of Tehran, Tehran, Iran
6Department of Psychology, University of Tehran, Tehran, Iran
7Department of Biomedical Engineering and Medical Physics, Faculty of Medicine, Shahid Beheshti University of
Medical Sciences, Tehran, Iran
Corresponding author: Ahmad Shalbaf, Email: Shalbaf@sbmu.ac.ir, ORCID ID: https://orcid.org/0000-0002-1595-
7281.
Abstract
Schizophrenia (SZ) is associated with subtle alterations in neural dynamics that are difficult to capture using
conventional electroencephalogram (EEG) features. This study introduces a unified deep learning framework that
integrates recurrence plots (RP) with wavelet synchrosqueezed transform (WSST) representations into a single fused
image modality and leverages attention-enhanced hybrid convolutional–transformer architectures for subject-level
classification. Specifically, we propose RP+WSST image fusion combined with convolutional neural network
(CNN)–vision transformer (ViT) hybrids (ResNet-18–ViT and EfficientNet-B0–ViT) to jointly model local spatial
patterns and global contextual dependencies. Subject-wise 10-fold cross-validation and a strictly isolated hold-out
protocol (70/15/15 split) are employed to prevent subject leakage and provide unbiased performance estimates.
Compared with single-backbone CNN and ViT models, the proposed hybrid architecture demonstrates competitive
generalization. Interpretability is enhanced using appropriate XAI methods: Gradient-weighted class activation
mapping (Grad-CAM) for the CNN branch and Attention Rollout for the ViT branch. The proposed framework is
applied to automated SZ detection from resting-state scalp EEG using two independent databases (Warsaw and Atieh
schizophrenia EEG (ASEEG)). On the Warsaw dataset, the ResNet-18–ViT hybrid achieved 82.14% accuracy (AUC
83.58%) using Amor-based WSST features. On the ASEEG dataset, performance reached 95.04% accuracy with AUC
values above 95%. Channel-wise analysis identified frontal, temporal, and central electrodes as the most
discriminative regions, consistent with known SZ-related electrophysiological abnormalities. These findings
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
demonstrate the practical feasibility of deploying the proposed explainable AI (XAI) framework for reliable EEG-
based clinical decision support in psychiatric engineering applications.
Key words: attention, convolutional neural network (CNN); electroencephalogram (EEG); vision transformer (ViT);
deep learning; explainable artificial intelligence (XAI)
- Introduction
Schizophrenia (SZ) is a chronic neuropsychiatric disorder affecting over 20 million individuals globally, characterized
by disruptions in cognitive, perceptual, emotional, and behavioral functions, leading to impaired daily functioning and
a significantly reduced life expectancy (2-3 times higher mortality rate [1] and 10-20 years shorter lifespan [2]
compared to healthy individuals) [3]. Traditional diagnosis relies on subjective clinical interviews, observable
behaviors, and criteria from manuals like the Diagnostic and Statistical Manual of Mental Disorders, 5th Edition
(DSM-5), often taking at least 6 months and prone to inter-observer variability, especially in resource-limited settings
[2,4-6]. Electroencephalogram (EEG) signals offer a non-invasive, cost-effective alternative with high temporal
resolution, capturing neural biomarkers such as microstates, connectivity patterns, and spatiotemporal dynamics that
distinguish SZ patients from healthy controls (HC) [6-8]. Recent advancements in deep learning (DL) have
revolutionized automated SZ detection from EEG, addressing limitations of manual feature engineering through end-
to-end feature extraction and classification, achieving accuracies often exceeding 85% [6,9].
A comprehensive review highlights the evolution of deep learning (DL) models for EEG-based SZ diagnosis,
emphasizing convolutional neural networks (CNNs), transfer learning (TL), and hybrid frameworks while noting
challenges like limited datasets, overfitting, and the need for interpretability [6]. We organize the literature below into
five DL architectural families relevant to our work. - Image-based DL from EEG: Early works focused on transforming raw EEG time-series into 2D representations
for CNN input, such as recurrence plots (RP) or Gramian angular fields (GAF), to leverage image-based DL
architectures like VGGNet derivatives. For instance, one study converted EEG segments from 81 subjects into images
via RP and GAF, training CNN models that outperformed prior graph/table-based methods [5]. Complementing these,
advanced time-frequency methods like synchrosqueezed wavelet transform (WSST) [10,11]—an enhancement over
continuous wavelet transform (CWT) [8] for improved frequency resolution—have been applied to generate
scalogram images for DL classification in related neuropsychiatric contexts. In depression diagnosis, WSST images
fed into fine-tuned ResNet-18 achieved up to 98% accuracy in leave-one-subject-out validation [10]. Similarly, for
emotion recognition, WSST-ResNet-18 on two-channel EEG yielded 75-81% accuracy [11]. Additionally, TL with
pre-trained CNNs (AlexNet, ResNet-18, VGG-19, Inception-v3) on CWT images reached 98.60% accuracy,
demonstrating the efficacy of hybrid CNN-SVM pipelines for early intervention [8]. These WSST and CWT
approaches suggest broader applicability for generating robust EEG images in automated mental health diagnostics. - Microstate-based DL: Microstate analysis, which examines quasi-stable scalp topographies as markers of brain
dynamics, has been integrated with random walk modeling and CNNs for rapid diagnosis. Using EEG from 14 SZ
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
patients and 14 HC, this approach processed microstates via successive random trajectories, achieving 93% accuracy
and highlighting future needs for electrode optimization and portable devices [4].
3. Connectivity-based DL: Brain effective connectivity, quantifying directed information flow via transfer entropy
(TE) [9,12,13], partial directed coherence (PDC), and direct directed transfer function (dDTF), has emerged as a potent
biomarker. One framework generated 19×19 connectivity matrices, visualized as colored images, and fed them into
TL models (VGG-16, ResNet50V2, EfficientNetB0, DenseNet121) augmented with LSTM for spatiotemporal
refinement, attaining 99.90% accuracy [9]. Building on this, fused connectivity maps from PDC, dDTF, and TE were
input to an ensemble of five CNNs using majority voting, yielding 96.67% accuracy under LOSO validation [12].
4. Multiview Feature Fusion DL: Multiview feature fusion addresses single-domain limitations by integrating
complexity measures from discrete wavelet transform (DWT) and multivariate empirical mode decomposition
(MEMD). Entropy features from DWT/MEMD were converted to 2D images for CNN classification or fused in 1D
vectors for feedforward neural networks (FFNN), achieving 90.64% accuracy [7].
5. GNNs and Transformers: To capture multi-channel spatial-temporal dynamics, graph neural networks (GNNs)
and transformers have been proposed. EEG-SymNet employs a hierarchical spatial-temporal GNN, channel
recalibration module, and symmetric transformer, achieving 92.34% accuracy [14]. Complementing this, spatial-
temporal mapping transforms 1D EEG into 3D electrode-based images input to a lightweight Vision Transformer
(LeViT), achieving 98.99% subject-independent accuracy via LOSO and 85.04% subject-dependent via 10-fold
validation [15].
Collectively, these studies demonstrate DL's transformative role in EEG-based SZ diagnosis, with hybrid TL-
connectivity models [9,10] and multiview fusions [7] pushing accuracies toward 99%, though challenges persist in
dataset diversity, real-time deployment, and generalizability across populations [6]. The integration of WSST for EEG
image generation [10,11] offers a promising extension for enhancing resolution in SZ time-frequency analyses. Future
directions include multimodal integration (e.g., with MRI) and explainable artificial intelligence (XAI) to bridge
clinical gaps [6,12].
1.2. Motivation of the study
Recent deep learning advances have shown promise in learning meaningful representations directly from raw
biomedical data. However, most existing EEG-based deep learning studies suffer from three major limitations:
1.Insufficient generalization across subjects due to random train-test splits that cause data leakage, and
optimistic bias from validation-informed early stopping without a properly isolated test set.
2.Use of only single-domain input representations, failing to capture the full temporal–frequency complexity
and nonlinear dynamics of EEG signals.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
3.Lack of interpretability, making the decision process of deep models a "black box" and limiting clinical
trust. Furthermore, when hybrid architectures (e.g., CNN-Transformer) are proposed, standard XAI methods
cannot properly visualize their fused decision process.
To address these key gaps, we propose a hybrid CNN–Transformer model trained on merged RP and WSST EEG
images, evaluated using subject-wise validation and a conservative hold-out protocol, and enhanced with appropriate
XAI methods for transparency. This work aims to bridge the gap between deep learning performance and clinical
usability in schizophrenia diagnosis from EEG.
1.2. Contribution of the study
The main contributions of this work are summarized as follows:
•Hybrid deep architecture for EEG-based schizophrenia detection: We propose a novel hybrid model that
integrates ResNet-18 (CNN) for local spatial feature extraction and ViT for global contextual learning. An
attention-based fusion strategy is introduced to adaptively combine features from both branches, enhancing
discriminative representation from EEG-generated images.
•Multiview EEG image generation using RP + WSST fusion: A neuro-signal informed preprocessing
pipeline is designed that converts EEG time-series signals into merged RP and WSST images, preserving
both temporal recurrence and time–frequency information for improved feature quality.
•Rigorous evaluation protocols for unbiased generalization: Unlike many prior EEG studies that evaluate
using random splits, we employ (1) subject-wise stratified K-fold cross-validation to prevent data leakage,
and (2) a strictly isolated hold-out evaluation (70/15/15 subject split) with a locked test set to provide
conservative, unbiased performance estimates.
•Channel-wise performance analysis for neurophysiological insight: We introduce a per-channel
classification study to analyze EEG electrode contributions and identify the most informative brain regions
for schizophrenia detection, supporting interpretability in the neurophysiology context.
•XAI for clinical transparency: We apply appropriate interpretability methods for each architecture:
Gradient-weighted class activation mapping (Grad-CAM) for the CNN branch and Attention Rollout for the
ViT branch, enabling visualization of decision regions. Limitations of visualizing the fused hybrid
architecture are explicitly acknowledged.
2. Material and Methods
2.1. Warsaw schizophrenia database
In this study we have used two databases to exam the proposed method. First dataset comprised scalp EEG recordings
obtained from a publicly available repository [18,19]. It includes 28 adults—14 individuals diagnosed with SZ and 14
healthy controls—matched on age range and with a balanced sex distribution. Resting-state EEG was acquired while
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
participants sat quietly with eyes closed for approximately 12 minutes. Signals were recorded from 19 electrodes
arranged according to the international 10–20 montage (Fp1, Fp2, F7, F3, Fz, F4, F8, C3, Cz, C4, P3, Pz, P4, T3, T4,
T5, T6, O1, O2) at 250 Hz sampling.
All patients met ICD-10 [3] diagnostic criteria for paranoid schizophrenia (code F20.0); individuals in very early
disease stages were not enrolled. Eligibility required age ≥18 years and, for the SZ group, a minimum 7-day washout
from psychotropic medication prior to recording. Exclusion criteria for all participants included pregnancy, known
structural brain pathology, and neurological disorders such as epilepsy, Parkinson’s disease, or Alzheimer’s disease.
The study protocol received approval from the Ethics Committee of the Institute of Psychiatry and Neurology
(Warsaw, Poland), and all methods were performed in accordance with the relevant institutional guidelines and
regulations. Written informed consent was obtained from all participants prior to EEG recording [18,19]. Group
demographics are summarized in Table 1.
2.2. Atieh schizophrenia database (ASEEG)
The second cohort was from the ASEEG dataset [20,21] which was collected from the Atieh Clinique in Tehran, Iran.
It comprises recordings from 51 individuals with schizophrenia (mean age 31.29 ± 13.63 years; range 15–65; 15
women, 29.41%) and 50 neurologically and psychiatrically healthy controls (mean age 29.4 ±8.3 years; range 18–52;
33 women, 66%).
Recordings were performed in the morning between 9:00 AM and 11:00 AM to control circadian effects on neural
activity. All participants were instructed to maintain normal sleep duration the night before recording (≥7 hours).
However, prior sleep duration was not systematically documented using standardized sleep diaries or actigraphy,
which we acknowledge as a limitation.
Recordings were acquired in a standardized clinical setting by a certified technologist using a Mitsar 21 channel EEG
system (Mitsar Co. Ltd., Russia). Nineteen electrodes similar to Warsaw database were positioned according to the
international 10–20 montage, and signals were sampled at 500 Hz. Two A1 and A2 channels were placed on both ears
as reference and ground. Sessions included resting periods with eyes open and eyes closed; sleep EEGs were
deliberately excluded to avoid confounding effects of sleep state. In this study we processed eyes closed EEG signals.
Schizophrenia diagnoses were established independently by two senior psychiatrists in accordance with DSM-5
criteria. Control participants were individuals referred for routine EEG for indications unrelated to neuropsychiatric
disease. Controls were excluded for any history of bipolar disorder, substance misuse, psychiatric or general medical
conditions requiring hospitalization, epilepsy or use of anticonvulsants, prior electroconvulsive therapy, vagus nerve
stimulation, or transcranial magnetic stimulation. Additional exclusions included traumatic brain injury and
neuroimaging evidence of cerebrovascular disease (ischemic or hemorrhagic).
The ASEEG study protocol was approved by the Ethics Review Board of Shahid Beheshti University of Medical
Sciences (ethics code: IR.SBMU.MSP.REC.1404.441), and all methods were performed in accordance with the
relevant institutional guidelines and regulations and the principles of the Declaration of Helsinki. Informed consent
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
was obtained from all participants and/or their legal guardians or parents, as applicable. For participants under 18
years of age or those unable to provide independent consent, written authorization was obtained from a parent or legal
guardian. Further details regarding the ethical procedures, participant consent, anonymization, and data-sharing
procedures are provided in the original ASEEG dataset publication [21].
Table 1. Summary of SZ EEG databases used in this study, including demographic information, diagnostic criteria,
and EEG recording parameters for schizophrenia patients and healthy control subjects
Group Number
(f/m)
Age (f/m) Criteria Channels (sampling
rate, Hz)
Warsaw schizophrenia database
Schizophrenia 14 (7/7) 28.10 ± 3.70 ICD-10 19 (250)
Normal 14 (7/7) 27.75 ± 3.15 -
ASEEG Database [20]
Schizophrenia 51 (15/36) 31.29 ± 13.63 DSM-5 19 (500)
Normal 50 (33/17) 29.40 ± 8.30 -
2.3. Preprocessing EEG signals
Preprocessing was performed in MATLAB R2025a using EEGLAB. Continuous data were band-pass filtered between
1 and 45 Hz with 4th order Infinite-impulse-response (IIR) Butterworth-characteristic filters to suppress slow drifts
and high-frequency noise before downstream analysis. The choice of a 45 Hz low-pass cutoff was motivated by two
considerations. First, power line interference at 50 Hz (Europe/Iran) or 60 Hz (US) must be removed; a 45 Hz cutoff
completely rejects this artifact without requiring notch filters that can introduce ringing. Second, electromyographic
(EMG) artifacts from scalp muscles dominate frequencies above 45–50 Hz, particularly in resting-state recordings,
and are not of neural origin. We acknowledge that this filtering excludes high gamma band (>45 Hz) activity similar
to Warsaw database [19]. However, lower gamma (30–45 Hz) is preserved, and the chosen range encompasses theta,
alpha, beta, and low gamma rhythms where abnormalities are most consistently replicated in the literature [19, 38-
42].
Artifact validation was performed through visual inspection of all 30-second segments, with segments containing
visible eye blinks, muscle activity, or cardiac artifacts excluded from further analysis. The deep learning architectures
employed (ResNet-18, ViT, and their hybrid) provide inherent robustness to residual temporal artifacts due to their
hierarchical feature extraction and spatial pooling mechanisms, which learn invariant representations rather than
relying on precise temporal alignment of individual samples. Then, signals were downsampled to 128 Hz for
simplified processing and reduced computational costs. After that, signals were divided into non-overlapping 30
second segments to generate images from them.
2.4. Image generation
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
To transform one-dimensional EEG signals into meaningful two-dimensional representations suitable for deep neural
learning, we employed a combination of RP and the WSST. The motivation for this specific fusion arises from the
complementary nature of these two transformations: RP captures nonlinear temporal dynamics and state recurrences
that are invisible to spectral methods, while WSST provides high-resolution time-frequency localization. Neither
representation alone fully captures the complex EEG alterations reported in schizophrenia [16,17,22]; their
combination offers a more complete view of both nonlinear dynamics and spectral irregularities.
Recurrence plots provide a phase-space representation of the EEG signal by measuring the recurrence of dynamical
states over time. Unlike linear spectral methods, RP is derived from time-delay embedding and preserves nonlinear
characteristics of brain activity such as state recurrences, quasi-periodicity, and abrupt dynamical transitions, which
are often reported in schizophrenia due to abnormalities in neural synchrony and disrupted functional connectivity
[16,17,22]. In our implementation, we used the continuous Euclidean distance matrix as the RP texture rather than a
binarized recurrence threshold, preserving rich geometric structure that benefits feature extraction by convolutional
and transformer-based networks.
On the other hand, the WSST provides a high-resolution time–frequency representation by concentrating energy along
instantaneous frequency trajectories [10,11]. Compared to standard spectrograms or continuous wavelet transforms
(CWT) [8], synchrosqueezing improves frequency localization and reveals transient oscillatory events in neural
rhythms, which are often diagnostic in schizophrenia, particularly in theta, alpha, and gamma bands. The WSST
representation is therefore well suited to model the spectral irregularities and energy disorganization present in
schizophrenia EEG recordings. This approach is also supported by earlier studies such as Bagherzadeh et al. [10,11],
who demonstrated that WSST-based image representations can retain discriminative spectral patterns and improve
classification accuracy in EEG analysis.
By merging RP and WSST side-by-side into a single composite image, our method leverages the complementary
strengths of the two transformations. RP enriches the representation with nonlinear temporal structure, while WSST
preserves localized spectral signatures, together producing an informative multimodal image for deep learning. This
fusion is particularly advantageous for our hybrid CNN–Vision Transformer architecture: the convolutional branch
benefits from local recurrence textures in RP, while the transformer branch effectively models long-range spectral
dependencies visible in WSST. Additionally, this 2D merged format enables the use of pretrained computer vision
backbones and makes the analysis compatible with XAI methods such as Grad-CAM, facilitating interpretability by
visualizing relevant recurrence or spectral regions that contribute to classification. Overall, combining RP and WSST
provides a principled, physiologically meaningful, and computationally transferable EEG representation for
schizophrenia detection.
Let 𝑥𝑐[𝑛] denote the preprocessed EEG signal from channel 𝑐, sampled at 𝑓𝑠 = 128 Hz. Each recording is divided
into 𝐾 non-overlapping 30-second segments, where each segment contains 𝐿 = 30𝑓𝑠 = 3840 samples. The k-th
segment is defined as Eq (1) [16]:
𝑠𝑐,𝑘[𝑛] = 𝑥𝑐[(𝑘 ― 1)𝐿 + 𝑛], 𝑛 = 0,1,…𝐿 ― 1, 𝑘 = 1,2,…,𝐾 (1)
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
where 𝑘 = [𝑁/𝐿] and N is the total number of samples in the recording.
-
Recurrence Plot (RP)
For each discrete segment 𝑠𝑐,𝑘[𝑛], 𝑛 = 0,1,…𝐿 ― 1, a phase-space reconstruction is performed using time-delay
embedding according to Eq (2):
𝑧𝑖 = [𝑠𝑐,𝑘[𝑖], 𝑠𝑐,𝑘[𝑖 + 𝜏𝑑], …, 𝑠𝑐,𝑘[𝑖 + (𝑚 ― 1)𝜏𝑑]] (2)
Where 𝑖 = 0,1,…𝐿 ― (𝑚 ― 1)𝜏𝑑 ―1, with embedding dimension 𝑚 and delay 𝜏𝑑 (in samples) selected automatically
by the algorithm [16]. The pairwise Euclidean distance matrix is computed as in Eq (3):
𝐷𝑖𝑗 = ||𝑧𝑖 ― 𝑧𝑗||2 (3)
Unlike binary thresholded recurrence plots, our implementation uses the raw distance matrix 𝐷 to preserve geometric
structure, which is visualized as a grayscale texture image as Eq (4):
𝑅𝑃[𝑖,𝑗] = 𝐷𝑖𝑗 (4) -
Time–Frequency Representation via WSST
The time–frequency structure is extracted using the WSST with the Amor wavelet according to Eq (5):
𝑆[𝑓,𝑛] = 𝑊𝑆𝑆𝑇(𝑠𝑐,𝑘[𝑛]) (5)
where 𝑆[𝑓,𝑛] represents the reassigned wavelet spectrum that concentrates energy along instantaneous frequency
curves, with 𝑓 indexing frequency bins and 𝑛 indexing time samples. The WSST magnitude is visualized as in Eq (6):
𝑊𝑆𝑆𝑇[𝑓,𝑛] = |𝑆[𝑓,𝑛]| (6) -
RP + WSST Merge
To generate a single interpretable 2D image per EEG segment and channel, the two representations are concatenated
horizontally as Eq (7):
𝑀𝑐,𝑘 = [𝑅𝑃𝑠𝑐𝑎𝑙𝑒𝑑|𝑊𝑆𝑆𝑇𝑠𝑐𝑎𝑙𝑒𝑑] (7)
where both matrices are resized to equal height and rendered side-by-side, forming a single merged image. In practice
(as in the code), the RP is placed on the left and the WSST on the right. The merged images are saved in JPEG format
as in Eq (8):
𝑀𝑐,𝑘 ∈ 𝑅𝐻×𝑊 , 𝐻 = 𝑊 = constant (image resolution) (8)
2.5. Hybrid CNN-Vit with attention feature fusion
The proposed classification framework integrates local spatial encoding from a CNN with global context modeling
from a ViT. This hybrid design allows the model to benefit from both fine-grained spatial details and long-range
dependencies within EEG-derived brain imaging data. The architecture consists of four key components: -
CNN feature extractor
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS -
ViT feature extractor
-
learnable attention-based feature fusion
-
supervised classification layer
2.5.1. CNN feature extractor
The CNN branch uses a pretrained convolutional neural network 𝑓𝑐𝑛𝑛(.) (e.g., ResNet-18). Given an RGB input image
𝑥 ∈ 𝑅3×𝐻×𝑊, the CNN outputs a compact feature vector according to Eq (9):
𝑟 = 𝑓𝑐𝑛𝑛(𝑥) ∈ 𝑅𝑑𝑐 (9)
where:
H=W=224 pixels (input resolution),
𝑑𝑐 = dimensionality of CNN features (e.g., 512 for ResNet18).
Since the CNN and ViT output dimensionalities differ, a linear projection layer aligns them according to Eq (10):
𝑟 = 𝑊𝑐𝑟 + 𝑏𝑐, 𝑟 ∈ 𝑅𝑑 (10)
Where, 𝑊𝑐 ∈ 𝑅𝑑×𝑑𝑐 is trainable projection matrix, 𝑏𝑐 ∈ 𝑅𝑑 is the bias vector and d is fused feature dimension (equal
to ViT output size).
2.5.2. ViT feature extractor
The second branch uses a Vision Transformer 𝑓𝑣𝑖𝑡(.). The image is divided into patches and encoded with self-
attention according to Eq (11):
𝑣 = 𝑓𝑣𝑖𝑡(𝑥) ∈ 𝑅𝑑 (11)
where v corresponds to the [CLS] token, a learned embedding summarizing the entire image.
2.5.3. Attention-based feature fusion
To combine CNN and ViT features adaptively, we use a soft attention gating mechanism. First, the two feature vectors
are concatenated according to Eq (12):
𝑧 = [𝑟||𝑣] ∈ 𝑅2𝑑 (12)
This joint feature vector is fed into a two-layer fully connected network according to Eq (13) and Eq (14) [23,24]:
ℎ = 𝜎(𝑊1𝑧 + 𝑏1), ℎ ∈ 𝑅𝑑ℎ (13)
𝛼 = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(𝑊2ℎ + 𝑏2), 𝛼 = [𝛼𝑟,𝛼𝑣] ∈ 𝑅2 (14)
Where, 𝑊1 ∈ 𝑅𝑑ℎ×2𝑑is the weight matrix of first fusion layer, 𝑏1 ∈ 𝑅𝑑ℎ is the bias vector of first fusion layer, 𝜎(.)is
the ReLU activation function, 𝑑ℎis the hidden layer width (e.g. d/2). The hidden representation ℎ ∈ 𝑅𝑑ℎ is then
projected down to a 2-dimensional logit space by the second linear layer with weight matrix 𝑊2 ∈ 𝑅2×𝑑ℎ and bias 𝑏2
∈ 𝑅2. A softmax function is applied to this 2-dimensional logit vector to produce the normalized attention weights
𝛼 = [𝛼𝑟,𝛼𝑣], which sum to 1.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
The attention weights assign importance to each branch according to Eq (15):
𝛼𝑟 + 𝛼𝑣 = 1 , 𝛼𝑟,𝛼𝑣 ≥ 0 (15)
The final fused representation is generated using a weighted combination as in Eq (16):
𝑓 = 𝛼𝑟 𝑟 + 𝛼𝑣𝑣, 𝑓 ∈ 𝑅𝑑 (16)
2.5.4. Supervised classification layer
The fused feature vector is normalized and passed to a linear classifier according to Eq (17):
𝑦 = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(𝑊𝑜𝐿𝑎𝑦𝑒𝑟𝑁𝑜𝑟𝑚 (𝑓) + 𝑏𝑜) (17)
Where, 𝑊𝑜 ∈ 𝑅𝐾×𝑑 is output classifier weights, 𝑏𝑜 ∈ 𝑅𝐾is bias term and K and 𝑦 are the number of output classes and
the predicted class probabilities, respectively.
Pseudocode of the Hybrid CNN–ViT with Attention Fusion is as follows:
Input: Training data D = {(𝑥𝑖, 𝑦𝑖)}, pretrained CNN and ViT
Output: Trained hybrid model
1: Initialize model parameters θ = {θcnn, θvit, θproj, θattn, θcls}
2: for each epoch do
3: for each mini-batch (X, Y) in D do
4: # Feature extraction
5: r =𝑓𝑐𝑛𝑛(X; θcnn) CNN Features
6: 𝑟̃ = 𝑊𝑐·𝑟 + 𝑏𝑐 Dimension alignment
7: v =𝑓𝑣𝑖𝑡(X; θvit) Transformer features
8: # Feature Fusion via Attention
9: 𝑧 = 𝑐𝑜𝑛𝑐𝑎𝑡(𝑟̃, 𝑣)
10: ℎ = 𝑅𝑒𝐿𝑈(𝑊1·𝑧 + 𝑏1)
11: 𝛼 = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(𝑊2·ℎ + 𝑏2) = [𝛼𝑟,𝛼𝑣]
12: 𝑓 = 𝛼𝑟·𝑟̃ + 𝛼𝑣·𝑣
13: # Classification
14: ŷ = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(𝑊𝑜·𝐿𝑎𝑦𝑒𝑟𝑁𝑜𝑟𝑚(𝑓) + 𝑏𝑜)
15: # Compute Loss
16: 𝐿 = 𝐶𝑟𝑜𝑠𝑠𝐸𝑛𝑡𝑟𝑜𝑝𝑦(ŷ, 𝑌)
17: # Backpropagation
18: Update θ using AdamW optimizer
19: end for
20: end for
21: return θ
Figure 1 illustrates the proposed Hybrid CNN–ViT with attention feature fusion. The CNN and Vit blocks are
represented in left and right part of this figure, respectively.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Figure 1. The proposed Hybrid CNN–ViT with attention feature fusion to diagnose SZ from merged RP+WSST
images.
2.5.5. Training Procedure
Cross-entropy loss was minimized using backpropagation. A cosine annealing learning [25] rate scheduler modulated
the learning rate over training iterations. AdamW [26] and Adam [27] were used as optimizers (AdamW had better
results so, just results of this method are reported in this study). Early stopping was applied using the macro F1-score
on the validation set as the performance criterion, with a patience of six epochs to reduce overfitting. Each fold was
trained for up to 12 epochs using a batch size of 32.
Also, we used two pre-trained CNN models, ResNet-18 [28] and efficientNetB0 [29]. Also, the tiny Vit [30,31] is
used to compare the results. Training options were same for all as mentioned in the previous section.
2.6. Evaluation Strategy
To ensure realistic generalization estimates and address potential optimistic bias from validation-informed model
selection, we employed two complementary evaluation protocols. The main analysis is 10-fold CV and hold out
2.6.1. Subject-Wise 10-Fold CV
We adopted a subject-wise stratified 10-fold CV scheme where all images from a given subject were confined entirely
to either the training set or the validation set in each fold, preventing subject-level data leakage. Stratified Group K-
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Fold was used to preserve class distribution across folds while respecting subject groupings. For each fold, training
(80% of subjects) and validation (20% of subjects) sets were strictly separated at the subject level. Early stopping was
applied based on validation macro F1-score with a patience of six epochs. The reported metrics in Tables 2 and 3
represent test set results aggregated across all folds.
2.6.2. Locked Hold-Out Validation
Recognizing that using the validation set for early stopping can introduce optimistic bias, we additionally performed
a strictly isolated hold-out evaluation on best results of 10-fold CV. This protocol used:
- Training set (70% of subjects): Used exclusively for model training
- Validation set (15% of subjects): Used only for early stopping and model selection
- Test set (15% of subjects): Completely locked and evaluated exactly once after all training and model selection
decisions were finalized
Subject-level stratification ensured class balance across all three splits. The test set was never used for any decision
(neither early stopping nor hyperparameter tuning), providing a conservative, unbiased estimate of real-world
generalization performance. Results from this protocol are reported in Table 4 and are discussed as lower-bound
estimates in Section 4.
2.7. Explainable AI
To interpret model decisions, we employed two complementary visualization techniques appropriate to each
architectural component. For the CNN branch (ResNet-18/EfficientNet-B0), we applied Grad-CAM [33,34], which
uses gradients flowing into the final convolutional layer (for ResNet-18, the last convolutional layer is layer4 . This is
the final block in the ResNet architecture where the 512 feature maps of size 7x7 are produced. For EfficientNetB0,
the last convolutional layer is the top_activation layer (the final block's output), which produces 1280 feature maps of
size 7x7) to produce a spatial heatmap of important regions. For class 𝑐, the importance weight for feature map 𝑘 is
defined as Eq (18):
𝑎𝑐𝑘 = 1𝑧 𝑖 𝑗 ∂𝑦𝑐∂𝐴𝑘𝑖𝑗 (18)
where 𝐴𝑘 is the k-th feature map, 𝑦𝑐 is the score for class c, and Z is the spatial dimension size. The heatmap is then
defined according to Eq (19):
𝐿𝑐𝐺𝑟𝑎𝑑―𝐶𝐴𝑀 = 𝑅𝑒𝐿𝑈
𝐾
𝑎𝑐𝑘 𝐴𝑘
(19)
showing regions in the RP+WSST image most influential for predicting schizophrenia.
For the Vision Transformer branch, we employed Attention Rollout [35], which recursively aggregates attention
weights across all transformer layers to produce a saliency map reflecting the model's global contextual focus.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Specifically, attention matrices from each encoder layer are multiplied cumulatively, and the resulting map is projected
onto the input patch grid.
For the hybrid model, note that the final classification decision integrates both CNN and ViT features via attention-
based fusion. Consequently, no single visualization method fully captures the model's complete decision process.
Grad-CAM applied to the CNN branch reveals where convolutional features contribute, while Attention Rollout on
the ViT branch independently shows transformer focus. These are presented side-by-side in the supplementary
materials. A limitation of our current work is the lack of a unified visualization method for attention-fused hybrid
architectures; this remains an important direction for future XAI research in multimodal deep learning.
2.8. Proposed method
Figure 2 illustrates a multimodal deep learning pipeline for SZ detection from EEG data sourced from the Warsaw
and ASEEG databases. Raw EEG signals undergo preprocessing involving frequency filtering, downsampling, and
segmentation, followed by the computation of recurrence plots and wavelet scalograms (Amor and Bump transforms)
for each 30-second EEG segment per channel, which are then merged into composite RP-WSST images. These
224×224×3 images serve as inputs to two parallel vision backbones: a lightweight Vision Transformer (ViT-Tiny with
12 repeated transformer encoder layers) and a fine-tuned ResNet-18 combined with EfficientNet-B0. Both streams
extract high-level features, which are subsequently fused using an attention-based mechanism. The fused
representation passes through a global average pooling layer, a CLS token (in ViT) or linear projection, and finally a
decision layer that outputs binary seizure/normal classification, evaluated via subject-wise K-fold cross-validation
using metrics such as accuracy, recall, precision, F1-score, and AUC.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Figure 2. Block diagram of the proposed method to detect SZ from EEG signals.
2.9. Reporting guidelines
This study is reported in accordance with the TRIPOD+AI guideline for transparent reporting of clinical prediction-
model studies using artificial intelligence. The completed TRIPOD+AI checklist, including the corresponding
manuscript page and line numbers, is provided as Supplementary File S1.
3. Results
The initial experiment was conducted on the Warsaw schizophrenia EEG database and ASEEG database to evaluate
the classification performance of merged RP and WSST images. Figure 3 and Figure 4 illustrate a merged RP+WSST
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
image for one schizophrenia patient (a, c) and one healthy control participant (b, d) from the Warsaw and ASEEG
databases, respectively. The upper panels (a–b) were generated using the Amor wavelet function, and the lower panels
(c–d) using the Bump wavelet function.
(a) (b)
(c) (d)
Figure 3. Example merged RP+WSST images from the Warsaw database for (a, c) a schizophrenia patient and (b, d)
a healthy control subject. Each image was generated from a 30-second EEG segment of channel Fp1. Panels (a–b) use
the Amor wavelet function, and panels (c–d) use the Bump wavelet function. In the WSST component (right half of
each image), the x-axis represents time and the y-axis represents frequency components.
(a) (b)
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
(c) (d)
Figure 4. Example merged RP+WSST images from the ASEEG database for (a, c) a schizophrenia patient and (b, d)
a healthy control subject. Each image was generated from a 30-second EEG segment of channel Fp1. Panels (a–b) use
the Amor wavelet function, and panels (c–d) use the Bump wavelet function. In the WSST component (right half of
each image), the x-axis represents time and the y-axis represents frequency components.
Features were extracted separately using ResNet-18, EfficientNet-B0, ViT, and two hybrid deep learning models
(ResNet-18–ViT+attention and EfficientNet-B0–ViT+attention). A 10-fold subject-based cross-validation strategy
was applied to ensure subject-independent evaluation. Also, a locked hold-out method was used to exam optimistic
bias. All images were resized to 224×224 pixels and normalized using ImageNet statistics to maintain compatibility
with pretrained models. To enhance generalization and reduce overfitting, image augmentation was applied during
training using random horizontal flipping and small-angle random rotations (±10 degrees). Validation images were
resized but not augmented.
3.1. Results on Warsaw Dataset by 10-fold CV
The results in Table 2 show the classification performance in terms of Accuracy, Precision, Recall, F1-score, and
AUC for both Bump and Amor morphological image functions. All standard deviations reported in Tables 2, 3, and 5
represent the variance of the performance metric across the 10 cross-validation folds. Specifically, for each fold we
computed the metric (accuracy, precision, recall, F1-score, AUC) on the test set of that fold. The ResNet-18–
ViT+attention model achieved the highest performance among Bump-based features with an accuracy of 78.57%,
followed closely by EfficientNet-B0–ViT+attention (76.34%). When using Amor-based WSST features, performance
improved slightly, reaching its highest with EfficientNet-B0–ViT+attention (80.36% accuracy) and ResNet-18–
ViT+attention (82.14% accuracy). Overall, Table 2 shows that hybrid models combining CNN and transformer
representations consistently outperform individual CNNs and tiny ViT alone, and Amor features yield better
classification than Bump features.
Table 2. Results of merge RP+WSST images using DL methods through 10-fold subject base CV on Warsaw database
Net Accuracy Precision Recall F1-score AUC
Bump function
ResNet-18 78.51 ± 6.51 76.61 ± 6.28 75.94 ± 6.83 70.72 ± 6.90 78.66 ± 6.35
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
EfficientNet-B0 71.35 ± 6.49 71.59 ± 6.27 71.46 ± 5.40 71.78 ± 5.55 72.94 ± 5.48
tiny ViT 67.85 ± 6.31 68.34 ± 6.50 68.55± 5.68 68.56 ± 5.72 70.03 ± 5.23
ResNet-18-ViT+attention 78.57 ± 5.78 78.42 ± 6.54 78.39 ± 4.67 78.50 ± 4.46 78.35 ± 4.50
EfficientNet-B0-ViT+attention 76.34 ± 4.33 76.50 ± 6.27 76.16 ± 4.35 76.34 ± 4.52 78.12 ± 4.63
Amor function
ResNet-18 71.42 ± 6.25 67.71 ± 6.68 67.41 ± 6.25 67.56 ± 3.62 73.59 ± 6.75
EfficientNet-B0 68.28 ± 5.36 68.46 ± 6.45 68.10 ± 5.29 68.55 ± 5.68 70.37 ± 5.21
tiny ViT 70.52 ± 6.54 70.26 ± 6.28 71.38 ± 6.89 71.45 ± 3.76 71.36 ± 3.62
ResNet-18-ViT+attention 82.14 ± 6.78 83.54 ± 6.67 82.54 ± 4.64 82.44 ± 4.65 83.58 ± 4.64
EfficientNet-B0-ViT+attention 80.36 ± 6.25 80.35 ± 6.53 80.49 ± 6.70 80.26 ± 6.66 81.52 ± 6.70
3.2. Results on ASEEG Dataset by 10-fold CV
To further validate the robustness of the proposed framework, we performed the same experiments on the ASEEG
database. Similar to the Warsaw dataset, RP and WSST time–frequency images were fused and classified using the
five deep learning architectures. Table 3 reports results from the ASEEG database. Across all models, classification
improved significantly compared to the Warsaw dataset. For the Bump function, hybrid ResNet-18–ViT+attention
model achieved 93.06% accuracy, while the ResNet-18 model reached 92.09%, showing stable and high precision
and recall. The EfficientNet-B0–ViT+attention model also performed strongly with 91.41% accuracy. For Amor-
based images, performance increased further, with ResNet-18–ViT+attention obtaining 95.04% accuracy and ResNet-
18 achieving 93.06%. The consistently high F1-scores and AUC values (>92%) indicate excellent model
generalization in the eyes-closed condition. These results suggest that attention-enhanced hybrid models effectively
capture meaningful discriminative EEG features even in a resting-state recording.
Table 3. Results of merge RP+WSST images using DL methods through 10-fold subject base CV on ASEEG database
Net Accuracy Precision Recall F1-score AUC
Bump function
ResNet-18 92.09 ± 3.79 92.34 ± 3.87 92.11 ± 3.89 92.56 ± 3.72 92.21 ± 3.67
EfficientNet-B0 86.39 ± 3.82 87.67 ± 2.45 86.55 ± 3.84 86.56 ± 3.67 86.68 ± 3.86
Tiny ViT 89.33 ± 3.80 89.40± 3.34 89.14± 3.60 89.50 ± 3.62 90.12 ± 3.65
ResNet-18-ViT+attention 93.06 ± 3.58 93.35 ± 3.76 93.15 ± 1.82 93.02 ± 3.80 93.72 ± 3.78
EfficientNet-B0- ViT+attention 91.41 ± 3.59 91.12 ± 3.52 91.31 ± 3.66 91.51 ± 3.54 92.05 ± 3.70
Amor function
ResNet-18 93.06 ± 3.75 93.21 ± 3.79 92.12 ± 3.85 92.56 ± 3.79 93.36 ± 3.93
EfficientNet-B0 84.15 ± 3.39 84.58 ± 3.73 84.03 ± 3.82 84.33 ± 3.97 84.25 ± 3.79
Tiny ViT 90.09 ± 3.85 90.45 ± 3.34 90.20± 3.80 90.33 ± 3.69 90.56 ± 3.85
ResNet-18-ViT+attention 95.04 ± 3.84 94.36 ± 3.80 95.15 ± 3.66 94.58 ± 3.80 95.20 ± 1.89
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
EfficientNet-B0- ViT+attention 92.08 ± 3.89 92.35 ± 3.98 92.12 ± 3.87 92.11 ± 3.87 92.76 ± 3.76
3.3. Comparison of Protocols
To provide conservative, unbiased performance estimates, we evaluated the best-performing model (ResNet-18-ViT)
using a strictly isolated hold-out protocol (70/15/15 subject split) with a locked test set. Table 4 presents the hold-out
accuracies alongside the original 10-fold CV results for all datasets and image types. Across all configurations, the
CV results overestimated true performance by 2.14% to 3.45%. The optimistic bias was consistent across datasets and
image types, confirming that validation-informed early stopping introduces a modest but systematic overestimation.
Notably, even under the strictest evaluation, the hold-out accuracy on ASEEG-Amor (92.59%) remains substantially
above chance and supports the clinical potential of the proposed framework. On the Warsaw dataset, the hold-out
accuracy (78.92% for Amor) confirms the model's ability to generalize to unseen subjects, though the smaller sample
size (28 subjects) limits the upper bound of performance.
Table 4. Comparison of Cross-Validated vs. Hold-Out Test Accuracy using best mode, ResNet-18-ViT
Database Image Type CV Accuracy Hold-out Accuracy Optimistic Bias
Warsaw Amor 82.14% 78.92% -2.22%
Warsaw Bump 78.57% 75.12% -3.45%
ASEEG Amor 95.04% 92.59% -2.45%
ASEEG Bump 93.06% 80.92% -2.14%
3.4. Channel analysis
Figure 5 shows channel analysis averaged over subjects for Warsaw (a & b) database and (c & d) ASEEG database.
The bar charts in Figure 5 illustrate the mean accuracy (blue bars) and standard deviation (orange bars) achieved by
the RP combined with WSST method for classifying schizophrenia using EEG signals from 19 selected channels (C3,
C4, Cz, Fp1, Fp2, Fz, F3, F4, F7, F8, O1, O2, P3, P4, Pz, T5, T6, T3, T4). Accuracies are reported as proportions (0–1
scale) across two datasets: Warsaw (subplots a–b) and ASEEG (subplots c–d), under different configurations—Bump
or Amor wavelet modes). Overall, the RP+SSWT approach yields moderate classification performance, with mean
accuracies ranging from 0.54 to 0.75 across channels and configurations, and low variability (standard deviations
≤0.10), indicating consistent but improvable model stability. In panels (a) and (b), frontal (F7, F8, Fp1) and temporal
(T3, T4) channels consistently outperform others, peaking at 0.69–0.72, likely due to their sensitivity to cognitive and
visual processing disruptions in schizophrenia. Occipital (O1, O2) channels show the lowest accuracies (0.53–0.58),
suggesting limited discriminatory power in these regions for the SSWT-derived features. In the ASEEG dataset, Amor
(c) have higher accuracy on O1, T5 and F7, T3, T4, C3 channels. For Bump (d) Fz, F3, P3, Pz and central channels
are discriminative.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
(a) (b)
(c) (d)
Figure 5. Comparison of mean accuracy across EEG channels for schizophrenia classification using RP combined
with WSST images. Bars represent mean accuracy, and error bars represent ±1 standard deviation across the evaluation
folds: (a) Warsaw dataset with RP+WSST (Amor); (b) Warsaw dataset with RP+WSST (Bump); (c) ASEEG dataset
with RP+WSST (Amor); and (d) ASEEG dataset with RP+WSST (Bump).
3.5. Explainable AI
To enhance the interpretability of the deep learning models employed for SZ classification, we applied two
complementary visualization techniques appropriate to each architectural component. For the CNN-based model
(ResNet-18), Grad-CAM [32,33] was used to visualize regions of the fused RP-WSST images that contributed most
significantly to the model's predictions. For the Vision Transformer (tiny ViT), Attention Rollout [34] was employed,
which recursively aggregates attention weights across all transformer layers to produce a saliency map reflecting the
model's global contextual focus.
The fused RP-WSST images integrate nonlinear dynamical patterns from RP (left quadrant) with time-frequency
representations from WSST (right quadrant), derived from 30-second resting-state EEG epochs. In the WSST
component, the x-axis denotes time, while the y-axis captures frequency components from 0 Hz at the bottom to 64
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Hz at the top. Heatmaps overlay warmer colors (red) on areas of high saliency and cooler colors (blue) on regions of
low importance, providing insights into model focus across ResNet-18 and tiny ViT.
Note on the hybrid model: For the proposed hybrid ResNet-18–ViT architecture with attention-based feature fusion,
we acknowledge that standard Grad-CAM cannot properly visualize the fused decision process, as the final
classification integrates both CNN and ViT features via learned attention weights (Eq. 12-16). Attention Rollout alone
captures only the ViT branch, while Grad-CAM alone captures only the CNN branch. Developing unified visualization
methods for attention-fused hybrid architectures remains an important direction for future XAI research and is beyond
the scope of this work. Consequently, interpretability analysis for the hybrid model is limited to its classification
performance (reported in Tables 2-3), without claiming to visualize its internal decision process.
Figure 6 presents explainability visualizations for representative merged RP+WSST (Amor) images from the ASEEG
dataset, comparing an SZ subject (panels a and c) with a healthy control (panels b and d). Grad-CAM maps from the
ResNet-18 branch are shown in panels (a) and (b). For the SZ example (a), the relatively higher attributions are
distributed across selected grid-like RP structures and a broad low-frequency WSST region, particularly over the
middle-to-later portion of the segment. For the healthy-control example (b), Grad-CAM emphasizes more localized
RP regions, including vertically oriented structures, while the WSST attribution is concentrated primarily within a
restricted low-frequency region during the later portion of the segment.
Attention Rollout maps from the Tiny ViT branch of the hybrid model are shown in panels (c) and (d). Compared
with Grad-CAM, these maps display broader and more diffuse attribution patterns across the RP component. In the
SZ example (c), relatively greater attention is assigned to distributed RP structures and a narrow low-frequency WSST
band, particularly near the beginning of the segment. In the healthy-control example (d), the RP attribution is similarly
distributed but shows a different spatial emphasis, while the WSST attribution remains predominantly concentrated
along the lower-frequency boundary. These examples indicate that the CNN and ViT branches attend to
complementary spatial characteristics of the fused representation: the CNN branch produces comparatively localized
regions of importance, whereas the ViT branch captures more globally distributed relationships. Because these
visualizations represent individual samples, the observed differences should be interpreted qualitatively and not as
definitive class-specific neurophysiological biomarkers.
(a) (b)
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
(c) (d)
Figure 6. Interpretability visualizations for an example merged RP+WSST (Amor) image from the ASEEG database
comparing an SZ subject (a, c) and a healthy control (b, d). Panels show: (a–b) Grad-CAM applied to the final
convolutional layer of ResNet-18; (c–d) Attention Rollout for the tiny ViT. Attribution intensities were normalized
for visualization using the perceptually uniform Cividis color map; yellow indicates relatively higher model
importance, whereas dark blue indicates lower importance. The maps represent qualitative, model-specific attribution
patterns rather than absolute neurophysiological measurements. Note that the hybrid model's decision process integrates
both CNN and ViT features via attention-based fusion; a unified visualization method for such architectures remains an open
challenge and is not attempted here.
Figure 7 presents corresponding explainability visualizations for representative merged RP+WSST (Amor) images
from the Warsaw dataset, contrasting an SZ subject (panels a and c) with a healthy control (panels b and d). In the
Grad-CAM results from the ResNet-18 branch, the SZ example (a) shows relatively diffuse attribution over the RP
component and a localized low-to-mid-frequency region within the WSST component. For the healthy-control
example (b), Grad-CAM emphasizes grid-like and lower RP structures, while the principal WSST attribution is more
localized within a low-frequency region during the earlier portion of the segment.
In the Attention Rollout results from the Tiny ViT branch, the SZ example (c) demonstrates broadly distributed
attention across the RP component, with greater emphasis toward its upper regions, whereas the WSST component
receives comparatively weak and diffuse attention. The healthy-control example (d) also exhibits distributed RP
attention but with a different spatial arrangement, while relatively little importance is assigned to the higher-frequency
WSST regions. Similar to the ASEEG examples, the Warsaw visualizations suggest that the CNN branch emphasizes
more localized discriminative regions, whereas the ViT branch distributes attention more globally across the fused
image. Nevertheless, the precise locations of the highlighted regions differ between datasets and subjects; therefore,
these examples provide qualitative evidence of complementary feature utilization rather than proof of a universal
schizophrenia-specific attribution pattern.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
(a) (b)
(c) (d)
Figure 7. Interpretability visualizations for an example merged RP+WSST (Amor) image from the Warsaw database
comparing an SZ subject (a, c) and a healthy control (b, d). Panels show: (a–b) Grad-CAM applied to the final
convolutional layer of ResNet-18; (c–d) Attention Rollout for the tiny ViT. Attribution intensities were normalized
for visualization using the perceptually uniform Cividis color map; yellow indicates relatively higher model
importance, whereas dark blue indicates lower importance. The maps represent qualitative, model-specific attribution
patterns rather than absolute neurophysiological measurements.
Figure 8 and Figure 9 depict visualizations for misclassified samples from the Warsaw and ASEEG databases (merged
RP+WSST, Amor), using ResNet-18 Grad-CAM (a, c) and tiny ViT Attention Rollout (b, d), respectively. The
perceptually uniform Cividis palette represents normalized relative attribution intensity, with yellow regions
indicating higher importance and dark blue regions indicating lower importance. The visualizations suggest that
misclassification may occur when the model attends to atypical recurrence structures or time–frequency regions that
are not clearly discriminative between the SZ and normal classes. In Figure 8, for example, the highlighted regions
differ between the CNN and ViT branches: Grad-CAM emphasizes localized RP structures and selected WSST
regions, whereas Attention Rollout assigns greater importance to broader, predominantly lower-frequency WSST
regions. This disagreement suggests that the two branches may extract partially conflicting or insufficiently class-
specific information from these samples, contributing to the incorrect predictions. However, because these attribution
maps are qualitative and model-specific, they should not be interpreted as direct evidence of abnormal
neurophysiological activity.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
(a) (b)
(c) (d)
Figure 8. Interpretability visualizations for misclassified samples from the SZ and Normal classes on merged
RP+WSST (Amor) data from the Warsaw database. Panels show: (a, c) Grad-CAM for ResNet-18; (b, d) Attention
Rollout for tiny ViT. Attribution intensities were normalized for visualization using the perceptually uniform Cividis
color map; yellow indicates relatively higher model importance, whereas dark blue indicates lower importance. The
maps represent qualitative, model-specific attribution patterns rather than absolute neurophysiological measurements.
(a) (b)
(c) (d)
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Figure 9. Interpretability visualizations for misclassified samples from the SZ and Normal classes on merged
RP+WSST (Amor) data from the ASEEG database. Panels show: (a, c) Grad-CAM for ResNet-18; (b, d) Attention
Rollout for tiny ViT. Attribution intensities were normalized for visualization using the perceptually uniform Cividis
color map; yellow indicates relatively higher model importance, whereas dark blue indicates lower importance. The
maps represent qualitative, model-specific attribution patterns rather than absolute neurophysiological measurements.
To quantify the qualitative observation that ViT exhibits more globally distributed attention, we computed spatial
entropy of attention maps for all test samples. To quantify the spatial distribution of attention, we computed the
Shannon entropy of the normalized attention weight maps, i.e., this entropy was calculated as 𝐻 = ―
𝑁
𝑖=1
𝑝𝑖log 𝑝𝑖,
where pi represents the normalized attention weight at spatial location i, and N is the total number of spatial locations
[35]. Higher entropy indicates more diffuse, uniform attention distribution. Results are report in Table 5. On the
ASEEG database, ViT demonstrated significantly higher spatial entropy (3.92 ± 0.47) compared to ResNet-18 (2.41
± 0.38, p < 0.001). Similar results were observed on the Warsaw database (ViT: 3.81 ± 0.54; ResNet-18: 2.28 ± 0.45,
p < 0.001). These quantitative metrics support the qualitative observation that the transformer relies on more globally
distributed recurrence regularity compared to the CNN's localized spatial focus.
Table 5. Results of spatial entropy of attention maps for all test samples
Database ResNet-18 Spatial Entropy Tiny ViT (Spatial Entropy) p-value
ASEEG 2.41 ± 0.38 3.92 ± 0.47 <0.001
Warsaw 2.28 ± 0.45 3.81 ± 0.54 <0.001
4. Discussion
The present study investigated the effectiveness of combining RP and WSST for schizophrenia detection from EEG
signals using deep learning architectures. Experiments were performed on the Warsaw and ASEEG datasets using
both subject-wise 10-fold cross-validation and a strictly isolated hold-out protocol to provide unbiased performance
estimates.
4.1. Comparison of DL models
The study compared five deep learning models: ResNet-18, EfficientNet-B0, tiny ViT, ResNet-18–ViT+attention, and
EfficientNet-B0–ViT+attention. Across all datasets, the hybrid architectures consistently achieved the highest
performance in terms of accuracy, precision, recall, F1-score, and AUC. This highlights a key finding: neither CNN
nor transformer architectures alone are sufficient to capture the full complexity of schizophrenia-related EEG patterns;
a hybrid strategy is more effective.
CNN-based models like ResNet-18 and EfficientNet-B0 capture localized texture and spatial patterns from recurrence
plots, making them effective feature extractors for EEG-derived images. However, they struggle to model long
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
temporal dependencies inherent in EEG dynamics. On the other hand, tiny ViT can model global contextual
relationships across the feature space but may lose fine spatial details when working with limited datasets.
By integrating attention mechanisms, the hybrid models leverage the strengths of both CNNs and transformers. The
attention layer adaptively emphasizes the most discriminative time–frequency regions, allowing more precise
separation between schizophrenia patients and healthy controls. The improved classification performance in the
ASEEG dataset further confirms that attention-driven feature fusion enables better generalization across recording
conditions and inter-subject variability. This suggests that future schizophrenia detection systems should adopt multi-
branch hybrid architecture rather than relying solely on conventional CNNs.
4.2. Impact of Evaluation Protocol on Performance Estimates
A critical methodological contribution of this study is the systematic comparison between cross-validated and hold-
out evaluation protocols. Our results, summarized in Table 4, reveal that validation-informed early stopping introduces
a consistent optimistic bias ranging from 2.14% to 3.45% across datasets and configurations.
The bias magnitude was consistent across both datasets, suggesting that dataset size may not be the primary factor
driving optimistic bias in our specific configuration. Instead, the bias likely stems from the early stopping criterion
itself, which halts training when validation performance plateaus, effectively selecting a model that is optimized for
the validation set characteristics. This is a well-known phenomenon in machine learning and underscores the
importance of using locked test sets for final performance reporting.
These findings have important implications for EEG-based deep learning research. Many prior studies reporting >95%
accuracy using k-fold CV without proper test isolation likely present optimistic estimates. We recommend that future
studies adopt either: (1) a locked hold-out test set as reported here, or (2) nested cross-validation with a completely
independent outer test loop, to obtain unbiased generalization estimates.
While the hold-out accuracies (92.59% on ASEEG-Amor) are slightly lower than the CV estimates, they remain
substantially above chance (50%) and clinically relevant. This confirms that the proposed RP+WSST fusion and
hybrid CNN-ViT architecture capture genuine disease-related patterns beyond dataset-specific artifacts.
4.3. Impact of WSST Functions: Amor vs. Bump
Two WSST functions were used to generate time–frequency maps: the Amor (analytic Morlet-like) function and the
Bump function. Across datasets, Amor consistently outperformed Bump in classification results. This can be attributed
to the spectral properties of the Amor function, which provides a smoother and more concentrated time–frequency
representation. This helps to preserve low-amplitude oscillatory behavior common in schizophrenia EEG, such as
abnormalities in alpha (8–12 Hz), beta (13–30 Hz), and gamma (>30 Hz) rhythms.
In contrast, the Bump function has a narrow spectral window and generates sharper but less continuous time–frequency
maps. These discontinuities may reduce feature cohesion and introduce noise sensitivity, especially in EEG, which is
inherently nonstationary. The superior performance of the Amor-based RP–WSST fusion suggests that capturing
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
smooth continuous oscillations is more important than localized sharp frequency spikes when diagnosing
schizophrenia.
Overall, these findings demonstrate that feature selection in the time–frequency domain plays a critical role, and future
EEG-based diagnostic systems should consider designing customized WSST kernels optimized for neurological
signature extraction.
Results of Figure 5 underscore RP+SSWT’s potential for channel-specific EEG analysis in schizophrenia diagnosis,
with frontal, central and temporal emphasis aligning with prior connectivity studies [9,13,19,37-40].
4.4. XAI and physiological relations
Figures 6 and 7 provide qualitative insight into how the different architectures exploit the RP–WSST representations
to discriminate schizophrenia from controls. For the CNN-based model (ResNet-18), Grad-CAM heatmaps reveal
spatial attention patterns, while for the Vision Transformer (tiny ViT), Attention Rollout maps show global contextual
focus. These visualizations should be interpreted as complementary views of model behavior, not as a complete
explanation of the hybrid model's decision process (see Section 2.7).
ResNet-18 Grad-CAM findings: In Figure 6 (ASEEG database, Amor wavelet), schizophrenia subjects show
widespread, strong activations in the recurrence plot (left quadrant) forming broad diagonal and central bands,
suggesting the model relies on complex, globally distributed recurrence structures. The WSST map (right quadrant)
highlights a large, sustained low-to-mid frequency region (theta–alpha bands), indicating that prolonged low/mid-
frequency activity is important for classifying schizophrenia. In contrast, healthy controls exhibit more localized,
compact recurrence patterns and only weak, confined attention in small low-frequency regions over limited time
intervals.
For the Warsaw database (Figure 7, Amor wavelet), similar patterns emerge but with some frequency differences.
Schizophrenia subjects exhibit strong, localized hotspots in the lower-right part of the RP and focused mid-frequency
blobs in the WSST, while healthy controls show more horizontally elongated RP activations and smoother, band-like
WSST patterns.
Tiny ViT Attention Rollout findings: Compared to ResNet-18, the ViT model shows a more diffuse and globally
distributed focus, especially in the WSST component. For schizophrenia subjects, the recurrence plot is attended
almost uniformly with slightly enhanced grid-like structures, indicating that the transformer relies on global recurrence
regularity rather than specific localized motifs. The WSST map is dominated by a narrow, intense low-frequency band
near the bottom edge and early in time. For healthy controls, the recurrence plot exhibits stronger emphasis in the
central cross-like region, and the WSST highlights a persistent low-frequency band in a more extended, smoother
fashion across time with very little weight on higher frequencies.
Physiological interpretation: Across both architectures, schizophrenia segments are consistently associated with
irregular and spatially extended RP saliency compared to the more compact and regular recurrence patterns observed
in healthy controls. In the frequency domain, the ASEEG dataset (Figure 6) shows schizophrenia dominated by low-
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
to-mid frequencies (theta–alpha) in the WSST, whereas the Warsaw dataset (Figure 7) highlights mid-to-high
frequencies (beta–gamma) in patients, with much weaker or more fragmented activity in the same ranges for controls.
This cross-dataset frequency variation may reflect differences in recording protocols (sampling rate: 500 Hz for
ASEEG vs. 250 Hz for Warsaw), medication status (7-day washout in Warsaw vs. uncontrolled in ASEEG), or
population characteristics.
Comparison with established EEG biomarkers: These multi-band, spatially diffuse signatures are consistent with
source-space work by Koshiyama et al. [41], who reported elevated temporal theta, beta, and gamma power and
posterior-cingulate delta–beta abnormalities in schizophrenia, together with altered alpha/theta phase dynamics.
Shoeibi et al. [42] similarly found that the beta frequency band is prominent in SZ patients.
The predominance of theta–alpha features in Figure 4 (ASEEG) dovetails with findings that theta activity in the middle
temporal gyrus correlates with verbal memory impairment and that alpha peak frequency is reduced in temporal and
cingulate regions [41]. The stronger beta–gamma components in Figure 5 (Warsaw) are compatible with observations
of beta band power increases in patients [42].
Our results are also in agreement with machine-learning and cognitive studies that emphasize the importance of low-
frequency rhythms—especially theta—for schizophrenia. Sahu et al. [43] showed that classifiers built on theta rhythm
from central electrodes yielded the best performance and concluded that theta is the most relevant EEG rhythm for SZ
detection. Likewise, Cao et al. [44] found significantly increased resting theta power in schizophrenia, particularly
over central and parietal–occipital regions and reported that higher theta power was negatively correlated with multiple
MATRICS domains, including processing speed, verbal learning, and reasoning.
In our Grad-CAM and Attention Rollout maps, theta–alpha components (Figure 6) and their extension into beta–
gamma ranges (Figure 5) are exactly the regions most heavily weighted by the deep models. This convergence
suggests that the networks are learning the same aberrant oscillatory bands that traditional spectral analyses and ML
pipelines have identified as both diagnostically and cognitively relevant, providing validation that the models capture
physiologically meaningful biomarkers rather than dataset-specific artifacts.
The consistency between CV and hold-out results (Table 4) further supports that the learned physiological patterns
are robust and not merely artifacts of overfitting to the validation set during early stopping.
Note on interpretability scope: The hybrid ResNet-18–ViT model (whose classification performance is reported in
Tables 2-3) integrates both CNN and ViT features via attention-based fusion. As discussed in Section 2.7, visualizing
this combined decision process remains an open methodological challenge. Therefore, the physiological
interpretations presented here are derived solely from the individual ResNet-18 and ViT models, which serve as
approximate proxies for understanding the types of features that contribute to schizophrenia classification.
In a related geometrical approach, Akbari et al. [45] extracted graphical features from the phase space dynamics of
EEG signals and identified frontal and parietal lobes as the most discriminative regions for schizophrenia detection.
Our channel-wise analysis (Figure 5) similarly identifies frontal electrodes as highly discriminative; however, we
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
observe stronger contributions from temporal regions, which may reflect the time-frequency sensitivity of WSST and
the long-range modeling capacity of the Vision Transformer.
4.4. Dataset Variability and Generalizability
The proposed framework achieved higher performance on the ASEEG dataset (95.04% CV accuracy; 89.59% hold-
out) compared to the Warsaw dataset (82.14% CV accuracy; 74.57% hold-out). Several factors likely contribute to
this performance difference. First, the ASEEG dataset is substantially larger (101 subjects) than the Warsaw dataset
(28 subjects). Larger sample sizes enable deep learning models to learn more robust representations with reduced
overfitting, leading to better generalization. Second, the ASEEG dataset was collected in a clinical setting by a certified
technologist using clinical-grade equipment, whereas the Warsaw dataset was collected in a research setting. Clinical
recordings often undergo stricter quality control and may contain more consistent signal quality.
Therefore, while the results on both datasets support the efficacy of the proposed RP+WSST hybrid architecture, the
absolute performance values should not be directly compared without accounting for these confounding factors.
4.5. Clinical Implications
The promising results of this study suggest that the proposed framework could form the basis of a computer-assisted
diagnostic system for schizophrenia. Unlike traditional methods, which depend heavily on clinical interviews and
subjective assessment, this study demonstrates that schizophrenia-related anomalies in EEG can be quantified and
detected automatically using deep learning. This contributes toward the development of objective biomarkers for
mental health diagnosis.
4.6. Comparison with state-of-the-art studies
Tables 6 and 7 summarize the performance of the proposed framework in comparison with recent DL EEG-based SZ
detection studies on same database (Warsaw database), separated by evaluation strategy to ensure statistically rigorous
comparisons.
4.6.1. Cross-validation studies
Methods using k-fold cross-validation (5-fold, 10-fold, or 14-fold) are compared together in Table 6. Under this
category, our 10-fold subject-wise CV achieves 82.14% accuracy, which is lower than several studies reporting >98%
accuracy [8,9,13]. However, those studies used trial-wise CV (not subject-wise), which likely overestimates
performance due to data leakage. When compared against the only other subject-wise CV study [22] (85.71%
accuracy), our model demonstrates superior balance across precision (83.54% vs. 72.54%), recall (82.54% vs.
76.19%), and F1-score (83.58% vs. 73.19%), indicating fewer biased predictions toward one class.
4.6.2. Hold-out and LOSO studies
Methods using hold-out or LOSO validation are compared separately in Table 7. Under this more conservative
evaluation, our strict hold-out protocol (70/15/15 with locked test set) achieves 78.92% accuracy on the Warsaw-
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Amor configuration. While this is lower than LOSO studies reporting 93-97% accuracy [4,12], we note that LOSO on
small datasets (e.g., 14-28 subjects) can produce variable estimates, and our locked test set protocol provides a more
conservative lower bound. Compared to hold-out studies [7,40], our accuracy (78.92%) is modestly lower, which we
attribute to our stricter test isolation (test set used only once) and subject-wise separation.
Together with the interpretability analysis based on Grad-CAM and Attention Rollout, these results suggest that the
proposed hybrid architecture can generalize across unseen subjects. However, the performance gap between CV and
hold-out estimates (Warsaw-Amor: ∆ = 3.22%) highlights the importance of reporting both optimistic (CV) and
conservative (hold-out) bounds for clinical interpretation.
Table 6. Comparison with State-of-the-art DL studies using CV (10-fold or K-fold) on same database (Warsaw)
ref Method Evaluation Accuracy Precision Recall F1-score
[8] CWT, AlexNet-SVM, ResNet-18-
SVM, VGG-19-SVM, Inception-v3-
SVM
10-fold CV 98.60% - 99.65% -
[9] TE, ResNet50V2, VGG16,
DenseNet121, InceptionV3,
EfficientNetB0, EfficientNetB0-
LSTM
10-fold CV 99.90% - - 99.93
[13] TE, AlexNet, Resnet-50, Shufflenet,
Inception, and Xception
10-fold CV 98.51% 98.51% 98.51% 98.51%
[15] spatial–temporal feature mapping
and LeViT
14-fold CV 85.04%
(std=11.33)
[14] HSTG-Net, CRFM, Sym-T 5-fold CV 92.34% - 91.78%, 92.00
[22] Saliency PSD topomap,
MBSzEEGNet
5-fold CV
subject
base
85.71% 72.54% 76.19% 73.19
Our
(2026)
RP+WSST, ResNet-18-ViT,
EfficientNet-B0-Vit, Vit, ResNet-
18
10-fold CV
subject
base
82.14%
(std=6.78)
83.54%
(std=4.67)
82.54%
(std=4.64)
83.58
(std=4.64)
Table 7. Comparison with state-of-the-art DL studies using Hold-Out or LOSO Validation on same database (Warsaw)
ref Method Evaluation Accuracy Precision Recall F1-score
[4] Microstate, CNN LOSO 93.00% - - -
[12] PDC, dDTF, TE, ResNet-50,
Inception-v3, DenseNet-201,
EfficientNetB0, and NasNet-Mobile
LOSO 96.67% - 96.82% -
[40] DWT, dDTF, ConvNext-Tiny,
MobileVit-V2, RegNetx, MNasNet
Hold out 96.00% 94.10% 94.10% 94.10
[7] DWT, MEMD, PCA, CCA, FFNN,
custom CNN, VGG16, ResNet50,
DenseNet121, EfficientNetB0
Hold out 90.64% - 90.09% 91.70
Our
(2026)
RP+WSST, ResNet-18-ViT,
EfficientNet-B0-Vit, Vit, ResNet-18
Strict
Hold-out 78.92% 78.68% 79.97% 78.53%
4.7. Limitations
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
This work has several limitations related to the available datasets and study design. First, although we combined a
publicly available database (Warsaw) with a larger, independent clinical cohort (ASEEG), the overall number of
participants is still modest for training highly deep models such as foundation models, and both cohorts were acquired
at only two centers with similar 10–20 montages. Differences in hardware, sampling rate, and recording protocols
between Warsaw (250 Hz, research setting, eyes closed only) and ASEEG (500 Hz, clinical setting, eyes open and
closed) may introduce site-specific effects, and our results may not fully generalize to EEG acquired in other
laboratories, with different montages, or in routine outpatient and inpatient environments. The demographic
composition of the cohorts represents an additional limitation, particularly the gender imbalance in the ASEEG dataset.
Because resting-state EEG characteristics may vary according to biological sex, age, and their interaction with disease
status, unequal subgroup representation could introduce demographic confounding and may limit the generalizability
of the learned schizophrenia-related patterns.
In addition, all analyses were performed on resting-state EEG; task-related activity and sleep recordings were not
considered, so it remains unclear how well the proposed biomarkers transfer to other cognitive or behavioral states.
While we excluded sleep EEGs to avoid state-related confounding, we did not systematically record participants' prior
sleep duration or sleep quality before the resting-state EEG recording sessions. For the ASEEG dataset, recordings
were performed in the morning (9:00 AM – 11:00 AM) with instructions for normal sleep, but objective sleep metrics
were not collected. For the Warsaw public database, sleep and time-of-day information were not provided by the
original data curators. Sleep variations and circadian timing are known to significantly alter cognitive and neural
performance [46], representing uncontrolled covariates in the present study. Future prospective studies should
incorporate standardized sleep diaries, actigraphy, or polysomnography to control for these effects and standardize
recording times across all participants.
Second, the clinical characterization of subjects was necessarily constrained by the available information. In the
Warsaw cohort, patients were required to meet ICD-10 criteria for paranoid SZ and to undergo at least a 7-day
medication washout, whereas the ASEEG cohort consisted of retrospectively collected clinical EEGs from patients
diagnosed according to DSM-5 criteria, for whom detailed information on illness duration, symptom severity, and
current or past medication was not consistently available. This heterogeneity may influence the learned patterns and
limits our ability to relate model outputs to specific clinical features (e.g., positive vs. negative symptoms, chronic vs.
first-episode SZ).
The comparison between Warsaw and ASEEG datasets is confounded by multiple factors including sample size and
recording environment. This limits our ability to attribute performance differences solely to algorithmic robustness.
Future studies should evaluate the proposed framework on larger, multi-center, demographically balanced cohorts to
obtain unbiased performance estimates.
The proposed hybrid CNN–ViT explainability framework also has several remaining limitations. Grad-CAM and ViT
attention-based visualizations provide complementary post hoc representations of the model’s decision process, but
they do not establish causal relationships between highlighted EEG regions or features and schizophrenia. Grad-CAM
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
results may depend on the selected convolutional layer and can produce spatially coarse maps, whereas attention
weights may reflect information routing rather than direct feature importance. Both explanation types may also vary
with model initialization, preprocessing choices, and small input perturbations. Consequently, agreement between
CNN- and ViT-derived maps should be regarded as supportive consistency rather than independent validation of a
neurophysiological biomarker. Future work should assess explanation stability across folds and model initializations,
incorporate additional attribution approaches such as integrated gradients or perturbation-based analyses, and validate
the identified patterns against established EEG findings and prospective clinical evidence.
In addition to the limitations discussed above, we acknowledge that our primary 10-fold CV results overestimate true
performance due to validation-informed early stopping. The conservative hold-out estimates (Table 4) provide lower-
bound performance benchmarks that should be used for clinical interpretation. Across all configurations, the optimistic
bias ranged from 2.14% to 3.45%, with the Warsaw-Amor configuration showing a bias of 3.22% (CV: 82.14% vs.
hold-out: 78.92%) and the ASEEG-Amor configuration showing a bias of 2.45% (CV: 95.04% vs. hold-out: 92.59%).
Future work should employ nested cross-validation or pre-registered locked test sets to eliminate this bias entirely.
Furthermore, the hold-out protocol was performed with a single random split (70/15/15). While subject-stratified, a
single split may not fully capture performance variability across different partitioning schemes. Future studies should
consider repeated hold-out or Monte Carlo cross-validation to provide confidence intervals around conservative
estimates.
Finally, although we used subject-wise k-fold cross-validation to avoid subject leakage, we did not evaluate the model
on a completely independent external test set from a new site. Future work would include prospective, multi-center
validation with richer clinical annotation and high-density EEG to better assess the robustness, clinical specificity,
and translational potential of the proposed framework.
5. Conclusion
In this work we introduced a subject-level SZ classification framework that fuses nonlinear dynamical information
from recurrence plots with time–frequency structure from WSST and learns discriminative patterns using attention-
based CNN–transformer hybrids. Across two independent EEG databases and both eyes-closed and eyes-open resting
conditions, the proposed ResNet-18–ViT model consistently outperformed individual CNNs and a tiny ViT, with
Amor-based WSST features yielding the best overall performance. While performance on the Warsaw dataset was
moderate (≈82% accuracy), results on the ASEEG database exceeded 95% accuracy and AUC in both EC and EO
conditions, indicating strong generalization under a strict subject-wise cross-validation protocol.
Channel analysis revealed that frontal, temporal, and central regions contribute most strongly to the classification,
which is consistent with known pathophysiology of SZ. Grad-CAM visualizations further showed that the hybrid
model focuses on extended, irregular recurrence structures and abnormal activity spanning theta–alpha through beta–
gamma bands, aligning with previous reports of elevated multi-band power and altered oscillatory dynamics in SZ.
Together, these findings suggest that the proposed RP+WSST representation and hybrid ResNet-18–ViT architecture
capture physiologically meaningful biomarkers rather than dataset-specific artifacts.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
Acknowledgment
The present article is financially supported by “Research Department of the School of Medicine Shahid Beheshti
University of Medical Sciences” (Grant No43016968).
Data availability
In this study we have used Warsaw SZ dataset and ASEEG database which can be accessed through bellow links:
Warsaw SZ data: https://repod.icm.edu.pl/dataset.xhtml?persistentId=doi:10.18150/repod.0107441,
ASEEG database: https://zenodo.org/uploads/18029536.
Fund
The authors did not receive support from any organization for the submitted work.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have
appeared to influence the work reported in this paper.
References
[1] Laursen TM, Munk-Olsen T, Vestergaard M. Life expectancy and cardiovascular mortality in persons with
schizophrenia. Current opinion in psychiatry. 2012 Mar 1;25(2):83-8.
[2] Hjorthøj C, Stürup AE, McGrath JJ, Nordentoft M. Years of potential life lost and life expectancy in
schizophrenia: a systematic review and meta-analysis. The Lancet Psychiatry. 2017 Apr 1;4(4):295-301.
[3] World Health Organization [WHO] (2022). Schizophrenia. Geneva: World Health Organization.
[4] Lillo E, Mora M, Lucero B. Automated diagnosis of schizophrenia using EEG microstates and Deep
Convolutional Neural Network. Expert Syst Appl. 2022;210:118236. doi:10.1016/j.eswa.2022.118236
[5] Kim DW, Yang JJ. EEG-Based Schizophrenia Diagnosis through Time Series Image Conversion and Deep
Learning. Electronics. 2022;11(14):2265. doi:10.3390/electronics11142265
[6] Ranjan R, Sahana BC, Bhandari AK. Deep Learning Models for Diagnosis of Schizophrenia Using EEG Signals:
Emerging Trends, Challenges, and Prospects. Arch Comput Methods Eng. 2024;31:2345-2384. doi:10.1007/s11831-
023-10047-6
[7] Bhadra S, Kumar CJ, Bhattacharyya DK. Multiview EEG signal analysis for diagnosis of schizophrenia: an
optimized deep learning approach. Multimed Tools Appl. 2025;84:27577-27608. doi:10.1007/s11042-024-20205-y
[8] Shalbaf A, Bagherzadeh S, Maghsoudi A. Transfer learning with deep convolutional neural network for
automated detection of schizophrenia from EEG signals. Phys Eng Sci Med. 2020;43:1229-1239.
doi:10.1007/s13246-020-00925-9
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
[9] Bagherzadeh S, Shahabi MS, Shalbaf A. Detection of schizophrenia using hybrid of deep learning and brain
effective connectivity image from electroencephalogram signal. Computers in Biology and Medicine. 2022 Jul
1;146:105570.
[10] Bagherzadeh S, Norouzi MR, Ghasri A, Tolou Kouroshi P, Bahri Hampa S, Farokhshad F, Shalbaf A. Automated
depression detection via cloud based EEG analysis with transfer learning and synchrosqueezed wavelet transform.
Scientific Reports. 2025 May 23;15(1):18008.
[11] Bagherzadeh S, Norouzi MR, Hampa SB, Ghasri A, Kouroshi PT, Hosseininasab S, Zadeh MA, Nasrabadi AM.
A subject-independent portable emotion recognition system using synchrosqueezing wavelet transform maps of EEG
signals and ResNet-18. Biomedical Signal Processing and Control. 2024 Apr 1;90:105875.
[12] Bagherzadeh S, Shalbaf A. EEG-based schizophrenia detection using fusion of effective connectivity maps and
convolutional neural networks with transfer learning. Cogn Neurodyn. 2024;18:2767-2778. doi:10.1007/s11571-024-
10121-0
[13] Bagherzadeh S, Maghsoudi A, Shalbaf A. Detection of schizophrenia patients using convolutional neural
networks from brain effective connectivity maps of electroencephalogram signals. TEHRAN UNIVERSITY
MEDICAL JOURNAL (TUMJ)[Internet]. 2022;79(10 ):754-763. Available from: https://sid.ir/paper/1060712/en
[14] Alsharabi N, Mahendran RK, Maher M, Alharbi S, Aljohani AF, Alogaili MAH. EEG-SymNet: multi-channel
EEG signal-based schizophrenia diagnosis using channel recalibration and symmetric transformer. Eng Sci Technol
Int J. 2025;69:102116. doi:10.1016/j.jestch.2025.102116
[15] Li B, Wang J, Guo Z, Li Y. Automatic detection of schizophrenia based on spatial–temporal feature mapping
and LeViT with EEG signals. Expert Syst Appl. 2023;229:119969. doi:10.1016/j.eswa.2023.119969
[16] Jordan Sorokin (2025). PhaseRecurr(x,varargin)
(https://www.mathworks.com/matlabcentral/fileexchange/56308-phaserecurr-x-varargin), MATLAB Central File
Exchange. Retrieved October 27, 2025.
[17] Shankar A, Khaing HK, Dandapat S, Barma S. Analysis of epileptic seizures based on EEG using recurrence plot
images and deep learning. Biomedical Signal Processing and Control. 2021 Aug 1;69:102854.
[18] [database] E. Olejarczyk, W. Jernajczyk. EEG in schizophrenia. RepOD (2017), 10.18150/repod.0107441
[19] Olejarczyk E, Jernajczyk W. Graph-based analysis of brain connectivity in schizophrenia. PloS one. 2017 Nov
30;12(11):e0188629.
[20] [database] Bagherzadeh S, Norouzi M, Farokhshad F, Tolou Koroushi P, Ghasri A, Bahri Hampa S, Kazemi R,
Rostami R.& Shalbaf A. ASEEG: Atieh Schizophrenia EEG, a novel high-quality dataset designed to advance
biomarker research (Version First version). 2025; https://zenodo.org/uploads/18029536.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
[21] [database] Bagherzadeh, S., Norouzi, M., Farokhshad, F. et al. Atieh Schizophrenia EEG, a novel high-quality
dataset designed to advance biomarker and machine learning research. Sci Data (2026).
https://doi.org/10.1038/s41597-026-07968-9
[22] Huang W, Yan G, Chang W, Zhang Y, Yuan Y. EEG-based classification combining Bayesian convolutional
neural networks with recurrence plot for motor movement/imagery. Pattern Recognition. 2023 Dec 1;144:109838.
[23] Al-Quraishi MS, Elamvazuthi I, Tang TB, Al-Qurishi MS, Adil SH, Ebrahim M, Borboni A. Decoding the user’s
movements preparation from EEG signals using vision transformer architecture. IEEE Access. 2022 Oct
12;10:109446-59.
[24] Lu W, Tan TP, Ma H. Bi-branch vision transformer network for EEG emotion recognition. IEEE Access. 2023
Apr 10;11:36233-43.
[25] Bertsimas D, Tsitsiklis J. Simulated annealing. Statistical science. 1993 Feb;8(1):10-5.
[26] Zhuang Z, Liu M, Cutkosky A, Orabona F. Understanding adamw through proximal methods and scale-freeness.
arXiv preprint arXiv:2202.00089. 2022 Jan 31.
[27] Adam KD. A method for stochastic optimization. arXiv preprint arXiv:1412.6980. 2014 Dec;1412(6).
[28] K. He, X. Zhang, S. Ren, J. Sun. Deep residual learning for image recognition. Proceedings of the IEEE
Conference on Computer Vision and Pattern Recognition (2016), pp. 770-778
[29] Tan M, Le Q. Efficientnet: Rethinking model scaling for convolutional neural networks. InInternational
conference on machine learning 2019 May 24 (pp. 6105-6114). PMLR.
[30] Wu K, Zhang J, Peng H, Liu M, Xiao B, Fu J, Yuan L. Tinyvit: Fast pretraining distillation for small vision
transformers. InEuropean conference on computer vision 2022 Oct 23 (pp. 68-85). Cham: Springer Nature
Switzerland.
[31] Xiao D, Tang Z, Liu Y, Zhou S. ViT-Tiny-TAKD: A Lightweight Vision Transformer with Multi-View Imaging
and Knowledge Distillation for Duck Egg Volume Estimation. Smart Agricultural Technology. 2025 Jul 25:101234.
[32] Sokolova M, Lapalme G. A systematic analysis of performance measures for classification tasks. Information
processing & management. 2009 Jul 1;45(4):427-37.
[33] Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-cam: Visual explanations from deep
networks via gradient-based localization. InProceedings of the IEEE international conference on computer vision 2017
(pp. 618-626).
[34] Wang S, Zhang Y. Grad-CAM: understanding AI models. Computers, Materials, & Continua. 2023;76(2):1321.
[35] Jo S, Jang G, Park H. GMAR: gradient-driven multi-head attention rollout for vision transformer interpretability.
In2025 IEEE International Conference on Image Processing (ICIP) 2025 Sep 14 (pp. 582-587). IEEE.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
[36] Pardyl A, Rypeść G, Kurzejamski G, Zieliński B, Trzciński T. Active visual exploration based on attention-map
entropy. arXiv preprint arXiv:2303.06457. 2023 Mar 11.
[37] Buettner R, Hirschmiller M, Schlosser K, Rössle M, Fernandes M, Timm IJ. High-performance exclusion of
schizophrenia using a novel machine learning method on EEG data. In2019 IEEE International conference on E-health
networking, application & services (HealthCom) 2019 Oct 14 (pp. 1-6). IEEE.
[38] Buettner R, Beil D, Scholtz S, Djemai A. Development of a machine learning based algorithm to accurately detect
schizophrenia based on one-minute EEG recordings 2020.
[39] Li F, Wang J, Liao Y, Yi C, Jiang Y, Si Y, Peng W, Yao D, Zhang Y, Dong W, Xu P. Differentiation of
schizophrenia by combining the spatial EEG brain network patterns of rest and task P300. IEEE transactions on neural
systems and rehabilitation engineering. 2019 Feb 22;27(4):594-602.
[40] Liu T, Zhang J, Dong X, Li Z, Shi X, Tong Y, Yang R, Wu J, Wang C, Yan T. Occipital alpha connectivity
during resting-state electroencephalography in patients with ultra-high risk for psychosis and schizophrenia. Frontiers
in psychiatry. 2019 Aug 16;10:553.
[41] Koshiyama D, Miyakoshi M, Tanaka-Koshiyama K, Joshi YB, Sprock J, Braff DL, Light GA. Abnormal phase
discontinuity of alpha-and theta-frequency oscillations in schizophrenia. Schizophrenia research. 2021 May 1;231:73-
81.
[42] Shoeibi A, Khodatars M, Alinejad-Rorky H, Heras J, Bagherzadeh S, Beheshti A, Gorriz JM. Diagnosis of
schizophrenia in eeg signals using ddtf effective connectivity and new pretrained CNN and transformer models. In
International Work-Conference on the Interplay Between Natural and Artificial Computation 2024 May 31 (pp. 150-
160). Cham: Springer Nature Switzerland.
[43] Sahu PK. Artificial intelligence system for verification of schizophrenia via theta-EEG rhythm. Biomedical
Signal processing and control. 2023 Mar 1;81:104485.
[44] Cao Y, Han C, Peng X, Su Z, Liu G, Xie Y, Zhang Y, Liu J, Zhang P, Dong W, Gao M. Correlation between
resting theta power and cognitive performance in patients with schizophrenia. Frontiers in Human Neuroscience. 2022
Apr 22;16:853994.
[45] Akbari H, Ghofrani S, Zakalvand P, Sadiq MT. Schizophrenia recognition based on the phase space dynamic of
EEG signals and graphical features. Biomedical Signal Processing and Control. 2021 Aug 1;69:102917.
[46] Bouzouraa E, Dhahbi W, Ferchichi A, Geantă VA, Kunszabo MI, Chtourou H, Souissi N. Single-night sleep
extension enhances morning physical and cognitive performance across time of day in physically active university
students: a randomized crossover study. Life. 2025;15(8):1178.
ACCEPTED MANUSCRIPT
ARTICLE IN PRESSARTICLE IN PRESS
论文原文与出版信息
Scientific Reports