-
Notifications
You must be signed in to change notification settings - Fork 6
Auditory DMS simulation
The following tutorial will show you how to install LSNM and perform an auditory Delayed Match-to-Sample (DMS) simulation. As shown in the figure below, the DMS experiment to be simulated consists of an auditory stimulus (S1) being presented to a subject, followed by a delay period during which time no stimulus is presented. At the end of the delay period, a second auditory stimulus (S2) is presented to the subject, after which the subject must respond whether S1 and S2 are the same or different (Response).
Because the input module to our auditory neural network (MGN) is composed of 81 units in the form of a 81x1 array, we need to organize our auditory inputs as a time-varying 81x1 array. We will initialize the units of our array to zero and, in order to turn on selected units within the grid, we will assigning values of 1.0 to those units. For this tutorial, we will make use of inputs representing frequency-modulated sweeps, all of them arranged in a time-varying 81x1 array and located in the script auditory_model/script_to_replicate_Husain_2004.py (This script replicates the experiment depicted in Figure 4 of Husain et al, 2004).
NOTE: If you already have a working copy of LSNM, go directly to STEP 2
-
Launch Firefox or another web browser available on your local Unix workstation and copy/paste the following internet address (or just click on the highlighted link if you are in a browser already): https://github.com/NIDCD/lsnm_in_python.
-
When the LSNM Github page displays, click on the button Download ZIP located on the right sidebar. Click on Save File to download the zip file containing the LSNM code to your Downloads folder.
-
Inspect your downloads folder to make sure you have downloaded the LSNM files. There should be a file called lsnm-master.zip in it.
-
Unzip the file in your preferred location:
$ unzip lsnm-master.zip
-
Change the name of the lsnm directory (to keep the sim executable from having problems with the special character -:
$ mv lsnm-master lsnm
-
NOTE: If you do not have access to an internet browser you can grab a copy of the LSNM repository by typing the following command on your local Unix workstation. Please note that at a directory called sim will be created in the directory where you are currently located:
$ git clone https://github.com/NIDCD/lsnm_in_python.git
$ cd lsnm_in_python/auditory_model/subject_original
$ mkdir tutorial
$ cd tutorial
$ python2.7 ../../../simulation/sim.py &
A GUI window will be displayed on the screen.
Please select your model as auditory_model/model.txt in the "Model Description File" field, your weights as auditory_model/subject_original/weightslist.txt in the "Weights List File" field, and your script as auditory_model/script_to_replicate_Husain_2004.py in the "Simulation script File" field.
Leave the "File containing neural net" field empty. You would use this field (instead of using "Model Description File" and Weights List File") to specify a single file (of type JSON) that contains the description of a model and weights among regions.
Do not select the "Use Hebbian Learning" option for this tutorial.
Do not select "Use TVB Connectome" or "Vary weights to create new subject" at this point. The "Use TVB Connectome" option will embed the given LSNM nodes into a given connectome and run both LSNM and TVB simulators simultaneously. The "Vary weights to create a new subject" will multiply all weights by a given factor (usually a random number between 0.95 and 1.0) to create a new set of weights that will represent a "new" simulated subject (useful for running multi-subject experiments).
Now, press the "Run simulation" button. You should see a blue bar being updated as the simulation progresses. When the simulation ends, press the "Quit LSNM" button.
$ python2.7 ../../../visualization/plot_neural_auditory_topographic.py &
After which you should be able to see the following plot:
$ python2.7 ../../analysis/compute_syn_auditory.py &
$ python2.7 ../../analysis/compute_BOLD_balloon_model_auditory.py &
$ python2.7 ../../analysis/compute_PSC_auditory.py &
$ python2.7 ../../analysis/compute_MEG_auditory.py &
About
Getting Started
Essentials
Tutorials
Extras