• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Friday, December 4, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Biology

Automated Algorithm SLAy Recovers About 97% of Human-Identified Spike-Sorting Merges

by
December 2, 2026
in Biology
Reading Time: 6 mins read
0
Automated Algorithm SLAy Recovers About 97% of Human-Identified Spike-Sorting Merges

Automated Algorithm SLAy Recovers About 97% of Human-Identified Spike-Sorting Merges

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

An automated post-sorting algorithm called the Spike-sorting Lapse Amelioration System, or SLAy, recovered roughly 97% of oversplit neuron merges initially identified by human curators across eight high-density electrophysiology datasets, missing only a single curator-identified merge. After blinded re-evaluation, both human curators agreed with approximately 90% of all merges proposed by SLAy, and at least one curator agreed with about 95% of them. Reported in Nature Methods, this methodological study evaluated recordings from four animal preparations spanning three species, four brain regions, and three Neuropixels probe geometries, each processed with both Kilosort 2.5 and Kilosort 4. High-density probes record hundreds of single neurons simultaneously, yet automated spike sorters routinely split action potentials from one ground-truth neuron into multiple detected units. Correcting these oversplitting errors normally requires labor-intensive manual curation, but SLAy automated the process and even uncovered two valid merges that both human curators had initially missed.

To establish how frequently oversplitting occurs across experimental conditions, the authors assembled four recordings: a 10-minute macaque motor and premotor cortex recording from a 384-channel Neuropixels 1.0 probe, a 10-minute female macaque midbrain recording during vestibular stimulation from a 128-channel prototype Neuropixels NHP probe, a 60-minute mouse hippocampus recording from a 384-channel Neuropixels 2.0 probe, and a 60-minute male Long-Evans rat insula recording during a free drinking task from a 384-channel Neuropixels 2.0 probe. Three datasets were preprocessed with CatGT v4.7 and SpikeInterface, while the Intan midbrain recording used a custom Python script. After sorting with Kilosort 2.5 and Kilosort 4 and filtering units by firing rate above 0.1 Hz, signal-to-noise ratio above 2, and sliding refractory period violations, two curators independently curated each Kilosort 4 dataset and one curated each Kilosort 2.5 dataset. Oversplitting appeared in seven of eight datasets, affecting 5% to 13% of units, while the remaining dataset had only 32 single units; Kilosort 4 curators showed roughly 90% agreement, and neither sorter version consistently reduced oversplitting.

In manual curation, researchers rely on graphical interfaces such as phy to judge waveform similarity and cross-correlogram shapes, typically screening candidate pairs with template correlations or per-channel principal component analysis (PCA). Both approaches have structural weaknesses: spike sorters frequently learn inaccurate templates, and per-channel PCA projections discard how waveforms decay across neighboring channels while smoothing nonlinear features that distinguish neurons. SLAy replaces these measures by training a dedicated PyTorch autoencoder for each dataset directly on individual spike snippets. Each snippet spans 8 channels by 40 samples—the peak channel plus its seven nearest neighbors, from 10 samples before to 30 samples after the inferred spike time—with up to 1,000 snippets extracted per unit and split 80–20 for training and testing. A seven-layer encoder flattens the 320-dimensional input through three dense linear and Gaussian error linear unit layers into a 15-dimensional latent vector, paired with a symmetric decoder trained for 25 epochs with L2 loss. Ordering channels by proximity strips away absolute probe position, allowing the network to capture waveform shape and spatial decay more accurately than PCA at equal dimensionality.

SLAy translates those latent representations into a bounded waveform similarity score between 0 and 1 by taking the Euclidean distance between two units’ centroids, normalizing by the sum of their latent-space standard deviations to resist geometric warping, applying an exponential kernel, and multiplying by the geometric mean of amplitude decay ratios between their peak channels so distant neurons are penalized. Pairs below a default similarity of 0.4 are excluded early to save computation. For remaining pairs, SLAy computes two cross-correlogram metrics: a structure metric based on the EMD between the windowed cross-correlogram and a uniform distribution, discounted for low event rates, and a modified sliding refractory period violation penalty over 2-second cross-correlograms across candidate refractory periods from 0.5 to 10 milliseconds, which gives the minimum Poisson-based contamination probability using a default maximum allowed refractory event rate of 0.15 times the baseline rate. SLAy merges unit pairs in descending order when a weighted sum—waveform similarity plus weighted cross-correlogram structure minus weighted refractory penalty—exceeds a threshold, permitting multi-way merges only when every constituent pair qualifies.

