Spike Sorting by Convolutional Dictionary Learning

Andrew H. Song, Francisco Flores, Demba BaarXiv 2018 · DOI

Abstract

Spike sorting refers to the problem of assigning action potentials observed in extra-cellular recordings of neural activity to the neuron(s) from which they originate. We cast this problem as one of learning a convolutional dictionary from raw multi-electrode waveform data, subject to sparsity constraints. In this context, sparsity refers to the number of neurons that are allowed to spike simultaneously. We derive memory/computation-efficient convolutional versions of OMP (cOMP) and KSVD (cKSVD), popular algorithms for sparse coding and dictionary learning respectively. We demonstrate via simulations and real-world recordings from a rat Hippocampus that an algorithm alternating between cOMP and cKSVD can recover underlying spike waveforms successfully and is stable in the presence of noise.

Introduction: The Challenge of Neural "Chatter"

In experimental neuroscience, researchers use extracellular electrodes to record the electrical activity of the brain. However, a single electrode often captures signals from multiple nearby neurons simultaneously. Spike sorting is the critical process of untangling this mixture: assigning each detected action potential (spike) to the specific neuron that produced it.

Traditional methods typically involve spike detection, feature extraction (e.g., PCA), and clustering. These approaches often struggle with "overlapping spikes"—when two neurons fire nearly simultaneously—and lack a rigorous theoretical foundation. This paper addresses these limitations by framing spike sorting as a convolutional dictionary learning problem, providing both algorithmic efficiency and theoretical sample complexity bounds.

Methods: Convolutional Dictionary Learning

The researchers model the recorded signal as a generative process: the observed voltage is the sum of various neuron "templates" (the dictionary) convolved with "spike trains" (sparse code vectors), plus noise. To solve this, they employ an Alternating Minimization strategy using two specialized algorithms:

  1. cOMP (Convolutional Orthogonal Matching Pursuit): A greedy algorithm that identifies spike times. Unlike standard OMP, cOMP uses cross-correlation to find matches efficiently without the need for massive matrix storage.
  2. cKSVD (Convolutional K-SVD): This step updates the shapes of the neuron templates based on the spikes identified by cOMP, ensuring the learned templates are biologically plausible.
Learned spike templates (Filters 1-3) compared to true and initial waveforms, alongside per-filter performance metrics.

This framework treats "sparsity" as a biological reality: neurons have a refractory period and only a few neurons in a neighborhood are active at any given microsecond. By leveraging the convolutional structure, the authors avoid the high memory costs of traditional sparse coding.

Key Results

The algorithm was evaluated using both simulated data (to control SNR and firing rates) and real-world rat Hippocampus recordings (validated against ground-truth intracellular data).

Superior Accuracy and Template Recovery

In noisy simulations (6 dB SNR), the cOMP/cKSVD approach significantly outperformed standard K-means clustering, achieving much lower false alarm and miss rates. The algorithm successfully recovered the "true" underlying spike shapes from noisy data, converging rapidly within 20 iterations to an error distance of less than $10^{-2}$.

Decomposition of a raw neural signal into learned filters and a performance comparison between the proposed cOMP/cKSVD method and K-means clustering.

Real-World Validation

When applied to rat hippocampus data, the algorithm achieved a true miss rate of less than 2%. This represents a substantial improvement over traditional clustering methods and is comparable to the performance of state-of-the-art manual sorting.

Conclusion and Future Directions

This work provides the first theoretical bounds on the sample complexity of spike sorting, showing that required recording time decreases as firing rates increase but increases with the number of neurons. While highly effective, future work aims to scale these methods for "Neuropixels" probes with thousands of channels using GPU acceleration and extending the model to account for the 2D spatial distribution of signals across electrode arrays.

Summary updated

Abstract

Spike sorting refers to the problem of assigning action potentials observed in extra-cellular recordings of neural activity to the neuron(s) from which they originate. We cast this problem as one of learning a convolutional dictionary from raw multi-electrode waveform data, subject to sparsity constraints. In this context, sparsity refers to the number of neurons that are allowed to spike simultaneously. The convolutional dictionary setting, along with its assumptions (e.g. refractoriness) that are motivated by the spike-sorting problem, let us give theoretical bounds on the sample complexity of spike sorting as a function of the number of underlying neurons, the rate of occurrence of simultaneous spiking, and the firing rate of the neurons. We derive memory/computation-efficient convolutional versions of OMP (cOMP) and KSVD (cKSVD), popular algorithms for sparse coding and dictionary learning respectively. We demonstrate via simulations that an algorithm that alternates between cOMP and cKSVD can recover the underlying spike waveforms successfully, assuming few neurons spike simultaneously, and is stable in the presence of noise. We also apply the algorithm to extra-cellular recordings from a tetrode in the rat Hippocampus.
BibTeX
@misc{song2018spike,
  author = {Andrew H. Song and Francisco Flores and Demba Ba},
  title = {{Spike Sorting by Convolutional Dictionary Learning}},
  year = {2018},
  eprint = {1806.01979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.01979},
}
Figure