Tutorial Contents

Stimulus-Response Analysis

Peri-stimulus time histogram (PSTH)

Joint PSTH

Evoked potentials

See also ...

Contents

Stimulus-Response Analysis

This section deals with stimulus-response analysis in which the time of the stimulus can be marked by a point-process event. This is appropriate for stimuli which are themselves very brief, like electrical pulses, or pre-synaptic spikes. It may not be appropriate for stimuli that occur over an extended time, such as a olfactory signal or a sound tone, unless that extended time can be reduced to a single point such as its onset time, or peak intensity.

There are two types of analysis. Histogram-based analysis is used if the response as well as the stimulus can be marked by point-process events. Waveform-based analysis is necessary if the response takes the form of a continuous change in a signal, such as an evoked potential.

Peri-Stimulus Time Histogram (PSTH)

The peri-stimulus time histogram is the standard way of displaying the relationship (if any) between a stimulus and response when both parameters can be regarded as point processes in a time series – for example, the time of occurrence of spikes in a pre-synaptic neuron (the stimulus) and spikes in a post-synaptic neuron (the response).

These are simulated data (constructed in Neurosim) in which a pre-synaptic neuron (trace 2, spikes marked by events in channel b) makes an excitatory connection to a post-synaptic neuron (trace 1, spikes marked by events in channel a). The pre-synaptic neuron was stimulated to spike by an external current pulse once every 5 seconds. The post-synaptic neuron shows background spikes due to random input, but the pre-synaptic neuron is silent unless stimulated.

You should now see the image below:

Peri-stimulus time histogram
Peri-stimulus time histogram, with bootstrap confidence intervals.

There is clearly an increase in the probability of spiking in the post-synaptic neuron immediately following a pre-synaptic spike.

Normalized Plot

The plot now shows the per-stimulus average count in each bin, with the standard deviation of the average shown as a vertical blue line. Thus the background spike average, as indicated by the pre-stimulus bins, is about 2.5 spikes per 125 ms (the bin width), which rises to about 4.5 spikes in the 125 ms immediately following each stimulus.

Raster Plot

The histogram combines all the responses into a single display, but sometimes it is useful to see individual responses in more detail.

The display parameters now match those of the histogram. Each row represents a trial, i.e. a spike in the stimulated pre-synaptic neuron, while within each row each response spike in the post-synaptic neuron is marked by a small vertical bar. The width of the bar can be adjusted with the Line size parameter. The increase in spiking in the response neuron shortly after the stimulus is clearly visible.

The response in the mid part of the display is shown in red because the corresponding response events (in channel b) have been edited to have a red colour, and the Colour: From events option is selected by default. The colour is completely meaningless in this case, but colouring could be used to highlight a particular experimental condition applying to those responses, such as drug application.  If you select Colour: Choose, the display is shown in the Target colour (this does not affect any colours applied to events). To change the Target colour, just click the coloured button.

You can select responses by clicking Sel and then dragging the mouse around them. If you control-click Sel, the selection is constrained to a rectangular shape, and can be adjusted after definition by dragging a corner or edge. The events representing selected stimulus-response pairs can then be tagged (click Tag) or coloured with the Target colour (click Colour sel). You can also List the numerical values of the stimulus-response pairs.

List Counts

It may be useful to get a simple count of response events within a certain time window after each stimulus.

The Evoked response counts list in the dialog shows the number of events in a 500 ms window following each stimulus event. However, note that with the current file, not all of those events will actually have been evoked by the stimulus, since there is a certain level of spontaneous background spiking.

Joint Peri-Stimulus Time Histogram

The joint peri-stimulus time histogram (JPSTH) is is a rather specialized form of analysis that looks for connections between two neurons, when both of them are strongly influenced by activity in a third. In standard analysis, the effect of the third neuron may obscure any influence that the other two may have on each other. The JPSTH procedure separates out the influences, and is described here.

Evoked Potentials

An evoked potential is any neural waveform produced in response to (i.e. evoked by) an external stimulus. In clinical neuroscience the term is used mainly for electroencephalographic responses to visual, auditory or touch stimuli. In non-clinical neuroscience the potential may simply be a PSP recorded in a single neuron. Individual evoked responses are often embedded in a lot of noise and may have to be enhanced by signal averaging in order to be detected (although not in the following example).

