NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hardware-Matched Spiking Neural Networks for Real-Time Purkinje Cell Spike Classification

Arooba Farhan, Afsah Syed, Muhammad Fahd Ibrahim Bhatti, Muhammad Areeb Khalid Kidwai, Muhammad Ahsan Salar Khan, Vincenzo Romano, Muhammad Ali SiddiqiarXiv 2026

This paper presents a significant step toward truly autonomous, long-term neural recording systems. By co-designing Spiking Neural Networks (SNNs) alongside specific hardware targets, the authors demonstrate how to perform complex neural signal classification on-device with minimal power consumption, effectively solving a major data bottleneck for neuroscience research in freely behaving animals.

TL;DR

The researchers developed two ultra-compact Spiking Neural Networks (SNNs) tailored for specific low-power hardware to classify Purkinje cell spikes in real-time. Their approach achieves high accuracy on previously unseen neural data while nearly doubling the battery life of untethered recording headstages.

What Problem Does This Paper Address?

To understand how the brain coordinates movement, neuroscientists study Purkinje cells (PCs) in the cerebellum. These cells produce two distinct types of signals: simple spikes (SSs) and complex spikes (CSs). Traditionally, these are recorded using wired "headstages," but the tethers restrict an animal's natural movement.

Untethered (wireless) headstages solve this but face a "data bottleneck." Transmitting raw, high-resolution neural data wirelessly consumes massive amounts of power—far more than a tiny battery can provide for long experiments. The solution is to classify the spikes directly on the headstage and only transmit the "results" (e.g., "Complex Spike at time X"), which compresses the data by orders of magnitude. However, running accurate machine learning models on the tiny, power-constrained chips inside a headstage is incredibly difficult.

Methods

The authors developed two distinct SNN architectures, each "matched" to a different hardware target:

  1. ConvSNN (for Microcontrollers): This model is designed for the EFM32PG28, a microcontroller featuring a Matrix Vector Processor (MVP). It uses 1D convolutional filters to extract features from a 57-sample waveform window. Because the MVP is highly efficient at dense matrix operations, ConvSNN processes the entire window at once over eight timesteps.
  2. StreamSNN (for Custom ASICs): Designed for a dedicated digital circuit (SKY130 process), this model processes data "streaming" style—one sample at a time. It uses Leaky Integrate-and-Fire (LIF) neurons with learned time constants and fixed synaptic delays to capture temporal patterns without needing to buffer the entire waveform.

Both models use 8-bit weights and were trained using surrogate gradients to overcome the non-differentiable nature of spiking neurons.

The system pipeline from electrode to sorted spikes, showing the two SNN architectures.

Datasets

The models were trained and evaluated on 64 manually annotated recordings from mouse Purkinje cells. Crucially, the authors used a "cell-held-out" evaluation strategy. This means the models were tested on recordings from neurons they had never seen during training, which is a much stricter and more realistic test of how the system would perform in a real-world lab setting compared to standard random splits.

Key Insights and Ideas

  • Hardware-Matching is Essential: The "best" neural network depends entirely on the silicon it runs on. While SNNs are often praised for "spike sparsity" (skipping computation when there are no spikes), the authors found that on a microcontroller with a hardware accelerator (MVP), dense matrix acceleration was more beneficial than exploiting sparsity. Conversely, on a custom ASIC, the ability to replace multiplications with simple additions (via binary spikes) was the primary driver of efficiency.
  • Generalization Matters: Many previous spike-sorting papers reported high accuracy by mixing spikes from the same cell into both training and testing sets. This paper shows that while accuracy drops when facing entirely new cells, specialized SNNs can still maintain high performance (F1 scores > 0.83).
  • Temporal Encoding: StreamSNN demonstrates that by learning time constants and using fixed delays, a very small network (only 527 parameters) can effectively "remember" the shape of a waveform as it arrives sample-by-sample.

Key Results

  • Accuracy: On unseen cells, ConvSNN achieved a Complex Spike F1 score of 0.873, while the even smaller StreamSNN achieved 0.837.
  • Power Efficiency: Using the MVP hardware accelerator reduced ConvSNN's latency by 62.3%.
  • Battery Life: On a tiny 50 mAh battery, the MVP-assisted system is estimated to last 33.73 hours, compared to only 17.04 hours using the CPU alone.
  • Physical Footprint: The StreamSNN implementation in the SKY130 process occupies a mere 0.173 mm² and consumes only 0.46 µJ per event.
Fig. 3. Per-recording F1 scores of ConvSNN and StreamSNN across 64 PCs under cell-held-out evaluation.
Comparison of estimated battery life with and without hardware acceleration.

Limitations and Future Work

The authors acknowledge that while their models generalize well to new cells, performance can still vary depending on the recording quality; the lowest scores occurred in recordings with very few complex spike events. Additionally, while the data used was from real experiments, the next step is to validate the system's performance in real-time on freely behaving animals to ensure the hardware can handle the electrical noise and artifacts associated with movement.

Summary updated

BibTeX
@misc{farhan2026hardware,
  author = {Arooba Farhan and Afsah Syed and Muhammad Fahd Ibrahim Bhatti and Muhammad Areeb Khalid Kidwai and Muhammad Ahsan Salar Khan and Vincenzo Romano and Muhammad Ali Siddiqi},
  title = {{Hardware-Matched Spiking Neural Networks for Real-Time Purkinje Cell Spike Classification}},
  year = {2026},
  eprint = {2610.37104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.37104},
}
Figure