A summer project where I wanted to fit a generalised linear model to spiking data and systematically evaluate the performance of a recurrent linear-nonlinear Poisson model. To test the performance of the model data is generated from the Izhikevich neuron (a reduced model of the Hodge-Huxley model).
Data was generated by feeding in random step currents into the Izhikevich dynamical model characterized by
This model can describe many ifferent firing behaviour by changing the 4 free parameters
The dictionary behaviour_types in Izhikevich.py contains present parameters and current input for the following behaviours:
- Tonic spiking
- Tonic bursting
- Phasic spiking
- Phasic bursting
- Mixed modes
- Spike frequency adaption
- Type I
- Type II
- Spike latency
- Resonator
- Integrator
- Rebound spikes
- Rebound burst
- Threshold variablility
- Bistability I
- Bistability II
This returns a Struct dynamics which characterizes the dynamics, time, and spike events.
From top to bottom: the fast dynamics of the neuron (V), where the dots mark a spiking event, the slow dynamics of the neuron, the input current injected to the neuron, and the binned spike data using a bin width of 500 ms.
Assume spike count,
where the distribution of an event is defined as
The count rate
To ensure the encoded lambda is positive we pass the encoded stimulus and history through an exponential non-linearity function. Therefore,
You have a set of
To fit the GLM to spiking data we want our parameterised distribution
As each event is assumed to be conditionally independent we can factorise the likelihood probability which yield,
Taking the log of the likelihood will speed up convergence an also reduces the complexity of the analytical solution.
and in the recurrent linear-nonlinear Poisson model,
To find the maxima we take the derivative with respect to the
Tonic bursting: bin_width = 2000 n_filter = 17 n_hist_filter = 7
Work was a replication of works from on Weber, A. & Pillow, J. 2017
Weber, A. I., & Pillow, J. W. (2017). Capturing the Dynamical Repertoire of Single Neurons with Generalized Linear Models. In Neural Computation (Vol. 29, Issue 12, pp. 3260–3289). MIT Press - Journals. https://doi.org/10.1162/neco_a_01021
Izhikevich, E. M. (2003). Simple model of spiking neurons. In IEEE Transactions on Neural Networks (Vol. 14, Issue 6, pp. 1569–1572). Institute of Electrical and Electronics Engineers (IEEE). https://doi.org/10.1109/tnn.2003.820440