To validate merging algorithms and tune parameters without manual guesswork, the authors devised a procedure that injects realistic, ground-truth oversplitting into real spike-sorted recordings while retaining only splits that still pass single-unit quality filters. The procedure models four common failure modes in equal proportions: burst splitting assigns the second half of spikes in bursts of three or more spikes with interspike intervals under 20 milliseconds to a new unit; amplitude splitting separates 30% to 50% of the highest-amplitude spikes from units in the 75th to 95th percentile of amplitude variance; drift splitting reassigns spikes according to a piecewise linear time-dependent probability across units active in both halves of a recording; and random splitting randomly reassigns 30% to 50% of spikes. Using a single simulated draw, SLAy fixes the refractory penalty weight at 1 and sweeps the cross-correlogram weight from 0.25 to 0.55 and the merge threshold from 0 to 0.75 in 0.05 steps, selecting the knee of the recall versus proportion-merged curve. Across 25 combinations of five autoencoder seeds and five simulated-split seeds on both macaque motor cortex datasets, SLAy produced identical merge sets.

Evaluated on five independent simulated oversplitting draws per dataset–sorter combination using separate random seeds from parameter tuning, SLAy achieved near-perfect recall across all eight datasets while keeping its merged unit counts closely matched to total artificial and curator-identified splits. The few missed simulated splits were typically rejected by high refractory penalties when low cross-correlogram event counts prevented ruling out contamination. By contrast, SpikeInterface’s existing similarity-correlograms (SC) algorithm—which requires mean waveform similarity and cross-correlogram to autocorrelogram similarity to pass independent thresholds—reached a maximum recall of only about 0.3 with default settings. Adding SLAy’s automatic tuning created SC-auto, which significantly boosted recall (paired t-test, t(7) = 7.50, P = 6.9 × 10−5, d = 2.65), rising from 0.17 to 0.9 on Kilosort 4 macaque motor cortex, yet still dropped to roughly 0.5 on Kilosort 4 mouse hippocampus and overmerged on one dataset. SLAy significantly outperformed both SC (P = 2.6 × 10−8) and SC-auto (P = 4.5 × 10−4), beating SC-auto on 39 of 40 draws and tying at perfect recall on one.

SLAy recovered about 97% of curator-identified merges, including a Kilosort 2.5 mouse hippocampus bursting neuron whose asymmetric peaked cross-correlogram compensated for large waveform differences. Applying an expectation-maximization Kleinberg hidden Markov model burst detector before and after SLAy’s merges revealed marked increases in detected burst counts and burst intensity in the rat insula and mouse hippocampus recordings.

Ablation experiments confirmed that nonlinear autoencoder features were central to SLAy’s real-world accuracy. Replacing the autoencoder with normalized L2 distance between mean waveforms (SLAy-L2) dropped recall to about 78% and curator agreement to 78%, while substituting a 15-dimensional PCA space (SLAy-PCA) yielded roughly 86% recall and 82% agreement. On Kilosort 2.5 rat insula data, a curator disagreed with 5 of 14 SLAy-L2 merges compared with 2 of 14 for full SLAy, and SLAy-PCA added three extraneous merges on Kilosort 2.5 macaque midbrain. Closer inspection showed that SLAy-L2 missed temporally shifted waveforms and falsely merged units with different spatial decay profiles, whereas SLAy-PCA missed a temporally shifted unit in a three-way rat insula merge. Meanwhile, default SC made only two merges across all eight datasets (about 4% recall), and SC-auto reached 20% recall with just 36% curator agreement.

