Manuscript Offprint
arXiv:2610.37338Normative Deviation Modeling for EEG-based Depression Detection
Abstract
Web-enabled digital health services are expanding access to physiological monitoring and mental health screening. However, electroencephalography (EEG)-based major depressive disorder (MDD) detection remains challenging across heterogeneous data sources, where individual variability and acquisition differences may affect disease-related representations. In this work, we investigate the use of healthy normative references for EEG-based MDD detection. Specifically, structural and distributional reference models are independently trained using healthy control (HC) recordings to characterize departures from healthy EEG patterns. We develop two diagnostic approaches that incorporate normative deviations at different representation levels. Scalar-level Normative Deviation-guided Diagnosis (S-NDD) summarizes structural and distributional deviations into scalar scores and integrates them with deep EEG representations. Feature-level Normative Deviation-guided Diagnosis (F-NDD) retains dimension-wise residuals and combines them with deep EEG representations through attention-based aggregation and auxiliary supervision. We also employ target HC-assisted score calibration for cross-source evaluation without updating the trained models. Experiments on two public EEG datasets examine both approaches under subject-independent within-source and bidirectional cross-source settings. The results demonstrate the effectiveness of normative deviation-guided diagnosis across different evaluation settings.
Keywords
EEG-based Depression Detection, Healthy Normative Modeling, Normative Deviation, Cross-source Diagnosis, Digital Health
This challenge primarily arises from the inherent characteristics of EEG signals, which are non-stationary, noisy, and subject-dependent. Disease-related neural patterns are often intertwined with individual physiological variability and acquisition artifacts .
(a) HC
(b) MDD

(c) MDD - HC
(d) MDD - HC
Figure 1: Inter-electrode correlation patterns in HC and MDD EEG recordings. (a) and (b) show the mean Pearson correlation matrices for HC and MDD, respectively. (c) and (d) show their signed and absolute differences (MDD–HC), respectively. All panels use the same electrode ordering derived from HC-based hierarchical clustering.
Consequently, supervised models may capture subject-specific or recording-related patterns alongside disease-related information, limiting their ability to generalize to unseen subjects and independently collected datasets [17]. The limited number of subjects in psychiatric EEG datasets, coupled with the high cost of clinical data collection and annotation, further exacerbates these generalization difficulties. These limitations highlight the need for learning disease-discriminative representations that remain robust to subject-specific and acquisition-related variations.
A natural way to mitigate this data limitation is to enlarge the training set through data augmentation. In particular, generative data augmentation has attracted increasing attention in EEG analysis, where generative models synthesize additional EEG samples for training [44, 53]. However, generating realistic EEG signals remains challenging, especially in low-data settings [52]. Synthetic EEG samples may exhibit artifacts and deviations from the statistical properties of authentic recordings, raising concerns about their fidelity [5, 11]. Moreover, the benefits of synthetic augmentation for downstream MDD classification may vary across datasets [4]. These concerns suggest that increasing data quantity alone does not necessarily ensure more reliable EEG-based MDD detection.
Clinical studies have reported differences in EEG spectral activity and functional connectivity between individuals with MDD and healthy controls (HC) [7, 20]. Consistent with these findings, our preliminary analysis reveals differences in inter-electrode correlation patterns between the two groups, as shown in Figure 1. These observations indicate that healthy and depressive EEG recordings exhibit distinct patterns of neural activity. Rather than treating HC recordings solely as a comparison group, their physiological patterns may also provide a reference for characterizing individual variations. Healthy normative modeling offers a means of establishing such references from HC recordings and quantifying deviations from them. These deviations may provide complementary information for identifying MDD-related abnormalities. Nevertheless,
Wan Jiang et al.
normative deviations do not necessarily translate into discriminative evidence for MDD detection. Their diagnostic utility depends on how disease-relevant variations are represented and integrated with EEG features, particularly across heterogeneous data sources.
To this end, we investigate normative deviations at different levels of granularity, each capturing distinct aspects of departures from healthy EEG patterns. We therefore develop two diagnostic formulations to examine their respective contributions to MDD detection. Both establish structural and distributional references exclusively from healthy EEG recordings. Specifically, we propose Scalar-level Normative Deviation-guided Diagnosis (S-NDD), which summarizes structural and distributional deviations into compact scores and integrates them with deep EEG representations. We further introduce Feature-level Normative Deviation-guided Diagnosis (F-NDD), which preserves dimension-wise residuals and incorporates them into deep EEG representations through attention-based aggregation and auxiliary supervision. To accommodate cross-source shifts in diagnostic scores, both approaches support target HC-assisted score calibration without updating model parameters. We evaluate their diagnostic performance under within-source and bidirectional cross-source settings.
In summary, our key contributions are as follows:
• We establish structural and distributional healthy references to characterize normative deviations in EEG recordings. These references are learned exclusively from HC and provide complementary information for MDD diagnosis.
• We introduce two normative deviation-guided diagnostic approaches, S-NDD and F-NDD. S-NDD integrates scalar deviation scores with deep EEG representations, while F-NDD incorporates dimension-wise residuals through shared attention aggregation and auxiliary diagnostic supervision.
• We conduct comprehensive evaluations on two public EEG datasets under subject-independent within-source and bidirectional cross-source settings. We further investigate target HC-assisted score calibration to accommodate cross-source variations in diagnostic scores.
2 Related Work
2.1 EEG-based MDD Detection
EEG-based MDD detection has progressed from handcrafted features to deep representation learning. Early CNN-based methods learned discriminative EEG features [1], while graph-based approaches, including MAST-GCN [22], adaptive temporal graph networks [23], and ST-GCA [37], model spatial and temporal dependencies. Hybrid architectures combine graph convolution and Transformers, as in SLiTRANet [34], or adopt lightweight convolutional Transformers [14]. Temporal-spatial-spectral learning has also been explored using emotion-elicited EEG [28]. Research has further examined diverse acquisition and clinical settings, including single-channel detection [41] and multi-dataset diagnosis and treatment-response prediction [27]. General EEG representation models, such as EEG Conformer [35] and CBraMod [42], have advanced convolutional attention and large-scale pretraining. Nevertheless, discriminative EEG representations may retain subject-specific and acquisition-related variations, limiting generalization across independently collected datasets.
2.2 Normative Modeling and Healthy References
Normative modeling characterizes individual observations relative to a reference population, providing a framework for investigating heterogeneity beyond average case–control differences [25, 32]. In psychiatric research, normative models characterize individual deviations from expected physiological or behavioral patterns [25]. Practical frameworks have also been developed to estimate and evaluate such deviations [32]. Generative approaches further learn healthy data distributions and identify departures from these distributions for anomaly detection. For example, diffusion-based models have been trained on healthy brain images to detect and segment abnormalities in CT and MRI data [29]. These studies illustrate the potential of reference-based analysis for characterizing individual abnormalities. However, findings from neuroimaging do not directly establish the diagnostic utility of normative deviations in EEG-based MDD detection. Moreover, the representation and utilization of normative deviations may influence their effectiveness across different subjects and data sources.
2.3 Cross-domain EEG Diagnosis
Domain adaptation aims to reduce distribution discrepancies between source and target domains. Representative methods include DANN [10], which learns domain-adversarial representations, DAN [21], which aligns distributions through maximum mean discrepancy, and Deep CORAL [36], which matches feature covariance statistics. Cross-domain learning has also been explored for EEG-based depression detection. TFST-SDKA [48] combines temporal-frequency-spatial representations with sub-domain knowledge alignment for cross-subject detection. While cross-subject evaluation examines unseen participants, cross-dataset evaluation additionally involves differences in acquisition protocols, electrode configurations, and participant populations. Evaluation protocols depend on the availability of target-domain data for adaptation or calibration. However, reducing distribution discrepancies does not necessarily separate disease-related variations from source-specific characteristics.
3 Preliminaries
We consider EEG-based MDD detection in the context of Web-enabled digital health services. The objective is to identify MDD status by analyzing the brain activity of individual subjects. Given a labeled source dataset , where denotes the EEG recording of subject , and represent the number of electrodes and recording length, respectively, and indicates HC or MDD status. Within-source MDD detection involves training and evaluating diagnostic models on disjoint subjects from the same data source. We further consider cross-source detection, where a Web-based diagnostic service receives EEG recordings from a new data source. Let denote an independently collected target dataset, where represents the recording of target subject . The source-trained diagnostic models are applied to target subjects despite potential differences in electrode configurations and acquisition characteristics. Cross-source detection aims to achieve reliable MDD diagnosis across heterogeneous EEG data sources.

