Abstract
Spike sorting is a critical step in decoding neural activity for brain-machine interfaces (BMIs). However, traditional offline methods struggle with the non-stationary nature of neural recordings and the strict power constraints of implantable hardware. This paper presents NeuSort, an unsupervised, online spike sorting framework that utilizes spiking neural networks (SNNs) and Hebbian plasticity. NeuSort effectively tracks drifting neural waveforms and identifies new signal sources in real-time, achieving high accuracy with ultra-low power consumption suitable for next-generation neuroprosthetics.
1. Introduction
The ability to isolate individual neuronal signals from extracellular recordings—a process known as spike sorting—is fundamental to neuroscience research and clinical BMI applications. While offline sorting algorithms have reached high levels of maturity, the transition to real-time, "on-the-fly" processing remains a significant hurdle. Modern closed-loop BMIs require low-latency sorting to provide immediate feedback, yet they must operate within the limited power budgets of embedded systems to avoid tissue damage from thermal dissipation.
2. The Challenge: Signal Non-Stationarity
A primary difficulty in online spike sorting is the non-stationary environment of the brain. Physical movement of the recording electrodes (cell drift) or changes in the local chemical milieu can cause a neuron’s characteristic waveform to scale or deform over time. Static template-matching algorithms often fail under these conditions, as the recorded spikes eventually diverge from the initial templates. Furthermore, traditional deep learning models, while capable of high accuracy, often require extensive labeled training data and significant computational resources, making them impractical for long-term, autonomous implants.
3. The NeuSort Architecture
NeuSort addresses these challenges through a two-layer neuromorphic architecture inspired by biological sensory processing.
3.1 Encoding and Perception
The model first employs an Encoding Layer using Gaussian receptive fields. This stage transforms continuous, real-valued voltage waveforms into discrete event trains, mimicking the biological conversion of analog signals into neural codes. These events are then passed to the Perception Layer, which consists of Integrate-and-Fire (IF) neurons. A Winner-Takes-All (WTA) mechanism ensures that only the neuron most closely matching the input waveform fires, effectively "claiming" the spike for a specific cluster.
3.2 Adaptive Learning via Hebbian Plasticity
The core innovation of NeuSort is its use of a Hebbian learning rule to manage waveform drift. By updating connection weights in real-time whenever a neuron fires ("neurons that fire together, wire together"), the model allows its internal templates to evolve alongside the physical signal. This unsupervised adaptation enables NeuSort to maintain tracking of a neuron even as its waveform deforms over hours or days, without requiring manual recalibration or a "cold start" training period.
4. Experimental Evaluation
NeuSort was validated using both synthetic and real-world datasets:
- Synthetic Data (syn1-3): Used to isolate specific challenges like stable firing, newly emerging neurons, and global waveform scaling.
- Rat Hippocampus (dataset_real1): A recording featuring a single ground-truth neuron with significant waveform scaling and deformation over time.
- Rhesus Monkey Utah Array (dataset_real2): High-density, 96-channel recordings from a motor task.
5. Results and Discussion
5.1 Accuracy and Robustness
NeuSort demonstrated superior performance in tracking drifting signals. On the dataset_real1 drift dataset, NeuSort maintained an F-score of 0.79, whereas traditional methods like PCA-KM failed completely (F-score of 0) and Wave_clus reached only 0.48. In multi-day recordings from the Utah array, NeuSort maintained a mean accuracy of 0.79 and precision of 0.89, performing on par with state-of-the-art (SOTA) offline sorters such as Kilosort2 and IronClust.
5.2 Neuromorphic Efficiency
Designed for hardware compatibility, NeuSort exhibits linear computational scaling with the number of spikes. Power estimates for a 96-channel implementation on neuromorphic hardware (e.g., Intel Loihi) range from 0.317 mW to 0.605 mW. This is well within the safety threshold for brain implants, where power consumption must be minimized to prevent local temperature increases exceeding 0.5°C.
6. Conclusion and Future Work
NeuSort represents a significant step toward autonomous, long-term neural interfaces. By leveraging biological learning principles, it solves the problem of waveform drift while maintaining the efficiency required for implantation. Future research will focus on implementing dynamic learning rates to handle varying drift speeds and incorporating inter-channel information to improve sorting accuracy in high-density electrode arrays.
Summary updated