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

Dependent Dirichlet Process Spike Sorting

Jan Gasthaus, Frank D. Wood, Dilan Görür, Yee Whye TehNeurIPS 2008

TL;DR

This paper introduces a Bayesian, incremental spike sorting model that can track neurons even as their electrical signatures drift over time. By using a Dependent Dirichlet Process, the model automatically handles the appearance and disappearance of neurons while enforcing biological refractory periods to ensure physically plausible results.

What Problem Does This Paper Address?

In electrophysiology, researchers record the electrical activity of neurons using extracellular electrodes. Because one electrode often picks up signals from multiple nearby cells, scientists must use "spike sorting"—a clustering problem—to assign each detected action potential (spike) to its source neuron.

Traditional spike sorting faces three major hurdles:

  1. Waveform Drift: The shape of a neuron's spike can change over time due to electrode movement or changes in the cell's firing state.
  2. Non-stationarity: Neurons may "appear" or "disappear" from a recording as they start or stop firing, or move relative to the sensor.
  3. Biological Constraints: Neurons have a "refractory period" (about 1ms) during which they cannot fire again. Most clustering algorithms ignore this, leading to physically impossible results where one "neuron" is assigned two spikes within 0.5ms.

Most existing tools are "batch" processors that assume the data is static. This paper proposes a sequential model that treats spike sorting as a dynamic tracking problem.

Methods

The authors build their model on the Generalized Polya Urn Dependent Dirichlet Process Mixture Model (GPUDPM). Here is the breakdown of their approach:

  • Infinite Mixture Modeling: They use a Dirichlet Process (DP), which allows the number of clusters (neurons) to be determined by the data rather than fixed in advance.
  • Temporal Coupling: Unlike a standard DP that pools all data, the Dependent DP ties a sequence of models together. It uses a "deletion" step to allow old clusters to die off and a transition kernel to allow the cluster means (the average waveform shapes) to evolve slowly over time.
  • Refractory Likelihood: The most novel tweak is the introduction of a time-dependent likelihood. The probability of assigning a spike to a specific neuron is set to zero if that neuron fired too recently. This "hard-codes" the biological refractory period into the clustering logic.
  • Sequential Inference: The model uses a Particle Filter (Sequential Monte Carlo) to update its beliefs as new spikes arrive, making it suitable for online or near-real-time processing.

Datasets

The model was evaluated using a classic "partial ground truth" dataset from the rat hippocampus (Harris et al., 2000).

  • The Setup: Simultaneous intracellular (recording from inside one specific cell) and extracellular (recording from a tetrode nearby) measurements.
  • The Benefit: The intracellular trace provides a "gold standard" for exactly one neuron, allowing the authors to measure False Positives and False Negatives for that specific cell within the larger extracellular "mess."
  • Data Characteristics: They tested two sets: one with significant waveform drift (due to slow cell death/damage) and one where the waveforms remained relatively constant.

Key Insights and Ideas

  • Time is a Feature: Most sorters discard the timestamp of the spike during clustering. This model treats the timestamp as critical information for tracking the "evolution" of a cluster.
  • Principled Constraints: Rather than "cleaning up" refractory violations after clustering is finished, the authors show that enforcing these constraints during clustering actually improves the accuracy of the assignments.
  • Handling Uncertainty: Because it is a Bayesian model, it doesn't just give one "best" sorting; it provides a posterior distribution. This allows researchers to see how confident the model is about a specific spike assignment.

Key Results

The authors compared their GPUDPM against a standard Dirichlet Process Mixture (DPM) that pools data over time.

Comparison of clustering results: Ground Truth (top), standard DPM (middle), and the proposed GPUDPM (bottom).
  • Superiority in Drifting Data: On the dataset with high waveform drift, the GPUDPM significantly outperformed the static model. It reduced the False Negative rate from ~5.17% to ~1.68%. The visual clustering comparisons clearly demonstrate GPUDPM's ability to better track shifting clusters compared to the standard DPM.
  • Zero Violations: By design, the GPUDPM produced zero refractory period violations, whereas the standard DPM produced several, which would have required manual post-hoc correction.
  • Robustness: On stationary data (where waveforms didn't change), the GPUDPM performed just as well as the static model, proving that the added complexity doesn't hurt performance when drift isn't present.

Limitations and Future Work

  • Computational Cost: Particle filters can be computationally expensive, especially as the number of spikes and potential neurons grows. The authors suggest that more efficient sequential inference schemes are needed.
  • Parameter Sensitivity: The model's performance is somewhat sensitive to the "concentration parameter" ($\alpha$), which influences how likely the model is to create new clusters.
  • Future Directions: The authors propose moving toward a "hybrid" sampler that can propagate information both forward and backward in time to further refine the sorting of long, complex recordings.

Summary updated

BibTeX
@inproceedings{gasthaus2008dependent,
  author = {Jan Gasthaus and Frank D. Wood and Dilan Görür and Yee Whye Teh},
  title = {{Dependent Dirichlet Process Spike Sorting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
  url = {https://openreview.net/forum?id=H1ELpwZ_-B},
}
Figure