bioRxivNeurosciencePreprint
Kilosort: realtime spike-sorting for extracellular electrophysiology with hundreds of channels
Marius Pachitariu, Nicholas Steinmetz, Shabnam Kadir, Matteo Carandini, Harris Kenneth D.
Abstract
Advances in silicon probe technology mean that in vivo electrophysiological recordings from hundreds of channels will soon become commonplace. To interpret these recordings we need fast, scalable and accurate methods for spike sorting, whose output requires minimal time for manual curation. Here we introduce Kilosort, a spike sorting framework that meets these criteria, and show that it allows rapid and accurate sorting of large-scale in vivo data. Kilosort models the recorded voltage as a sum of template waveforms triggered on the spike times, allowing overlapping spikes to be identified and resolved. Rapid processing is achieved thanks to a novel low-dimensional approximation for the spatiotemporal distribution of each template, and to batch-based optimization on GPUs. A novel post-clustering merging step based on the continuity of the templates substantially reduces the requirement for subsequent manual curation operations. We compare Kilosort to an established algorithm on data obtained from 384-channel electrodes, and show superior performance, at much reduced processing times. Data from 384-channel electrode arrays can be processed in approximately realtime. Kilosort is an important step towards fully automated spike sorting of multichannel electrode recordings, and is freely available (github.com/cortex-lab/Kilosort).
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Efficient and reproducible pipelines for spike sorting large-scale electrophysiology data
Alessio Paolo Buccino, Arjun Sridhar, … Joshua H. Siegle·bioRxiv·Nov 12, 2025
- Fast and accurate spike sorting in vitro and in vivo for up to thousands of electrodes
Pierre Yger, Giulia L. B. Spampinato, … Olivier Marre·bioRxiv·Aug 4, 2016
- Real-time spike sorting platform for high-density extracellular probes with ground-truth validation and drift correction
James Jaeyoon Jun, Catalin Mitelut, … T.D. Harris·bioRxiv·Jan 30, 2017
- RT-Sort: an action potential propagation-based algorithm for real time spike detection and sorting with millisecond latencies
Tjitse van der Molen, Max Lim, … Kenneth S. Kosik·PLoS ONEPeer-reviewed·Dec 5, 2024
- Unsupervised spike sorting for large scale, high density multielectrode arrays
Gerrit Hilgen, Martino Sorbaro, … Matthias H. Hennig·Cell ReportsPeer-reviewed·Mar 1, 2017
- Solving the spike sorting problem with Kilosort
Marius Pachitariu, Shashwat Sridhar, Carsen Stringer·bioRxiv·Jan 7, 2023