Multi-timescale adaptive threshold model (Kobayashi et al 2009) (NEURON)

 Download zip file 
Help downloading and running models
" ... In this study, we devised a simple, fast computational model that can be tailored to any cortical neuron not only for reproducing but also for predicting a variety of spike responses to greatly fluctuating currents. The key features of this model are a multi-timescale adaptive threshold predictor and a nonresetting leaky integrator. This model is capable of reproducing a rich variety of neuronal spike responses, including regular spiking, intrinsic bursting, fast spiking, and chattering, by adjusting only three adaptive threshold parameters. ..."
1 . Kobayashi R, Tsubo Y, Shinomoto S (2009) Made-to-order spiking neuron model equipped with a multi-timescale adaptive threshold. Front Comput Neurosci 3:9 [PubMed]
Model Information (Click on a link to find other models with that property)
Model Type: Neuron or other electrically excitable cell;
Brain Region(s)/Organism:
Cell Type(s): Multi-timescale adaptive threshold non-resetting leaky integrate and fire;
Gap Junctions:
Simulation Environment: NEURON; Python;
Model Concept(s): Parameter Fitting; Activity Patterns; Bursting;
Implementer(s): Appukuttan, Shailesh [shailesh.appukuttan at; appukuttan.shailesh at;];
import numpy
from neuron import h, gui

dummy_sec = h.Section()
model = h.MATmodel(dummy_sec(0.5))

# Generating noisy current (can be replaced with loading current from file)
i_dt = 0.1 #ms
i_start = 0 #ms
i_stop = 1000 #ms
i_amp = 0.5 #nA
i_t = numpy.arange(i_start, i_stop+i_dt, i_dt)
i_vals = numpy.random.normal(i_amp, i_amp/5.0, len(i_t))

# Feeding noisy current values into model
i_vals_hoc = h.Vector()
i_t_hoc = h.Vector()
i_vals_hoc = i_vals_hoc.from_python(i_vals)
i_t_hoc = i_t_hoc.from_python(i_t), i_t_hoc, 1)

t_vec = h.Vector()
i_vec = h.Vector()
v_vec = h.Vector()

h.tstop = 700
h.v_init = model.vm
i_vec1 = i_vec.to_python()
v_vec1 = v_vec.to_python()
# Changing the start and stop
model.t_start = 250 #ms
model.t_stop = 500 #ms
i_vec2 = i_vec.to_python()
v_vec2 = v_vec.to_python()

from matplotlib import pyplot
fig = pyplot.figure(figsize=(8,8))
pyplot.suptitle("Demo with noisy current input", fontsize=16, fontweight='bold')

pyplot.plot(t_vec, i_vec1, 'r')
pyplot.plot(t_vec, i_vec2, 'b')
pyplot.margins(x=0.0, y=0.1)
pyplot.title('Current Input')
pyplot.xlabel('time (ms)')
pyplot.ylabel('current (nA)')

pyplot.plot(t_vec, v_vec1, 'r')
pyplot.margins(x=0.0, y=0.1)
pyplot.title('Default Start/Stop')
pyplot.xlabel('time (ms)')
pyplot.ylabel('potential (mV)')

pyplot.plot(t_vec, v_vec2, 'b')
pyplot.margins(x=0.0, y=0.1)
pyplot.title('Changed Start/Stop')
pyplot.xlabel('time (ms)')
pyplot.ylabel('potential (mV)')


Loading data, please wait...