Figure 2: Overview of S-NDD and F-NDD. Both methods establish structural and distributional healthy references in distinct representation spaces. S-NDD quantifies scalar normative deviations for deep EEG feature fusion, whereas F-NDD preserves feature-level residuals for deviation-guided diagnosis. Optional target HC-assisted calibration adjusts cross-dataset predictions.
4 Normative Deviation-guided Diagnosis
Our framework establishes a normative reference from healthy EEG recordings to characterize individual deviations from healthy patterns. Rather than relying solely on supervised EEG representations, we incorporate structural and distributional deviations as complementary diagnostic information. As illustrated in Figure 2, we develop two formulations that represent normative deviations at different levels of granularity. S-NDD summarizes deviations into scalar scores, while F-NDD preserves fine-grained deviation features. Both formulations integrate the resulting deviations with learned EEG representations for MDD detection.
4.1 Dual Healthy Reference Modeling
We construct normative references exclusively from healthy control (HC) recordings to characterize departures from healthy EEG patterns. Since a single reference model may not capture all aspects of healthy variability, we establish complementary structural and distributional references. Specifically, VQ-VAE [40, 51] captures recurring patterns through discrete latent quantization, while a diffusion model [13, 29] learns healthy data distributions through noise-conditioned denoising. To accommodate heterogeneous electrode configurations, EEG recordings are first aligned to a common spatial layout. S-NDD trains its normative models on the aligned EEG signals, whereas F-NDD independently trains corresponding models on handcrafted features described in Section 4.3.
Cross-electrode Spatial Adaptation. To accommodate heterogeneous electrode configurations, we employ spherical spline interpolation [16] to align EEG recordings with the standard 19-electrode International 10–20 system. Given an EEG recording , the adapted signal provides a common electrode configuration for normative modeling and diagnosis. Implementation details are provided in Appendix A.1.
Structural Normative Modeling. We employ VQ-VAE [40, 51] to capture recurring patterns in healthy EEG representations. Given an HC input u, the encoder produces a latent representation , which is quantized into through a learnable codebook. The model is optimized using reconstruction, codebook, and commitment losses:
where MSE( , ) denotes the mean squared error, is the decoder, sg[ ] denotes the stop-gradient operator, and weights the commitment loss. The trained VQ-VAE serves as the structural normative reference for subsequent deviation estimation.
Distributional Normative Modeling. We employ a diffusion model [13, 29] to characterize the distribution of healthy EEG representations. Given an HC input , the forward diffusion process generates , where and is the cumulative product of noise retention coefficients. The model is trained by minimizing
The trained diffusion model serves as the distributional normative reference for subsequent deviation estimation.
Wan Jiang et al.
4.2 Scalar-level Normative Deviation-guided Diagnosis (S-NDD)
S-NDD characterizes individual EEG recordings through scalar deviations from healthy normative references. Given an EEG recording , the structural deviation is measured by the VQ-VAE reconstruction error:
where , , and denote the encoder, quantizer, and decoder, respectively. The distributional deviation is measured by the diffusion denoising reconstruction error:
where is the noisy EEG recording obtained through the forward diffusion process, and denotes the pretrained noise prediction network. The structural and distributional deviations are combined into a scalar score: , where balances their contributions. The score is normalized as , where and are the 5th and 95th percentiles of training deviation scores. A pretrained deep spatiotemporal EEG encoder extracts features from the spatially adapted EEG signal . Deviation-guided fusion integrates these features with the normalized deviation score as , where , , and are learnable parameters. The fusion layer and diagnostic classifier are jointly optimized using cross-entropy loss:
where denotes the cross-entropy loss, represents the classifier parameters, and is the ground-truth label. The pretrained EEG encoder and normative models remain frozen.
4.3 Feature-level Normative Deviation-guided Diagnosis (F-NDD)
While S-NDD summarizes departures from healthy references using scalar deviation scores, F-NDD characterizes deviations at the individual EEG feature level. It preserves dimension-wise structural and distributional residuals for subsequent diagnostic learning.
Handcrafted Feature Extraction. Given a spatially adapted EEG recording , we extract spectral and inter-electrode correlation features to characterize EEG activity. Spectral features describe the distribution of signal power across frequency bands, while correlation features capture statistical relationships between electrodes. These features are concatenated into , where denotes a deterministic feature extractor. Detailed feature definitions and extraction settings are provided in Appendix A.3.
Feature-level Deviation Modeling. Based on the extracted EEG features h, F-NDD estimates structural and distributional deviations using two normative models independently trained on source-domain HC features. The structural residual is computed as
The distributional residual is estimated from diffusion-based denoised features:
where denotes the selected diffusion timesteps, is the number of noise realizations per timestep, and denotes the denoised feature estimate at timestep under the -th noise realization. The structural and distributional residuals are concatenated into a 912-dimensional deviation representation: . The resulting representation is normalized feature-wise using statistics estimated exclusively from source-domain HC training data. Deviation-guided Diagnosis. F-NDD integrates deep EEG representations with normative deviations through separate encoding branches. Given the -th spatially adapted EEG window , a deep spatiotemporal EEG encoder produces . The structural and distributional residuals are separately encoded and projected into a unified deviation representation:
where and denote the respective residual encoders, and is a learnable projection. To maintain consistent window contributions across the two representations, shared attention weights are derived from the deep EEG features:
where N denotes the number of windows and w is a learnable parameter. The resulting representations are
They are concatenated as , which supports window-level prediction with and subject-level prediction through multi-window aggregation. To encourage the deviation representation to retain diagnostic information, an auxiliary classification objective is imposed alongside the fusion classifier:
where and denote the fusion and auxiliary classifiers, respectively, and controls the auxiliary contribution. The normative models remain frozen during diagnostic optimization.
4.4 Target HC-assisted Score Calibration
Cross-dataset variations in acquisition conditions and participant populations may shift the location and scale of diagnostic scores. To address these shifts, we introduce optional target HC-assisted calibration for both S-NDD and F-NDD. Given a small set of target HC recordings, the calibration center and scale for each model m are estimated as
where denotes predicted MDD probabilities of target HC recordings, is the -quantile, and bounds the scale. For a target sample, the calibrated logit is , where is its predicted MDD probability. The final probability is , where is the number of models and is the sigmoid function. Calibration uses only target HC recordings excluded from testing, requires no target MDD labels or model updates. Without target HC data, predictions remain uncalibrated.
Table 1: Performance comparison (%) on Mumtaz2016 under subject-independent 10-fold cross-validation. All baselines are evaluated using a unified protocol. Results are mean ± std., with best and second-best in bold and underlined, respectively.
| Methods | Window-level Metrics (%) | Subject-level Metrics (%) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acc (↑) | Pre (↑) | Rec (↑) | F1 (↑) | AUC (↑) | Acc (↑) | Pre (↑) | Rec (↑) | F1 (↑) | AUC (↑) | |
| Discriminative Learning Methods | ||||||||||
| XGBoost [12] | 83.25 ± 3.06 | 83.54 ± 7.49 | 82.41 ± 5.15 | 82.49 ± 5.85 | 88.73 ± 3.50 | 89.17 ± 4.66 | 93.71 ± 7.30 | 86.33 ± 5.53 | 89.03 ± 4.51 | 92.19 ± 3.92 |
| 1D-CNN-LSTM [2] | 90.53 ± 3.25 | 90.17 ± 6.48 | 91.58 ± 7.27 | 90.52 ± 3.72 | 93.13 ± 3.38 | 93.26 ± 5.30 | 93.25 ± 9.92 | 95.83 ± 6.80 | 94.01 ± 5.18 | 95.13 ± 3.43 |
| 1D-CNN-Trans [28] | 85.56 ± 4.61 | 84.90 ± 6.35 | 87.97 ± 5.76 | 84.98 ± 4.36 | 92.39 ± 5.03 | 86.52 ± 6.18 | 86.02 ± 6.69 | 89.63 ± 5.38 | 86.21 ± 5.24 | 93.96 ± 3.86 |
| CWT-1D-CNN [30] | 91.54 ± 5.36 | 91.95 ± 9.66 | 92.30 ± 8.40 | 92.12 ± 5.40 | 92.57 ± 5.41 | 93.18 ± 6.62 | 92.80 ± 10.20 | 95.00 ± 8.74 | 93.31 ± 6.47 | 95.42 ± 5.15 |
| CWT-2D-CNN [30] | 90.50 ± 4.61 | 89.17 ± 8.65 | 93.63 ± 6.25 | 90.87 ± 4.21 | 94.49 ± 2.08 | 94.09 ± 6.90 | 94.46 ± 9.83 | 95.50 ± 7.53 | 94.54 ± 6.35 | 96.78 ± 2.16 |
| EEGNet [18] | 89.75 ± 5.44 | 90.48 ± 10.66 | 91.32 ± 7.94 | 90.90 ± 6.90 | 94.29 ± 3.50 | 91.67 ± 7.86 | 92.12 ± 6.77 | 93.75 ± 5.62 | 92.04 ± 8.66 | 95.66 ± 5.56 |
| InceptionNet [38] | 86.75 ± 7.99 | 90.66 ± 5.53 | 84.96 ± 5.30 | 86.10 ± 3.91 | 94.35 ± 1.90 | 91.90 ± 5.89 | 95.00 ± 10.12 | 90.83 ± 3.95 | 91.71 ± 5.63 | 95.56 ± 0.90 |
| TSception [8] | 90.23 ± 4.32 | 89.08 ± 4.25 | 91.74 ± 4.10 | 89.90 ± 5.65 | 96.10 ± 2.91 | 91.67 ± 5.56 | 92.14 ± 4.70 | 92.08 ± 5.84 | 91.38 ± 6.40 | 96.70 ± 4.30 |
| GRU-Conv [50] | 90.95 ± 5.54 | 90.90 ± 4.50 | 90.92 ± 4.85 | 90.68 ± 3.23 | 96.19 ± 4.12 | 92.42 ± 6.16 | 93.25 ± 4.92 | 90.83 ± 6.87 | 90.58 ± 5.22 | 97.45 ± 5.32 |
| DeprNet [33] | 90.00 ± 3.00 | 90.66 ± 5.06 | 91.02 ± 6.32 | 90.84 ± 7.39 | 97.59 ± 2.10 | 91.59 ± 6.81 | 92.10 ± 5.28 | 93.75 ± 4.62 | 92.02 ± 6.60 | 98.22 ± 1.50 |
| GC-GRU [23] | 89.74 ± 5.64 | 90.84 ± 4.32 | 87.90 ± 3.39 | 88.78 ± 7.72 | 96.01 ± 3.62 | 93.26 ± 5.26 | 93.46 ± 6.91 | 91.00 ± 5.06 | 91.79 ± 4.59 | 97.90 ± 1.61 |
| ST-GCA [37] | 81.80 ± 4.94 | 79.45 ± 6.54 | 84.39 ± 5.19 | 81.43 ± 4.16 | 90.40 ± 4.75 | 84.77 ± 7.64 | 81.70 ± 6.02 | 90.83 ± 5.54 | 85.40 ± 8.75 | 95.94 ± 4.29 |
| MBA-CA [49] | 86.84 ± 4.13 | 86.94 ± 5.51 | 87.04 ± 6.76 | 86.25 ± 4.50 | 92.99 ± 6.29 | 88.26 ± 4.02 | 87.52 ± 5.13 | 89.58 ± 6.66 | 87.99 ± 4.27 | 92.63 ± 6.67 |
| SC-CNN [41] | 88.05 ± 4.81 | 86.89 ± 6.98 | 87.17 ± 6.07 | 86.73 ± 5.40 | 92.84 ± 6.06 | 89.92 ± 5.23 | 87.94 ± 6.22 | 89.33 ± 7.87 | 88.32 ± 6.89 | 94.90 ± 6.40 |
| CBraMod [42] | 91.47 ± 5.82 | 87.94 ± 9.26 | 96.92 ± 3.47 | 91.98 ± 5.53 | 93.35 ± 6.47 | 90.76 ± 8.28 | 86.40 ± 11.09 | 98.33 ± 5.27 | 91.72 ± 7.62 | 96.87 ± 5.14 |
| BrainOmni-base [46] | 91.41 ± 4.55 | 91.03 ± 8.70 | 92.47 ± 6.40 | 91.35 ± 4.94 | 96.92 ± 2.61 | 94.17 ± 5.62 | 93.49 ± 9.68 | 96.25 ± 8.44 | 94.29 ± 6.05 | 97.61 ± 3.83 |
| KNN [39] | 86.25 ± 4.19 | 82.98 ± 8.03 | 91.43 ± 4.34 | 86.80 ± 5.11 | 90.76 ± 5.33 | 92.50 ± 7.30 | 87.71 ± 11.11 | 95.83 ± 6.50 | 91.12 ± 6.30 | 94.20 ± 4.50 |
| Generative Augmentation Methods | ||||||||||
| DiffMDD [44] | 93.85 ± 3.24 | 92.52 ± 4.98 | 94.86 ± 4.26 | 93.65 ± 3.71 | 95.31 ± 1.74 | 96.55 ± 4.30 | 96.21 ± 3.27 | 94.33 ± 2.79 | 95.26 ± 4.60 | 98.62 ± 1.94 |
| Hard Neg * | 91.50 ± 6.05 | 88.32 ± 11.93 | 95.89 ± 6.43 | 91.33 ± 7.19 | 97.58 ± 2.11 | 92.50 ± 8.29 | 89.21 ± 14.68 | 97.50 ± 7.91 | 92.23 ± 9.13 | 97.40 ± 1.79 |
| Hybrid * | 92.89 ± 9.60 | 91.68 ± 13.10 | 96.70 ± 3.61 | 93.55 ± 8.16 | 98.53 ± 1.07 | 95.83 ± 10.58 | 94.44 ± 14.10 | 96.67 ± 4.85 | 94.55 ± 9.02 | 98.35 ± 1.25 |
| Diff-Aug * | 93.35 ± 4.61 | 93.27 ± 6.24 | 94.19 ± 5.67 | 93.54 ± 4.29 | 97.16 ± 2.89 | 95.00 ± 5.83 | 94.92 ± 9.46 | 97.08 ± 6.23 | 95.58 ± 5.57 | 97.80 ± 1.06 |
| Clean * | 92.86 ± 4.85 | 90.91 ± 8.31 | 94.65 ± 12.68 | 91.93 ± 7.79 | 98.44 ± 1.26 | 93.26 ± 6.60 | 91.17 ± 10.38 | 95.00 ± 15.81 | 91.76 ± 10.47 | 97.85 ± 1.80 |
| F-NDD (Ours) | 95.20 ± 3.63 | 94.94 ± 4.70 | 95.21 ± 10.01 | 94.69 ± 5.78 | 98.01 ± 1.35 | 97.50 ± 4.03 | 97.22 ± 6.00 | 97.50 ± 7.91 | 97.07 ± 5.12 | 98.75 ± 1.05 |
| S-NDD (Ours) | 95.28 ± 3.25 | 93.45 ± 4.25 | 97.18 ± 3.94 | 95.18 ± 3.62 | 98.83 ± 0.95 | 96.67 ± 4.03 | 95.79 ± 4.72 | 97.50 ± 3.66 | 96.30 ± 2.97 | 98.96 ± 0.85 |
- Augmentation strategies implemented in this study for comparison.
HC Structural

