Abstract
Neural coding and memory formation depend on temporal spiking sequences that span high-dimensional neural ensembles. The unsupervised discovery and characterization of these spiking sequences requires a suitable dissimilarity measure to compare any two spiking patterns. Here, we present a new measure of dissimilarity between multineuron spike sequences based on optimal transport theory, called SpikeShip. SpikeShip compares any two spiking patterns based on all the relative spike-timing relationships among neurons. Specifically, SpikeShip computes the optimal transport cost, i.e. the Earth Mover’s Distance, to make all the relative spike-timing relationships (across neurons) identical between two spiking patterns. It achieves this by computing the optimal transport of spikes across time, per neuron separately, and then decomposing this transport cost in a temporal rigid translation term and a vector of neuron-specific transport flows. We show that SpikeShip can be effectively computed for high-dimensional neuronal ensembles, has a low computational cost, and is explicitly based on the higher-order structure in the spiking patterns. We then applied SpikeShip to large-scale Neuropixel recordings during spontaneous activity and visual encoding. Using SpikeShip, we show that high-dimensional spiking sequences reliably distinguish between different natural images and different behavioral states. These spiking sequences carried complementary information to conventional firing rate codes. SpikeShip opens new avenues for studying neural coding and memory consolidation by finding patterns in high-dimensional neural ensembles.
All Related Versions