The algorithm still exhibited clear boundaries and trade-offs. A small number of SLAy-only merges were rejected during blinded re-evaluation, including two high-amplitude units whose mean waveforms differed slightly in the repolarization phase, indicating that small relative shape differences can remain under-separated in latent space. Furthermore, SLAy can merge simultaneously firing neuronal subparts recorded on noncontiguous probe sites, which some studies may need to analyze separately. To accommodate such experimental goals, SLAy supports manual adjustment of its weights and merge threshold as well as a semi-automated mode that outputs a condensed list of candidate merges for human review.

The authors note that correcting biased oversplitting matters even for population dimensionality-reduction analyses, whereas prior work suggests overmerging biases downstream results only when merged units fire strongly anticorrelated spike trains. Combined with automated unit quality labeling and compatibility with SpikeInterface objects, SLAy enables fully automated spike-sorting curation across recording hardware and sorters. On the largest benchmarked dataset—a 60-minute recording containing 410 single units on an NVIDIA RTX 3080 GPU—SLAy finished in under 10 minutes, more than an order of magnitude faster than manual curation. SLAy-L2 is already integrated into SpikeInterface, and the full autoencoder-based package is available via pip under a GNU GPL v3 license, while future work may explore clustering directly in autoencoder feature spaces during sorting.

Subject of Research: Automated correction of oversplitting errors in high-density electrophysiology spike sorting

Article Title: SLAy-ing oversplitting errors in high-density electrophysiology spike sorting

Article References: Koukuntla, S., DeWeese, T., Cheng, A., Mildren, R., Lawrence, A., Graves, A. R., Cullen, K. E., Colonell, J., Harris, T. D., & Charles, A. S. (2026). SLAy-ing oversplitting errors in high-density electrophysiology spike sorting. Nature Methods. https://doi.org/10.1038/s41592-026-03311-7

Image Credits: AI Generated

DOI: 10.1038/s41592-026-03311-7

Keywords: SLAy, Spike sorting, High-density electrophysiology, Oversplitting errors, Neuropixels, Kilosort 4, Kilosort 2.5, Autoencoder, Waveform similarity, Cross-correlogram, Refractory period violations, SpikeInterface, Manual curation, Bursting neurons, Template matching, Simulated oversplitting, Neural population recordings, Hidden Markov model

News Source: Gregory Coleman. (December 2, 2026). Automated Algorithm SLAy Recovers About 97% of Human-Identified Spike-Sorting Merges. Scienmag.

Tags: autoencoderbursting neuronsCross-correlogramhidden Markov modelHigh-density electrophysiologyKilosort 2.5Kilosort 4manual curationNeural population recordingsNeuropixelsOversplitting errorsRefractory period violationsSimulated oversplittingSLAyspike sortingSpikeInterfacetemplate matchingwaveform similarity
Share12Tweet7Share2ShareShareShare1

Related Posts

SLC25A16 promotes liver cancer growth and ferroptosis resistance in cells and mice

SLC25A16 promotes liver cancer growth and ferroptosis resistance in cells and mice

December 4, 2026
Isolation may have aided yet constrained Baja California small-scale fishing cooperatives

Isolation may have aided yet constrained Baja California small-scale fishing cooperatives

December 4, 2026

Global Survey Finds Active Palaeontology Fieldwork Alongside Discrimination and Informal Gatekeeping

December 4, 2026

LAMP2A Restrains VDAC3 on Mitochondria to Curb Disc Pyroptosis in Rats

December 4, 2026

POPULAR NEWS

  • Symptom Assessment Linked to Quality of Life in Oral Anticancer Agent Survey

    Symptom Assessment Linked to Quality of Life in Oral Anticancer Agent Survey

    29 shares
    Share 12 Tweet 7
  • Depressive Symptoms Found in 24% of Ethiopian Hospital Substance Use Patients

    29 shares
    Share 12 Tweet 7
  • Surveys Find Early Socioeconomic Gaps in U.S. Adolescents’ AI Awareness

    29 shares
    Share 12 Tweet 7
  • Combined PCR and Sequence Data Identify 99 U.S. PRRSV-2 Activity Events

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

SLC25A16 promotes liver cancer growth and ferroptosis resistance in cells and mice

Whole-Blood Study Finds Reproducible Combined-Sex Methylation Signature and Sex Differences in Type 2 Diabetes

Embedded rural aged care training hub shows early feasibility in Australia

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 91 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.