Brian 2, an intuitive and efficient neural simulator

  1. Marcel Stimberg  Is a corresponding author
  2. Romain Brette
  3. Dan FM Goodman
  1. Sorbonne Université, INSERM, CNRS, France
  2. Imperial College London, United Kingdom

Abstract

Brian 2 allows scientists to simply and efficiently simulate spiking neural network models. These models can feature novel dynamical equations, their interactions with the environment, and experimental protocols. To preserve high performance when defining new models, most simulators offer two options: low-level programming or description languages. The first option requires expertise, is prone to errors, and is problematic for reproducibility. The second option cannot describe all aspects of a computational experiment, such as the potentially complex logic of a stimulation protocol. Brian addresses these issues using runtime code generation. Scientists write code with simple and concise high-level descriptions, and Brian transforms them into efficient low-level code that can run interleaved with their code. We illustrate this with several challenging examples: a plastic model of the pyloric network, a closed-loop sensorimotor model, a programmatic exploration of a neuron model, and an auditory model with real-time input.

Data availability

Source code to replicate Figures 1-7, as well as the simulations shown in Appendix 4, are provided in a github repository (https://github.com/brian-team/brian2_paper_examples). Source code to run benchmarks as presented in Figure 8 is provided as a supplementary file together with this submission (benchmark_code.zip)

Article and author information

Author details

  1. Marcel Stimberg

    Institut de la Vision, Sorbonne Université, INSERM, CNRS, Paris, France
    For correspondence
    marcel.stimberg@inserm.fr
    Competing interests
    The authors declare that no competing interests exist.
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0002-2648-4790
  2. Romain Brette

    Institut de la Vision, Sorbonne Université, INSERM, CNRS, Paris, France
    Competing interests
    The authors declare that no competing interests exist.
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0003-0110-1623
  3. Dan FM Goodman

    Department of Electrical and Electronic Engineering, Imperial College London, London, United Kingdom
    Competing interests
    The authors declare that no competing interests exist.
    ORCID icon "This ORCID iD identifies the author of this article:" 0000-0003-1007-6474

Funding

Agence Nationale de la Recherche (Axode ANR-14-CE13-0003)

  • Romain Brette

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Copyright

© 2019, Stimberg et al.

This article is distributed under the terms of the Creative Commons Attribution License permitting unrestricted use and redistribution provided that the original author and source are credited.

Metrics

  • 13,146
    views
  • 1,341
    downloads
  • 370
    citations

Views, downloads and citations are aggregated across all versions of this paper published by eLife.

Download links

A two-part list of links to download the article, or parts of the article, in various formats.

Downloads (link to download the article as PDF)

Open citations (links to open the citations from this article in various online reference manager services)

Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)

  1. Marcel Stimberg
  2. Romain Brette
  3. Dan FM Goodman
(2019)
Brian 2, an intuitive and efficient neural simulator
eLife 8:e47314.
https://doi.org/10.7554/eLife.47314

Share this article

https://doi.org/10.7554/eLife.47314

Further reading

    1. Neuroscience
    Ernie Yulyaningsih, Jung H Suh ... Pascal E Sanchez
    Research Article

    The integrated stress response (ISR) is a conserved pathway in eukaryotic cells that is activated in response to multiple sources of cellular stress. Although acute activation of this pathway restores cellular homeostasis, intense or prolonged ISR activation perturbs cell function and may contribute to neurodegeneration. DNL343 is an investigational CNS-penetrant small-molecule ISR inhibitor designed to activate the eukaryotic initiation factor 2B (eIF2B) and suppress aberrant ISR activation. DNL343 reduced CNS ISR activity and neurodegeneration in a dose-dependent manner in two established in vivo models – the optic nerve crush injury and an eIF2B loss of function (LOF) mutant – demonstrating neuroprotection in both and preventing motor dysfunction in the LOF mutant mouse. Treatment with DNL343 at a late stage of disease in the LOF model reversed elevation in plasma biomarkers of neuroinflammation and neurodegeneration and prevented premature mortality. Several proteins and metabolites that are dysregulated in the LOF mouse brains were normalized by DNL343 treatment, and this response is detectable in human biofluids. Several of these biomarkers show differential levels in CSF and plasma from patients with vanishing white matter disease (VWMD), a neurodegenerative disease that is driven by eIF2B LOF and chronic ISR activation, supporting their potential translational relevance. This study demonstrates that DNL343 is a brain-penetrant ISR inhibitor capable of attenuating neurodegeneration in mouse models and identifies several biomarker candidates that may be used to assess treatment responses in the clinic.

    1. Neuroscience
    Stefan Passlick, Ghanim Ullah, Christian Henneberger
    Research Article

    Ischemia leads to a severe dysregulation of glutamate homeostasis and excitotoxic cell damage in the brain. Shorter episodes of energy depletion, for instance during peri-infarct depolarizations, can also acutely perturb glutamate signaling. It is less clear if such episodes of metabolic failure also have persistent effects on glutamate signaling and how the relevant mechanisms such as glutamate release and uptake are differentially affected. We modeled acute and transient metabolic failure by using a chemical ischemia protocol and analyzed its effect on glutamatergic synaptic transmission and extracellular glutamate signals by electrophysiology and multiphoton imaging, respectively, in the mouse hippocampus. Our experiments uncover a duration-dependent bidirectional dysregulation of glutamate signaling. Whereas short chemical ischemia induces a lasting potentiation of presynaptic glutamate release and synaptic transmission, longer episodes result in a persistent postsynaptic failure of synaptic transmission. We also observed unexpected differences in the vulnerability of the investigated cellular mechanisms. Axonal action potential firing and glutamate uptake were surprisingly resilient compared to postsynaptic cells, which overall were most vulnerable to acute and transient metabolic stress. We conclude that short perturbations of energy supply lead to a lasting potentiation of synaptic glutamate release, which may increase glutamate excitotoxicity well beyond the metabolic incident.