0.00
HC Distributional
1.00 Normalized deviation
MDD Structural
0.00
MDD Distributional
1.00
HC Structural
0.00
HC Distributional
1.00 Normalized deviation
MDD Structural
0.00
MDD Distributional
1.00
(a) S-NDD
(b) F-NDD
Figure 3: Normative deviation visualization for selected HC and MDD cases on Mumtaz2016 under within-dataset evaluation. (a) S-NDD and (b) F-NDD illustrate structural and distributional deviation patterns. Deviation maps are normalized for visualization, with non-comparable color scales across methods.
5 Experiments
5.1 Experimental Setup
Implementation Details. EEG recordings are band-pass filtered at 0.5–50 Hz, resampled to 256 Hz, spatially aligned to 19 electrodes, and segmented into 5-s windows with a 2.5-s stride. The VQ-VAE codebooks contain 512 entries of dimension 64 for S-NDD and 64 entries of dimension 32 for F-NDD, with . Both methods use 500-step diffusion models with a linear noise schedule from to 0.02. Normative models are trained exclusively on source-domain HC samples and frozen during diagnostic training. S-NDD fuses scalar normative deviations with deep EEG features using . F-NDD extracts 456-dimensional EEG features and estimates diffusion residuals at with K = 2 noise realizations per timestep. Both methods use a diagnostic learning rate of , with Adam for S-NDD and F-NDD. The auxiliary loss weight is . Further details are provided in Appendix A.
Datasets. We evaluate the proposed methods on Mumtaz2016 [26] and MODMA [3]. Both datasets contain MDD and HC recordings, supporting normative modeling and cross-dataset evaluation under heterogeneous acquisition settings. Mumtaz2016 comprises 34 MDD and 30 HC subjects with 19 electrodes, while MODMA includes 24 MDD and 29 HC subjects with 128 electrodes. After preprocessing, they yield 13,953 and 6,355 EEG segments, respectively. Baselines. We compare our methods with representative baselines from three categories. (i) Discriminative Learning methods include traditional classifiers such as KNN [39] and XGBoost [12], as well as deep EEG models including EEGNet [18], TSception [8], DeprNet [33], InceptionNet [38], CWT-1D-CNN and CWT-2D-CNN [30], CNN-LSTM [2], CNN-Transformer [28], GRU-Conv [50], GC-GRU [23], ST-GCA [37], MBA-CA [49], and SC-CNN [41]. We also consider pretrained EEG models, including CBraMod [42] and BrainOmni-base [46]. (ii) Generative augmentation methods include DiffMDD [44] and four additional comparison strategies developed
Wan Jiang et al.
Table 2: Cross-dataset performance (%) on MODMA with Mumtaz2016 as the source. Results are mean ± std., with best and second-best in bold and underlined, respectively.
| Methods | Acc (↑) | Pre (↑) | Rec (↑) | F1 (↑) | AUC (↑) |
|---|---|---|---|---|---|
| Discriminative Learning Methods | |||||
| XGBoost [12] | 58.45 ± 8.76 | 55.12 ± 9.68 | 60.30 ± 7.95 | 57.60 ± 8.33 | 59.18 ± 9.12 |
| 1D-CNN-LSTM [2] | 57.20 ± 8.42 | 54.35 ± 9.15 | 58.12 ± 7.63 | 56.18 ± 8.84 | 58.14 ± 7.92 |
| 1D-CNN-Trans [28] | 54.51 ± 2.69 | 55.90 ± 28.45 | 10.35 ± 8.23 | 15.77 ± 11.17 | 54.23 ± 6.87 |
| CWT-1D-CNN [30] | 59.80 ± 9.21 | 57.66 ± 8.54 | 57.34 ± 7.89 | 57.50 ± 9.46 | 60.47 ± 8.63 |
| CWT-2D-CNN [30] | 56.34 ± 5.40 | 56.52 ± 27.31 | 11.13 ± 12.88 | 16.62 ± 16.86 | 52.39 ± 5.77 |
| EEGNet [18] | 50.34 ± 4.39 | 42.39 ± 15.19 | 59.78 ± 39.69 | 44.53 ± 23.09 | 51.16 ± 2.12 |
| InceptionNet [38] | 53.49 ± 3.37 | 45.29 ± 15.28 | 8.48 ± 5.06 | 13.80 ± 7.05 | 49.56 ± 3.26 |
| TSception [8] | 60.12 ± 9.53 | 56.45 ± 7.78 | 59.85 ± 8.92 | 58.10 ± 9.16 | 61.05 ± 7.48 |
| GRU-Conv [50] | 49.51 ± 3.99 | 41.42 ± 10.76 | 52.13 ± 42.69 | 38.44 ± 25.73 | 46.82 ± 2.87 |
| DeprNet [33] | 56.80 ± 8.89 | 52.30 ± 9.72 | 58.42 ± 8.05 | 55.18 ± 7.58 | 56.42 ± 8.74 |
| GC-GRU [23] | 55.40 ± 9.34 | 51.20 ± 8.67 | 56.75 ± 9.08 | 53.82 ± 7.91 | 54.89 ± 9.26 |
| ST-GCA [37] | 54.08 ± 2.65 | 34.85 ± 40.23 | 23.99 ± 37.57 | 19.15 ± 27.59 | 49.70 ± 5.24 |
| MBA-CA [49] | 45.94 ± 1.77 | 45.42 ± 0.54 | 95.67 ± 10.22 | 61.40 ± 2.16 | 49.00 ± 3.56 |
| SC-CNN [41] | 48.66 ± 4.29 | 31.84 ± 21.97 | 67.95 ± 47.17 | 43.32 ± 29.91 | 50.34 ± 0.52 |
| CBraMod [42] | 46.85 ± 2.60 | 45.48 ± 0.71 | 85.85 ± 21.52 | 58.40 ± 6.44 | 50.90 ± 3.47 |
| BrainOmni-base [46] | 54.62 ± 1.40 | 49.01 ± 2.98 | 48.04 ± 22.87 | 45.45 ± 17.29 | 55.38 ± 2.02 |
| KNN [39] | 55.18 ± 0.30 | 63.15 ± 13.64 | 2.54 ± 0.36 | 4.87 ± 0.65 | 49.90 ± 0.35 |
| Generative Augmentation Methods | |||||
| DiffMDD [44] | 68.34 ± 8.19 | 64.32 ± 9.45 | 58.60 ± 8.62 | 58.94 ± 9.78 | 69.12 ± 7.85 |
| Hard Neg * | 69.90 ± 10.65 | 65.28 ± 16.84 | 61.98 ± 14.86 | 59.85 ± 14.64 | 79.44 ± 13.28 |
| Hybrid * | 61.81 ± 10.52 | 60.52 ± 18.48 | 48.94 ± 11.47 | 51.14 ± 10.67 | 58.31 ± 16.21 |
| Clean * | 64.57 ± 15.55 | 65.38 ± 10.53 | 65.95 ± 10.90 | 63.48 ± 16.74 | 70.21 ± 12.94 |
| Diff-Aug * | 66.68 ± 19.17 | 63.02 ± 19.13 | 57.97 ± 16.14 | 57.22 ± 13.11 | 67.22 ± 12.63 |
| Domain Adaptation Methods | |||||
| DANN [10] | 55.81 ± 6.98 | 65.01 ± 12.31 | 50.00 ± 4.17 | 55.95 ± 3.27 | 60.01 ± 7.66 |
| DAN [21] | 51.94 ± 1.34 | 75.27 ± 21.46 | 27.78 ± 13.39 | 37.61 ± 13.49 | 59.28 ± 4.19 |
| Deep CORAL [36] | 57.36 ± 2.69 | 66.57 ± 13.21 | 58.33 ± 18.16 | 59.44 ± 6.97 | 61.33 ± 7.35 |
| TFST-SDKA [48] | 55.81 ± 6.98 | 63.12 ± 8.01 | 50.00 ± 15.02 | 55.08 ± 11.24 | 58.85 ± 8.95 |
| F-NDD † (Ours) | 68.22 ± 2.69 | 80.39 ± 3.40 | 56.94 ± 2.41 | 66.67 ± 2.82 | 70.10 ± 1.13 |
| S-NDD (Ours) | 78.50 ± 5.81 | 70.82 ± 7.57 | 75.34 ± 9.89 | 69.96 ± 6.16 | 79.31 ± 3.90 |
- Comparison strategies developed in this study, as in Table 1. † Target HC-assisted score calibration.
in this study (Diff-Aug, Hard Neg, Clean, and Hybrid). These methods investigate the use of synthetic EEG samples for depression detection. Implementation details are provided in Appendix C. (iii) Domain adaptation methods include DANN [10], DAN [21], Deep CORAL [36], and TFST-SDKA [48], which are evaluated only in cross-dataset settings.
Evaluation Metrics. Following established evaluation practices in EEG-based MDD detection [37, 44], we report Accuracy (Acc), Precision (Pre), Recall (Rec), F1-score (F1), and ROC-AUC (AUC) at both window and subject levels. Both S-NDD and F-NDD generate window-level predictions from individual EEG windows. For S-NDD, subject-level predictions are obtained by majority voting across windows, with ties assigned to MDD, and subject-level AUC is computed from the mean MDD probability. For F-NDD, subject-level predictions are generated directly from attention-aggregated window representations, as described in Section 4.3.
5.2 MDD Detection Performance
We evaluate MDD detection on Mumtaz2016 using subject-independent 10-fold cross-validation, with all windows from each subject assigned to the same fold. As shown in Table 1, S-NDD achieves the highest window-level accuracy, recall, F1, and AUC of , , , and , respectively. Its accuracy exceeds CWT-1D-CNN, the strongest discriminative baseline in accuracy, by 3.74 percentage points. This improvement is accompanied by high sensitivity without a substantial loss of precision. For example, CBraMod achieves a comparable recall of but only precision, whereas S-NDD attains recall and precision, indicating better control of false positives. S-NDD and F-NDD exhibit
Table 3: Cross-dataset performance (%) on Mumtaz2016 with MODMA as the source dataset. All methods use target HC-assisted score calibration. Results are mean ± std., with best and second-best in bold and underlined, respectively.
| Methods | Acc (↑) | Pre (↑) | Rec (↑) | F1 (↑) | AUC (↑) |
|---|---|---|---|---|---|
| Discriminative Learning Methods | |||||
| XGBoost [12] | 48.84 ± 8.39 | 76.73 ± 7.17 | 30.95 ± 17.62 | 41.91 ± 20.06 | 57.30 ± 3.24 |
| 1D-CNN-LSTM [2] | 76.74 ± 8.39 | 90.55 ± 8.74 | 73.81 ± 20.62 | 79.38 ± 11.12 | 83.57 ± 4.92 |
| 1D-CNN-Trans [28] | 56.59 ± 8.80 | 74.96 ± 9.49 | 55.95 ± 29.95 | 58.97 ± 21.37 | 61.11 ± 3.94 |
| CWT-1D-CNN [30] | 75.19 ± 1.34 | 82.48 ± 5.41 | 79.76 ± 11.48 | 80.52 ± 2.93 | 80.08 ± 5.99 |
| CWT-2D-CNN [30] | 48.84 ± 4.03 | 62.87 ± 6.21 | 54.76 ± 5.46 | 58.20 ± 1.53 | 46.98 ± 5.17 |
| EEGNet [18] | 79.07 ± 4.03 | 86.30 ± 10.25 | 83.33 ± 14.43 | 83.60 ± 4.11 | 91.11 ± 2.16 |
| InceptionNet [38] | 34.11 ± 2.69 | 49.29 ± 3.96 | 27.38 ± 4.12 | 35.00 ± 2.96 | 32.54 ± 7.52 |
| TSception [8] | 64.34 ± 8.17 | 87.60 ± 7.92 | 54.76 ± 21.82 | 64.99 ± 13.65 | 81.19 ± 4.45 |
| GRU-Conv [50] | 56.59 ± 10.49 | 76.12 ± 4.13 | 48.81 ± 21.82 | 57.38 ± 17.93 | 62.94 ± 4.16 |
| DeprNet [33] | 38.76 ± 7.10 | 53.00 ± 19.70 | 21.43 ± 15.57 | 29.16 ± 19.67 | 43.73 ± 8.32 |
| GC-GRU [23] | 41.09 ± 12.81 | 52.77 ± 9.03 | 38.10 ± 35.05 | 40.60 ± 25.33 | 43.10 ± 1.49 |
| ST-GCA [37] | 51.94 ± 10.49 | 70.75 ± 4.17 | 42.86 ± 21.43 | 51.67 ± 18.46 | 62.70 ± 6.28 |
| MBA-CA [49] | 78.29 ± 5.37 | 84.75 ± 4.74 | 82.14 ± 14.29 | 82.76 ± 5.93 | 87.46 ± 3.42 |
| SC-CNN [41] | 48.06 ± 9.40 | 69.63 ± 2.80 | 34.52 ± 23.78 | 42.59 ± 25.72 | 59.29 ± 8.90 |
| CBraMod [42] | 43.41 ± 3.55 | 69.58 ± 7.20 | 23.81 ± 8.99 | 34.74 ± 10.03 | 52.54 ± 4.26 |
| BrainOmni-base [46] | 57.36 ± 9.68 | 74.72 ± 3.87 | 53.57 ± 24.74 | 59.54 ± 18.84 | 68.57 ± 4.17 |
| KNN [39] | 83.72 ± 2.33 | 92.58 ± 6.44 | 82.14 ± 7.14 | 86.73 ± 2.23 | 91.67 ± 2.27 |
| Generative Augmentation methods | |||||
| DiffMDD [44] | 41.09 ± 8.80 | 40.38 ± 35.14 | 23.81 ± 29.74 | 27.74 ± 30.48 | 53.02 ± 5.61 |
| Hard Neg * | 37.21 ± 2.33 | 57.94 ± 8.36 | 14.29 ± 0.00 | 22.87 ± 0.65 | 38.89 ± 4.27 |
| Hybrid * | 40.31 ± 3.55 | 72.69 ± 23.91 | 16.67 ± 2.06 | 26.60 ± 1.44 | 65.00 ± 11.27 |
| Clean * | 33.33 ± 1.34 | 43.33 ± 5.77 | 7.14 ± 0.00 | 12.25 ± 0.22 | 38.17 ± 2.76 |
| Diff-Aug * | 37.98 ± 1.34 | 65.00 ± 8.66 | 10.71 ± 0.00 | 18.37 ± 0.33 | 37.14 ± 3.31 |
| Domain Adaptation methods | |||||
| DANN [10] | 69.77 ± 8.39 | 88.47 ± 8.39 | 64.29 ± 25.00 | 71.78 ± 12.08 | 84.21 ± 5.11 |
| DAN [21] | 51.94 ± 23.75 | 45.71 ± 40.51 | 42.86 ± 49.10 | 42.52 ± 42.86 | 72.06 ± 22.95 |
| Deep CORAL [36] | 75.97 ± 3.55 | 87.10 ± 13.90 | 78.57 ± 15.57 | 80.87 ± 1.48 | 90.40 ± 1.62 |
| TFST-SDKA [48] | 28.68 ± 7.10 | 17.78 ± 16.78 | 4.76 ± 4.12 | 7.43 ± 6.46 | 18.89 ± 8.12 |
| F-NDD (Ours) | 89.15 ± 1.34 | 93.08 ± 5.19 | 90.48 ± 5.46 | 91.56 ± 1.01 | 94.21 ± 0.90 |
| S-NDD (Ours) | 82.95 ± 3.55 | 80.44 ± 2.87 | 97.62 ± 2.06 | 88.19 ± 2.32 | 88.57 ± 2.75 |
- Comparison strategies developed in this study, as in Table 1.
different strengths across evaluation levels. Their window-level accuracies are close (95.28% and 95.20%, respectively), while S-NDD achieves higher recall, F1, and AUC. At the subject level, F-NDD achieves the highest accuracy, precision, and F1 of 97.50%, 97.22%, and 97.07%, respectively. Both variants attain 97.50% recall, with F-NDD achieving higher precision and S-NDD obtaining the highest AUC of 98.96%. These results support the diagnostic value of normative deviations across both evaluation levels, with S-NDD providing stronger window-level discrimination and F-NDD achieving better subject-level accuracy and F1.
Beyond Generative Augmentation. Unlike generative augmentation methods that expand training data with synthetic EEG samples, S-NDD and F-NDD use generative models to establish healthy references and estimate normative deviations. As shown in Table 1, both variants outperform DiffMDD and the four augmentation baselines in accuracy and F1 at both evaluation levels. At the window level, S-NDD achieves accuracy and F1, improving over DiffMDD by 1.43 and 1.53 percentage points, respectively. Although Hybrid achieves a competitive AUC of , its accuracy remains at , suggesting that strong ranking performance does not necessarily translate into equally effective classification. S-NDD achieves a higher AUC of together with higher accuracy and F1. At the subject level, F-NDD achieves the highest accuracy and F1 of and , while S-NDD obtains the highest AUC of . These results support learning deviations from healthy references as an effective alternative to synthetic data augmentation for EEG-based MDD detection.
HC Structural
HC Distributional
MDD Structural
MDD Distributional
HC Structural
HC Distributional
MDD Structural
MDD Distributional

