bioRxiv : the preprint server for biologyOpen accessneuroscience

Systematic Spike Sorting Errors Revealed by Juxtacellular Ground Truth in the Awake Brain.

Zach Saccomano, Behnaz Khaghani, Reagan Bullins Shugg, Sam McKenzie, Daniel F English

Computational

Key points

From the paper's conclusion
  • Therefore, error estimates from existing benchmarks may not transfer to awake recordings, and the types of errors in the awake brain remain largely uncharacterized.

Abstract

UNLABELLED: Existing ground-truth data for spike sorting come almost entirely from anesthetized or in vitro preparations. Yet phenomena expected to challenge spike sorting most-spike overlap and bursting-depend on brain state and differ in the awake brain. Therefore, error estimates from existing benchmarks may not transfer to awake recordings, and the types of errors in the awake brain remain largely uncharacterized. To address this, we generated a ground-truth dataset (16 neurons) using paired juxtacellular-extracellular electrophysiology in awake mice, and found spike sorting performance, particularly recall, to be lower than conventional benchmarks might suggest. Generally, false negatives sharply increased with intrinsic physiological factors like bursting, whereas false positives were more strongly associated with extrinsic factors, such as putative spike overlaps. To quantify contributions to errors from intrinsic and extrinsic factors, for each observed juxtacellular waveform we predicted the corresponding extracellular waveform. In the best-performing sorter, we estimate approximately half of false positives were attributable to credulous attempts to resolve putative overlaps. Bursting and putative overlaps were each associated with a roughly doubled false negative rate when they occurred separately, and with a sevenfold increase when they occurred together. These co-occurrences accounted for approximately 40% of a typical neuron's false negatives, despite comprising only approximately a fifth of its spikes. Thus, the moments when spike sorters must rely on the assumption of waveform invariance the most to resolve overlaps are exactly the moments when bursting makes that assumption least valid. We also estimate that three-quarters of false negatives had been detected but assigned to other units. These spikes were not cleanly oversplit: post-hoc merging was not productive because the loss in precision was three times the gain in recall. Because bursting and spike overlaps often co-occur, sorting spikes by waveform similarity and repairing the result by post hoc merging is unlikely to adequately balance precision and recall in the situations of greatest scientific interest. That is, while bursting and spike overlaps may involve only a minority of spikes, the resulting sorting errors may disproportionately distort the interpretation of neuronal population dynamics. We thus conclude that uncertainty quantification in sorters' output is essential. SIGNIFICANCE STATEMENT: Spike sorting, the assignment of extracellular spikes to individual neurons, underlies most large-scale recordings of brain activity, yet its accuracy has been validated almost entirely in simulations or in anesthetized or ex vivo preparations. Using simultaneous juxtacellular and extracellular recordings in awake mice, we show that conventional benchmarks likely overestimate sorting performance in the awake brain, and that sorting errors are highly structured. False negatives prominently concentrate where bursting coincides with spike overlap, and most appear to be detected but assigned to other, low-precision clusters, from which merging cannot cleanly recover them. Roughly half of false positives likely come from wrongly resolved spike overlaps. Because structured errors can masquerade as temporal relationships between neurons, they can disproportionately distort conclusions about neural coding, population dynamics, and functional connectivity. Our publicly available recordings provide a tool to devise more robust spike sorting assumptions, and our results argue for sorters that model burst-related waveform variability and report their uncertainty, especially during spike overlaps.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers