Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 May 6:15:642933.
doi: 10.3389/fninf.2021.642933. eCollection 2021.

Polynomial, piecewise-Linear, Step (PLS): A Simple, Scalable, and Efficient Framework for Modeling Neurons

Affiliations

Polynomial, piecewise-Linear, Step (PLS): A Simple, Scalable, and Efficient Framework for Modeling Neurons

Ruben A Tikidji-Hamburyan et al. Front Neuroinform. .

Abstract

Biological neurons can be modeled with different levels of biophysical/biochemical details. The accuracy with which a model reflects the actual physiological processes and ultimately the information function of a neuron, can range from very detailed to a schematic phenomenological representation. This range exists due to the common problem: one needs to find an optimal trade-off between the level of details needed to capture the necessary information processing in a neuron and the computational load needed to compute 1 s of model time. An increase in modeled network size or model-time, for which the solution should be obtained, makes this trade-off pivotal in model development. Numerical simulations become incredibly challenging when an extensive network with a detailed representation of each neuron needs to be modeled over a long time interval to study slow evolving processes, e.g., development of the thalamocortical circuits. Here we suggest a simple, powerful and flexible approach in which we approximate the right-hand sides of differential equations by combinations of functions from three families: Polynomial, piecewise-Linear, Step (PLS). To obtain a single coherent framework, we provide four core principles in which PLS functions should be combined. We show the rationale behind each of the core principles. Two examples illustrate how to build a conductance-based or phenomenological model using the PLS-framework. We use the first example as a benchmark on three different computational platforms: CPU, GPU, and mobile system-on-chip devices. We show that the PLS-framework speeds up computations without increasing the memory footprint and maintains high model fidelity comparable to the fully-computed model or with lookup-table approximation. We are convinced that the full range of neuron models: from biophysical to phenomenological and even to abstract models, may benefit from using the PLS-framework.

Keywords: CPU; GPU; biophysical models; mobile devices; neurodynamics; neurons; phenomenological models.

PubMed Disclaimer

