YASS: Yet Another Spike Sorter

Jin Hyung Lee, David E. Carlson, Hooshmand Shokri Razaghi, Weichi Yao, Georges A. Goetz, Espen Hagen, Eleanor Batty, E. J. Chichilnisky, Gaute T. Einevoll, Liam PaninskiNeurIPS 2017

YASS (Yet Another Spike Sorter) is a highly scalable, automated pipeline designed to decode neural activity from massive multi-electrode arrays. By employing a "triage-then-cluster-then-pursuit" strategy—which temporarily sets aside messy, overlapping signals to first identify clean neural "templates"—it achieves state-of-the-art accuracy and processes data from 500 electrodes faster than real-time.

The Spike Sorting Bottleneck

In modern neuroscience, researchers use dense multi-electrode arrays (MEAs) to record the electrical "spikes" of hundreds or thousands of neurons simultaneously. The critical first step in analyzing this data is spike sorting: taking raw, noisy voltage traces and determining which neuron fired which spike.

As MEAs scale from hundreds to potentially millions of electrodes, two major bottlenecks have emerged:

  1. Computational Cost: The sheer volume of data makes traditional algorithms painfully slow.
  2. Collisions and Noise: When two neurons fire at nearly the same time, their signals overlap (a "collision"), distorting the data and confusing standard clustering algorithms. This often necessitates hours of tedious manual post-processing by humans to clean up the results.

A Four-Stage "Triage" Pipeline

YASS introduces a modular pipeline that prioritizes robustness and scalability by separating the easiest parts of the problem from the hardest.

PCA visualization of the triage and coreset stages, showing how YASS isolates clean clusters from noisy data.
  1. Detection via Neural Networks: Instead of using hand-tuned voltage thresholds, YASS uses a neural network to detect spikes. This improves sensitivity and ensures spikes are perfectly aligned in time, significantly reducing the "spread" of data in feature space.
  2. Triaging (The Secret Sauce): The algorithm identifies and temporarily removes outliers and collided spikes. By focusing only on "clean" waveforms initially, the clustering manifold is simplified, leading to fewer errors.
  3. Coreset-based Bayesian Clustering: To handle the data deluge, YASS uses a "coreset" approach—reducing hundreds of thousands of data points to a small representative set. It then applies a Dirichlet Process Gaussian Mixture Model (DP-GMM) to automatically determine the number of unique neurons without human intervention.
  4. Deconvolution (The "Pursuit"): Finally, the algorithm takes the clean neural templates found in step 3 and uses "matching pursuit" (a template-matching technique) to go back and decode the messy collisions and noisy spikes that were set aside during the triage stage.

Validation and Key Results

The authors validated YASS using both biophysically realistic simulated data (ViSAPy) with known ground truth, and real 30-minute extracellular recordings from a 512-electrode primate retinal array.

Performance comparison showing YASS achieving superior stability and accuracy across high collision and low SNR simulated datasets.
  • Speed: By spatially partitioning electrodes into local groups, YASS runs clustering in parallel. It processed 30 minutes of 512-channel data in approximately 6 minutes and 40 seconds (faster than real-time), significantly outpacing competitors like Kilosort.
  • Accuracy: On simulated data, the neural network detector reduced false positives and missed collisions by 90% compared to standard methods.
  • Stability: YASS demonstrated much higher stability scores than existing pipelines, meaning it produces highly reproducible clusters and fewer "fake" neuron clusters that would normally require manual deletion.

Limitations and Future Directions

While highly effective, YASS has a few areas for future improvement. The neural network detector currently requires some prior training data; a truly universal "plug-and-play" detector remains an ongoing goal. Additionally, while the detection stage is GPU-accelerated, porting the clustering and deconvolution stages from CPU to GPU could yield even more dramatic speedups. Finally, future iterations will need to account for "drift"—the non-stationarity of waveform shapes over long recordings as electrodes physically shift relative to the neurons.

Summary updated

BibTeX
@inproceedings{lee2017yass,
  author = {Jin Hyung Lee and David E. Carlson and Hooshmand Shokri Razaghi and Weichi Yao and Georges A. Goetz and Espen Hagen and Eleanor Batty and E. J. Chichilnisky and Gaute T. Einevoll and Liam Paninski},
  title = {{YASS: Yet Another Spike Sorter}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=BJ-9zu-dWr},
}
Figure