arXiv:2610.37104cs.AROct 2026

Manuscript Offprint

arXiv:2610.37104

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 Siddiqi

Arooba Farhan*, Afsah Syed*, Muhammad Fahd Ibrahim Bhatti*, Muhammad Areeb Khalid Kidwai*, Muhammad Ahsan Salar Khan*, Vincenzo Romano†, Muhammad Ali Siddiqi*‡

*Electrical Engineering Department, Lahore University of Management Sciences, Pakistan

†Department of Neuroscience, Erasmus University Medical Center, Rotterdam, The Netherlands

Abstract—Distinguishing Purkinje cell (PC) simple spikes (SSs) from complex spikes (CSs) is key to studying cerebellar function. PC recordings commonly rely on wired headstages, whose tethers restrict natural movement in freely behaving animals. Untethered headstages remove this constraint, but cannot continuously transmit raw recordings within their power budgets, making on-headstage spike classification an attractive form of compression, provided it runs accurately in real time on constrained hardware. This work presents two compact spiking neural networks (SNNs) matched to their target hardware: ConvSNN, which maps to the Matrix Vector Processor (MVP) of an EFM32PG28 microcontroller, and StreamSNN, which processes one waveform value per timestep using learned time constants and fixed synaptic delays for a dedicated SKY130 circuit. Evaluated on cells unseen during training, ConvSNN achieves a CS F1 of 0.873 with 1,018 parameters and StreamSNN 0.837 with 527 parameters, both with eight-bit weights. On the microcontroller, MVP acceleration reduces ConvSNN latency by 62.3% and extends estimated battery life to 33.73 hours on a 50 mAh battery. In SKY130, StreamSNN occupies 0.173 mm² and consumes 0.46 μJ per event, with 0.2 ms of computation within an 8.3 ms end-to-end latency.

Index Terms—Spiking neural networks, Purkinje cells, spike sorting, neuromorphic computing, matrix vector processor

I. INTRODUCTION

Purkinje cells (PCs), the sole output neurons of the cerebellar cortex, are central to motor coordination and learning [1]. Their extracellular activity contains simple spikes (SSs) and complex spikes (CSs), which arise from different synaptic inputs and carry distinct information about cerebellar processing [2] (see Fig. 1B). PC recordings are commonly acquired with wired headstages, whose tethers restrict natural movement in freely behaving animals [3] (see Fig. 1A). Untethered headstages remove this constraint but face a data bottleneck: one channel sampled at 24.414 kHz with 16-bit resolution produces approximately 390 kb/s, making continuous raw-data transmission costly for a battery-powered device and requiring on-headstage compression within tight memory and power budgets.

Spike sorting, which detects spikes and assigns them to classes, offers an extreme form of such compression by reducing each event to a spike type and sample index (Fig. 1C and D). However, many existing PC spike-sorting methods [4]–[8] are computationally demanding, require resources unavailable on constrained embedded platforms, or rely on both local field potentials (LFPs) and single-unit action potentials (APs). Recent works have demonstrated SS/CS classification on a mouse headstage ASIC [9] and on a microcontroller neural accelerator [10], establishing the feasibility of embedded spike sorting. However, these works do not evaluate generalization to unseen PCs, nor do they explore spiking neural networks (SNNs), whose sparse, event-driven computation may further reduce energy.

SNN neurons keep an internal state and communicate through discrete spikes [11], so computation for inputs that do not spike can be skipped. However, SNNs must also update each neuron's state at every timestep, and fewer spikes do not always mean lower hardware cost [12]. Their efficiency therefore depends on the network design, how often neurons spike, and how the computation maps to the target hardware.

In this work, we develop two compact SNNs that classify detected PC events as SSs, CSs, or false positives (FPs), i.e., detections that do not match an annotated spike. Both share a causal detection and preprocessing pipeline but are matched to different hardware targets. ConvSNN processes the full event window at once using shared convolutional filters and spiking neurons, producing regular matrix operations suited to the Matrix Vector Processor (MVP) of the EFM32PG28 microcontroller. StreamSNN instead processes the window one sample per timestep using spiking neurons with learned time constants and fixed synaptic delays, suited to a dedicated digital circuit in the SkyWater 130 nm (SKY130) process. We evaluate both SNNs on recordings from cells unseen during training. The main contributions of this work are:

  1. ConvSNN for microcontroller acceleration. An SNN whose shared convolutional filters produce regular matrix operations suited to the EFM32PG28 MVP, achieving 0.873 CS F1 with 1,018 parameters.

  2. StreamSNN for dedicated hardware. An SNN that processes one sample per timestep using leaky neurons with learned time constants and fixed synaptic delays, suited to compact digital logic, achieving 0.837 CS F1 with 527 parameters.

  3. Embedded implementation and evaluation. We implement ConvSNN on the EFM32PG28 and StreamSNN in SKY130 with a low-cost causal noise-estimation front-end, report latency, energy, and area, and show that both SNNs keep their accuracy with eight-bit weights.

Figure

Fig. 1. Overview of the proposed system. (A) Conventional wired setup, in which a mouse with a Mini-Amp-64 headstage records PC activity through an amplifier, filter, and ADC. (B) Extracellular PC recording containing simple spikes (SSs) and complex spikes (CSs). (C) On-device spike detection and classification. (D) Output stored as sample index and spike type instead of raw data. (E) The two SNN classifiers: ConvSNN processes the full 57-value window as a fixed input over eight timesteps, while StreamSNN processes one waveform value per timestep through LIF neurons with learned time constants, fixed synaptic delays, and adaptive-threshold (ALIF) neurons.

References (18)