A Unified Model of Feature Extraction and Clustering for Spike Sorting

Libo Huang, Lu Gan, Bingo Wing‐Kuen LingarXiv 2020 · DOI

Abstract

Spike sorting plays an irreplaceable role in understanding brain codes. Traditional spike sorting technologies perform feature extraction and clustering separately after spikes are well detected. However, it may often cause many additional processes and further lead to low-accurate and/or unstable results especially when there are noises and/or overlapping spikes in datasets. To address these issues, in this paper, we proposed a unified optimisation model integrating feature extraction and clustering for spike sorting. Interestingly, instead of the widely used combination strategies, i.e., performing the principal component analysis (PCA) for spike feature extraction and K-means (KM) for clustering in sequence, we unified PCA and KM into one optimisation model, which reduces additional processes with fewer iteration times. Subsequently, by embedding the K-means++ strategy for initialising and a comparison updating rule in the solving process, the proposed model can well handle the noises and/or overlapping interference. Finally, taking the best of the clustering validity indices into the proposed model, we derive an automatic spike sorting method. Plenty of experimental results on both synthetic and real-world datasets confirm that our proposed method outperforms the related state-of-the-art approaches.

Introduction

Spike sorting—the process of assigning extracellularly recorded electrical pulses (spikes) to the specific neurons that generated them—is a foundational task in modern neuroscience. Despite its importance, traditional methods often struggle with "messy" data characterized by high background noise or overlapping signals from multiple neurons.

The standard pipeline typically follows an "open-loop" sequential approach: first, spikes are detected; second, features are extracted (usually via Principal Component Analysis, or PCA); and third, those features are clustered (often using K-means). The primary flaw in this approach is that feature extraction occurs in a vacuum, without considering the requirements of the subsequent clustering stage. This lack of feedback can lead to unstable results and poor performance in complex signal environments.

Clustering Challenges: Standard K-means (b, e) often fails to correctly partition complex feature distributions compared to more sophisticated approaches, highlighting the need for better integration between feature extraction and clustering.

Methods: A Unified Optimization Framework

To overcome these limitations, we propose a unified optimization model that integrates PCA and K-means into a single objective function. By employing an Alternating Direction Method (ADM), the algorithm iteratively updates two key variables: the transformation matrix ($W$) for feature projection and the label indicator matrix ($G$) for cluster assignment. This allows the feature extraction process to be continuously refined based on the current clustering state, ensuring that the resulting features maximize group separability.

To enhance robustness and automation, the model incorporates several key strategies:

  • K-means++ Initialization: Provides a superior starting point for clusters to avoid poor local minima.
  • Comparison Updating Rule: A strategy designed to help the model escape local optima (mathematical "dead ends") during the optimization process.
  • Automatic Parameter Selection: The framework utilizes clustering validity indices (such as the Calinski-Harabasz index or the gap statistic) to automatically estimate the number of active neurons, removing the need for manual "human-in-the-loop" tuning.

Experimental Results

The proposed method was rigorously tested on both synthetic benchmarks (Wave_clus) and real-world recordings from the rat hippocampus (HC1 dataset).

Superior Accuracy and Robustness

On synthetic datasets, the unified model achieved near 100% accuracy across a wide range of noise levels. It proved particularly effective at handling overlapping spikes, a common failure point for traditional frameworks like LDAKM. Despite the iterative nature of the ADM, the computational complexity remains linear relative to the number of spikes ($O(n)$), making it practical for modern high-density neural probes.

Real-World Performance

In evaluations using the HC1 dataset—which provides a "gold standard" via simultaneous intracellular and extracellular recordings—the proposed method demonstrated significantly lower False Negative Rates (FNR) and False Positive Rates (FPR) compared to state-of-the-art alternatives like LPP-SCK and LE-KM.

Performance Benchmarks: The proposed unified model (black) demonstrates superior accuracy and stability, maintaining near-zero False Negative (FNR) and False Positive (FPR) rates across different neuron counts compared to competing methods.

Conclusion

By unifying feature extraction and clustering into a single iterative framework, we have developed a spike sorting method that is both more accurate and more stable than traditional sequential pipelines. While the current model relies on linear feature extraction, its efficiency and robustness make it a powerful tool for neural signal analysis. Future research will explore non-linear extensions and real-time adaptations for closed-loop experimental setups where the number of active neurons may fluctuate over time.

Summary updated

BibTeX
@misc{huang2020unified,
  author = {Libo Huang and Lu Gan and Bingo Wing‐Kuen Ling},
  title = {{A Unified Model of Feature Extraction and Clustering for Spike Sorting}},
  year = {2020},
  eprint = {2011.10163},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.10163},
}
Figure