0.00
1.00
Normalized deviation
0.00
1.00
0.00
1.00
Normalized deviation
0.00
1.00
Figure 4: Normative deviation visualization for selected HC and MDD cases on MODMA under cross-dataset evaluation with Mumtaz2016 as the source dataset. (a) S-NDD and (b) F-NDD illustrate structural and distributional deviation patterns.
HC Structural
HC Distributional
MDD Structural
MDD Distributional
HC Structural
HC Distributional
MDD Structural
MDD Distributional

0.00
1.00 Normalized deviation
0.00
1.00
0.00
1.00 Normalized deviation
0.00
1.00
(a) S-NDD
(b) F-NDD
Figure 5: Normative deviation visualization for selected HC and MDD cases on Mumtaz2016 under cross-dataset evaluation with MODMA as the source dataset. (a) S-NDD and (b) F-NDD illustrate structural and distributional deviation patterns.
(a) HC
(b) MDD

Figure 6: F-NDD scores before and after target HC calibration for (a) HC and (b) MDD. Green lines indicate corrected predictions, crosses denote errors, and the dashed line marks the decision threshold.
Normative Deviation Visualization. Figure 3 visualizes structural and distributional deviations for selected HC and MDD cases on Mumtaz2016. In both S-NDD and F-NDD, the selected MDD cases exhibit more widespread structural deviations than their HC counterparts, suggesting that healthy-reference reconstruction captures differences between the diagnostic groups. Meanwhile, distributional deviations exhibit distinct spatial patterns, indicating that they characterize different aspects of EEG variations from structural reconstruction errors. The two formulations also produce different deviation maps, reflecting their signal- and feature-space representations, respectively. Together, these observations illustrate how healthy references characterize EEG variations at different levels, supporting the use of normative deviations in diagnostic learning.
5.3 Cross-Dataset Generalization
Mumtaz2016 to MODMA. We train S-NDD and F-NDD on Mumtaz2016 and evaluate them on MODMA, mapping its 128-electrode recordings to 19 electrodes through spatial adaptation. F-NDD additionally uses target-domain HC data for score calibration. As shown in Table 2, S-NDD achieves the highest accuracy of 78.50% and F1 of 69.96%. Compared with the best results among DANN, DAN, Deep CORAL, and TFST-SDKA, these represent gains of 21.14 and 10.52 percentage points, respectively. S-NDD also exceeds the strongest non-ours results in accuracy and F1 by 8.60 and 6.48 points, while achieving an AUC comparable to the best baseline (79.31% versus 79.44%). These results support the effectiveness of normative deviation modeling beyond the evaluated domain alignment and augmentation approaches. Compared with calibrated F-NDD, S-NDD achieves higher recall (75.34% versus 56.94%) with lower precision, yielding better overall accuracy and F1 without target-domain calibration.
MODMA to Mumtaz2016. To account for potential shifts in prediction scores, we evaluate reverse transfer using target HC-assisted score calibration for all methods. Seven target HC record groups are reserved for calibration and excluded from diagnostic testing, with model parameters kept fixed. Table 3 shows that F-NDD achieves the highest accuracy, precision, F1, and AUC of 89.15%, 93.08%, 91.56%, and 94.21%, respectively. It outperforms KNN, the strongest baseline in accuracy, by 5.43 percentage points in accuracy and 4.83 points in F1. Its accuracy also exceeds Deep CORAL, the strongest domain adaptation baseline, by 13.18 points. S-NDD achieves the highest recall of 97.62%, whereas F-NDD combines 90.48% recall with substantially higher precision (93.08% versus 80.44%). Thus, under the same calibration setting, F-NDD provides a more favorable balance between MDD detection and false-positive control.
Visualization Analysis. Figure 4 and Figure 5 visualize structural and distributional deviations in both transfer directions. The selected cases exhibit different regional patterns across the two views, illustrating how they characterize distinct aspects of departure from the healthy reference. For example, the S-NDD MDD case on MODMA exhibits localized structural deviations alongside more widespread distributional deviations. Figure 6 further illustrates the effect of HC-assisted calibration on F-NDD. Most HC scores move below the threshold of 0.5, correcting false positives, while most
Wan Jiang et al.
Table 4: Ablation results (%) of S-NDD and F-NDD on Mumtaz2016. Results are reported as mean ± std., with the best and second-best results in bold and underlined, respectively.
| Methods | Acc (↑) | Pre (↑) | Rec (↑) | F1 (↑) | AUC (↑) |
|---|---|---|---|---|---|
| S-NDD Ablation Study | |||||
| w/o Both | |||||
| w/o Dist. | |||||
| w/o Struct. | |||||
| Dec. Fusion | |||||
| Mahalanobis | |||||
| OCSVM | |||||
| Simple VAE | |||||
| S-NDD (Ours) | |||||
| F-NDD Ablation Study | |||||
| w/o Deviations | |||||
| w/o Struct. | |||||
| w/o Dist. | |||||
| Spectral only (95-D) | |||||
| Correlation only (361-D) | |||||
| F-NDD (Ours) | |||||
MDD scores remain above it, with a few additional false negatives. Correspondingly, accuracy increases from 67.44% to 89.15% and F1 from 79.42% to 91.56%, whereas AUC changes modestly from 93.41% to 94.21%. This suggests that calibration primarily improves threshold-based decisions while largely preserving the model's discriminative ranking.
5.4 Ablation Study
Scalar-level Deviation (S-NDD). As shown in Table 4, removing both structural and distributional deviations reduces accuracy from 95.28% to 85.56%, indicating the contribution of normative information beyond deep EEG representations. Removing the distributional or structural component yields 90.40% and 93.11% accuracy, respectively, with a larger reduction observed when distributional deviations are excluded. Replacing deviation-guided fusion with decision-level fusion decreases accuracy to 93.12%, supporting the adopted feature-fusion strategy. Alternative normative priors based on Mahalanobis distance, OCSVM, and Simple VAE achieve accuracies of 92.62%, 92.25%, and 92.56%, respectively. Although OCSVM attains slightly higher recall (97.43% versus 97.18%), S-NDD achieves the highest accuracy, F1, and AUC among these configurations. These results support the combined use of structural and distributional references with deviation-guided feature fusion.
Feature-level Deviation (F-NDD). As shown in Table 4, removing both deviation components reduces accuracy from 95.20% to 88.75%. Excluding structural or distributional residuals further reduces accuracy to 87.12% and 87.42%, respectively, indicating that the two components contribute jointly to diagnostic performance. The larger degradation relative to removing both deviations also suggests that retaining only one residual component does not necessarily improve the learned representation. Regarding feature composition, using only spectral features (95-D) yields 86.11% accuracy, while correlation-only features (361-D) achieve 74.15%. The complete F-NDD achieves 95.20% accuracy and 94.69% F1, supporting the combined use of spectral and inter-electrode correlation information for feature-level deviation modeling. Overall, the ablations highlight the contribution of structural and distributional deviations in both diagnostic formulations.

