bioRxivNeurosciencePreprint
SpikeCleaner: An Algorithm to Label Unit Quality After Automated Spike Sorting
Diksha ZutshiiD, D. S. BerezhnoyiD, Anjesh GhimireiD, Jeremiah P. HartneriD, David KimiD, Brendon O. WatsoniD
Abstract
GapAutomated spike sorting algorithms have revolutionized the way neuronal activity is extracted from extracellular recordings, yet they remain imperfect. Specifically, inaccurate acceptance of noise-based units not only leaves researchers with clusters that require extensive manual curation, an essential but time-consuming process, that also leads to significant subjectivity in the selection of units. In an era of high-density probes like Neuropixels, where an hour of data can exceed 80 GB, manual curation is no longer scalable, automation of standard criteria can speed data curation and ensure quality of datasets. Here, we developed a semi-automated curation pipeline to label the quality of units after automated curation by Kilosort. ApproachOur algorithm standardizes criteria for labeling of Noise, Multi-Unit Activity (MUA), and Good Units using a combination of spike rate, spike timing metrics (from autocorrelogram), and waveform-based physiological features such as peak amplitude, slopes, half-width, and inter-channel correlation. Based on these features, clusters are assigned standardized labels (good, noise, multi-unit activity) that can be imported directly into Phy, where they serve as curation aids rather than absolute classifications, supporting but not replacing expert judgment. Heuristically, "noise" units are those unlikely to be neuronal in origin; "MUA" includes units with significant neural contribution (i.e., neuronal waveform) but with some degree of clear imperfection to be further cleaned, and "good" units are those without any clear deviation from ideal unit criteria. By ensuring accurate selection of acceptable units, we enable robust downstream analyses such as neural decoding and longitudinal tracking of neuron identity. Thresholds for all metrics were chosen to maximize the matching of algorithm output to that of 2 expert manual curators. Of note, users may alter thresholds either based on their own judgment or using an included tool to semi-automatically find thresholds that optimize SpikeCleaner with their own expert curation. ResultsTo benchmark, we compared the outputs of our algorithm to expert-labels curated in Phy by two expert users across three recordings. SpikeCleaner achieved an average of 97% accuracy vs. experts & 92% F1 score in classifying Single Units. It achieved an accuracy of 97% & 92% F1 score in full-category agreement (SU, MUA, Noise), and 97% accuracy & 95% F1 score in distinguishing Neuronal vs. Non-Neuronal units.
- Citations
- 0
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
- UnitRefine: A Community Toolbox for Automated Spike Sorting Curation
Anoushka Jain, Robyn Greene, … Simon Musall·bioRxiv·Mar 30, 2025
- Efficient sorting of single-unit activity from midbrain cells using KiloSort is as accurate as manual sorting.
Madeleine C. Allen, Tara Gunkali Chowdhury, … Bita Moghaddam·bioRxiv·Apr 18, 2018
- WaveLimit: An optimal spike sorting inclusion boundary
Xavier Scherschligt, Wei-Hsien Lee, … Adam G. Rouse·bioRxiv·Jul 1, 2025
- Lussac: a fully-automated consensus method that increasesthe yield and quality of spike-sorting analyses
Aurélien J. G. Wyngaard, Victor Llobet, Boris Barbour·bioRxiv·Feb 8, 2022
- Heuristic Spike Sorting Tuner (HSST), a framework to determine optimal parameter selection for a generic spike sorting algorithm
David A. Bjånes, Lee E. Fisher, … Douglas J. Weber·bioRxiv·May 21, 2020
- SpikeInterface, a unified framework for spike sorting
Alessio Paolo Buccino, Cole Hurwitz, … Matthias H. Hennig·eLifePeer-reviewed·Nov 10, 2020