A deep-learning strategy to identify cell types across species from high-density extracellular recordings

Maxime Beau, David J. Herzfeld, Francisco Naveros, Marie E. Hemelt, F D'Agostino, Marlies Oostland, Álvaro Sánchez‐López, Young Yoon Chung, Michael Maibach, Stephen Kyranakis, Hannah Stabb, M. Gabriela Martínez Lopera, Agoston Lajko, Marie Zedler, Shogo Ohmae, Nathan J. Hall, Beverley A. Clark, Dana Cohen, Stephen G. Lisberger, Dimitar Kostadinov, Court Hull, Michael Häusser, Javier F. MedinabioRxiv 2024

Abstract

High-density probes allow electrophysiological recordings from many neurons simultaneously across entire brain circuits but don't reveal cell type. Here, we develop a strategy to identify cell types from extracellular recordings in awake animals, revealing the computational roles of neurons with distinct functional, molecular, and anatomical properties. We combine optogenetic activation and pharmacology using the cerebellum as a testbed to generate a curated ground-truth library of electrophysiological properties for Purkinje cells, molecular layer interneurons, Golgi cells, and mossy fibers. We train a semi-supervised deep-learning classifier that predicts cell types with greater than 95% accuracy based on waveform, discharge statistics, and layer of the recorded neuron. The classifier's predictions agree with expert classification on recordings using different probes, in different laboratories, from functionally distinct cerebellar regions, and across animal species. Our classifier extends the power of modern dynamical systems analyses by revealing the unique contributions of simultaneously-recorded cell types during behavior.

Introduction

Modern neurophysiology faces a significant challenge: while high-density probes like Neuropixels can record from hundreds of neurons simultaneously, these extracellular recordings only capture electrical spikes without identifying the specific cell types. In the cerebellum, knowing whether a spike originates from a Purkinje cell, a Golgi cell, or a mossy fiber is crucial for understanding motor coordination. This study introduces a semi-supervised deep-learning pipeline designed to identify cell types from their electrical "fingerprints" with high accuracy.

Methods

The researchers developed a multi-stage strategy to build a ground-truth library and a robust classifier.

Overview of the deep-learning pipeline for cell-type identification.

Ground-Truth Library and Feature Engineering

To ensure accurate identification, the team used optogenetics in mice combined with pharmacological synaptic blockade. This ensured that light-triggered spikes came directly from the targeted cell type. They developed 3D-autocorrelograms (3D-ACGs) to normalize firing statistics across different rates and used the "Phyllum" tool to assign recording channels to specific cerebellar layers (Molecular, Purkinje, or Granule).

Cerebellar anatomy, recording traces, and quality control metrics for the ground-truth library.

Machine Learning Pipeline

To prevent overfitting on the relatively small ground-truth dataset (202 units), the authors first applied Variational Autoencoders (VAEs) to a larger set of 3,090 unlabeled neurons. This unsupervised step reduced complex waveforms and firing patterns into 10-dimensional latent spaces. The final classifier was then trained on the curated ground-truth data, utilizing raw, drift-corrected waveforms rather than hand-picked metrics.

Results

The classifier achieved over 95% accuracy on the ground-truth library when using a confidence threshold. Key insights include:

  • Anatomical Context: Including the anatomical layer as an input significantly boosted accuracy, helping distinguish cells with similar electrical signatures.
  • Cross-Species Success: A model trained on mouse neurons successfully identified Purkinje cells in macaque monkeys, suggesting that electrophysiological signatures are evolutionarily conserved.
  • Confidence-Based Classification: The model provides a confidence ratio, allowing researchers to filter for high-certainty predictions and effectively manage ambiguous data.
  • Robustness: The system remained accurate across different recording hardware and laboratories, demonstrating its generalizability.

Discussion

While the model is highly effective, it currently struggles with small, quiet cells like granule cells and relies heavily on spontaneous activity. Future work will involve expanding the library to include rarer cell types and adapting the model for brain regions with different firing characteristics. This approach provides a blueprint for decoding the diversity of brain circuitry across species.

Summary updated

BibTeX
@misc{beau2024deep,
  author = {Maxime Beau and David J. Herzfeld and Francisco Naveros and Marie E. Hemelt and F D'Agostino and Marlies Oostland and Álvaro Sánchez‐López and Young Yoon Chung and Michael Maibach and Stephen Kyranakis and Hannah Stabb and M. Gabriela Martínez Lopera and Agoston Lajko and Marie Zedler and Shogo Ohmae and Nathan J. Hall and Beverley A. Clark and Dana Cohen and Stephen G. Lisberger and Dimitar Kostadinov and Court Hull and Michael Häusser and Javier F. Medina},
  title = {{A deep-learning strategy to identify cell types across species from high-density extracellular recordings}},
  year = {2024},
  doi = {10.1101/2024.01.30.577845},
  howpublished = {bioRxiv},
}
Figure