Skip to main content
  • Poster presentation
  • Open access
  • Published:

SPIKY: A graphical user interface for tracking spike train similarity

Modern electrophysiology is developing fast and it sometimes provides more data than available algorithms and methods can handle and process. In particular, there is an increasing demand for methods which provide the possibility to study similarity patterns of activity across many neurons. Accordingly, a wide variety of approaches to quantify the similarity (or dissimilarity) between two or more spike trains has been suggested. Recently, the ISI- and the SPIKE-distance [1, 2] have been proposed as parameter-free and time-scale independent measures of spike train synchrony. The key property of both measures is that they are time-resolved since they rely on instantaneous estimates of spike train dissimilarity. This makes it possible to track changes in instantaneous clustering, i.e., time-localized patterns of (dis)similarity among multiple spike trains. The SPIKE-distance also comes in a causal variant [2] which is defined such that the instantaneous values of dissimilarity are defined from past information only so that time-resolved spike train synchrony can be estimated in real-time.

For both the regular and the real-time SPIKE-distance, there are several levels of information reduction [3]. The starting point is the most detailed representation in which one instantaneous value is obtained for each pair of spike trains. This results in a matrix of size ’number of sampled time instants’ × ’squared number of spike trains’ (i.e. #(tn)N2). By selecting a pair of spike trains one obtains a bivariate dissimilarity profile whereas the selection of a time instant yields an instantaneous matrix of pairwise spike train dissimilarities which can be used to divide the spike trains into instantaneous clusters, i.e., groups of spike trains with low intra-group and high inter-group dissimilarity. Another way to reduce the information is averaging. The spatial average over spike train pairs yields a dissimilarity profile for the selected (sub)population, whereas temporal averaging leads to a bivariate distance matrix for the selected interval or the selected trigger points. Finally, application of the remaining average results in one distance value which describes the overall level of synchrony for a group of spike trains over a given time interval.

The Matlab source codes for calculating and visualizing both the ISI- and the SPIKE-distance have been made publicly available and have already been widely used in various contexts. However, the use of these codes is not very intuitive and their application requires some basic knowledge of Matlab. Thus it became desirable to provide a more user-friendly and accessible interface. Here we address this need and present an advanced version of the graphical user interface SPIKY [4, 5]. This interactive program facilitates the application of the ISI- and the SPIKE-distance to both simulated and real data. Once given a set of spike train data (importable from many different formats), SPIKY calculates the desired measure and allows visualization of different representations such as measure profiles and pairwise dissimilarity matrices. SPIKY also includes the possibility to generate movies which are very useful in order to track the varying patterns of (dis)similarity. Finally, SPIKY has been optimized with respect to both computation speed (by using MEX-files, i.e. C-based Matlab executables) and memory demand (by taking advantage of the piecewise linear nature of the dissimilarity profiles).


  1. Kreuz T, Haas JS, Morelli A, Abarbanel HDI, Politi A: Measuring spike train synchrony. J Neurosci Methods. 2007, 165: 151-161. 10.1016/j.jneumeth.2007.05.031.

    Article  PubMed  Google Scholar 

  2. Kreuz T, Chicharro D, Houghton C, Andrzejak RG, Mormann F: Monitoring spike train synchrony. J Neurophysiol. 2013, 109: 1457-10.1152/jn.00873.2012.

    Article  PubMed  Google Scholar 

  3. Kreuz T: SPIKE-distance. Scholarpedia. 2012, 7: 30652-10.4249/scholarpedia.30652.

    Article  Google Scholar 

  4. Kreuz T, Bozanic N: SPIKY: A graphical user interface for monitoring spike train. 2014, In preparation

    Google Scholar 

  5. SPIKY and information about its implementation can be found under. []

Download references


TK and NB acknowledge funding support from the European Commission through Marie Curie Initial Training Network ‘Neural Engineering Transformative Technologies (NETT)’, project 289146. TK would like to thank the Italian Ministry of Foreign Affairs for support regarding the activity of the Joint Italian-Israeli Laboratory on Neuroscience.

Author information

Authors and Affiliations


Corresponding author

Correspondence to Thomas Kreuz.

Rights and permissions

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kreuz, T., Bozanic, N. SPIKY: A graphical user interface for tracking spike train similarity. BMC Neurosci 15 (Suppl 1), P201 (2014).

Download citation

  • Published:

  • DOI: