Abstract
Electroencephalography (EEG) signals are critical for real-time brain-computer interfaces (BCIs) but are highly susceptible to noise from physiological and environmental artifacts. We present EEGReXferNet, a lightweight generative AI framework for EEG subspace reconstruction. By utilizing neighborhood-driven spatial embeddings and frequency-tuned sub-window convolutions, the model achieves high-fidelity reconstruction with 45% fewer parameters than baseline models and an inference latency under 1 ms. Evaluated on the BCI Competition IV dataset, EEGReXferNet demonstrates robust cross-subject generalization and significantly improves downstream classification accuracy, making it suitable for real-time BCI applications.
Introduction
Electroencephalography (EEG) provides a high-temporal-resolution window into brain activity, yet it is frequently contaminated by artifacts such as eye blinks and muscle movements. Traditional denoising methods like Independent Component Analysis (ICA) often require manual oversight, while automated tools like Artifact Subspace Reconstruction (ASR) can lead to signal distortion. Deep learning approaches, while promising, often lack the computational efficiency required for real-time deployment or fail to account for the spatial and spectral complexities of EEG data. EEGReXferNet addresses these limitations through a lightweight, geometry-aware Variational Autoencoder (VAE) architecture designed for high-speed reconstruction.
Methods
The EEGReXferNet framework is built on four key innovations: neighborhood-driven input selection, sub-window convolution encoding, Sliced Wasserstein Distance (SWD) regularization, and reference-based scaling. The neighborhood-driven approach incorporates the physical layout of the EEG electrodes, leveraging volume conduction to improve spatial feature extraction. The encoder utilizes stacked convolutions specifically tuned to the Delta, Theta, Alpha, and Beta frequency bands, enhancing spectral efficiency.
The model was trained and evaluated using the BCI Competition IV (Dataset 1), consisting of 59-channel recordings from 7 subjects. For realistic BCI simulation, 28 channels were selected and downsampled to 100 Hz. The use of a "Sliding Stats Layer" instead of massive dense layers reduced total model weights by approximately 45%, preventing overfitting to noise.
Results
EEGReXferNet achieves high signal fidelity with a mean Power Spectral Density (PSD) correlation of $\ge 0.95$ and a spectrogram similarity (RV-Coefficient) of $\ge 0.85$. The architectural optimizations enabled an inference latency of $< 1$ ms per window, ensuring the model adds negligible overhead to real-time systems.
As illustrated in the radar plots above, the model maintains low error rates (sMAPE) across different frequency bands and spatial locations. The model also demonstrated strong cross-subject generalization, effectively cleaning data from unseen subjects through transfer learning. Furthermore, integrating EEGReXferNet as a pre-processing step significantly boosted the accuracy of downstream classifiers like EEGNet, confirming the preservation of task-relevant neural features.
Conclusion
EEGReXferNet provides an efficient and effective solution for real-time EEG denoising. By incorporating spatial and spectral priors into a lightweight VAE, it achieves high-fidelity reconstruction suitable for low-latency BCIs. Future research will explore larger datasets, adaptive artifact detection, and the neurophysiological interpretability of the latent space to better align extracted features with known brain markers.
Summary updated