LFPy: a tool for biophysical simulation of extracellular potentials generated by detailed model neurons

Electrical extracellular recordings, i.e., recordings of the electrical potentials in the extracellular medium between cells, have been a main work-horse in electrophysiology for almost a century. The high-frequency part of the signal (≳500 Hz), i.e., the multi-unit activity (MUA), contains information about the firing of action potentials in surrounding neurons, while the low-frequency part, the local field potential (LFP), contains information about how these neurons integrate synaptic inputs. As the recorded extracellular signals arise from multiple neural processes, their interpretation is typically ambiguous and difficult. Fortunately, a precise biophysical modeling scheme linking activity at the cellular level and the recorded signal has been established: the extracellular potential can be calculated as a weighted sum of all transmembrane currents in all cells located in the vicinity of the electrode. This computational scheme can considerably aid the modeling and analysis of MUA and LFP signals. Here, we describe LFPy, an open source Python package for numerical simulations of extracellular potentials. LFPy consists of a set of easy-to-use classes for defining cells, synapses and recording electrodes as Python objects, implementing this biophysical modeling scheme. It runs on top of the widely used NEURON simulation environment, which allows for flexible usage of both new and existing cell models. Further, calculation of extracellular potentials using the line-source-method is efficiently implemented. We describe the theoretical framework underlying the extracellular potential calculations and illustrate by examples how LFPy can be used both for simulating LFPs, i.e., synaptic contributions from single cells as well a populations of cells, and MUAs, i.e., extracellular signatures of action potentials.

[1]  Nicholas T. Carnevale,et al.  ModelDB: A Database to Support Computational Neuroscience , 2004, Journal of Computational Neuroscience.

[2]  Romain Brette,et al.  Handbook of neural activity measurement , 2012 .

[3]  Michael W. Reimann,et al.  A Biophysically Detailed Model of Neocortical Local Field Potentials Predicts the Critical Role of Active Membrane Currents , 2013, Neuron.

[4]  N. Logothetis,et al.  In Vivo Measurement of Cortical Impedance Spectrum in Monkeys: Implications for Signal Propagation , 2007, Neuron.

[5]  Christof Koch,et al.  Using extracellular action potential recordings to constrain compartmental models , 2007, Journal of Computational Neuroscience.

[6]  Michael L. Hines,et al.  Fully implicit parallel simulation of single neurons , 2008, Journal of Computational Neuroscience.

[7]  Christof Koch,et al.  The Spiking Component of Oscillatory Extracellular Potentials in the Rat Hippocampus , 2012, The Journal of Neuroscience.

[8]  Matthew J Nelson,et al.  Do electrode properties create a problem in interpreting local field potential recordings? , 2010, Journal of neurophysiology.

[9]  Pascal Wallisch Local Field Potentials , 2014 .

[10]  Alon Korngreen,et al.  Mechanisms of Magnetic Stimulation of Central Nervous System Neurons , 2011, PLoS Comput. Biol..

[11]  Anders Logg,et al.  Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book , 2012 .

[12]  Eric Jones,et al.  SciPy: Open Source Scientific Tools for Python , 2001 .

[13]  R. Quian Quiroga Principles of neural coding. , 2011, Current biology : CB.

[14]  G. Buzsáki Large-scale recording of neuronal ensembles , 2004, Nature Neuroscience.

[15]  Klas H. Pettersen,et al.  Current-source density estimation based on inversion of electrostatic forward solution: Effects of finite extent of neuronal activity and conductivity discontinuities , 2006, Journal of Neuroscience Methods.

[16]  C. Bédard,et al.  Modeling extracellular field potentials and the frequency-filtering properties of extracellular space. , 2003, Biophysical journal.

[17]  John D. Hunter,et al.  Matplotlib: A 2D Graphics Environment , 2007, Computing in Science & Engineering.

[18]  Ingo Bojak,et al.  Classification of cortical microcircuits based on micro-electrode-array data from slices of rat barrel cortex , 2009, Neural Networks.

[19]  Stefano Panzeri,et al.  Modelling and analysis of local field potentials for studying the function of cortical circuits , 2013, Nature Reviews Neuroscience.

[20]  M L Hines,et al.  Neuron: A Tool for Neuroscientists , 2001, The Neuroscientist : a review journal bringing neurobiology, neurology and psychiatry.

[21]  G. Shepherd,et al.  Theoretical reconstruction of field potentials and dendrodendritic synaptic interactions in olfactory bulb. , 1968, Journal of neurophysiology.

[22]  Nikos K. Logothetis,et al.  Physiological Foundations of Neural Signals , 2013 .

[23]  T. Sejnowski,et al.  [Letters to nature] , 1996, Nature.

[24]  Christof Koch,et al.  Ephaptic coupling of cortical neurons , 2011, Nature Neuroscience.

