Research Article

Transparent and Reproducible Spike Sorting: Baseline Construction and Experimental Analysis for Simulated Neural Signals

Hongda Chen*
Chengdu University of Technology

* Corresponding author: [email protected]

Abstract

Spike sorting is a fundamental step in extracellular neural signal analysis, but educational implementations are often difficult to inspect and reproduce because processing assumptions, parameter choices, and evaluation procedures are distributed across multiple stages. This paper constructs a transparent and reproducible baseline workflow for simulated neural signals rather than proposing a new sorting algorithm. The workflow integrates band-pass filtering, threshold-based spike detection, fixed-window waveform extraction, principal component analysis, KMeans clustering, one-to-one temporal matching, and automated metric export in a configurable Python implementation. Experiments are conducted on repository-generated synthetic datasets with easy, medium, and hard noise settings and on the Wave_Clus Easy1 noise series. Detection F1-score decreases from 0.812 to 0.457 as the synthetic setting becomes harder, while Wave_Clus Easy1 results range from 0.340 to 0.907 across noise conditions. The low clustering scores observed in several settings further show that accurate event detection does not necessarily imply reliable unit separation. The study contributes an auditable baseline, a reproducible evaluation process, and a teaching-oriented example that makes the distinction between detection and clustering performance explicit.

Keywords: Spike sorting; Reproducibility; Threshold detection; PCA; Baseline workflow
Published: July 6, 2026
DOI: 10.54254/2755-2721/2026.LD35136
Volume: ACE Vol.254
pp. 7-13
Download PDF

References

  1. H. G. Rey, C. Pedreira, and R. Quian Quiroga, "Past, present and future of spike sorting techniques, " Brain Research Bulletin, vol. 119, pp. 106-117, 2015, doi: 10.1016/j.brainresbull.2015.04.007.
  2. G. T. Einevoll, F. Franke, E. Hagen, C. Pouzat, and K. D. Harris, "Towards reliable spike-train recordings from thousands of neurons with multielectrodes, " Current Opinion in Neurobiology, vol. 22, no. 1, pp. 11-17, 2012, doi: 10.1016/j.conb.2011.10.001.
  3. M. S. Lewicki, "A review of methods for spike sorting: the detection and classification of neural action potentials, " Network: Computation in Neural Systems, vol. 9, no. 4, pp. R53-R78, 1998, doi: 10.1088/0954-898X/9/4/001.
  4. J. Magland et al., "SpikeForest, reproducible web-facing ground-truth validation of automated neural spike sorters, " eLife, vol. 9, Art. no. e55167, 2020, doi: 10.7554/eLife.55167.
  5. A. P. Buccino et al., "SpikeInterface, a unified framework for spike sorting, " eLife, vol. 9, Art. no. e61834, 2020, doi: 10.7554/eLife.61834.
  6. R. Quian Quiroga, Z. Nadasdy, and Y. Ben-Shaul, "Unsupervised spike detection and sorting with wavelets and superparamagnetic clustering, " Neural Computation, vol. 16, no. 8, pp. 1661-1687, 2004, doi: 10.1162/089976604774201631.
  7. F. J. Chaure, H. G. Rey, and R. Quian Quiroga, "A novel and fully automatic spike-sorting implementation with variable number of features, " Journal of Neurophysiology, vol. 120, no. 4, pp. 1859-1871, 2018, doi: 10.1152/jn.00339.2018.
  8. J. B. MacQueen, "Some methods for classification and analysis of multivariate observations, " in Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, vol. 1, 1967, pp. 281-297. [Online]. Available: https: //projecteuclid.org/euclid.bsmsp/1200512992
  9. C. Pedreira, J. I. Martinez, M. J. Ison, and R. Quian Quiroga, "How many neurons can we see with current spike sorting algorithms?, " Journal of Neuroscience Methods, vol. 211, no. 1, pp. 58-65, 2012, doi: 10.1016/j.jneumeth.2012.07.010.
  10. A. P. Buccino and G. T. Einevoll, "MEArec: A fast and customizable testbench simulator for ground-truth extracellular spiking activity, " Neuroinformatics, vol. 19, no. 1, pp. 185-204, 2021, doi: 10.1007/s12021-020-09467-7.
  11. L. Hubert and P. Arabie, "Comparing partitions, " Journal of Classification, vol. 2, no. 1, pp. 193-218, 1985, doi: 10.1007/BF01908075.
  12. N. X. Vinh, J. Epps, and J. Bailey, "Information theoretic measures for clusterings comparison: variants, properties, normalization and correction for chance, " Journal of Machine Learning Research, vol. 11, pp. 2837-2854, 2010. [Online]. Available: https: //www.jmlr.org/papers/v11/vinh10a.html
  13. C. Rossant et al., "Spike sorting for large, dense electrode arrays, " Nature Neuroscience, vol. 19, no. 4, pp. 634-641, 2016, doi: 10.1038/nn.4268.
  14. P. Yger et al., "A spike sorting toolbox for up to thousands of electrodes validated with ground truth recordings in vitro and in vivo, " eLife, vol. 7, Art. no. e34518, 2018, doi: 10.7554/eLife.34518.
  15. M. Pachitariu, S. Sridhar, J. Pennington, and M. Carandini, "Spike sorting with Kilosort4, " Nature Methods, vol. 21, pp. 914-921, 2024, doi: 10.1038/s41592-024-02232-7.
  16. J. E. Chung et al., "A fully automated approach to spike sorting, " Neuron, vol. 95, no. 6, pp. 1381-1394.e6, 2017, doi: 10.1016/j.neuron.2017.08.030.