Large scale Lasso with windowed active set for convolutional spike sorting

Laurent Dragoni, Rémi Flamary, Karim Lounici, Patricia Reynaud-BouretarXiv 2019

Introduction

Spike sorting is a critical process in neuroscience, involving the identification of individual neuronal action potentials ("spikes") from multi-electrode electrical recordings. As neurotechnology scales from a few electrodes to thousands, traditional clustering-based methods struggle with overlapping spikes and massive data volumes. This paper introduces a novel "windowed active set" algorithm designed to solve the convolutional Lasso problem at scale, achieving linear complexity relative to signal length.

The Convolutional Model for Spike Sorting

Traditional spike sorting often fails when spikes from different neurons overlap in time. A more robust approach is the convolutional model, which treats the recording as a sum of known neural "templates" shifted in time.

Convolutional model: Neuron activations (A) convolved with templates (Neuron 1, 2) produce measured signals (S).

In this model, the signal $S$ is represented as the sum of neuron shapes $W_r$ convolved with sparse activation vectors $A_r$. Recovering these activations is formulated as a Lasso problem. However, for a typical 30-minute recording with high-density probes, the number of variables can reach $10^8$, making standard optimization solvers computationally prohibitive.

Windowed Active Set Algorithm

To address these computational challenges, the authors propose a Windowed Active Set (AS) algorithm. Instead of optimizing all variables simultaneously, the algorithm starts with an empty set of "active" spikes and iteratively adds those that most violate the Karush-Kuhn-Tucker (KKT) optimality conditions.

The key innovation is the exploitation of temporal locality. Since a spike at time $t$ only affects the signal in a small neighborhood, the algorithm employs a sliding window approach. It solves the Lasso in small temporal windows; if a group of spikes within a window satisfies the KKT conditions, the window moves forward. This prevents the need to re-scan the entire dataset at every iteration and allows for efficient parallelization on GPUs.

Experimental Evaluation

The method was evaluated using both biophysically accurate simulated data (Hodgkin-Huxley model) and semi-synthetic data derived from real rat striatum recordings. These datasets allowed for testing robustness against varying noise levels and overlapping spikes.

Key Results and Scalability

The windowed active set algorithm demonstrates significant performance gains over global Lasso solvers and naive active set methods.

Execution times on a log-log scale show that the proposed windowed active set method achieves linear complexity O(n) relative to sample size.

As shown in the figure above, while global solvers stall or crash as signal length increases, the proposed method maintains a steady, linear processing time. This confirms the theoretical proof that complexity scales as $O(n)$ due to the sparse and localized nature of neural spikes. Furthermore, accuracy metrics (F1-score and Convolutional Performance) indicate that the method remains reliable even in low signal-to-noise ratio (SNR) environments.

Conclusion and Future Work

The windowed active set algorithm effectively removes the computational bottleneck for next-generation high-density neural probes. While the current implementation assumes known spike shapes and stationarity, future work aims to extend this to "online" spike sorting. This would involve learning and updating spike shapes on-the-fly, potentially enabling real-time brain-machine interface applications.

Summary updated

BibTeX
@misc{dragoni2019large,
  author = {Laurent Dragoni and Rémi Flamary and Karim Lounici and Patricia Reynaud-Bouret},
  title = {{Large scale Lasso with windowed active set for convolutional spike sorting}},
  year = {2019},
  eprint = {1906.12077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.12077},
}
Figure