Abstract
Electroencephalography-based visual decoding has important applications in brain–computer interfaces and cognitive neuroscience, yet the relative effectiveness of different feature extraction methods for sustained visual paradigms remains unclear due to the absence of standardized, multi-dataset comparative evaluations. This study systematically compares eight feature extraction methods across three public EEG datasets: MindBigData MNIST, MindBigData MNIST-8B for digit recognition, and MSS for natural image classification. The methods include coherence, Granger causality, directed transfer function, partially directed coherence, transfer entropy, discrete wavelet transform, empirical wavelet transform (EWT), and wavelet scattering transform. Two deep learning architectures, EEGNet and EEG Conformer, were trained using two pre-processing pipelines, with and without artifact removal. EWT achieved the highest classification accuracy, reaching 97.83% for digit-vs-blank and 77.10% for within-session natural image classification. Connectivity-based methods consistently underperformed, with the best connectivity method (coherence) reaching up to 91.67%, suggesting that spectral power information is more discriminative than inter-channel relationships. Cross-subject generalization remained challenging, with best accuracies near 68%. The findings establish wavelet-based adaptive spectral decomposition as a strong baseline for EEG visual decoding and highlight the need for domain adaptation techniques to address cross-subject variability.
1. Introduction
Electroencephalography (EEG) is a non-invasive technique that records the brain’s electrical activity through electrodes placed on the scalp. Its high temporal resolution, portability, and relatively low cost make it a valuable tool for studying cognitive processes and for developing brain-computer interfaces (BCIs) [1]. In a typical BCI setup, EEG signals are acquired while a user performs a mental task, and machine learning algorithms translate these signals into commands or decode the user’s mental state [2]. Among these applications, visual decoding has attracted considerable attention because it can reveal how the human brain represents and processes visual information [3]. Visual decoding tasks include semantic category classification, object recognition, target detection, and digit recognition, all of which rely on the analysis of EEG responses evoked by visual stimuli [4].
The ability to classify EEG signals corresponding to different visual stimuli has been demonstrated using a range of datasets and methods. A prominent publicly available resource is the MindBigData collection, which contains EEG recordings acquired while subjects viewed digits from the MNIST dataset [1,5]. This dataset has been employed in numerous studies to explore visual decoding of numerical symbols. For example, Bird et al. [6] used evolutionary feature selection and a multilayer perceptron on the four-channel Muse version of MindBigData, achieving approximately 31% accuracy for ten-class digit classification. Mishra et al. [7] applied a correlation-based channel selection and a 1D convolutional neural network (CNN) to the 14-channel Emotiv EPOC recordings, obtaining approximately 70% accuracy. Kumari et al. [8] transformed the EEG signals into spectrograms and used a capsule network, reporting 84.62% accuracy on a five-channel subset of the data. Mahapatra and Bhuyan [9] employed discrete wavelet transform (DWT) and a stacked bidirectional long short-term memory (BiLSTM) network, achieving 96.18% on the Muse signals and 71.60% on the EPOC signals. Khaleghi et al. [4] designed a CNN combined with a generative adversarial network (GAN) that reached 95.4% classification accuracy on the 14-channel Emotiv data while also reconstructing salient image regions. Falciglia et al. [3] introduced a Riemann manifold and spectrogram-based architecture that integrated spatio-temporal and spectral features, obtaining 86% accuracy on a high-density 64-channel version of MindBigData. More recently, Roy Chowdhury et al. [10] proposed a self-supervised learning framework with squeeze-and-excitation networks, transforming EEG into 2D images and achieving 91% accuracy on the same dataset. These studies demonstrate that discriminative information can be extracted from EEG responses to visual stimuli; however, they also reveal a wide diversity in pre-processing strategies, feature representations, and model architectures.
Beyond symbolic stimuli, natural image paradigms have been explored to investigate how the brain represents complex visual categories. The recent multi-subject MSS dataset [11] provides EEG recordings from 32 participants viewing images from 20 semantic categories, captured with a 122-channel system at 1000 Hz. This dataset enables the study of visual decoding under more realistic conditions and allows for the evaluation of cross-subject and cross-session generalization, which are critical for practical BCI applications.
Despite the progress made in EEG-based visual classification, several challenges remain. EEG signals are inherently noisy and prone to artifacts such as eye blinks and muscle activity [7]. The high inter-subject variability arising from differences in cortical anatomy, electrode placement, and cognitive strategies consistently degrades performance when models are applied to unseen subjects [3]. Moreover, the complexity of the visual stimuli influences the neural representations: digit images are relatively simple and well-controlled, whereas natural images contain richer semantic content that may engage more distributed brain networks. The choice of pre-processing steps, such as filtering, artifact removal, and normalization, can significantly affect the quality of the extracted features and subsequent classification accuracy [4]. Similarly, the selection of feature extraction methods, ranging from traditional connectivity measures (coherence, Granger causality) to modern time-frequency representations (wavelet transforms) [12] and end-to-end deep learning approaches, involves trade-offs between interpretability, time, and performance.
Previous studies have typically focused on a single method or a limited set of techniques, and comparisons across studies are hampered by differences in dataset versions, channel selections, and evaluation protocols. As a result, the relative effectiveness of different pre-processing and feature extraction strategies remains unclear, particularly for binary classification tasks under sustained, low-speed visual paradigms, where stimuli are presented for extended durations of 0.5 to 2 s to isolate neural responses. This limitation motivates a systematic comparative analysis of feature extraction methods and deep learning models, under a consistent experimental framework that evaluates a diverse set of feature extraction methods alongside two prominent deep learning architectures, EEGNet [13] and EEG Conformer [14], within a consistent experimental framework across three distinct datasets. By evaluating a broad set of feature domains under identical experimental conditions, this work provides direct evidence for the selection of appropriate input representations for deep learning architectures in EEG visual decoding. The results highlight which families of feature extraction methods are most compatible with modern neural network models, thus offering practical guidance for designing AI-based EEG decoding pipelines.
While these studies demonstrate the feasibility of EEG visual decoding, they differ considerably in pre-processing pipelines, channel configurations, classification models, and evaluation protocols. As a result, the relative merits of different feature extraction strategies remain unclear, and no consensus exists on which approach is most effective. This lack of standardized comparison motivates the present work. To the best of our knowledge, this is the first study to systematically compare connectivity-based and wavelet-based feature domains in combination with EEG-specific deep learning architectures (EEGNet and EEG Conformer) for EEG visual decoding. Earlier comparative analyses, including the work of [15], have been limited to a single dataset and employed either traditional machine learning classifiers such as SVM and XGBoost, or generic neural network architectures such as CNN and LSTM. By holding the set of sampled EEG trials constant and training different deep learning model architectures, while systematically varying the input representation and pre-processing across three distinct datasets, our benchmark isolates the effect of feature choice on classification performance for models that were specifically designed to handle the particularities of EEG signals.
Accordingly, we perform an extensive empirical evaluation across three datasets: MindBigData MNIST (single subject, 14-channel Emotiv EPOC), MindBigData MNIST-8B (single subject, high-density 128-channel), and MSS (32 subjects, 122-channel). Two pre-processing pipelines are considered: a baseline approach based on z-score normalization and a more comprehensive pipeline including band-pass filtering and the Automatic and Tunable Artifact Removal (ATAR) algorithm. For feature extraction, eight methods are evaluated on the first dataset (Coherence, Granger Causality, Directed Transfer Function, Partially Directed Coherence, Transfer Entropy, Discrete Wavelet Transform, Empirical Wavelet Transform, and Wavelet Scattering Transform), while the analysis on the larger datasets focuses on the two wavelet-based methods (EWT and WST) due to their substantially shorter feature extraction times. The extracted features, together with the pre-processed raw signals, are used as input to EEGNet and EEG Conformer for binary classification.
This work addresses the following research questions:
- How do different feature representations affect classification accuracy? Does additional artifact removal improve the results?
- How well do the same methods perform across datasets with different stimulus types, such as digits and natural images?
- To what extent do the evaluated methods suffer from cross-subject variability?
The main contributions are summarized as follows:
- A systematic and comprehensive comparison of eight EEG feature extraction methods in combination with two deep learning architectures for binary EEG classification under sustained visual stimulation, evaluated on three distinct datasets.
- An empirical evaluation of two pre-processing pipelines with feature extraction methods, to assess their impact on classification performance.
- An in-depth analysis of cross-subject and cross-session generalization using the multi-subject MSS dataset, highlighting the challenges posed by inter-individual variability in EEG signals.
- The development of reproducible experimental protocols to facilitate future studies in EEG-based visual decoding.
These contributions establish a systematic reference for EEG visual decoding, clarifying the relative advantages of different feature families and model architectures and offering guidance for the design of future BCI pipelines.
The remainder of this paper is organized as follows. Section 2 describes the datasets, pre-processing pipelines, feature extraction methods, and deep learning architectures. Section 3 presents the experimental results, including classification accuracies and comparisons across three datasets for visual decoding, different feature extraction methods, and two pre-processing pipelines. Section 4 discusses the findings, implications, and limitations of the study. Finally, Section 5 provides the conclusions and outlines directions for future work.
2. Materials and Methods
We systematically compared feature extraction methods and deep learning architectures for binary EEG classification under sustained visual stimulation. The study used three publicly available datasets: MindBigData MNIST [1], MindBigData MNIST-8B [5], and MSS [11]. Eight feature extraction methods were evaluated on the first dataset, following the set investigated in [15]; for the larger MindBigData MNIST-8B and MSS datasets, only EWT and WST were retained. The connectivity-based methods were excluded because of their high feature extraction times and because they achieved substantially lower accuracy on the MindBigData MNIST dataset; a table with the wall-clock times for feature extraction and training is reported in Appendix D, which demonstrates the feasibility for high-density and multi-subject recording datasets. Two pre-processing pipelines were applied independently, one with only z-score normalization and another adding band-pass filtering and artifact removal using the ATAR algorithm [16] with parameters as reported in [15]. The deep learning models EEGNet [13] and EEG Conformer [14], both implemented via the Braindecode library [17], were trained on the extracted features and on pre-processed raw signals. Training and evaluation protocols were designed for reproducibility, with ten repetitions for the single-subject MindBigData datasets, and a single run with leave-one-out evaluation for the multi-subject MSS dataset. The following subsections detail the datasets, pre-processing, feature extraction methods, architectures, and the training procedure.
2.1. Datasets
Three publicly available EEG datasets were selected to evaluate binary classification.
- MindBigData MNIST (2015) contains responses from a single subject viewing digits 0–9 and a blank screen, recorded with various headsets. The 14-channel Emotiv EPOC device was selected, using the following channels: AF3, F7, F3, FC5, T7, P7, O1, O2, P8, T8, FC6, F4, F8, AF4. Trials are 2 s long (256 samples at 128 Hz). For the binary classification task, 150 trials were randomly sampled for each class, with classes being digit 0 and blank (−1).
- The MindBigData MNIST-8B (2023) also contains responses to digits 0–9 and a blank screen, but uses a 128-channel device; it is also a single-subject dataset, with 2-s trials (500 samples at 250 Hz) for all the 70,000 MNIST digits. The same 14 channels were selected to match the channels of the MindBigData MNIST dataset; 150 trials of digit 0 and blank were randomly sampled.
- The MSS (2025) dataset includes the responses of 32 subjects to 10,000 natural images in 20 semantic categories, using rapid (RSVP) and low-speed paradigms. The low-speed experiment was chosen, with 500 ms epochs (500 samples at 1000 Hz). For the binary classification task, the classes car and person were used, with indices 6 and 15 in the dataset; all subjects, sessions, and runs with these classes were included for training; 14 channels were randomly selected from the 122 available to keep feature extraction times manageable.
Figure 1 shows the low-speed paradigm used for the three datasets. Figure 2 showcases the different classes of visual stimuli available for each dataset. Finally, in Figure 3 are shown the ERPs for the selected classes of each dataset; classes 0 and blank for the MindBigData datasets, classes person and car for the MSS dataset.
Figure 1.
Experimental paradigm used in the study, illustrating the low-speed (sustained) visual paradigm where a sequence of alternating blank screens and visual stimuli is presented for a fixed duration (n seconds).
Figure 2.
Examples of visual stimuli from the three datasets. (a): digit images from MindBigData MNIST and MNIST-8B. (b): natural images from the MSS dataset (car and person classes).
Figure 3.
Event-related potentials of the selected classes for each dataset, after applying band-pass filtering, ATAR, and z-score normalization. (a): MindBigData MNIST (digit 0 vs. blank). (b): MindBigData MNIST-8B. (c): MSS (car vs. person).
2.2. Pre-Processing Methods
Two pre-processing pipelines were applied independently to each dataset. Pipeline A consisted only of z-score normalization, in which each feature x is transformed to using the mean and standard deviation computed on the training set only to avoid data leakage. Pipeline B comprised the following sequential steps. For the MindBigData datasets, band-pass filtering was applied with a fourth-order Butterworth filter, cutoff frequencies of 0.5 Hz and 30 Hz, to remove drifts and high-frequency noise. The MSS dataset was not subjected to band-pass filtering, because the signals were already pre-processed with basic filtering.
After optional filtering, artifact removal was performed with the Automatic and Tunable Artifact Removal (ATAR) algorithm. ATAR is a wavelet-based method for artifact removal. The signal (brain signal + artifact) is decomposed via wavelet packets. Three modes exist; in this study, soft-thresholding was applied:
with and .
The parameters used in the spkit implementation were as follows: Daubechies-4 wavelet, window 128 samples (50% overlap), , interquartile range method, soft mode. Finally, z-score normalization was applied as described for Pipeline A.
2.3. Feature Extraction Methods
Eight feature extraction methods were evaluated on the MindBigData MNIST dataset: Coherence, Granger causality, Directed Transfer Function (DTF), Partially Directed Coherence (PDC), Transfer Entropy (TE), Discrete Wavelet Transform (DWT), Empirical Wavelet Transform (EWT), and Wavelet Scattering Transform (WST). This set includes the connectivity and information-theoretic methods examined in [15], and DWT was added to compare fixed-scale wavelet decomposition with the adaptive EWT. For the larger MindBigData MNIST-8B and MSS datasets, only EWT and WST were retained due to their shorter feature extraction times and strong initial performance. All feature representations were formatted as three-dimensional tensors of shape (trials, channels, time or scale). For connectivity methods that produce matrices, the values were flattened and then repeated across channels to preserve the input shape required by the deep learning models.
The mathematical formulations of the connectivity and information-theoretic methods follow [15] and are reproduced below for completeness. The implementations were based on the publicly available code accompanying that work, except for the Discrete Wavelet Transform, which was implemented using the PyWavelets library [18] following the formulation in [19].
- Coherence measures the linear correlation between two signals in the frequency domain. For channels x and y:where is the coherence between channels x and y at frequency f (with values ranging from 0 to 1), is the cross power spectral density between x and y, and and are the auto power spectral densities of x and y, respectively. Coherence was computed between all channel pairs using Welch’s method with a Kaiser window of length 64 samples, 50% overlap, and a 128-point FFT. Only the alpha (8–13 Hz) and beta (13–30 Hz) frequency bands were retained for classification.
- Granger Causality tests whether past values of one signal improve the prediction of another. An autoregressive model for signal Y:where is the value of signal Y at time t, are the coefficients of the autoregressive model, p is the model order (number of past time points), and is the residual error (the part of not predicted by its own past). A multivariate model including X is defined as:where are coefficients that measure the influence of past values of X on Y, and is the new residual error. The F-statistic is computed as:where is the sum of squared residuals from the autoregressive model (Equation (3)), is the sum of squared residuals from the multivariate model (Equation (4)), p is the model order, and n is the number of observations (time points). Statistical significance was set at (model order ). Causality is binary, X causes Y if F exceeds the critical value.
- Directed Transfer Function (DTF) is a frequency-domain measure of directional influence derived from a multivariate autoregressive model. For an MVAR model of order p:where is a vector of EEG signals at time t, are matrices of coefficients for lag k, are the signal vectors at previous time points, and is a vector of white noise. The transfer matrix in the frequency domain is:where is the transfer matrix at frequency f, is the identity matrix, are the coefficient matrices from the MVAR model, and k is the lag index. DTF from channel j to channel i at frequency f is:where is the element of the transfer matrix corresponding to the influence of channel j on channel i at frequency f, and the denominator normalizes by the total inflow to channel i from all channels. The model order was selected using the Akaike information criterion. The obtained DTF values were averaged over the alpha (8–13 Hz) and beta (13–30 Hz) bands.
- Partially Directed Coherence (PDC) isolates direct connections. It is defined as:where is the element of the Fourier-transformed MVAR coefficient matrix (with from Equation (7)) representing the direct influence of channel j on channel i at frequency f, and the denominator sums over all channels k to normalize. The PDC values were averaged over the alpha (8–13 Hz) and beta (13–30 Hz) bands.
- Transfer Entropy is an information-theoretic measure of directed information flow. For signals X and Y:where is the future value of Y at time , and are the past L samples of Y and X up to time t, is the joint probability of observing that combination, is the conditional probability of the future given both pasts, and is the conditional probability given only the past of Y. A sliding-window approach was implemented to preserve temporal resolution, using a window size of 32 samples and a step size of 16 samples.
- Discrete Wavelet Transform (DWT) decomposes a signal into time-frequency representations. The DWT coefficients are computed as:where is the input EEG signal, are the discrete wavelets, and the variables m and n represent the scaling and translation factors, respectively. The signal can be reconstructed from the wavelet coefficients and scaling function coefficients:where are discrete analysis wavelets, are discrete scaling functions, denotes the detail (wavelet) coefficients at a scale of , and represents the approximation (scaling) coefficients at a scale of . In this study, DWT was applied using Daubechies-4 wavelets, implemented using the pywt library [18].
- Empirical Wavelet Transform (EWT) adaptively decomposes the signal based on its Fourier spectrum. The spectrum is segmented into N contiguous intervals (here using the local maxima method). The empirical scaling function and wavelets are constructed for each segment:with . Here denotes the boundary of the N-th frequency segment, is the transition width around that boundary, and is an auxiliary function satisfying to ensure a smooth transition. The signal is reconstructed from the coefficients. EWT was implemented using the ewtpy library [20].
- Wavelet Scattering Transform (WST) produces stable, translation-invariant representations by cascading wavelet filter banks, modulus operators, and low-pass averaging. The zero-order coefficient is defined as:where is the input signal, is a low-pass filter (e.g., Gaussian), and ∗ denotes convolution. The first-order coefficient is given by:where is a wavelet at center frequency (scale), and the modulus operator introduces nonlinearity. The second-order coefficient is defined as:where are center frequencies of successive wavelets, and the outer low-pass filter averages the coefficients. Order 2 was applied, with (scale), (quality factor), implemented using the kymatio package [21].
2.4. Deep Learning Architectures
The architectures used were EEGNet and EEG Conformer, included in the braindecode collection [17].
2.4.1. EEGNet
EEGNet is a compact convolutional neural network designed specifically for EEG classification, with an architecture as shown in Figure 4. It uses depthwise and separable convolutions to reduce the number of trainable parameters while retaining the ability to learn frequency-specific spatial filters, making it effective even when only limited training data are available. The architecture is organized into three blocks. Block 1 applies a temporal convolution to learn frequency filters, followed by a depthwise convolution that learns a spatial filter for each temporal filter. Block 2 uses a separable convolution, which decouples the learning of temporal summaries (depthwise convolution) from the mixing of feature maps (pointwise convolution). The classification block directly feeds the resulting features into a softmax layer without an intermediate dense layer. Table 1 details the layer configuration used in this study, which follows the original implementation [13].
Figure 4.
EEGNet architecture [13].
Table 1.
EEGNet architecture parameters.
2.4.2. EEG Conformer
EEG Conformer is a hybrid CNN–Transformer (Figure 5) [14]. It combines a convolutional front-end with a transformer encoder to capture both local and global temporal dependencies; this hybrid architecture allows capturing fine-grained features and global context without requiring large amounts of data, and overcoming the limitations of using CNN and Transformer architectures independently. The convolution module first extracts low-level local features through temporal and spatial convolutions; an average pooling layer then reduces the temporal dimension and creates a sequence of tokens. The self-attention module applies multi-head attention to model long-range dependencies across these tokens, therefore, complementing the limited convolutional layers. Table 2 summarizes the configuration used for the EEGConformer classifier.
Figure 5.
EEG Conformer architecture [14].
Table 2.
EEG Conformer architecture parameters.
2.5. Training Process
The overall training workflow is depicted in Figure 6. For each dataset, the trials were pre-processed following one of the two pipelines described in Section 2.2, and the feature extraction methods from Section 2.3 were applied. The resulting representations, together with the pre-processed raw signals, were used to train the EEGNet and EEG Conformer models (Section 2.4). The following paragraphs specify the data partitioning, training configuration, evaluation protocol, and software tools.
Figure 6.
Training method for the three datasets.
Data partitioning. For the MindBigData MNIST and MindBigData MNIST-8B datasets, 150 trials per class were randomly sampled using reservoir sampling and split into training (66%), validation (14%), and test (20%) sets. Ten independent repetitions with different random seeds were performed for each experimental condition. For the MSS dataset, all available trials of the classes car (index 6) and person (index 15) were used. Three leave-one-out evaluation scenarios were implemented: within-session, where the first three runs of each session were used for training and the fourth for validation; cross-session, where all sessions except the last were used for training and the last for validation and cross-subject, where all subjects except the last were used for training and the last for validation. One repetition of these splits was performed, following the protocol in [11].
Training configuration. Class weights were computed from the training labels to mitigate class imbalance. Models were trained with the Adam optimizer, a learning rate of 0.001, weight decay of 1 × 10−4, and a batch size of 16. Training proceeded for up to 100 epochs without early stopping; the model checkpoint achieving the highest validation accuracy was retained for evaluation. Data augmentation was not applied, as the limited number of trials could introduce leakage if not handled carefully.
Model Evaluation. Classification performance was evaluated primarily with accuracy; for the MindBigData dataset, the performance evaluation was complemented with the following additional metrics: specificity, recall, precision, F1 score, precision-recall average precision and ROC AUC; the tables for these additional metrics are included in the Appendix A. For the MSS dataset, where classification performance remained low and the choice of model or feature representation did not lead to meaningful differences, only accuracy is reported, as additional metrics would not provide further discriminative insight.
For the MindBigData datasets, the performance was evaluated over 10 runs, using different seeds for data sampling, splitting, model initialization, and data shuffling. The results are reported as the mean and the half-width of the 95% confidence interval (CI) computed over the 10 independent runs. For the MSS dataset, the model performance is evaluated on a single run and following the leave-one-out protocol adopted from [11]. The tables for the MSS results report the mean and the half-width of the 95% CI, which are computed over the session-wise averages for within-session, for the subject-level accuracies for cross-session, and from four pre-defined groups (subjects 1–8, 9–16, 17–24, 25–32) for cross-subject; for MSS, the validation set is used as the final evaluation.
Tools and libraries. The implementation relied on the following Python 3.12 libraries: NumPy 2.0.2 for numerical operations, PyTorch 2.11.0 for deep learning, Matplotlib 3.10.0 for visualization, SciPy 1.16.3 for signal processing and filtering, Scikit-learn 1.6.1 for data handling and metrics, spkit 0.0.9.3 [22] for the ATAR algorithm, kymatio 0.3.0 [21] for the wavelet scattering transform, ewtpy 0.2 [20] for EWT, PyWavelets 1.8.0 [18] for DWT, and Braindecode 1.6.1 [17] for the EEGNet and EEG Conformer implementations.
3. Results
This section presents the classification performance of EEGNet and EEG Conformer across three datasets under two distinct pre-processing pipelines. For each dataset, the experimental setup including channel configuration, pre-processing steps, and feature extraction methods is described. Both deep learning architectures were implemented using the Braindecode library [17]. The results are reported as classification accuracy percentages, with comparisons between architectures and feature extraction methods employed.
3.1. Classification Performance on MindBigData MNIST Dataset
The MindBigData MNIST dataset was used to perform a binary classification task using EEG recordings for the categories “0” and “blank”, where blank is the visual stimulus of a blank screen when no digit is presented. The EEG recordings in the dataset were acquired at 128 Hz, captured in 2 s windows (256 time points), and used the 14 channels (AF3, F7, F3, FC5, T7, P7, O1, O2, P8, T8, FC6, F4, F8, AF4) available for the Emotiv EPOC device. For each class, 150 trials were used, where 159 trials are the total number of trials for the class “blank” in the dataset. Two pre-processing pipelines were applied:
- Pipeline A—z-score normalization.
- Pipeline B—band-pass filter (0.5–30 Hz), artifact removal using ATAR (wavelet db4, window size 128, ), and z-score normalization.
The feature extraction methods included: pre-processed (raw EEG signal after pre-processing), coherence, Granger causality (GC), directed transfer function (DTF), partially directed coherence (PDC), transfer entropy (TE), discrete wavelet transform (DWT), empirical wavelet transform (EWT), and wavelet scattering transform (WST). The parameters used for the feature extraction methods were: EWT with 4 modes; WST with scale J = 4 and quality factor Q = 16; coherence computed in the alpha (8–13 Hz) and beta (13–30 Hz) bands; GC with maximum lag of 5; TE with window size 32 and step size 16. The dataset was split into subsets, with 66% for training, 14% for validation, and 20% for test, with normalization parameters obtained exclusively from the training set to prevent data leakage.
The classification results for the MindBigData MNIST dataset are presented in Table 3. Using only normalization as pre-processing, the highest accuracy of 97.83% was achieved by EEGNet with empirical wavelet transform (EWT) features, closely followed by EEG Conformer with EWT at 97.67%. Discrete wavelet transform (DWT) features also performed well, exceeding 95% accuracy (97.17% EEGNet, 96.83% EEG Conformer), while wavelet scattering transform (WST) features achieved accuracies above 93%. The baseline pre-processed signals reached 97.17% with EEGNet. Connectivity-based methods including coherence, Granger causality, directed transfer function (DTF), partially directed coherence (PDC), and transfer entropy (TE) produced lower accuracies ranging from 68.67% to 91.67%. When band-pass filtering and ATAR artifact removal were applied, overall performance decreased slightly, with the best result of 95.50% from EWT features with EEG Conformer.
Table 3.
Accuracy on MindBigData MNIST (%).
3.2. Classification Performance on MindBigData MNIST-8B Dataset
The MindBigData MNIST-8B dataset was used for the same classification task as the previous dataset, “0” vs. “blank”. This dataset was sampled at 250 Hz, with 128 channels, from which 14 channels were selected, the same channel configuration as MindBigData MNIST, having 500 time points for each 2 s window. Again, 150 trials were used per class. Only EWT and WST methods were used and compared with a baseline where only pre-processed data were used (raw signal after pre-processing). The pre-processing pipelines were identical to those on the previous dataset, with pipeline A being a basic pre-processing scheme, and pipeline B adding a band-pass filter and artifact removal.
Table 4 presents the results for the EEGNet and EEG Conformer architectures for the MindBigData MNIST 8B dataset. The highest accuracy was achieved by WST features with EEGNet (93.67%), followed by pre-processed signals with EEGNet (91.33%). With the full pre-processing pipeline, pre-processed signals remained the best (83.83% EEGNet, 83.50% EEG Conformer), while both EWT and WST presented a drop in performance.
Table 4.
Accuracy on MindBigData MNIST-8B (%).
3.3. Classification Performance on MSS
For the MSS dataset, we used the data in the low-speed experiment subset and performed a binary classification task involving a car vs. person. The EEG data in this dataset were recorded at 1000 Hz, epoched into 500 ms windows (500 time points); 14 channels were randomly selected from the original 122 to match the channel count of the previous datasets. Three classification modes were used: within-session (runs 1–3 for training, run 4 for validation), cross-session (sessions for training, session n for validation), and cross-subject (subjects for training, subject n for validation). The same two pre-processing pipelines were applied, with ATAR parameters unchanged. Only EWT, WST, and feature extraction methods were considered, compared with a baseline of pre-processed data (raw signals after pre-processing). Normalization was applied using z-score, using training-set statistics to transform the validation set; for this dataset, only training and validation subsets were used, using a split as indicated previously. Table 5 reports the validation accuracies obtained.
Table 5.
Classification accuracy on MSS (%).
Results for the MSS dataset across within-session, cross-session, and cross-subject evaluation modes are summarized in Table 5. For within-session classification with only normalization, EWT features combined with EEG Conformer achieved 75.90% accuracy, outperforming the pre-processed baseline of 72.70%. With the full pre-processing pipeline, within-session accuracy reached 77.10% for EWT with EEG Conformer. Cross-session performance was highest with pre-processed signals under the full pipeline at 69.89% with EEG Conformer, and EWT features achieved 70.00% under the same conditions. Cross-subject classification was the most challenging, with the best accuracy of 68.25% from pre-processed signals with EEG Conformer using the full pre-processing pipeline. WST features consistently showed lower performance across all evaluation modes compared with EWT and pre-processed baselines.
3.4. Comparison with Prior Work
For the MindBigData MNIST dataset, our results can be compared with the recent study by Avgoustis and Adamopoulos [15], which performed binary classification (digit 0 vs. blank) using the same pre-processing and feature extraction methods but with basic classifiers including the following: CNN, LSTM, SVM, XGBoost, among others; using the same 14-channel Emotiv EPOC data. Their highest reported accuracy for the digit 0 vs. blank task was 94.1% using coherence features with a CNN, and 96.0% using coherence with SVM. In our work, the best result for this dataset reached 97.83% with EEGNet and EWT features, and 97.67% with EEG Conformer and EWT, under the normalization-only pipeline. This confirms that wavelet-based adaptive spectral decomposition can outperform connectivity measures, and that the combination with modern deep learning architectures can achieve superior performance compared with prior work.
4. Discussion
The experimental results show that wavelet-based feature extraction methods can substantially improve classification accuracy, but their effectiveness is dataset-dependent. On the MindBigData MNIST dataset, empirical wavelet transform (EWT) achieved top accuracy performance with 97.83%. However, on the MindBigData MNIST-8B dataset, the wavelet scattering transform WST achieved the best performance with 93.67%.
This suggests that the adaptive spectral decomposition provided by EWT captures discriminative information in the EEG responses to visual digits that is not fully utilized by end-to-end deep learning models alone. The discrete wavelet transform also performed strongly, indicating that fixed-scale wavelet decompositions remain effective for these sustained visual paradigms.
Poor performance of connectivity-based methods on the MindBigData MNIST dataset was observed. Methods like coherence, Granger causality, DTF, PDC, and transfer entropy all produced accuracies substantially below the wavelet approaches. This may reflect that the discriminative information for distinguishing digit 0 from blank is primarily contained in local spectral power changes rather than in inter-channel relationships or directed information flow. The blank screen condition likely produces different overall activation patterns compared with those of visual stimulation from a digit, making power-based features more directly informative than connectivity measures.
The effectiveness of wavelet-based features, particularly EWT, can be attributed to their ability to adaptively partition the spectrum into physiologically relevant bands without imposing fixed boundaries. This is especially beneficial for visual decoding tasks where the neural response is characterized by transient increases in power across several frequency bands, such as alpha, beta and gamma. In contrast, connectivity-based features quantify inter-channel linear or information-theoretic dependencies; for the binary tasks studied here, where the main difference is the presence or absence of a visual stimulus, the most discriminative information appears to reside in local spectral amplitude changes rather than in network-level coupling.
An unexpected finding was that the addition of band-pass filtering and ATAR artifact removal generally decreased performance for the MindBigData datasets. This could indicate that these pre-processing steps remove some neural signal components that are useful for classification, or that the artifact removal algorithm introduces distortions that harm the feature representations. The wavelet-based features showed greater robustness to this performance drop compared with the raw pre-processed signals, suggesting that the transform domain representations may be less sensitive to pre-processing choices. For the MSS dataset, the artifact removal pipeline produced slightly better results in several conditions, possibly due to the higher recording quality and need for artifact correction in natural image perception paradigms. This is consistent with the conclusions of Delorme [23], who demonstrated that automated artifact rejection often fails to compensate for the associated loss of information and may even degrade statistical power. In particular, ATAR employs wavelet-based soft-thresholding that can smooth out transient high-frequency components; such components may be crucial for distinguishing between visual conditions.
The comparison between EEGNet and EEG Conformer reveals that both architectures perform similarly across most conditions, with no clear winner. EEGNet occasionally achieved higher accuracy with certain feature types, while EEG Conformer excelled in others, particularly with EWT features on the MSS dataset. This suggests that the choice of feature representation may interact with architectural biases, and that both model families remain relevant for EEG classification tasks.
The MSS dataset results highlight the fundamental challenge of cross-subject generalization in EEG-based brain-computer interfaces. Within-session classification reached respectable accuracies around 77%, but cross-subject performance dropped to approximately 68% even with the best configurations. This degradation confirms that individual differences in brain anatomy, electrode placement, and cognitive strategies create substantial distribution shifts that current methods cannot fully overcome. The wavelet-based features did not consistently improve cross-subject generalization compared with pre-processed signals, indicating that domain adaptation or transfer learning techniques may be necessary to address this variability rather than relying on feature engineering alone.
The performance gap between within-session and cross-session conditions was smaller than the gap to cross-subject conditions, suggesting that within-subject variability across different recording sessions is more manageable than variability between different individuals. This supports the continued development of subject-specific calibration approaches for high-performance applications, and the need for more robust cross-subject methods.
The discrepancy in the results between the MindBigData (MBD) datasets can be partly explained by the recording hardware; MBD MNIST used a commercial 14-channel Emotiv EPOC headset, while MBD MNIST-8B employed a custom 128-channel system of which only a manually matched subset of 14 channels was used. Moreover, MBD MNIST-8B used handwritten digit images that vary in appearance, whereas MBD MNIST always presented identical digital renderings of each digit. This variation in visual stimulus consistency may have reduced the signal-to-noise ratio of the evoked responses, leading to lower overall accuracies on MBD MNIST-8B. For the MSS dataset (natural images), the classes car and person are semantically richer and more complex, engaging higher-level visual processing that is inherently more challenging to decode from EEG and is more susceptible to inter-subject variability, as reflected in the lower cross-subject accuracies.
These findings provide insights into AI-assisted EEG decoding, demonstrating that by employing spectral representations of the EEG data and feeding them into deep convolutional and transformer-based models, it is possible to consistently improve the discriminative performance for binary classification tasks and obtain superior results when feeding the same models with extracted features from connectivity-based methods, demonstrating the effectiveness of wavelet-based methods over connectivity-based methods for feature extraction in EEG decoding.
5. Conclusions
This study evaluated multiple feature extraction methods and deep learning architectures for binary classification of EEG responses to visual stimuli across three datasets with varying structural complexity. The empirical wavelet transform provided the highest classification accuracy on the MindBigData MNIST dataset, but did not generalize well to the MindBigData MNIST-8B dataset, where pre-processed signals and the wavelet scattering transform performed better. For digit-vs-blank classification, accuracies above 93% were achieved, demonstrating that sustained visual paradigms combined with appropriate feature representations can obtain highly reliable decoding. Classification of natural image categories proved more challenging, with within-session accuracies near 77% and substantial drops for cross-subject generalization. The results suggest that wavelet-based adaptive spectral decomposition is a strong baseline for EEG visual decoding, although its benefits depend on the dataset. For sustained visual paradigms, wavelet-based feature extraction methods are the recommended input representation, as they achieved the highest accuracies in the majority of the tested conditions. Pre-processed raw signals can also be useful, particularly when aggressive artifact removal pipelines negatively impact the spectral content on which wavelet-based methods rely, as observed on the MindBigData MNIST-8B dataset. Future work should focus on addressing cross-subject variability through domain adaptation techniques, such as domain adversarial training, subject-invariant representation learning via contrastive alignment, or fine-tuning on limited target-subject data, to improve cross-subject performance.
Author Contributions
Conceptualization, C.A.C.-P., J.A.C.-C. and C.R.; methodology, C.A.C.-P.; software, C.A.C.-P.; validation, C.A.C.-P., C.R. and J.A.C.-C.; formal analysis, C.A.C.-P.; investigation, C.A.C.-P.; writing—original draft preparation, C.A.C.-P., C.R., and J.A.C.-C.; writing—review and editing, C.A.C.-P., C.R. and J.A.C.-C.; supervision, C.R. and J.A.C.-C. All authors have read and agreed to the published version of the manuscript.
Funding
The APC was funded by Tecnologico de Monterrey through the Open Access Publication Fund (FAP).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The datasets and source code supporting this research are publicly available in the following repositories: (1) MindBigData MNIST dataset: mindbigdata.com/opendb/MindBigData-EP-v1.0.zip (accessed on 6 July 2026). (2) MindBigData MNIST-8B dataset: huggingface.co/datasets/DavidVivancos/MindBigData2023_MNIST-8B/resolve/main/train.csv (accessed on 6 July 2026); huggingface.co/datasets/DavidVivancos/MindBigData2023_MNIST-8B/resolve/main/test.csv (accessed on 6 July 2026). (3) MSS dataset: openneuro.org/datasets/ds005589 (accessed on 6 July 2026). (4) Source code for this work: github.com/gwartzheinzert-cyber/Systematic-Comparison-for-EEG-based-image-classification (accessed on 8 July 2026).
Acknowledgments
This research was supported by SECIHTI through their scholarship program, with support ID: 838885 and by the scholarship provided by Tecnologico de Monterrey. We also acknowledge the NVIDIA Academic Grant Program, which provided the GPU resources used in this research. During the preparation of this study, the authors used Perplexity, SciSpace, and Elicit, for data collection and analysis and DeepSeek for generating text, code, and interpretation.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| ATAR | Automatic and Tunable Artifact Removal |
| BCI | Brain-Computer Interface |
| BiLSTM | Bidirectional Long Short Term Memory |
| CNN | Convolutional Neural Network |
| DTF | Directed Transfer Function |
| DWT | Discrete Wavelet Transform |
| EEG | Electroencephalography |
| EWT | Empirical Wavelet Transform |
| FFT | Fast Fourier Transform |
| GAN | Generative Adversarial Network |
| GC | Granger Causality |
| MSS | Multi Subject Dataset [11] |
| MVAR | Multivariate Autoregressive |
| PDC | Partially Directed Coherence |
| ROC AUC | Receiver Operating Characteristic Area Under the Curve |
| RSVP | Rapid Serial Visual Presentation |
| TE | Transfer Entropy |
| WST | Wavelet Scattering Transform |
Appendix A. Complementary Tables
This section presents the evaluation of the trained models using additional metrics in addition to accuracy, including specificity, recall, precision, and F1-score.
Appendix A.1. MindBigData MNIST
Table A1.
Specificity on MindBigData MNIST (%).
Table A2.
Recall on MindBigData MNIST (%).
Table A3.
Precision on MindBigData MNIST (%).
Table A4.
F1-score on MindBigData MNIST (%).
Table A5.
Average Precision on MindBigData MNIST.
Table A6.
ROC AUC on MindBigData MNIST.
Appendix A.2. MindBigData MNIST-8B
Table A7.
Specificity on MindBigData MNIST-8B (%).
Table A8.
Recall on MindBigData MNIST-8B (%).
Table A9.
Precision on MindBigData MNIST-8B (%).
Table A10.
F1-score on MindBigData MNIST-8B (%).
Table A11.
Average Precision on MindBigData MNIST-8B.
Table A12.
ROC AUC on MindBigData MNIST-8B.
Appendix B. Top Performing Models
To determine whether the observed differences are statistically reliable, we performed all-vs-all paired comparisons of the test accuracies obtained from the ten repetitions. For each pair of combinations, a two-sided paired t-test was conducted, and the resulting p-values were adjusted for multiple comparisons using the Benjamini–Hochberg false discovery rate procedure. A combination was considered significantly better than another if the adjusted and the mean accuracy was higher.
Table A13.
Dominance analysis across all metrics on MindBigData MNIST. Each cell reports metric (net wins); ‘–’ indicates that the model was not involved in any statistically significant pairwise comparison for that metric.
Table A14.
Dominance analysis across all metrics on MindBigData MNIST-8B. Each cell reports metric (net wins); ‘–’ indicates that the model was not involved in any statistically significant pairwise comparison for that metric.
Appendix C. Channel Selection Performance
To evaluate whether the random 14-channel selection affects the results, we repeated the within-session experiments with an alternative channel selection strategy. Starting from the full 122 channels, we computed the Pearson correlation matrix of the training data and iteratively selected 14 channels by first picking the channel with the highest variance and then adding the channel that had the smallest sum of absolute correlations with the already selected set, thus minimizing inter-channel redundancy. For each of the ten seeds, both random (the original method) and custom (correlation-based) channel sets were used to train EEGNet and EEG Conformer with pre-processed signals, EWT, and WST features under Pipeline A. The resulting validation metrics (accuracy, precision, recall, specificity, F1, ROC-AUC, average precision) were compared using the Wilcoxon signed-rank test. Table A15 shows the counts of significant outcomes across all 42 tests (6 combinations × 7 metrics). In no case did custom channel selection significantly outperform random selection, and in 8 tests random selection was significantly better. The remaining 34 tests showed no significant difference. We conclude that the random 14-channel selection is appropriate and does not compromise the validity of the results.
Table A15.
One-to-one comparison of custom channel selection vs. random channel selection on MSS Dataset. For each metric, a Wilcoxon test () was applied to the paired runs (10 seeds each); cells report the number of times where each method won in a statistically significant pairwise comparison.
Appendix D. Execution Time and Hardware
Table A16 reports the estimated wall-clock times for feature extraction and model training on the three datasets used in this study. Times for the MSS dataset are broken down by the three modalities used: within-session, cross-session, and cross-subject. All times are given in hours and were obtained using the configuration and parameters described in Section 3.1. The experiments were run in Google Colab’s CPU-only runtime environment, a design choice that allows reproducing the results without a dedicated GPU, making the study accessible and easy to replicate. Feature extraction for the methods evaluated here consists of sequential operations that would not benefit from a GPU. The feature extraction times illustrate the time advantage of restricting the analysis to wavelet-based methods. On the MindBigData MNIST dataset, extracting all eight feature sets required 12 h, whereas extracting only the wavelet-based features for the MNIST-8B dataset took 1.5 h. For the MSS dataset, computing only EWT and WST already required 4–5 h per evaluation mode; including the full set of connectivity methods would have increased this time substantially while likely delivering lower classification accuracy than wavelet-based methods.
Table A16.
Wall-clock time (hours) for feature extraction and training across datasets.
References
- Vivancos, D.; Cuesta, F. MindBigData 2022 A Large Dataset of Brain Signals. arXiv 2022, arXiv:2212.14746. [Google Scholar]
- Rasheed, S. A Review of the Role of Machine Learning Techniques towards Brain–Computer Interface Applications. Mach. Learn. Knowl. Extr. 2021, 3, 835–862. [Google Scholar] [CrossRef] [Scilit]
- Falciglia, S.; Betello, F.; Russo, S.; Napoli, C. Learning visual stimulus-evoked EEG manifold for neural image classification. Neurocomputing 2024, 588, 127654. [Google Scholar] [CrossRef] [Scilit]
- Khaleghi, S.; Ardabili, S.Z.; Sheykhivand, S.; Danishvar, S.; Hashemi, N. Salient Arithmetic Data Extraction from Brain Activity via an Improved Deep Network. Sensors 2023, 23, 9351. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vivancos, D. MindBigData 2023 MNIST-8B The 8 billion datapoints Multimodal Dataset of Brain Signals. arXiv 2023, arXiv:2306.00455. [Google Scholar]
- Bird, J.J.; Faria, D.R.; Manso, L.J.; Ekárt, A.; Buckingham, C.D. A Deep Evolutionary Approach to Bioinspired Classifier Optimisation for Brain-Machine Interaction. Complexity 2019, 2019, 4316548. [Google Scholar] [CrossRef] [Scilit]
- Mishra, R.; Sharma, K.; Bhavsar, A. Visual Brain Decoding for Short Duration EEG Signals. In Proceedings of the 2021 29th European Signal Processing Conference (EUSIPCO), Dublin, Ireland, 23–27 August 2021; pp. 1226–1230. [Google Scholar] [CrossRef] [Scilit]
- Kumari, S.; Bhattacharjee, V.N.; Anwar. Automated visual stimuli evoked multi-channel EEG signal classification using EEGCapsNet. Pattern Recognit. Lett. 2022, 153, 29–35. [Google Scholar] [CrossRef] [Scilit]
- Mahapatra, N.C.; Prachet, B. EEG-based classification of imagined digits using a recurrent neural network. J. Neural Eng. 2023, 20, 026040. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chowdhury, M.R.; Ding, Y.; Sen, S. SSL-SE-EEG: A Framework for Robust Learning from Unlabeled EEG Data with Self-Supervised Learning and Squeeze-Excitation Networks. In Proceedings of the 2025 47th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Copenhagen, Denmark, 14–18 July 2025; pp. 1–7. [Google Scholar]
- Xue, S.; Jin, B.; Jiang, J.; Guo, L.; Zhou, J.; Wang, C.; Liu, J. A multi-subject and multi-session EEG dataset for modelling human visual object recognition. Sci. Data 2025, 12, 663. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Subasi, T.N.; Subasi, A. Migraine and Epilepsy Discrimination Using DTCWT and Random Subspace Ensemble Classifier. Mach. Learn. Knowl. Extr. 2026, 8, 35. [Google Scholar] [CrossRef] [Scilit]
- Lawhern, V.J.; Solon, A.J.; Waytowich, N.R.; Gordon, S.M.; Hung, C.P.; Lance, B.J. EEGNet: A compact convolutional neural network for EEG-based brain-computer interfaces. J. Neural Eng. 2018, 15, 056013. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Song, Y.; Zheng, Q.; Liu, B.; Gao, X. EEG Conformer: Convolutional Transformer for EEG Decoding and Visualization. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 710–719. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tsamourgelis, A.; Adamopoulos, A. EEG Signal Analysis for Numerical Digit Classification: Methodologies and Challenges. Stats 2025, 8, 14. [Google Scholar] [CrossRef] [Scilit]
- Bajaj, N.; Carrión, J.R.; Bellotti, F.; Berta, R.; De Gloria, A. Automatic and tunable algorithm for EEG artifact removal using wavelet decomposition with applications in predictive modeling during auditory tasks. Biomed. Signal Process. Control 2020, 55, 101624. [Google Scholar] [CrossRef] [Scilit]
- Schirrmeister, R.T.; Springenberg, J.T.; Fiederer, L.D.J.; Glasstetter, M.; Eggensperger, K.; Tangermann, M.; Hutter, F.; Burgard, W.; Ball, T. Deep learning with convolutional neural networks for EEG decoding and visualization. Hum. Brain Mapp. 2017, 38, 5391–5420. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lee, G.R.; Gommers, R.; Waselewski, F.; Wohlfahrt, K.; O’Leary, A. PyWavelets: A Python package for wavelet analysis. J. Open Source Softw. 2019, 4, 1237. [Google Scholar] [CrossRef] [Scilit]
- Chaddad, A.; Wu, Y.; Kateb, R.; Bouridane, A. Electroencephalography Signal Processing: A Comprehensive Review and Analysis of Methods and Techniques. Sensors 2023, 23, 6434. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Carvalho, V.R.; Moraes, M.F.; Braga, A.P.; Mendes, E.M. Evaluating five different adaptive decomposition methods for EEG signal seizure detection and classification. Biomed. Signal Process. Control 2020, 62, 102073. [Google Scholar] [CrossRef] [Scilit]
- Andreux, M.; Angles, T.; Exarchakis, G.; Leonarduzzi, R.; Rochette, G.; Thiry, L.; Zarka, J.; Mallat, S.; Andén, J.; Belilovsky, E.; et al. Kymatio: Scattering Transforms in Python. J. Mach. Learn. Res. 2020, 21, 1–6. [Google Scholar]
- Bajaj, N.; Requena Carrión, J. SpKit: Signal Processing Toolkit. Version 0.9.3. 2021. Available online: https://github.com/Nikeshbajaj/spkit (accessed on 20 April 2026).
- Delorme, A. EEG is better left alone. Sci. Rep. 2023, 13, 2372. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