Conflict of interest statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Listing 2.1
Listing 2.1
Pseudo-code of lookup table implementation.
Figure 1
Figure 1
Constructing approximations of Wang and Buzsáki biophysical model. (A) Voltage traces for the original model (black line) overlapped with solution based upon lookup-table approximation (red line). (B) Top from left to right: Steady-state for fast sodium activation (m(v)), inactivation (h(v)), and delay-rectifier potassium activation (n(v)) and time constants for sodium inactivation (τh(v)) and potassium activation [τn(v)] for the original model and two approximations: black lines—original model, blue lines—5th order polynomial interpolation, orange lines—piecewise-Linear approximation. Bottom: Voltage traces for the same approximations. (C) Top left: voltage nullclines at different applied currents (I = Iapp) for the original model reduced to 2 dimensions. Top center: Construction of only polynomial (green line) or Polynomial+piecewise-Linear approximation (PL 2D, red dashed line) from the original model after the reduction (black line). Top right: nullclines for the PL2D model (the same color-code and applied currents as in the left plot) Bottom: Voltage traces for original model (black line) and PL2D approximation (red line).
Figure 2
Figure 2
Comparison of original Wang and Buzsáki model with different approximations. (A) FI-curves, used for accuracy assessment. (B1) Performance Of 3D lookup table (red), 3D piecewise-Linear (L, yellow), 3D Polynomial (P, green), and 2D Polynomial+piecewise-Linear approximations (PL2D, brown) in comparison with the original 3D model (blue) computed on four different platforms: CPU—Intel Core i5-5257U, RPI1—Raspberry Pi 1, RPI4—Raspberry Pi 4, and GPU—NVidia GeForce RTX 2080 Ti. (B2) Assessment of memory size needed for model constants in the total number of single, double, or long double precision numbers. (B3) Standard squared error between FI-curve of the original model and four different approximations.
Figure 3
Figure 3
Examples of functions, which comprise the PLS-framework.
Figure 4
Figure 4
Phase-Plane Analysis and dynamics for phenomenological models of Integrating and Resonant neurons. Phase-portrait (A) and time constants (B) for the integrator model with parameters: v0 = −65 mV, v1 = −45 mV, v2 = 55 mV, a0 = 3.5 10−6, a1 = −10−4(mV)−1, v3 = −35 mV, r0 = 0.04 ms, r1 = −0.004 ms/mV, v4 = −40 mV, v5 = −5 mV, v6 = −55.45 mV, v7 = 18.78 mV, s0 = 5 ms, s1 = 7.6 ms, s2 = 1.8 ms, k = 2. Voltage nullclines are shown for zero current at resting (blue curve), for saddle-node bifurcation at the onset of pacing (I0, yellow curve), and for saddle-node bifurcation at the onset of depolarization block (I1, red curve). (C) Protocol (top) and voltage trace (bottom) of integrator dynamics. The model was held almost at the bifurcation point (I0) for 500 ms, and then the applied current slightly increases at the point marked by triangle for 9 s. At the last second, a ramp of the input current traverses from 0.9I1 to 1.1I1 to show the depolarization block. (D) Phase-plane analysis for the resonator, with the same as for integrator parameters except for v1—is not used in this model, and a0 = 3.25 10−6, v4 = −75 mV, v5 = −5 mV, v6 = −55.5 mV, v7 = 18 mV. Voltage nullclines are shown for zero current at resting (blue curve), for Andronov-Hopf bifurcation (I0, yellow curve), and for saddle-node bifurcation at the onset of depolarization block (I1, red curve). (E) Dynamics of the resonator. The protocol is the same as for the integrator.
Listing 3.1
Listing 3.1
Implementation of PLS functions in C-language.
Listing 3.2
Listing 3.2
Implementation of PLS functions in Python.
Figure 5
Figure 5
Reproduction of immature, neuron-wide Plateau-Potential in five phenomenological models. (A1) Evoked and (A2) Spontaneous Plateau-Potentials recorded in vivo in rat visual cortex. Graphs reproduced from the data and by the scripts reported previously (Colonnese, 2014). (B) Five phenomenological models responses on input similar to dLGN neuron firing during the same period of the development. (B1) Izhikevich's model in regular firing mode, (B2) Exponential Leaky Integrate-and-Fire model with linear adaptation, (B3) Exponential Leaky Integrate-and-Fire model with non-linear adaptation, (B4) Type 1 neuron implemented in PLS-network (parameters are the same as in Figures 4A–C), (B5) Type 2 neuron implemented in PLS-network (parameters are the same as in Figures 4B,D,F). For each model, subplot BX.2 is the zoomed burst on subplot BX.1. Synaptic conductance was adjusted to obtain a realistic 0.7–1 Hz firing rate outside the burst. For (B3), synaptic conductance was set higher than the adjusted level in an attempt to obtain PP for the stronger synaptic drive.
Figure 6
Figure 6
Interpretation of piecewise-Linear w-nullcline as a trajectory jumps between two phase-plans with pure linear w-nullclines. (A) The phase-plan of PLS model, similar to Figure 1C. Note that trajectory goes through two voltage ranges, where w-nullcline has different slopes. (B) Two phase-plans for each voltage range. The trajectory jumps from one phase-plan to another then crosses −40 mV line (C) Visualization of this two phase-plans as an adjacent spaces which intersect along −40 mV switching line. Horizontal phase-plan corresponds to the system when the voltage is higher than −40 mV and a vertical phase-plan for voltages between −70 and −40 mV. Similarly, for the PL2D reduction of the Wang and Buzsáki model (Figure 1), two phase-plans are v-n spaces.

Similar articles

Cited by

References

    1. Beck V. C., Hull J. M., Isom L. L. (2019). Beyond dravet syndrome: characterization of a novel, more severe scn1a-linked epileptic encephalopathy. Epilepsy Curr. 19, 266–268. 10.1177/1535759719858339 - DOI - PMC - PubMed
    1. Ben-Ari Y., Gaiarsa J. L., Tyzio R., Khazipov R. (2007). Gaba: a pioneer transmitter that excites immature neurons and generates primitive oscillations. Physiol. Rev. 87, 1215–1284. 10.1152/physrev.00017.2006 - DOI - PubMed
    1. Beyeler M., Carlson K. D., Ting-Shuo Chou, Dutt N., Krichmar J. L. (2015). “Carlsim 3: a user-friendly and highly optimized library for the creation of neurobiologically detailed spiking neural networks,” in 2015 International Joint Conference on Neural Networks (IJCNN) (Killarney: ), 1–8. 10.1109/IJCNN.2015.7280424 - DOI
    1. Blumberg M. S., Dooley J. C., Sokoloff G. (2020). The developing brain revealed during sleep. Curr. Opin. Physiol. 15, 14–22. 10.1016/j.cophys.2019.11.002 - DOI - PMC - PubMed
    1. Bono J., Clopath C. (2017). Modeling somatic and dendritic spike mediated plasticity at the single neuron and network level. Nat. Commun. 8:706. 10.1038/s41467-017-00740-z - DOI - PMC - PubMed

LinkOut - more resources