Chapter 09 - Neural Encoding and Decoding
Chapter 09 - Neural Encoding and Decoding
9.1 Introduction
These questions can arise when there are neurons that transmit
information about external stimuli that are sensed by an organism.
One famous example in neuroscience is visual stimuli consisting of
simple patterns of bars that are oriented in different directions.
1
MPHY2002: Introduction to Biophysics
the time interval of 0 to 1 seconds, and the second stimulus for the
time interval of 1 to 2 seconds. This experiment is repeated several
times (each repetition is called a “trial”). An example of membrane
potential recordings that could be made from a neuron during this
experiment is shown in Figure 1. In this simulated data, the membrane
potential has a resting potential of -70 mV, which briefly rises to 30 mV
during action potentials.
2
MPHY2002: Introduction to Biophysics
3
MPHY2002: Introduction to Biophysics
Pr N 1 t (0.1)
t
n
. With similar logic, the probability that the neuron generates
1 t
mn
.
the binomial coefficient m! m n !n ! . Putting all of the factors
m!
Pr N n t 1 t
n mn
(0.2)
m n !n !
Equation (0.2) is an approximation because it was obtained by
dividing the time interval into a finite number of intervals of
length t ; to obtain an exact expression, we need to consider the limit
as t 0 (since time is assumed to flow continuously, not in units of
4
MPHY2002: Introduction to Biophysics
mn
Pr N n t 1 t
n m
n!
T t
n
t 1 t
T t
n
(0.3)
n!
T
n
1 t
T t
n!
T
n
Pr N n 1
T
n!
(0.4)
T
n
T
1 1
n!
T
n
T
Pr N n lim 1 1
0 n!
(0.5)
T
n
T
lim 1 1
n ! 0
T
n
Pr N n e T (0.6)
n!
5
MPHY2002: Introduction to Biophysics
We state without proof that the mean and the variance 2 of the
T (0.7)
2 T (0.8)
Equation (0.7) tells us that the mean of N scales linearly with the
length of the time interval, T. When T 1 , , so we can interpret
Stimulus 1 1
Stimulus 2 2.
6
MPHY2002: Introduction to Biophysics
What are the probabilities that the neuron generates exactly 10 action
potentials in a time interval of 1 second, when a) horizontal bars are
presented and b) vertical bars are presented? These probabilities are
conditional probabilities since they are dependent on the stimulus that
is presented.
10 1
10
20 1
10
7
MPHY2002: Introduction to Biophysics
10 1
5
Pr N1 5 e101 0.0378
5!
3 1
5
Pr N 2 5 e31 0.101
5!
Using the assumption that the action potentials of the two neurons are
independent, the joint probability is a product of the probabilities for
the two neurons:
Pr N1 5 N 2 5 Pr N1 5 Pr N 2 5
0.0378 0.101 0.00381
8
MPHY2002: Introduction to Biophysics
The probability distributions for the two neurons are shown in Figure
2.
1
Promising research at the Massachusetts General Hospital (Boston, U.S.A.) described in the following video:
http://www.youtube.com/watch?v=QRt8QCx3BCo
9
MPHY2002: Introduction to Biophysics
10
MPHY2002: Introduction to Biophysics
5 1
7
10 1
7
S horizontal bars . The tilde (~) is used to express the fact that the
equation refers to an estimate, which may be different from the actual
value.2
2
When the tilde is placed on top of the random variable, as it is here, it does not refer to the complement, as it
does when it is in front of the random variable (as mentioned in Chapter 2).
11
MPHY2002: Introduction to Biophysics
Neuron 1 Neuron 2
Neuron 1
Pr N1 7 | S horizontal 0.104
Pr N1 7 | S vertical 0.0901
Neuron 2
12
MPHY2002: Introduction to Biophysics
Pr N1 7 N 2 8 | S horizontal
Pr N1 7 | S horizontal Pr N 2 8 | S horizontal
0.104 0.0298 0.00310
Pr N1 7 N 2 8 | S vertical
Pr N1 7 | S vertical Pr N 2 8 | S vertical
0.0901 0.132 0.0119
then we can calculate the probability that s was presented given that
exactly n action potentials were generated by the neuron,
Pr S s | N s . This calculation involves Bayes’ theorem, (Chapter
2), as follows:
13
MPHY2002: Introduction to Biophysics
Pr N n | S s Pr S s
Pr S s | N n (0.9)
Pr N n
Pr S horizontal 0.25
Pr S vertical 0.75
Horizontal Bars
5 1
7
Pr N 7 | S horizontal e 51
7!
0.104
Pr N 7 | S horizontal Pr S horizontal 0.104 0.25
0.0261
Vertical Bars
10 1
7
Pr N 7 | S vertical e 101
7!
0.901
Pr N 7 | S vertical Pr S vertical 0.901 0.75
0.0676
14
MPHY2002: Introduction to Biophysics
Pr N 7 Pr N 7 | S horizontal Pr S horizontal
Pr N 7 | S vertical Pr S vertical
0.0261 0.0676
0.0937
We can now use Equation (0.6) and calculate the posterior probability
of each stimulus:
Pr N 7 | S horizontal Pr S horizontal
Pr S horizontal | N 7
Pr N 7
0.0261/ 0.0937
0.2785
Pr N 7 | S vertical Pr S vertical
Pr S vertical | N 7
Pr N 7
0.0676 / 0.0937
0.7215
.
probabilities is larger: we can take the ratio of the two and the
denominator cancels out.
15