Abstract
With the advent of advanced machine learning methods, the performance of brain-computer interfaces (BCIs) has improved unprecedentedly. However, electroencephalography (EEG), a commonly used brain imaging method for BCI, is characterized by a tedious experimental setup, frequent data loss due to artifacts, and is time consuming for bulk trial recordings to take advantage of the capabilities of deep learning classifiers. Some studies have tried to address this issue by generating artificial EEG signals. However, a few of these methods are limited in retaining the prominent features or biomarker of the signal. And, other deep learning-based generative methods require a huge number of samples for training, and a majority of these models can handle data augmentation of one category or class of data at any training session. Therefore, there exists a necessity for a generative model that can generate synthetic EEG samples with as few available trials as possible and generate multi-class while retaining the biomarker of the signal. Since EEG signal represents an accumulation of action potentials from neuronal populations beneath the scalp surface and as spiking neural network (SNN), a biologically closer artificial neural network, communicates via spiking behavior, we propose an SNN-based approach using surrogate-gradient descent learning to reconstruct and generate multi-class artificial EEG signals from just a few original samples. The network was employed for augmenting motor imagery (MI) and steady-state visually evoked potential (SSVEP) data. These artificial data are further validated through classification and correlation metrics to assess its resemblance with original data and in-turn enhanced the MI classification performance.
Introduction
Brain-Computer Interfaces (BCIs) serve as a critical bridge between neural activity and external devices, offering potential for rehabilitation and assistive technologies. Electroencephalography (EEG) is the most prevalent modality for BCIs due to its non-invasive nature and high temporal resolution. However, the efficacy of modern machine learning and deep learning classifiers in this domain is often hampered by "data hunger." Collecting sufficient labeled EEG data is a significant bottleneck, limited by subject fatigue, time-consuming setups, and signal corruption.
While generative models like Generative Adversarial Networks (GANs) have been explored for data augmentation, they typically require large training sets themselves and often struggle to preserve the underlying neural biomarkers essential for BCI accuracy. This study introduces a biologically inspired alternative: a Spiking Neural Network (SNN) framework capable of generating high-quality, multi-class synthetic EEG data from a minimal number of original samples.
Methodology: The SNN Generative Framework
The proposed approach leverages the inherent synergy between SNNs and neural signals. Because SNNs communicate via discrete spikes—much like the biological neurons that generate EEG signals—they are uniquely suited for synthesizing realistic neural data.
The framework operates in three distinct stages:
- Template Extraction: A "gold standard" signal is identified for each class. For periodic signals like SSVEP, this is achieved through trial averaging. For non-periodic signals like Motor Imagery (MI), the trial with the highest classification probability is selected.
- SNN Training: A three-layered feedforward SNN utilizing Leaky Integrate-and-Fire (LIF) neurons is trained to reconstruct the template signal. To overcome the non-differentiable nature of discrete spikes, surrogate-gradient descent is employed for weight updates.
- Synthetic Data Generation: Once the SNN learns the template, a Neural Perturbation Layer is activated. By injecting Poisson-distributed noise into the output layer, the model generates variations that maintain the core biomarker while exhibiting the trial-to-trial variance characteristic of real EEG data.
Results and Validation
The model was validated using publicly available datasets for Motor Imagery (MI) and Steady-State Visually Evoked Potential (SSVEP).
Classification Performance
Augmenting the training data with SNN-generated samples led to measurable improvements in classification accuracy. For MI tasks, the average Linear Discriminant Analysis (LDA) accuracy increased from 70.78% to 72.71%, with some datasets showing improvements of up to 9%. Furthermore, classifiers trained exclusively on synthetic data achieved high performance when tested on real data (~80% for MI and ~90% for SSVEP), confirming the representativeness of the generated signals.
Biomarker Preservation
A critical requirement for synthetic EEG is the preservation of spectral features. Power spectral analysis demonstrated that the SNN-generated signals accurately maintained the expected frequency peaks (e.g., the 10Hz and 11Hz peaks for SSVEP). Reconstructed signals closely mirror the original templates in both the time and frequency domains after training, as evidenced by the precise alignment of power spectra and spike patterns.
Discussion and Conclusion
This study demonstrates that SNNs provide a highly data-efficient and biologically plausible method for EEG data augmentation. By mimicking the spiking behavior of biological neurons, the model can generate an unlimited number of synthetic trials from a single template while preserving essential biomarkers.
While the current model focuses on a limited number of channels, future work will explore scaling the architecture to handle high-dimensional spatial correlations across 32 or 64 channels. Additionally, incorporating further biological principles, such as Dale’s Law, may further enhance the realism and utility of the generated data for advanced BCI applications.
Summary updated