Abstract
Decoding stimuli or behaviour from recorded neural activity is a common approach to interrogate brain function in research, and an essential part of brain-computer and brain-machine interfaces. Reliable decoding even from small neural populations is possible because high dimensional neural population activity typically occupies low dimensional manifolds that are discoverable with suitable latent variable models. Over time however, drifts in activity of individual neurons and instabilities in neural recording devices can be substantial, making stable decoding over days and weeks impractical. While this drift cannot be predicted on an individual neuron level, population level variations over consecutive recording sessions such as differing sets of neurons and varying permutations of consistent neurons in recorded data may be learnable when the underlying manifold is stable over time. Classification of consistent versus unfamiliar neurons across sessions and accounting for deviations in the order of consistent recording neurons across sessions of recordings may then maintain decoding performance and uncover a task-related neural manifold. Here we show that self-supervised training of a deep neural network can be used to compensate for this inter-session variability. As a result, a sequential autoencoding model can maintain state-of-the-art behaviour decoding performance for completely unseen recording sessions several days into the future. Our approach only requires a single recording session for training the model, and is a step towards reliable, recalibration-free brain computer interfaces.
Introduction: The Challenge of Neural Drift
Brain-computer interfaces (BCIs) rely on stable recordings from neural populations to translate brain activity into behavior, such as controlling a robotic limb. However, implanted recording devices are subject to physical micro-movements, changes in signal-to-noise ratio, and the natural appearance or disappearance of neurons over time—a phenomenon known as neural drift. Because of this inter-session variability, a decoder trained on one day typically fails on subsequent days, requiring frequent and time-consuming recalibration.
Existing methods to address this drift often rely on domain adaptation techniques that require longitudinal data from many recording sessions. This paper introduces CAPTIVATE (CAPTure and Identify Variability at Target Ensembles), a self-supervised deep learning model designed to generalize to unseen future recording sessions using only a single day of training data.
Methods: The CAPTIVATE Framework
CAPTIVATE employs a self-supervised data augmentation strategy combined with a sequential autoencoder to learn a stable representation of the neural manifold. The process involves four key stages:
- Synthetic Perturbations: To mimic real-world neural drift, the model takes a single training session (Day 0) and applies synthetic perturbations to the trials. These include adding or removing spikes, deleting entire neurons, jittering spike timing, and shifting the order of neurons to simulate electrode array movement.
- Neuron Locator RNN: A Recurrent Neural Network (RNN) is trained to analyze this perturbed data and predict the original position and identity of each neuron.
- Conditioned Sequential Autoencoder: The frozen activations from the Neuron Locator are fed into the encoder of an LFADS-inspired (Latent Factor Analysis via Dynamical Systems) sequential autoencoder. The autoencoder is tasked with reconstructing the clean, unperturbed Day 0 trial from the perturbed input.
- Alignment & Decoding: By forcing the model to map perturbed data back to the original clean latent space, it learns a stable representation. A simple decoder can then predict behavior from this stable latent space. When real future data is encountered, the model treats it as a "perturbed" version of the training day, identifies the known neurons, and maps them to the correct behavior.
Experimental Evaluation
The model was evaluated using motor cortex (M1) recordings from two macaque monkeys (Monkey C and Monkey M) performing a center-out reaching task. The dataset spanned five different days for each monkey, with Monkey C having 55 consistent neurons across sessions and Monkey M having 17.
Key Results
- Single-Session Generalization: Trained only on Day 0, CAPTIVATE achieved highly accurate behavior decoding on completely unseen future sessions. For Monkey C, the model achieved an $R^2$ of 0.84 for movement prediction on Day 1 and maintained an $R^2$ of 0.68 up to 8 days later.
- Baseline Comparison: Standard RNNs and vanilla LFADS models failed on unseen days, with performance dropping to near-zero $R^2$ because they overfit to the specific neuron permutations of the training day.
- Locator Accuracy: The Neuron Locator RNN successfully identified original neuron positions from heavily perturbed synthetic data with 85% (Monkey C) and 93% (Monkey M) accuracy.
Discussion and Insights
Ablation studies revealed that explicit neuron identification is crucial; models that attempted to autoencode perturbed data without the Neuron Locator RNN failed to generalize. Furthermore, simulating the deletion and replacement of neurons, along with probe array shifts, proved to be the most critical perturbations for maintaining performance.
Limitations
While CAPTIVATE significantly extends BCI stability, performance eventually declines as real-world variability outpaces synthetic perturbations. Long-term stability beyond a week may still require periodic recalibration. Additionally, the model's robustness is sensitive to the initial neuron count, as seen in the faster performance degradation for Monkey M compared to Monkey C. Future work will explore cross-subject decoding, which currently remains a challenge due to the complex mapping required between different animals' neural manifolds.
Summary updated