This project implements three neuron models: LIF (Leaky Integrate-and-Fire), ELIF (Exponential Leaky Integrate-and-Fire), and AELIF (Adaptive Exponential Leaky Integrate-and-Fire). These models simulate neuron behavior and analyze their responses to different input currents using the Forward Euler method.
This project is part of the computational neuroscience course. The goal is to understand and simulate the dynamic behavior of neurons using different computational models. The project includes the implementation of various input current types and analysis of neuron responses.
-
LIF (Leaky Integrate-and-Fire) Model:
This model simulates a basic leaky neuron and captures how its membrane potential evolves over time with different input currents. -
ELIF (Exponential Leaky Integrate-and-Fire) Model:
An extended version of the LIF model that introduces exponential terms to capture the more complex spiking behavior of neurons. -
AELIF (Adaptive Exponential Leaky Integrate-and-Fire) Model:
Adds an adaptation mechanism, modeling how neurons gradually adapt to constant inputs over time.
The project explores the response of neurons to several types of input currents:
- Constant Input
- Step Input
- Sinusoidal Input
- Noisy Input
For each type of input, we simulate the neuron's membrane potential changes and firing rates (frequency-current plots).
-
Clone the repository:
git clone https://github.com/MohaZamani/Neuron-Models.git
-
Install necessary dependencies:
pip3 install -r requirements.txt
-
To run the simulations, open the respective Jupyter notebooks for each neuron model:
- For the AELIF model, open
AELIF_SIM.ipynb
. - For the ELIF model, open
ELIF_SIM.ipynb
. - For the LIF model, open
LIF_SIM.ipynb
.
You can run these notebooks using Jupyter by executing:
jupyter notebook
- For the AELIF model, open
Results of the simulations and detailed analysis of the results, refer to the report.
- PymoNNtorch Framework
- Neural Dynamics online course resources: