Generic Sensory LPU Demo

This notebook illustrates how to simulate a generic LPU with input from sensory neurons. The generic LPU considered in this example serves as a template of LPU design, and can be extended to other sensory modulaties such as olfaction and vision systems.

Configuration

The generic LPU comprises two populations of neurons: local neurons and output neurons (Chiang et al., 2011). In order to provide input into the LPU, we include sensory neurons in this demo. These sensory neurons are driven by an artificial input stimulus. The overall structure of the model is depicted as follows:

The generic LPU employed in this example is randomly generated; between 30 and 40 neurons are included in each population. The sensory neurons and ouput neurons are modeled using the Leaky Integrate-and-Fire (LIF) neuron model, while each of the local neurons is modeled either as a spiking neuron using the LIF model or a graded potential neuron using the Morris-Lecar model. The synapses across each pairs of neuron populations are also created randomly. Roughly half of the pairs of neurons in the LPU are connected. We run the following code to generate the LPU configuration and the input stimulus:


In [1]:
%cd -q ~/neurokernel/examples/generic/data
%run gen_generic_lpu.py

Simulation

Once the configuration and the input stimulus are ready, we execute the entire model:


In [2]:
%cd -q ~/neurokernel/examples/generic
%run generic_demo.py

Visualizing Result

Next, we render the simulation output to a video clip:


In [3]:
%run visualize_output.py

The resulting video can be viewed below:


In [4]:
import IPython.display
IPython.display.YouTubeVideo('gIEchSQvffk')


Out[4]:

Reference

Ann-Shyn Chiang, Chih-Yung Lin, Chao-Chun Chuang, Hsiu-Ming Chang, Chang- Huain Hsieh, Chang-Wei Yeh, Chi-Tin Shih, Jian-Jheng Wu, Guo-Tzau Wang, and Yung-Chang Chen. Three-dimensional reconstruction of brain-wide wiring networks in Drosophila at single-cell resolution. Current Biology, 21(1):1–11, January 2011.