Skip to content

Simulates a Leaky Integrate and Fire (LIF) neuron model using Python. Visualizes membrane potential, spike events, and neuronal dynamics over time.

Notifications You must be signed in to change notification settings

Aryn-xy/LIF-Neuron-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Leaky Integrate & Fire (LIF) Neuron Simulation

A simulated neuron model that integrates incoming current (input), gradually loses voltage due to leakiness, and generates a spike when the membrane potential crosses a threshold.

  • Neuron receives an input current
  • Membrane potential increases gradually.
  • If the threshold is crossed, it fires and resets
  • All spike times are plotted.
  • The neuron updates using the differential equation :

Equation

dV = (-V + I)*(dt/tau)

Notations

  • V : Membrane potential (voltage)
  • I : Input current
  • tau : Membrane time constant (leakiness)
  • dt : Time step (simulation resolution)
  • dV : Change in membrane potential during one time step

Sample Output

LIF Neuron Simulation Plot

About

Simulates a Leaky Integrate and Fire (LIF) neuron model using Python. Visualizes membrane potential, spike events, and neuronal dynamics over time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages