Spiking EEG Cleaning That Actually Works on Wearables

The Brain That Learned to Listen to Itself

A clinician leans over a monitor in a rehabilitation clinic. On the screen, a waveform pulses, the electrical diary of a patient’s cortex. The signal is real, but buried. A jaw muscle twitches. Eyes shift. The heartbeat leaks through tissue. Each leaves its own electrical trace, scrawling noise across the brain’s message.

Engineers can record that signal easily enough. Cleaning it, in real time, on a wearable device, is the hard part. Wearable brain computer interfaces impose severe power constraints. A headset running all day cannot afford the computational cost of conventional deep learning pipelines.

That gap is exactly where STAND-Net enters the story.


When the Signal and the Noise Are One

Electroencephalography records electrical activity at the scalp. It has been a cornerstone of neuroscience and clinical medicine for nearly a century. In the last decade it also became the backbone of brain computer interfaces, or BCIs. These systems let people control prosthetics, communicate without movement, or receive neurofeedback, all by decoding the brain’s own electrical output.

Three Noise Sources, One Tangled Recording

In practice, the brain does not broadcast a clean signal at the scalp. Three categories of artifact contaminate virtually every real world EEG recording. Electromyographic noise comes from muscles, every blink, swallow, and jaw clench. Eye movements generate their own spurious signals. Cardiac contamination originates from the heart’s electrical field, which is often one to two orders of magnitude stronger than cortical signals at the scalp. When these sources fold together, the resulting trace mixes genuine neural activity and spurious components. Teasing them apart is genuinely difficult. The problem arises because artifacts overlap the same frequency bands as genuine brain rhythms.

Why Existing Methods Fall Short

Older methods such as Independent Component Analysis, wavelet transforms, and empirical mode decomposition were built for exactly this task. They demand expert supervision, falter when several noise sources overlap, and assume a controlled lab setting rather than a device worn on someone’s head all day.

Deep neural networks changed the calculus. CNN-based architectures, Transformer models, and hybrid ensemble frameworks pushed artifact removal quality forward. They did so at a steep computational burden, though. Consequently, continuous use on a small body-worn device is difficult to sustain. Such a model simply is not useful in the field.

A new paper from Beihang University takes a different path. Collaborators at City University of Hong Kong and Tsinghua University contributed to the work, and together they designed an architecture that takes its cues from the very organ it tries to interpret.


Neurons That Spike

The human brain does not process information continuously. Neurons fire in discrete electrical pulses and stay silent between those events. Computation happens only when something changes. This event driven property lets the brain do enormous amounts of processing on roughly twenty watts of metabolic energy.

From Biology to Silicon

Spiking Neural Networks, or SNNs, encode that biology in silicon. Standard artificial neurons compute a continuous output at every moment. Spiking neurons, instead, accumulate input until a membrane potential threshold is crossed. Then they emit a single binary spike and reset. Between firing events, they do nothing. The result is therefore sparse by design, with most neurons silent most of the time.

That sparse pattern is the design goal, not a side effect. Chips such as Intel Loihi and Tianjic are designed specifically for this style of event driven computation. On such neuromorphic hardware, the energy cost of running a spiking model drops by orders of magnitude compared to a standard deep network on the same task. Historically, spiking models lagged conventional ones on accuracy for practical tasks. STAND-Net targets EEG artifact removal directly, however, and its results show deep network grade performance at a fraction of the energy budget.


What STAND-Net Does

Built as an autoencoder, STAND-Net, short for Spiking Temporal Attention autoeNcoDer Network, compresses an input into a dense internal representation, then reconstructs a cleaned version of it. Three interlocking ideas drive the architecture.

Spiking Convolution Block

The spiking convolution block forms the core feature extractor. It combines Leaky Integrate and Fire (LIF) neuron dynamics with temporal convolutions. Specifically, the LIF neuron accumulates input current and leaks charge between time steps. It fires a spike when the accumulated potential crosses a threshold. Each EEG segment runs through eight discrete simulation time steps inside the spiking network. In practical terms, a one second recording divides into eight intervals, and the model learns how noise sources and genuine oscillations each evolve across those frames. For training stability, the authors use an arctangent surrogate gradient function, which approximates the non differentiable spike operation during training. This is a well established technique in the SNN field.

Dilated Convolution Backbone

The second idea is dilated convolution with hierarchical expansion. Starting at a rate of 1, the encoder grows its dilation rates step by step to 16. Subsequently, the decoder contracts symmetrically as it reconstructs the waveform. This lets the model capture both local features and slower temporal structure without inflating its parameter count. As a result, a single residual block attends to fine grained activity and broad context simultaneously.

Spike Rate Attention

The third component is the spike rate attention mechanism, and it works differently from standard attention. Rather than learnable query key value matrices, the module reads the actual firing rates of spiking neurons directly. Those rates reflect what fraction of simulation time steps each neuron fired a spike. When clusters of neurons exhibit elevated firing rates, often associated with artifact bursts such as muscle activity, the mechanism suppresses those features before reconstruction. Attention here does not sit on top of the biological computation. Rather, it arises from the firing patterns themselves.

Why Attention Stays in the Encoder

Attention runs only in the encoder. The decoder, by contrast, uses standard residual blocks. Ablation experiments show that adding attention to both encoder and decoder produces only marginal gains. It also increases inference time. The asymmetric design therefore achieves nearly identical accuracy at lower energy cost, a concrete engineering choice backed by empirical evidence.


The Numbers

How well does the architecture work in practice? The authors evaluate it across three axes: denoising quality, downstream BCI performance, and energy consumption.

Benchmark Performance

Using EEGdenoiseNet and the MIT-BIH Arrhythmia Database, the authors assembled a semi-synthetic dataset. It covered seven artifact conditions: three single source types (EMG, EOG, ECG) and four composite mixtures. Specifically, input SNR levels varied randomly between negative seven and positive two decibels, covering the range found in real recording environments.

STAND-Net topped every state of the art deep learning baseline on every metric. Those metrics include lowest Relative Root Mean Square Error, highest Signal to Noise Ratio, highest Peak Signal to Noise Ratio, highest Correlation Coefficient, and highest Wavelet domain SNR. For single EMG contamination, the system hit 15.49 dB against 12.01 dB for the next best method. In the harder case, the triple source mixture of EMG, EOG, and ECG, it reached 16.52 dB against 12.17 dB. A three to four decibel lead corresponds to a visibly cleaner waveform and more reliable features for downstream models.

Downstream BCI Classification

To test real world utility, the researchers then took the model to BCI Competition IV-2a, a motor imagery benchmark with EEG from nine subjects performing four mentally rehearsed movement tasks. A pre trained STAND-Net model cleaned the raw recordings. Those cleaned recordings fed into EEGNet, a compact classification model. Classification accuracy rose 6.64 percent. Furthermore, the Kappa coefficient improved 6.33 percent, both gains relative to unprocessed EEG.

Models that clean poorly told a different story. FCNN and 1D-ResCNN actually degraded classification performance. A poor denoiser strips out not just contamination but task relevant signal components. The classifier therefore sees a distorted view of the brain activity. STAND-Net, by contrast, preserved enough structure that the downstream model improved.

Energy Consumption

The energy comparison uses multiply accumulate (MAC) operations for conventional ANNs against accumulate only (AC) operations for the spiking model. Per operation energy estimates follow commonly cited 7nm CMOS figures: 1.69 picojoules per MAC, 0.38 picojoules per AC. STAND-Net’s neuronal activation sparsity hit 91 percent across all layers. That 91 percent sparsity translates directly into the power estimate. STAND-Net consumes at least 97.98 percent less energy than an equivalent all artificial neuron architecture at the same structural specifications. An always on contamination cleaner running a several hour session draws roughly the same energy budget as a low power sensor. A laptop class processor, in contrast, would consume far more.


What It Means for Wearable BCI

These results matter most in environments where computation is constrained, especially wearable neurotechnology.

The Real World Constraint

A headset worn through a full clinical day or overnight in a sleep study runs on a small battery. Cloud offload is not an option when a patient needs low delay feedback. Moreover, any system steering a prosthetic limb or driving a cursor must keep errors rare. Those constraints are not going away, and spiking architectures are currently the most credible path to meeting all of them at once. Indeed, no prior published method in this domain meets all three demands simultaneously.

Neuromorphic Deployment

Under the conditions tested, STAND-Net outperforms every prior method in this domain. The authors designed it using the SpikingJelly framework, and both Loihi and Tianjic are viable deployment targets. In principle, the same trained model can move from a Python environment to custom silicon running quietly inside a mobile device. Notably, the Tianjic chip’s near memory architecture reportedly yields a thousand fold reduction in energy per inference for spiking models, against GPU based execution as the baseline.

What Comes Next

The current design operates on single channels, which leaves cross channel spatial correlations unexploited. Additionally, training relied on semi synthetic data, so real clinical recordings may carry contamination patterns the model has not seen. Spectral features were not incorporated either, even though prior work suggests time frequency information can sharpen artifact detection. These open areas define the next phase of research. The core model, however, is already built and tested.

Indeed, the waveform on the clinician’s monitor no longer has to be buried beneath artifact. With models like STAND-Net running directly on wearable hardware, the brain’s signal can emerge in real time, cleaner, clearer, and usable outside the laboratory.


Citation

Zhang, R., Guo, X., Pan, Y., & Gao, S. (2026). STAND-Net: A Spiking Temporal Attention autoeNcoDer Network for Efficient EEG Artifact Removal. IEEE Journal of Biomedical and Health Informatics. DOI: 10.1109/JBHI.2026.3670141

Related Articles

PHP Code Snippets Powered By : XYZScripts.com
★

Track This Company

Create a free account to add companies to your watchlist and get notified when patents, funding, or key developments change.