HuiduRep: A Robust Self-Supervised Framework for Learning Neural Representations from Extracellular Recordings

Feng Cao, Zishuo Feng, Jicong Zhang, Wei Shi
7/23/2025
eess.SPcs.AIq-bio.NC

Official code: IgarashiAkatuki/HuiduRep (10 stars, last commit 2026-03-19).

Abstract

Extracellular recordings are transient voltage fluctuations in the vicinity of neurons, serving as a fundamental modality in neuroscience for decoding brain activity at single-neuron resolution. Spike sorting, the process of attributing each detected spike to its corresponding neuron, is a pivotal step in brain sensing pipelines. However, it remains challenging under low signal-to-noise ratio (SNR), electrode drift and cross-session variability. In this paper, we propose HuiduRep, a robust self-supervised representation learning framework that extracts discriminative and generalizable features from extracellular recordings. By integrating contrastive learning with a denoising autoencoder, HuiduRep learns latent representations that are robust to noise and drift. With HuiduRep, we develop a spike sorting pipeline that clusters spike representations without ground truth labels. Experiments on hybrid and real-world datasets demonstrate that HuiduRep achieves strong robustness. Furthermore, the pipeline outperforms state-of-the-art tools such as KiloSort4 and MountainSort5. These findings demonstrate the potential of self-supervised spike representation learning as a foundational tool for robust and generalizable processing of extracellular recordings. Code is available at: https://github.com/IgarashiAkatuki/HuiduRep

View on arXivView PDF

Code Implementations(1)

Representation Learning Framework for Extracellular Recordings. An end-to-end pipeline for spike sorting.

102Python, Jupyter NotebookMay 7, 20257 months ago
artificial-intelligencecontrastive-learningelectrophysiologyneurosciencespike-sorting

Similar Papers

Cite this paper

@article{cao2025huidurep,
  title  = {HuiduRep: A Robust Self-Supervised Framework for Learning Neural Representations from Extracellular Recordings},
  author = {Feng Cao and Zishuo Feng and Jicong Zhang and Wei Shi},
  year   = {2025},
  eprint = {2507.17224},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.17224v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.17224.svg)](https://codeofpaper.com/paper/2507.17224)

Discussion