NIT: an open-source tool for information theoretic analysis of neural population data

Roberto Maffulli, Miguel A. Casal, Marco Celotto, Stefano Zucca, Houman Safaai, Tommaso Fellin, Stefano PanzeribioRxiv 2022

TL;DR

This paper introduces NIT, a comprehensive open-source MATLAB toolbox for information-theoretic analysis of neural data. NIT addresses the challenge of analyzing complex neural data, particularly from calcium imaging, by integrating a wide range of recent and established information-theoretic tools, including methods for handling limited data and analyzing large populations.

What Problem Does This Paper Address?

Analyzing neural data using information theory (IT) is powerful for understanding how neurons encode and transmit information, capturing complex coding mechanisms. However, applying IT to real neural data, especially from techniques like two-photon calcium imaging, presents significant challenges. These include dealing with low signal-to-noise ratios, limited temporal resolution, and the need for sophisticated methods to quantify information in large populations, across brain regions, and in relation to behavior. Existing toolboxes often lack comprehensive integration of recent IT advances or are not optimized for challenging data types like calcium imaging. This paper aims to bridge this gap by providing a unified, versatile, and well-documented toolbox.

Methods

NIT offers a broad suite of information-theoretic tools. Key features include:

  • Standard IT Measures: Calculation of Mutual Information (MI), entropy, and transfer entropy.
  • Advanced Measures: Implementation of Partial Information Decomposition (PID) and Intersection Information (II) for quantifying complex relationships and behavioral relevance.
  • Bias Correction: A range of methods (e.g., Panzeri-Treves, bootstrap) to mitigate errors arising from limited experimental trials.
  • Data Handling: Tools for discretizing continuous data (e.g., calcium traces) using various binning strategies.
  • Non-Parametric Copula Estimators: Robust methods for estimating MI, particularly useful for continuous and non-Gaussian data like calcium imaging, offering advantages over traditional binned methods, especially with limited data.
  • Dimensionality Reduction: Supervised (e.g., GLM, SVM) and unsupervised (e.g., PCA, NMF) methods to handle high-dimensional neural data.
  • Hypothesis Testing: Non-parametric permutation tests for assessing the statistical significance of information measures.
  • Synthetic Data Generation: A biophysically plausible single-compartment model (SCM) for generating realistic synthetic calcium imaging traces, crucial for validating algorithms and understanding data limitations.

Datasets

The paper utilizes simulated datasets generated by the authors' forward model for synthetic calcium imaging traces. Real experimental data from four independent datasets are also used for validation, specifically involving simultaneous cell-attached electrophysiology and two-photon imaging recordings from GCaMP6f and GCaMP6s-labeled neurons.

Key Insights and Ideas

  • Calcium Imaging is Richer Than Expected: Contrary to the assumption that calcium imaging data inherently loses information compared to electrophysiology, NIT's analysis shows that appropriate metrics and algorithms can recover a substantial portion (50-100%) of the information encoded in spike rates, especially for high-rate phasic responses.
  • Spike Timing Matters: Even with the slow dynamics of calcium indicators, the temporal patterns of spikes (not just firing rate) contribute significantly to the information encoded, sometimes even more than a simple spike rate code.
  • Metric Choice is Crucial: The way calcium signals are quantified (e.g., peak ΔF/F, mean ΔF/F, estimated calcium) dramatically impacts the amount of information retrieved. "Estimated calcium," derived from inverting a biophysical model, and linear deconvolution emerged as particularly effective metrics.
  • Non-Parametric Copulas Shine with Limited Data: For continuous and non-Gaussian neural data like calcium traces, non-parametric copula methods for MI estimation are more robust and require fewer trials to achieve asymptotic values compared to traditional binned methods, especially when data is scarce.

Key Results

  • NIT provides a comprehensive suite of IT tools, integrating both established and recent methods.
  • Simulations and real data analysis demonstrate that NIT can extract significant stimulus information from calcium imaging data.
  • The "estimated calcium" metric, derived from a biophysical model inversion, and linear deconvolution showed superior performance in reconstructing spike rate information from calcium traces compared to other metrics like peak or mean ΔF/F.
  • Non-parametric copula estimators were found to be more efficient than binned methods in terms of trial requirements for bias-free MI estimation, particularly for continuous and non-Gaussian data.
  • NIT's performance was benchmarked against existing toolboxes, showing significant speedups (e.g., 50x faster than NITT for single MI calculations).

Limitations and Future Work

  • Computational Cost: Non-parametric copula methods, while more accurate, are computationally more expensive than binned methods.
  • Missing Features: NIT currently lacks computation of maximum entropy (ME) models and group statistics, though it provides outputs compatible with external group statistics toolboxes.
  • PID Expansion: The field of PID is rapidly evolving, and NIT will need ongoing updates to incorporate new PID developments.
  • Future Work: The authors plan to address these limitations in future updates, including adding ME models, group statistics, and further integrating advanced PID measures.

Summary updated

Abstract

Abstract Information theory provides a popular and principled framework for the analysis of neural data. It allows to uncover in an assumption-free way how neurons encode and transmit information, capturing both linear and non-linear coding mechanisms and including the information carried by interactions of any order. To facilitate its application, here we present Neuroscience Information Toolbox (NIT), a new toolbox for the accurate information theoretical analysis of neural data. NIT contains widely used tools such as limited sampling bias corrections and discretization of neural probabilities for the calculation of stimulus coding in low-dimensional representation of neural activity (e.g. Local Field Potentials or the activity of small neural population).Importantly, it adds a range of recent tools for quantifying information encoding by large populations of neurons or brain areas, for the directed transmission of information between neurons or areas, and for the calculation of Partial Information Decompositions to quantify the behavioral relevance of neural information and the synergy and redundancy among neurons and brain areas. Further, because information theoretic algorithms have been previously validated mainly with electrophysiological recordings, here we used realistic simulations and analysis of real data to study how to optimally apply information theory to the analysis of two-photon calcium imaging data, which are particularly challenging due to their lower signal-to-noise and temporal resolution. We also included algorithms (based on parametric and non-parametric copulas) to compute robustly information specifically with analog signals such as calcium traces. We provide indications on how to best process calcium imaging traces and to apply NIT depending on the type of calcium indicator, imaging frame rate and firing rate levels. In sum, NIT provides a toolbox for the comprehensive and effective information theoretic analysis of all kinds of neural data, including calcium imaging.
BibTeX
@misc{maffulli2022nit,
  author = {Roberto Maffulli and Miguel A. Casal and Marco Celotto and Stefano Zucca and Houman Safaai and Tommaso Fellin and Stefano Panzeri},
  title = {{NIT: an open-source tool for information theoretic analysis of neural population data}},
  year = {2022},
  doi = {10.1101/2022.12.11.519966},
  howpublished = {bioRxiv},
}
Figure