High-density neural probes, such as Neuropixels, have revolutionized neuroscience by allowing researchers to record thousands of neurons simultaneously in living animals. However, a major bottleneck remains: these electrodes only record electrical pulses (spikes). Without complex, low-yield techniques like optical tagging or post-experiment histology, researchers cannot easily determine the specific cell types (e.g., excitatory vs. inhibitory) or the exact brain regions being recorded.
To address this, researchers have developed NEMO (Neuronal Embeddings via MultimOdal contrastive learning), a novel framework that jointly embeds a neuron's spiking activity and waveform shape into a shared latent space. By leveraging multiple electrophysiological modalities, NEMO achieves state-of-the-art accuracy in classifying cell types and brain regions directly from raw data.
The NEMO Framework
Historically, automated methods for classifying cells based on electrical signatures have relied on a single modality—either the shape of the spike or the timing of the spikes—or utilized unsupervised methods like Variational Autoencoders (VAEs) that often capture unhelpful noise.
NEMO overcomes these limitations by adapting the contrastive learning architecture of CLIP (famous for matching images with text) to neurophysiology. Instead of images and text, NEMO processes two distinct electrophysiological modalities from individual neurons:
- Extracellular Action Potentials (EAPs): The average "template" shape of the neuron's spike (waveform), encoded using a Multilayer Perceptron (MLP).
- Autocorrelogram (ACG) images: A 2D visual representation of a neuron's spiking rhythm over time, adjusted for variations in firing rate, encoded using a Convolutional Neural Network (CNN).
During pre-training, NEMO employs a contrastive objective: it pulls the WVF and ACG from the same neuron close together in a latent embedding space while pushing the WVF and ACG of different neurons apart. Heavy data augmentations, such as temporal smoothing, jitter, and Gaussian noise, are applied to make the model robust. Once pre-trained, these learned representations can be fine-tuned for downstream tasks using simple linear classifiers or MLPs.
Key Insights: Why Bimodal is Better
The core strength of NEMO lies in its multimodal approach. Combining spike shape and firing patterns yields richer, more discriminative representations than using either feature alone.
Furthermore, by forcing the network to match two different modalities of the same neuron, the model naturally isolates the underlying biological identity of the cell while discarding modality-specific noise. Interestingly, when NEMO's learned representations are clustered without any supervised labels, the neurons naturally group themselves by their anatomical brain regions, demonstrating that anatomy emerges organically from the joint embeddings.
State-of-the-Art Classification Results
The research team evaluated NEMO across three diverse datasets: NP Ultra opto-tagged mouse data (visual cortex, 3 cell types), the C4 cerebellum dataset (5 cell types), and the massive IBL Brain-wide Map (over 37,000 neurons across 10 brain areas).
Cell-Type Classification
NEMO achieved state-of-the-art macro-averaged F1 scores of 0.80 on the NP Ultra dataset and 0.86 on the C4 Cerebellum dataset. It significantly outperformed baseline models like VAEs and PhysMAP. Even without end-to-end fine-tuning—simply training a linear probe on frozen NEMO features—the model outperformed competitors, proving that the raw embeddings are highly discriminative.
Brain Region Classification and Data Efficiency
For brain region classification on the IBL dataset, the authors introduced a multi-neuron ensembling technique that averages the predictions of neighboring neurons along the probe. This approach achieved an F1 score of 0.50, beating fully supervised baselines.
Crucially, NEMO demonstrated exceptional data efficiency. Because the model learns high-quality features during unsupervised pre-training, it requires drastically less labeled data for downstream tasks. In a label-ratio sweep, a NEMO model fine-tuned on just 50% of the labeled data outperformed a fully supervised baseline trained on 100% of the data.
Future Directions
While NEMO represents a significant leap forward, it currently focuses exclusively on the shared information between the two modalities. Future iterations could benefit from modeling modality-specific information to capture unique features relevant to cell identity. Additionally, NEMO currently treats every neuron independently; incorporating population-level correlations (how groups of neurons fire together) could further improve classification.
Ultimately, NEMO's robust embeddings pave the way for multi-animal foundation models, promising to enhance neural decoding across different subjects, behavioral sessions, and even peripheral nervous systems.
Summary updated