The recordingThe recording is from a fast flexor (FF) motorneuron in the third abdominal ganglion of a crayfish. The first root was stimulated with extracellular electrodes to elicit a spike in the segmental giant (not shown), which then generates a mixed electrical/chemical EPSP in the FF. shows EPSPs generated in a neuron in response to a series of extracellular stimuli. The original data were collected using the CED Signal program, but the file has been saved as a native Dataview file and edited to remove details not needed for this tutorial. There are 201 frames (sweeps) in total, and the start of each frame is marked by an event in channel a. Each frame is 35 ms in duration and shows a single stimulus and the evoked EPSP (indicated by annotations in frame 2). The frames were recorded at 10 sec intervals, but are displayed contiguously in the file, so the start and end times on the X axis do not reflect the real elapsed time of the experiment.

Serotonin (5HT) was applied after about 5 minutes, and then washed off about 10 minutes later. The application and wash times have markers.

There is definitely a change in membrane potential, but the EPSP is hard to see because of the dominant stimulus artefact.

Now we will look at the evoked response in detail.

Colour event sequence

This causes sweeps to be coloured according to their position in the event sequence.

The Scope view should now look like this:

Scope view
The Scope view showing evoked responses colour-coded by sequence.

The sweep colours indicate that the neurone depolarises during the experiment, although the darkest red is below the peak depolarization, indicating slight recovery towards the end of the experiment.

Raster Display

Another way of viewing the time dependence of changes is with a colour-coded raster display.

This shows a display in which each row is a sweep (earliest at the top), each column is a time bin, and the colour maps the amplitude of the signal. Adjusting the settings will reveal more detail.

The raster plot should now look like this:

2D Intensity raster
2D Intensity raster annotated to indicate changes in resting membrane potential and EPSP peak amplitude and duration during an experiment.

Align baselines

It is very clear from the preceding analyses that the neuron depolarises after applying the drug, but it is not immediately obvious whether the EPSP changes amplitude, or simply shifts positive.

This offsets each sweep after the first so as to have the same average potential over the first 1 ms as the first sweep has, i.e. it aligns the baselines. It is now obvious that the relative amplitude of the EPSP first increases, then decreases, independently of any changes in resting membrane potential.

Note that the alignment only occurs within the Scope view display - the underlying data are untouched.

Measure potential

Now we are ready to measure the membrane potential and EPSP peak amplitude.

Red and blue cursors should now be visible in the Scope view, with the red cursor aligned with the peak of the EPSP and the blue cursor in the pre-stimulus region where the membrane potential is at its resting level. If necessary, these cursors can be dragged in the view to get them into the right location.

Effect of 5HT
The effect of 5HT on EPSP amplitude and resting membrane potential in a crayfish motorneuron. EPSPs were elicited at 10 s intervals by an extracellular stimulus. The membrane potential was measured just before the stimulus. 5HT was applied during the time indicated by the green bar. The graph was constructed in Excel from data obtained by measurements made in the Scope view.

Important note: This procedure works because the time of the peak of the EPSP is almost constant relative to the start of each recording sweep, and so a single cursor location can measure all peaks simultaneously. If it varied, a more elaborate process would be necessary. E.g.

Average evoked potentials

You can average sweeps in the Draw/Average/Measure dialog box display by checking the Avg box, but it would be nice to have separate averages for control (pre-drug) and experimental potentials.

Combining traces from different files

We now have 2 files, showing the average of the EPSP before and during drug application. To facilitate comparison, it would be nice to combine these into a single file.

You can easily import traces from one file to another so long as both files are open in the same instance of DataView and so long as they both have the same sample time and the same number of samples per trace.

When the new file loads it should have 2 traces in it. To compare the traces directly it is useful to place them on a single axis.

The two averaged traces are now superimposed on axis 1.

Align baselines

To compare the relative relative amplitudes of the EPSPs it would be useful to remove the DC baseline shift caused by the drug.

When the new file loads, note the two traces now have their baseline membrane potentials aligned. After scaling adjustment, the data might look like this:

Evoked EPSPs
Average evoked potentials before (red) and after (blue) drug application. Baselines have been aligned to remove the effect of the drug on membrane potential.

Important note: This alignment procedure has changed the actual data within the file (unlike that in the Scope view described earlier), and so needs to be carefully documented.

See also ...

Event cross-correlation analysis.