(a) Codebook size
(b) Fusion weight
Figure 7: Sensitivity of S-NDD to (a) codebook size and (b) fusion weight on Mumtaz2016. Orange dots indicating the highest means.


(a) Codebook size
(b) Deviation-classification weight
Figure 8: Sensitivity of F-NDD to (a) codebook size and (b) auxiliary loss weight on Mumtaz2016. Orange dots indicating the highest means.
5.5 Sensitivity Analysis
We examine the sensitivity of S-NDD and F-NDD to their key hyperparameters on Mumtaz2016. As shown in Fig. 7, S-NDD achieves the highest mean accuracy, F1, and recall at and in the respective sweeps. Performance generally remains stable across moderate fusion weights, while larger codebooks do not consistently improve the results. Figure 8 shows that F-NDD achieves the highest mean accuracy and recall at , while yields the highest F1. For the auxiliary loss weight, achieves the highest means across all three metrics. Overall, F-NDD exhibits small performance variations across the tested configurations.
6 Conclusion and Future Work
In this paper, we investigate healthy normative deviations for EEG-based MDD detection through two approaches, S-NDD and F-NDD. Both learn structural and distributional references from healthy controls and incorporate deviations at scalar and feature levels, respectively. Experiments on two public EEG datasets demonstrate their effectiveness under within-source and bidirectional cross-source settings. The two approaches exhibit distinct strengths across diagnostic levels and transfer directions. Optional target HC-assisted score calibration further improves performance in selected cross-source settings. These findings highlight the value of healthy normative references in complementing supervised EEG representations. As spatial interpolation mainly aligns electrode geometry, future work will investigate unsupervised domain adaptation to mitigate remaining acquisition-related differences across datasets.
References
[1] U. Rajendra Acharya, Shu Lih Oh, Yuki Hagiwara, Jen Hong Tan, Hojjat Adeli, and D. P. Subha. 2018. Automated EEG-based screening of depression using deep convolutional neural network. Computer Methods and Programs in Biomedicine 161 (2018), 103–113. doi:10.1016/j.cmpb.2018.04.012
[2] Betul Ay, Ozal Yildirim, Muhammed Talo, Ulas Baran Baloglu, Galip Aydin, Subha D Puthankattil, and U Rajendra Acharya. 2019. Automated depression detection using deep representation and sequence learning with EEG signals. Journal of medical systems 43, 7 (2019), 205.
[3] Hanshu Cai, Zhenqin Yuan, Yiwen Gao, Shuting Sun, Na Li, Fuze Tian, Han Xiao, Jianxiu Li, Zhengwu Yang, Xiaowei Li, et al. 2022. A multi-modal open dataset for mental-disorder analysis. Scientific data 9, 1 (2022), 178.
[4] Friedrich Philipp Carrle, Yasmin Hollenbenders, and Alexandra Reichenbach. 2023. Generation of synthetic EEG data for training algorithms supporting the diagnosis of major depressive disorder. Frontiers in Neuroscience 17 (2023), 1219133.
[5] Daniel Choi, Cordelia Yip, Andrew Choi, and Junho Park. 2026. Fail closed trust gated synthetic augmentation governs tail risk under subject shift in EEG. bioRxiv (2026), 2026–01.
[6] Shubham Choudhary, Manish Kumar Bajpai, and Kusum Kumari Bharti. 2024. Spatio-temporal features based deep learning model for depression detection using two electrodes. Measurement Science and Technology 35, 8 (2024), 086015.
[7] Jnanamay Das and Shailly Yadav. 2020. Resting state quantitative electroencephalogram power spectra in patients with depressive disorder as compared to normal controls: an observational study. Indian Journal of Psychological Medicine 42, 1 (2020), 30–38.
[8] Yi Ding, Neethu Robinson, Qiuhao Zeng, Duo Chen, Aung Aung Phyo Wai, Tih-Shih Lee, and Cuntai Guan. 2020. TSception: A deep learning framework for emotion detection using EEG. In 2020 international joint conference on neural networks (IJCNN). IEEE, 1–7.
[9] Chenglong Fu, Jian Yao, Pengjiang Qian, Weiwei Fu, Chuang Wang, and Guisong Yang. 2026. Towards Glaucoma Screening in Decentralized Clinics: A Dynamic Expert-Assisted Domain-Incremental Approach. In Proceedings of the ACM Web Conference 2026. 9309–9317.
[10] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Francois Laviolette, Mario March, and Victor Lempitsky. 2016. Domain-Adversarial Training of Neural Networks. Journal of Machine Learning Research 17, 59 (2016), 1–35. https://jmlr.org/papers/v17/15-239.html
[11] Ahmed G Habashi, Ahmed M Azab, Seif Eldawlatly, and Gamal M Aly. 2023. Generative adversarial networks in EEG analysis: an overview. Journal of neuroengineering and rehabilitation 20, 1 (2023), 40.
[12] Marwa Hassan and Naima Kaabouch. 2024. Impact of feature selection techniques on the performance of machine learning models for depression detection using EEG data. Applied Sciences 14, 22 (2024), 10532.
[13] Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising diffusion probabilistic models. Advances in neural information processing systems 33 (2020), 6840–6851.
[14] Pengfei Hou, Xiaowei Li, Jing Zhu, and Bin Hu. 2025. A lightweight convolutional transformer neural network for EEG-based depression recognition. Biomedical Signal Processing and Control 100 (2025), 107112.
[15] Mariam Khayretdinova, Ilya Zakharov, Polina Pshonkovskaya, Timothy Adamovich, Andrey Kiryasov, Andrey Zhdanov, and Alexey Shovkun. 2024. Prediction of brain sex from EEG: using large-scale heterogeneous dataset for developing a highly accurate and interpretable ML model. NeuroImage 285 (2024), 120495.
[16] George H Klem. 1999. The ten-twenty electrode system of the international federation. The international federation of clinical neurophysiology. Electroencephalogr. Clin. Neurophysiol. Suppl. 52 (1999), 3–6.
[17] Mustapha Abdulrahman Lawal, Abdultafeek Abayomi, Abubakar Abba Salihu, Anes Aihong Aliyu, Muazu Aminu Aliyu, and Ismail Zahraddeen Yakubu. 2026. Transfer learning and domain adaptation in neuroinformatics. In Deep Learning Applications in Neuroinformatics. Elsevier, 287–310.
[18] Vernon J Lawhern, Amelia J Solon, Nicholas R Waytowich, Stephen M Gordon, Chou P Hung, and Brent J Lance. 2018. EEGNet: a compact convolutional neural network for EEG-based brain-computer interfaces. Journal of neural engineering 15, 5 (2018), 056013.
[19] Ivana Leccisotti, Anita Mollica, Rossana Laurello, Maria Claudia Moretti, Mario Altamura, Antonello Bellomo, Francesco Panza, and Madia Lozupone. 2026. Machine learning-assisted resting-state electroencephalography improves diagnostic accuracy in psychiatric disorders: A narrative review. Advanced Technology in Neuroscience 3, 1 (2026), 21–33.
[20] Andrew F Leuchter, Ian A Cook, Aimee M Hunter, Chaochao Cai, and Steve Horvath. 2012. Resting-state quantitative electroencephalography reveals increased neurophysiologic connectivity in depression. PloS one 7, 2 (2012), e32508.
[21] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. 2015. Learning Transferable Features with Deep Adaptation Networks. In Proceedings of the 32nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 37). 97–105. https://proceedings.mlr.press/v37/long15.html
[22] Haifeng Lu, Zhiyang You, Yi Guo, and Xiping Hu. 2024. Mast-gcn: Multi-scale adaptive spatial-temporal graph convolutional network for eeg-based depression recognition. IEEE Transactions on Affective Computing 15, 4 (2024), 1985–1996.
[23] Gang Luo, Hong Rao, Panfeng An, Yunxia Li, Ruiyun Hong, Wenwu Chen, and Shengbo Chen. 2023. Exploring Adaptive Graph Topologies and Temporal Graph Networks for EEG-Based Depression Detection. IEEE Transactions on Neural Systems and Rehabilitation Engineering 31 (2023), 3947–3957. doi:10.1109/TNSRE.2023.3320693
[24] RuiFang Lyu. 2026. Deep learning approaches for EEG-based healthcare applications: a comprehensive review. Frontiers in Human Neuroscience 19 (2026), 1689073.
[25] Andre F Marquand, Seyed Mostafa Kia, Mariam Zabihi, Thomas Wolfers, Jan K Buitelaar, and Christian F Beckmann. 2019. Conceptualizing mental disorders as deviations from normative functioning. Molecular Psychiatry 24, 10 (2019), 1415–1424.
[26] Wajid Mumtaz, Likun Xia, Syed Saad Azhar Ali, Mohd Azhar Mohd Yasin, Muhammad Hussain, and Aamir Saeed Malik. 2017. Electroencephalogram (EEG)-based computer-aided technique to diagnose major depressive disorder (MDD). Biomedical Signal Processing and Control 31 (2017), 108–115.
[27] Sebastian Olbrich, Natalia Jaworska, Sara de la Salle, Verner Knott, Pierre Blier, Martin Brunovsky, Tobias Welt, Mateo de Bardeci, and Cheng Teng-Ip. 2026. Deep learning using electroencephalogram (EEG) data for diagnosing and predicting SSRI response in major depressive disorder. Communications Medicine 6, 1 (2026), 159.
[28] Dan Peng, Wei-Long Zheng, and Bao-Liang Lu. 2025. Enhancing Depression Detection from Emotion EEG with Temporal-Spatial-Spectral Representation Learning. In 2025 47th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). IEEE, 1–5.
[29] Walter HL Pinaya, Mark S Graham, Robert Gray, Pedro F Da Costa, Petru-Daniel Tudosiu, Paul Wright, Yee H Mah, Andrew D MacKinnon, James T Teo, Rolf Jager, et al. 2022. Fast unsupervised brain anomaly detection and segmentation with diffusion models. In International Conference on Medical Image Computing and Computer-Assisted Intervention. Springer, 705–714.
[30] U Raghavendra, Anjan Gudigar, Yashas Chakole, Praneet Kasula, DP Subha, Nahrizul Adib Kadri, Edward J Ciaccio, and U Rajendra Acharya. 2023. Automated detection and screening of depression using continuous wavelet transform with electroencephalogram signals. Expert Systems 40, 4 (2023), e12803.
[31] Hoorain Rehman, Danish M Khan, Hafsa Amanullah, Laiba Kamran, Owais Ur Rehman, Sana Taj Siddiqui, and Komal Masroor. 2025. Advances in EEG-based detection of Major Depressive Disorder using shallow and deep learning techniques: A systematic review. Computers in Biology and Medicine 192 (2025), 110154.
[32] Saige Rutherford, Seyed Mostafa Kia, Thomas Wolfers, Charlotte Fraza, Mariam Zabihi, Richard Dinga, Pierre Berthet, Amanda Worker, Serena Verdi, Henricus G Ruhe, et al. 2022. The normative modeling framework for computational psychiatry. Nature protocols 17, 7 (2022), 1711–1734.
[33] Ayan Seal, Rishabh Bajpai, Jagriti Agnihotri, Anis Yazidi, Enrique Herrera-Viedma, and Ondrej Krejcar. 2021. DeprNet: A deep convolution neural network framework for detecting depression using EEG. IEEE Transactions on Instrumentation and Measurement 70 (2021), 1–13.
[34] Anurag Singh, Vivek Tiwari, Harshita Patel, GN Vivekananda, Dharmendra Singh Rajput, et al. 2024. Slitranet: an EEG-based automated diagnosis framework for major depressive disorder monitoring using a novel LGCN and transformer-based hybrid deep learning approach. IEEE Access 12 (2024), 173109–173126.
[35] Yonghao Song, Qingqing Zheng, Bingchuan Liu, and Xiaorong Gao. 2023. EEG Conformer: Convolutional Transformer for EEG Decoding and Visualization. IEEE Transactions on Neural Systems and Rehabilitation Engineering 31 (2023), 710–719. doi:10.1109/TNSRE.2022.3230250
[36] Baochen Sun and Kate Saenko. 2016. Deep CORAL: Correlation Alignment for Deep Domain Adaptation. In Computer Vision – ECCV 2016 Workshops. 443–450. doi:10.1007/978-3-319-49409-8_35
[37] Yubing Sun, Jiaqi Sun, Zijian Zhou, Jing Cai, Wenjie Cui, and Guangda Liu. 2026. A Novel Spatial-Temporal Graph Neural Network for Major Depressive Disorder Detection Based on Resting State EEG Signals. IEEE Sensors Journal 26, 6 (2026), 8660–8671. doi:10.1109/JSEN.2026.3657750
[38] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. 2015. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition. 1–9.
[39] Muhammad Umair, Jawad Ahmad, Nada Alasbali, Oumaima Saidani, Muhammad Hanif, Aizaz Ahmad Khattak, and Muhammad Shahbaz Khan. 2025. Decentralized EEG-based detection of major depressive disorder via transformer architectures and split learning. Frontiers in computational neuroscience 19 (2025), 1569828.
[40] Aaron Van Den Oord, Oriol Vinyals, et al. 2017. Neural discrete representation learning. Advances in neural information processing systems 30 (2017).
[41] Shruthi Narayanan Vaniya, Ahsan Habib, Maia Angelova, and Chandan Karmakar. 2026. Simplifying Depression Diagnosis: Single-Channel EEG and Deep Learning Approaches. IEEE Journal of Biomedical and Health Informatics (2026).
Wan Jiang et al.
[42] Jiquan Wang, Sha Zhao, Zhiling Luo, Yangxuan Zhou, Haiteng Jiang, Shijian Li, Tao Li, and Gang Pan. 2025. Cbramod: A criss-cross brain foundation model for eeg decoding. In International conference on learning representations, Vol. 2025. 75310–75346.
[43] Wei Wang, Jian Chen, Junxin Chen, Zeling Xu, Yuntao Zou, and Henry HY Tong. 2026. Sustainable and Responsible ECG-Based AI Diagnostics: Masked Frequency Reconstruction with Peak-Aware Transformers. In Proceedings of the ACM Web Conference 2026. 9200–9210.
[44] Yilin Wang, Sha Zhao, Haiteng Jiang, Shijian Li, Benyan Luo, Tao Li, and Gang Pan. 2024. Diffmdd: A diffusion-based deep learning framework for mdd diagnosis using eeg. IEEE Transactions on Neural Systems and Rehabilitation Engineering 32 (2024), 728–738.
[45] World Health Organization. 2025. World Mental Health Today: Latest Data. Technical Report. World Health Organization, Geneva, Switzerland. https://www.who.int/publications/i/item/9789240113817
[46] Qinfan Xiao, Ziyun Cui, Chi Zhang, Siqi Chen, Wen Wu, Andrew Thwaites, Alexandra Woolgar, Bowen Zhou, and Chao Zhang. 2026. Brainomni: A brain foundation model for unified eeg and meg signals. Advances in Neural Information Processing Systems 38 (2026), 41179–41212.
[47] Chenyue Xu, Longzhu Zhu, Jianbo Lai, Zeyu Luo, Jiayao Ying, Shaohua Hu, Peige Song, and Jianzhong Yang. 2026. Global and regional quality of care index in major depressive disorder: the global burden of disease study 2021. International Journal for Equity in Health (2026).
[48] Chen-Yang Xu, Fei-Yi Fan, Li-Xuan Zhao, Li-Cheng Jin, Yong-Hui Zhang, and Qing-Hao Meng. 2026. Major depressive disorder detection via temporal-frequency-spatial transformer with sub-domain knowledge alignment using EEG. Neural Networks 193 (2026), 107965. doi:10.1016/j.neunet.2025.107965 Published online 6 August 2025.
[49] Chen-Yang Xu, Wen-Qiang Li, Lan Zhang, Yong-Hui Zhang, and Qing-Hao Meng. 2026. A major depressive disorder detection network incorporating multi-branch attention and center alignment. Biomedical Signal Processing and Control 125 (2026), 110728.
[50] Guixun Xu, Wenhui Guo, and Yanjiang Wang. 2023. Subject-independent EEG emotion recognition with hybrid spatio-temporal GRU-Conv architecture. Medical & Biological Engineering & Computing 61, 1 (2023), 61–73.
[51] Wenchao Yang, Weidong Yan, Wenkang Liu, Yulan Ma, and Yang Li. 2025. THD-BAR: Topology Hierarchical Derived Brain Autoregressive Modeling for EEG Generic Representations. arXiv preprint arXiv:2511.13733 (2025).
[52] Zhishui You, Yuzhu Guo, Xiulei Zhang, and Yifan Zhao. 2025. Virtual electroencephalogram acquisition: A review on electroencephalogram generative methods. Sensors 25, 10 (2025), 3178.
[53] Yi-Dong Zhao, Yan-Kai Liu, Wei-Long Zheng, and Bao-Liang Lu. 2024. EEG data augmentation for emotion recognition using diffusion model. In 2024 46th annual international conference of the ieee engineering in medicine and biology society (embc). IEEE, 1–4.
A Normative Deviation Inference Procedures
A.1 Cross-electrode Spatial Adaptation
We use spherical spline interpolation to map heterogeneous EEG montages to the 19-electrode International 10–20 system [16]. For MODMA, source and target electrode coordinates are obtained from the MNE GSN-HydroCel-128 and standard 10–20 templates, respectively. Coordinates are expressed in the MNE head coordinate system, centered at meters, and normalized to the unit sphere.
Given an EEG recording , the signal at target electrode location is interpolated as
where is the coordinate of source electrode , and and are interpolation coefficients. For unit-sphere coordinates, the kernel is
where is the degree-n Legendre polynomial. We use smoothness order and truncation order . At each time sample , the coefficients are obtained by solving
where , , and 1 is the all-ones vector. The last row enforces .
A.2 S-NDD Implementation Details
The S-NDD branch of Algorithm 1 performs spatial adaptation, computes deviations using two frozen references, and produces diagnostic predictions without iterative sample generation. The implementation samples one timestep and one noise realization per window.
Inference-score Definitions. For a preprocessed EEG window , the noised input and reconstructed signal are computed as
where , , and . The structural and distributional deviations are
The timestep determines the noise level but is not an explicit predictor input. Structural scoring excludes codebook and commitment losses, whereas distributional scoring uses reconstruction error rather than the noise-prediction training loss. The joint deviation score and its normalized form are
Here, and are estimated from all training-partition windows, including HC and MDD. We set unless , in which case . These bounds remain fixed during inference.
A.3 F-NDD Implementation Details
Algorithm 1 summarizes the inference procedures of S-NDD and F-NDD. For its F-NDD branch, this subsection details the construction of the 456-dimensional handcrafted features and the fixed source-HC normalization used to prepare reference-model and diagnostic inputs. The feature-space VQ-VAE and DDPM references are trained independently on source-training HC features and remain frozen during diagnostic inference.
Window Processing and Spectral Estimation. Each EEG window is sampled at 256 Hz. Each channel is demeaned and divided by its within-window temporal standard deviation, with a denominator floor of . Welch's method estimates the one-sided power spectral density using 512-sample Hann windows, 256-sample overlap, and a 512-point FFT. Each segment is mean-detrended, and its periodogram is averaged with those of the other segments.
Algorithm 1 Inference pipelines of S-NDD and F-NDD
Require: Formulation ; EEG windows ( for S-NDD); fixed models and normalization statistics; for S-NDD; optional HC calibration parameters for F-NDD.
Ensure: Prediction .
1: Adapt each window: .
2: if then
3: Scalar-level inference
4: Set and reconstruct .
5: Compute using Eq. (19).
6: Sample and .
7: Obtain using Eqs. (17)–(20), with noise predictor .
8: Compute and using Eqs. (21) and (22).
9: Extract .
10: Fuse .
11: Predict .
12: else
13: Feature-level inference
14: for each selected F-NDD model do
15: for each window do
16: Extract and standardize using fixed HC statistics.
17: Compute .
18: Obtain for , .
19: Compute .
20: end for
21: Prepare diagnostic inputs using fixed source-HC scaling and asinh transforms.
22: Encode all windows: , .
23: Compute .
24: Pool , .
25: Form and obtain logits from .
26: Apply HC logit calibration if required by the evaluation protocol.
27: end for
28: Ensemble by averaging calibrated logits followed by sigmoid, or averaging uncalibrated MDD probabilities.
29: Obtain using threshold 0.5.
30: end if
31: return
Spectral Features. We use five half-open frequency bands: [0.5, 4), [4, 8), [8, 13), [13, 30), and [30, 45) Hz. For electrode c, let be the sum of spectral-density values in band b. The log-relative power is computed as
where log denotes the natural logarithm. The 19 electrodes contribute spectral entries.
Correlation Features and Ordering. Pearson correlations are computed between channel pairs within the same window, clipped to , and transformed as . The diagonal is then set to zero. All entries are retained. For each electrode, its five spectral entries are concatenated with its row of 19 transformed correlations. The resulting 24-dimensional vectors are concatenated in the fixed electrode order to obtain , where . Symmetric duplicates and zero diagonal entries are retained, so these are not 456 independent features. The extraction rules have no trainable parameters.
Source-HC Normalization. Here f denotes the features before source-HC normalization. For each source-training fold, and are the median and IQR of coordinate , estimated exclusively from HC windows in that fold's training partition. The reference-model input is
The main-text reference and residual computations use h with this normalization understood. Diagnostic input preparation applies asinh(h) to the baseline branch. Signed residual coordinates are separately centered and scaled using their source-training HC medians and IQRs, with a scale floor of 0.05, before the asinh transform and deviation encoding. These fixed operations are included in the diagnostic encoder input preparation. All normalization statistics remain fixed for validation, within-source testing, and cross-source evaluation. Target HC used for post-hoc score calibration does not contribute to these feature or residual statistics.
B Cross-Dataset Evaluation Protocols
Source Evaluation and Partitioning. Data splits and prediction aggregation follow the main manuscript. Normative references are trained only on HC examples from the training partition, whereas diagnostic training uses labeled HC and MDD examples. Training-derived normalization statistics, including Eq. (22), remain fixed during validation and testing. Multiple windows from one individual are not treated as independent subjects.
Mumtaz2016 to MODMA. S-NDD is trained on Mumtaz2016 and evaluated on MODMA without updating model weights or normalization statistics using target data. MODMA recordings are mapped to the 19-electrode montage as described in Appendix A.1. The source-trained references and diagnostic classifier remain fixed, yielding the source-only, zero-shot setting reported in the main manuscript.
MODMA to Mumtaz2016. F-NDD is trained on MODMA and evaluated on Mumtaz2016 at the record-group level. Each calibrated run uses seven target HC record groups, excluded from diagnostic testing, to estimate prediction-score calibration parameters. Both the normative references and diagnostic network remain fixed. Uncalibrated and calibrated predictions are distinguished; the latter constitute HC-assisted transfer rather than strict source-only evaluation. Test record groups overlap across calibration runs, so these runs do not represent independent subject cohorts.
Domain Adaptation Comparisons. The adaptation comparisons include DANN, DAN, Deep CORAL, and TFST-SDKA in both transfer directions. Target-data adaptation is distinguished from source-only prediction and post-hoc HC score calibration. In particular, adaptation restricted to target HC data is not equivalent to UDA with unrestricted unlabeled target data. Differences in target-data access and prediction aggregation must be considered when interpreting comparisons. The S-NDD forward and F-NDD reverse settings do not constitute a controlled comparison of deviation granularity.
Wan Jiang et al.
Table 5: Stage-wise training and sampling configurations of Diff-Aug. lr and wd denote the learning rate and weight decay, respectively.
| Stage | Configuration |
|---|---|
| Condition classifier | 1D-CNN-Transformer; Adam, , ; dropout = 0.5, patience = 8. |
| Diffusion training | 1D-CNN-Transformer with FiLM; , ; MSE, , 50 epochs, patience = 8. |
| Data synthesis | 570 anchors, per anchor; 100-step DDIM, guidance = 1.0. |
| Downstream training | 1D-CNN-Transformer; , 100 epochs; , patience = 15. |
Table 6: Key configurations of Hard Neg. Settings not listed here follow those of Diff-Aug.
| Stage | Configuration |
|---|---|
| Anchor selection | ; normalization: 5th–95th percentiles; hard range: 70th–90th percentiles; exclude the top 10%. |
| Data synthesis | Diff-Aug predictor; 100-step DDIM; classifier guidance = 2.5; five pseudo-segments per anchor. |
| Downstream training | , ; attention: Softmax; optimization as in Diff-Aug. |
C Generative Baseline Implementation
This section details four generative augmentation strategies developed in this study based on DiffMDD [44]: Diffusion Augmentation (Diff-Aug), hard-negative-guided synthesis (Hard Neg), artifact cleaning (Clean), and spatial mixing (Hybrid). Unless otherwise specified, all methods are implemented in PyTorch and optimized using Adam with a batch size of 32 on a NVIDIA RTX 6000 GPU.
(i) Diff-Aug. Diff-Aug evaluates synthetic data augmentation as an alternative to normative deviation modeling, retaining the same downstream 1D-CNN-Transformer classifier. Following DiffMDD, the pipeline consists of three stages. First, a 1D-CNN-Transformer classifier is pre-trained to extract class-aware condition embeddings. Next, a conditional diffusion model employs a 1D-CNN-Transformer noise predictor, incorporating these embeddings through Feature-wise Linear Modulation (FiLM). Finally, synthetic EEG segments are generated from randomly selected training anchors using classifier-guided DDIM sampling and combined with the original training data to train the classifier from scratch. Implementation settings are summarized in Table 5.
(ii) Hard Neg. Hard Neg selects training anchors based on normative deviations for conditional EEG generation and deviation-conditioned classification. For each sample , the joint score is , where the structural and distributional deviations are normalized using the 5th and 95th percentiles of the training distribution. Samples within the 70th–90th score percentiles are selected as hard anchors, excluding the highest 10%. Following Diff-Aug, conditional generation uses 100-step DDIM sampling with classifier guidance of 2.5, producing five pseudo-segments per anchor. The generated samples are combined with the original training data for classifier training. Given sequence features and a learnable projection , the sample-specific scalar modulates attention as ,
Table 7: Key configurations of Clean. Settings not listed here follow those of Diff-Aug.
| Stage | Configuration |
|---|---|
| Data synthesis | Diff-Aug predictor; 100-step DDIM; classifier guidance = 1.0. |
| Artifact cleaning | Fourth-order Butterworth low-pass filter, cutoff = 50 Hz; zero-phase forward-backward filtering via scipy.signal.filtfilt. |
| Downstream training | Original and filtered pseudo-segments; classifier and optimization as in Diff-Aug. |
Table 8: Computational cost and inference latency measured on an NVIDIA RTX 6000 GPU.
| Method | Synthesis | Params (M) | FLOPs (G) | Latency (ms) |
|---|---|---|---|---|
| 1D-CNN-Trans | ✕ | 0.59 | 0.14 | ~0.6 |
| DiffMDD* | ✓ | 1.32 | 101.69 | ~94.5 |
| S-NDD (Ours) | ✕ | 1.70 | 1.42 | ~2.9 |
| F-NDD (Ours) | ✕ | 0.457 | 0.00405 | ~16.5 |
- Includes 100-step DDIM synthesis. † Includes one denoising score evaluation. ‡ Native single-model F-NDD; latency includes feature processing and data transfers, while FLOPs cover profiled neural operations.
where is the sequence length and . The attended representation is . Other optimization settings follow Diff-Aug, with configurations summarized in Table 6.
(iii) Clean. Clean follows the Diff-Aug generation and classification pipeline, applying a fourth-order Butterworth low-pass filter with a 50 Hz cutoff to each generated segment: . The filter is implemented using scipy.signal.filtfilt for zero-phase forward-backward filtering. The filtered segments are used for classifier training, with settings summarized in Table 7.
(iv) Hybrid. Hybrid introduces spatial mixing to increase cross-electrode diversity in generated EEG segments. The generated segments are used for downstream supervised training under the reported evaluation splits.
D Computational Efficiency Analysis
Table 8 summarizes the computational cost and inference latency of different methods. All latency measurements are conducted on an NVIDIA RTX 6000 GPU. Unlike generative augmentation methods, S-NDD and F-NDD estimate normative deviations without iterative sample synthesis. S-NDD requires 1.70M parameters and 1.42 GFLOPs, while the native single-model F-NDD contains 0.457M parameters and requires 0.00405 GFLOPs of profiled neural operations. The inference latency is approximately 2.9 ms for S-NDD and 16.5 ms for F-NDD. F-NDD latency includes feature extraction and data transfers, while its FLOPs exclude CPU feature processing. In practice, the fixed cost of S-NDD stems from one VQ-VAE reconstruction pass, one denoising score evaluation, and the diagnostic classifier. In contrast, DiffMDD relies on 100-step DDIM synthesis, which dominates its 101.69 GFLOPs and approximately 94.5 ms latency; S-NDD thus reduces the FLOPs by about 72× and the latency by more than 30× with comparable parameters (1.70M versus 1.32M).