Bayesian Bi-clustering of Neural Spiking Activity with Latent Structures

Ganchao WeiICLR 2024

TL;DR This paper introduces a novel Bayesian non-parametric method for "bi-clustering" neural spiking data. By simultaneously grouping neurons into functional populations and time segments into distinct dynamical states, the approach provides a more accurate and interpretable map of how different brain regions interact over long recording sessions.

The Challenge of Large-Scale Neural Data

Modern neuroscience has entered the era of "big data" thanks to high-density probes like Neuropixels, which can record the activity of hundreds or thousands of neurons across multiple brain regions simultaneously. However, analyzing this data presents two major challenges:

  1. Spatial Complexity: Neurons do not act as a monolith; they form functional groups that might not align perfectly with anatomical boundaries.
  2. Temporal Complexity: The brain’s "state" is constantly changing. A mouse might be alert, then drowsy, or responding to different visual stimuli. The rules governing how neurons interact (the dynamics) change over time.

Existing methods usually tackle one or the other—clustering neurons or detecting state changes—but rarely both at once. Furthermore, many models assume "Poisson" spiking, which often fails to account for the "over-dispersion" (extra variability) seen in real biological data.

A Bayesian Bi-clustering Approach

To address these challenges, the authors propose a Bayesian Bi-clustering model that treats neural activity as a product of hidden, low-dimensional "latent structures."

Overview of the bi-clustering method and graphical model
  • Spatial Clustering: The model uses a Mixture of Finite Mixtures (MFMM) to group neurons. Instead of pre-specifying the number of clusters, the model infers how many functional populations exist based on their private latent trajectories.
  • Temporal Clustering: To handle time, they employ a sticky Hierarchical Dirichlet Process Hidden Markov Model (sticky-HDP-HMM). This allows the model to detect when the entire system switches between different "states" of linear dynamics. The "sticky" component ensures the model doesn't jitter unrealistically between states.
  • Handling Count Data: Since neural spikes are discrete counts, they use Negative Binomial (NB) distributions. To make the math tractable for their Markov chain Monte Carlo (MCMC) sampling, they utilize Polya-Gamma augmentation, a statistical trick allowing them to treat count data as if it were Gaussian during inference.

Key Insights and Results

The model was validated using both synthetic data and real-world recordings from the Allen Institute Visual Coding Neuropixels Dataset (featuring an awake mouse).

Simulation results comparing the Negative Binomial model to a Poisson model
  • Simulation Success: As shown in the simulation results, the model perfectly recovered the true number of subject (spatial) and state (temporal) clusters, even when the dynamics were highly interactive.
  • The Poisson Pitfall: The paper demonstrates that assuming a Poisson distribution (where mean equals variance) can lead to "spurious" clusters in real neural data. The Negative Binomial model, which accounts for over-dispersion, provides a much cleaner and more scientifically valid clustering.
  • Functional vs. Anatomical: In the real-world data, the model identified approximately 10 neuron clusters and 13 dynamical states. Strikingly, functional clusters often crossed anatomical boundaries. A cluster might contain mostly CA1 neurons but also include a few from the visual cortex, suggesting functional interactions that simple anatomy ignores.
  • State Transitions: The model successfully detected that brain states change much faster during "spontaneous" activity compared to when the mouse is watching a "natural movie," where the dynamics become more stable and driven by the stimulus.

Limitations and Future Work

While powerful, the model has a few areas for future growth:

  • Fixed Latent Dimensions: Currently, the model assumes all neuron clusters share the same latent dimension. In reality, different brain regions might require different levels of complexity.
  • State Durations: The HDP-HMM assumes a geometric distribution for state durations. Moving toward a Hidden Semi-Markov Model (HSMM) could allow for more realistic, flexible state durations.
  • Scalability: While the MCMC algorithm is efficient, it is still computationally intensive for extremely large datasets. Variational Inference could be a faster alternative for future iterations.
  • Feedback Loops: Currently, the hidden states don't depend on the latent trajectories themselves. A "recurrent" version where the trajectory influences the probability of switching states could be the next frontier for this research.

Summary updated

BibTeX
@inproceedings{wei2024bayesian,
  author = {Ganchao Wei},
  title = {{Bayesian Bi-clustering of Neural Spiking Activity with Latent Structures}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=ZYm1Ql6udy},
}
Figure