[25]  Henry Markram,et al.  Models of Neocortical Layer 5b Pyramidal Cells Capturing a Wide Range of Dendritic and Perisomatic Active Properties , 2011, PLoS Comput. Biol..

[26]  James P. Evans The Origin , 2009, Genetics in Medicine.

[27]  S. Moran,et al.  On the Origin , 2012 .

[28]  Gaute T. Einevoll,et al.  Frequency Dependence of Signal Power and Spatial Reach of the Local Field Potential , 2013, PLoS Comput. Biol..

[29]  R. Andersen,et al.  Cognitive neural prosthetics. , 2010, Annual review of psychology.

[30]  Gaute T. Einevoll,et al.  Intrinsic dendritic filtering gives low-pass power spectra of local field potentials , 2010, Journal of Computational Neuroscience.

[31]  G. Ascoli,et al.  NeuroMorpho.Org: A Central Resource for Neuronal Morphologies , 2007, The Journal of Neuroscience.

[32]  P. Nunez,et al.  Electric fields of the brain , 1981 .

[33]  C. Nicholson,et al.  Theory of current source-density analysis and determination of conductivity tensor for anuran cerebellum. , 1975, Journal of neurophysiology.

[34]  R. Quiroga,et al.  Principles of neural coding. , 2013 .

[35]  Anders M. Dale,et al.  Handbook of Neural Activity Measurement: Extracellular spikes and CSD , 2012 .

[36]  Idan Segev,et al.  Compartmental models of complex neurons , 1989 .

[37]  Nicholas T. Carnevale,et al.  The NEURON Simulation Environment , 1997, Neural Computation.

[38]  Erik De Schutter,et al.  Computational Modeling Methods for Neuroscientists , 2009 .

[39]  Christof Koch,et al.  Electrical Interactions via the Extracellular Potential Near Cell Bodies , 1999, Journal of Computational Neuroscience.

[40]  C. Koch,et al.  The origin of extracellular fields and currents — EEG, ECoG, LFP and spikes , 2012, Nature Reviews Neuroscience.

[41]  A. Rezai,et al.  Deep Brain Stimulation for Neurological Disorders , 2012, IEEE Reviews in Biomedical Engineering.

[42]  R. Ilmoniemi,et al.  Magnetoencephalography-theory, instrumentation, and applications to noninvasive studies of the working human brain , 1993 .

[43]  Michael L. Hines,et al.  NeuroML: A Language for Describing Data Driven Models of Neurons and Networks with a High Degree of Biological Detail , 2010, PLoS Comput. Biol..

[44]  Hans Petter Langtangen,et al.  A Primer on Scientific Programming with Python , 2009 .

[45]  Michael L. Hines,et al.  The NEURON Book , 2006 .

[46]  Klas H. Pettersen,et al.  Modeling the Spatial Reach of the LFP , 2011, Neuron.

[47]  C. Koch,et al.  On the origin of the extracellular action potential waveform: A modeling study. , 2006, Journal of neurophysiology.

[48]  R. Andy McKinley,et al.  Modulating the brain at work using noninvasive transcranial stimulation , 2012, NeuroImage.

[49]  Michael L. Hines,et al.  Neuroinformatics Original Research Article Neuron and Python , 2022 .

[50]  Sean M Montgomery,et al.  The Effect of Spatially Inhomogeneous Extracellular Electric Fields on Neurons , 2010, The Journal of Neuroscience.

[51]  Scott F. Lempka,et al.  Theoretical Analysis of the Local Field Potential in Deep Brain Stimulation Applications , 2013, PloS one.

[52]  Klas H. Pettersen,et al.  Amplitude variability and extracellular low-pass filtering of neuronal spikes. , 2008, Biophysical journal.

[53]  Brian E. Granger,et al.  IPython: A System for Interactive Scientific Computing , 2007, Computing in Science & Engineering.

[54]  Kenneth D Harris,et al.  Towards reliable spike-train recordings from thousands of neurons with multielectrodes , 2012, Current Opinion in Neurobiology.

[55]  B. Granger Ipython: a System for Interactive Scientific Computing Python: an Open and General- Purpose Environment , 2007 .

[56]  R. Kawashima,et al.  An evaluation of the conductivity profile in the somatosensory barrel cortex of Wistar rats. , 2010, Journal of neurophysiology.

[57]  Klas H. Pettersen,et al.  Laminar population analysis: estimating firing rates and evoked synaptic activity from multielectrode recordings in rat barrel cortex. , 2007, Journal of neurophysiology.

[58]  Anders M. Dale,et al.  On the Estimation of Population-Specific Synaptic Currents from Laminar Multielectrode Recordings , 2011, Front. Neuroinform..

[59]  Gaute T. Einevoll,et al.  Estimation of population firing rates and current source densities from laminar electrode recordings , 2008, Journal of Computational Neuroscience.