Skip to yearly menu bar Skip to main content


A Bayesian method for reducing bias in neural representational similarity analysis

Mingbo Cai · Nicolas W Schuck · Jonathan Pillow · Yael Niv

Area 5+6+7+8 #36

Keywords: [ (Other) Bayesian Inference ] [ (Other) Neuroscience ] [ (Other) Cognitive Science ] [ (Other) Probabilistic Models and Methods ]


In neuroscience, the similarity matrix of neural activity patterns in response to different sensory stimuli or under different cognitive states reflects the structure of neural representational space. Existing methods derive point estimations of neural activity patterns from noisy neural imaging data, and the similarity is calculated from these point estimations. We show that this approach translates structured noise from estimated patterns into spurious bias structure in the resulting similarity matrix, which is especially severe when signal-to-noise ratio is low and experimental conditions cannot be fully randomized in a cognitive task. We propose an alternative Bayesian framework for computing representational similarity in which we treat the covariance structure of neural activity patterns as a hyper-parameter in a generative model of the neural data, and directly estimate this covariance structure from imaging data while marginalizing over the unknown activity patterns. Converting the estimated covariance structure into a correlation matrix offers a much less biased estimate of neural representational similarity. Our method can also simultaneously estimate a signal-to-noise map that informs where the learned representational structure is supported more strongly, and the learned covariance matrix can be used as a structured prior to constrain Bayesian estimation of neural activity patterns. Our code is freely available in Brainiak (, a python toolkit for brain imaging analysis.

Live content is unavailable. Log in and register to view live content