Neural Network STDP Simulation

About this simulation:

This simulation models spike-timing dependent plasticity (STDP) in a neural network with excitatory and inhibitory neurons using mean-field theory. The key equations being simulated are:

Key Equations

1. Firing Rate Dynamics

τr d𝐫⃗ dt = -𝐫 + 𝕎𝐫 + 𝕎X𝐫X

Where 𝐫 = [rE, rI] are the excitatory and inhibitory firing rates

2. Connectivity Matrices

𝕎 = ( (NE-1)wEE    -NIwEI NEwIE    -(NI-1)wII )
𝕎X = Nx ( wEX    0 0    wIX )

𝐫X = [aE, aI] are the external drive parameters

3. STDP Weight Evolution

d𝑤EE dt = (τSTDPwEE) rE(rE - b)
d𝑤EI dt = (τSTDPwEI) rI(rE - b)

Synaptic weights evolve based on pre- and post-synaptic activity with threshold b

Enter a value between 0 and 1 (e.g., 0.1, 0.2, 0.5)
Excitatory neuron drive parameter (typical range: 10-50)
Inhibitory neuron drive parameter (typical range: 10-50)
Total simulation duration in seconds (5-200)
Initial excitatory-to-excitatory weight (minimum 0)
Initial excitatory-to-inhibitory weight (minimum 0)

Typical parameter combinations to try: