Abstract
Spike sorting is a fundamental step in extracting single-unit activity from neural ensemble recordings, which play an important role in basic neuroscience and neurotechnologies. A few algorithms have been applied in spike sorting. However, when noise level or waveform similarity becomes relatively high, their robustness still faces a big challenge. In this study, we propose a spike sorting method combining Linear Discriminant Analysis (LDA) and Density Peaks (DP) for feature extraction and clustering. Relying on the joint optimization of LDA and DP: DP provides more accurate classification labels for LDA, LDA extracts more discriminative features to cluster for DP, and the algorithm achieves high performance after iteration. The results show that our LDA-DP algorithm extracts a more discriminative feature subspace and achieves better cluster quality than previously established methods in both simulated and real data.
Introduction
In systems neuroscience, spike sorting is the critical process of assigning individual electrical pulses recorded by electrodes to specific source neurons. This step is essential for understanding neural population dynamics. However, traditional methods often struggle with two primary challenges: high background noise and high waveform similarity between neighboring neurons. Standard techniques like Principal Component Analysis (PCA) followed by K-means clustering frequently fail when clusters are non-spherical or overlapping.
Methodology: Joint Optimization of LDA and DP
The proposed LDA-DP algorithm introduces a feedback loop between feature extraction and clustering. Linear Discriminant Analysis (LDA), a supervised method, requires labels to identify an optimal feature space. Conversely, Density Peaks (DP) clustering performs best in a highly discriminative feature space.
By iterating between these two stages, the algorithm allows DP to provide initial labels for LDA, which then refines the feature subspace. This refined space enables DP to produce even more accurate labels in the next iteration. Unlike K-means, DP clustering identifies cluster centers based on local density and distance from higher-density points, making it flexible enough to handle non-Gaussian cluster shapes common in extracellular recordings.
The method also includes an automated merging step to determine the number of clusters without manual intervention, using a similarity metric based on cluster compactness and separation.
Experimental Validation and Results
The LDA-DP method was validated across three datasets:
- Simulated Data: Using the
wave_clusdataset, LDA-DP achieved an average accuracy of 96.2%, significantly outperforming PCA-K-means (85.4%). - Rodent In-Vivo (HC1): Utilizing ground-truth labels from simultaneous intracellular recordings, the method demonstrated higher precision and recall than established tools like IronClust, particularly in low Signal-to-Noise Ratio (SNR) conditions.
- Primate In-Vivo: In complex recordings from macaques, LDA-DP maintained superior cluster quality, as measured by the Davies-Bouldin Index.
A key finding was the algorithm's robustness at low SNR. While other methods' performance degraded sharply as noise increased, the iterative "sharpening" of cluster boundaries in LDA-DP allowed it to maintain over 85% accuracy even at high noise levels.
Conclusion
The LDA-DP algorithm provides a robust, automated solution for spike sorting that excels in challenging recording environments. By jointly optimizing feature extraction and clustering, it overcomes the limitations of traditional linear projections and rigid clustering assumptions. Future work will focus on adapting this logic for high-density "Neuropixels" probes and optimizing computational efficiency for real-time applications.
Source: A Robust Spike Sorting Method based on the Joint Optimization of Linear Discrimination Analysis and Density Peaks (bioRxiv preprint doi: 10.1101/2022.02.10.479846)
Summary updated