Michael J. Black - CS295-7 2005 Brown University
Topics in Brain Computer Interfaces Topics in Brain Computer Interfaces CS295 CS295-
- 7
Topics in Brain Computer Interfaces Topics in Brain Computer - - PowerPoint PPT Presentation
Topics in Brain Computer Interfaces Topics in Brain Computer Interfaces CS295- -7 7 CS295 Professor: M ICHAEL B LACK TA: F RANK W OOD Spring 2005 Probabilistic Inference Michael J. Black - CS295-7 2005 Brown University Brown University
Michael J. Black - CS295-7 2005 Brown University
Michael J. Black - CS295-7 2005 Brown University
Michael J. Black - CS295-7 2005 Brown University
After 300 trails “Catch” trails Forces used to counter field.
Michael J. Black - CS295-7 2005 Brown University
Michael J. Black - CS295-7 2005 Brown University
software (partially done).
programming different force fields (not done).
Michael J. Black - CS295-7 2005 Brown University
k k
y y x x k y k x k
(Linear in velocity)
x
v
x
v
y
v
y
v
Michael J. Black - CS295-7 2005 Brown University
k y k x k
(Linear in position)
acceleration y y x x
Michael J. Black - CS295-7 2005 Brown University
k n k k k
, , 2 , 1
Firing rates of n cells at time k
k y k x k y k x k k k
, , , ,
Hand kinematics at time k
1 1
k k k
−
1 1
k k k
−
Michael J. Black - CS295-7 2005 Brown University
1 −
k k k
d k k T k d k k T k
− −
: 2 : 1 v
Michael J. Black - CS295-7 2005 Brown University
1 −
k k k
k k
Michael J. Black - CS295-7 2005 Brown University
Typically there will be uncertainty in our models
k k
But we want to estimate something about the state x given noisy measurements z
1
j t t j t t
− −
This defines the likelihood of the observations given the state:
k k x
Michael J. Black - CS295-7 2005 Brown University
Probability
1
a
2
a
3
a
5
a
4
a
7
a
6
a
Let X be a random variable that can take on one of the discrete values
7 1
Michael J. Black - CS295-7 2005 Brown University
Probability
i i
i
7 1
= i i
1
a
2
a
3
a
5
a
4
a
7
a
6
a
Michael J. Black - CS295-7 2005 Brown University
Probability
x
Expected value or expectation of a random variable
x
2 2 2
?
1
a
2
a
3
a
5
a
4
a
7
a
6
a
Michael J. Black - CS295-7 2005 Brown University
, 2 , 1 , 2 2 , 1 1 j i j i
, 1 , 2
, 2 , 1
i j
a a j i a
Statistical independence
Michael J. Black - CS295-7 2005 Brown University
Dependence - Knowing the value of one random variable tells us something about the other.
Michael J. Black - CS295-7 2005 Brown University
If A and B are statistically independent?
Michael J. Black - CS295-7 2005 Brown University
A and B are statistically independent if and only if
Michael J. Black - CS295-7 2005 Brown University
A is independent of B, conditioned on C If I know C, then knowing B doesn’t give me any more information about A. This does not mean that A and B are statistically independent
Michael J. Black - CS295-7 2005 Brown University
B B
Michael J. Black - CS295-7 2005 Brown University
Michael J. Black - CS295-7 2005 Brown University
normalization constant (independent of mouth) Prior (a priori – before the evidence) Likelihood (evidence)
Posterior a posteriori probability (after the evidence)
We infer hand kinematics from uncertain evidence and our prior knowledge of how hands move.
Michael J. Black - CS295-7 2005 Brown University
k k k
1 k k k
− )
1 2
neural firing rate of N=42 cells in M=70ms behavior (e.g. hand position, velocity, acceleration) noise (e.g. Normal or Poisson)
linear, non-linear?
Michael J. Black - CS295-7 2005 Brown University
… …
“cell 8” “cell 18”
Michael J. Black - CS295-7 2005 Brown University
… …
t t
Michael J. Black - CS295-7 2005 Brown University
… …
t t
⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ + ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ = ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎣ ⎡
n t y t t a n y n x n a y x a y x t n t
a y x h h h h h h h h h z z
y y y
η η η M M L M L L M
2 1 , , , , , 2 , 2 , 2 , 1 , 1 , 1 , , 1
Michael J. Black - CS295-7 2005 Brown University
⎟ ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛
− − − 42 2 1 j k j k j k
z z z M firing rate vector (zero mean, sqrt) 42 X 6 matrix
⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛
k k k k k k
y x y x
a a v v y x
system state vector (zero mean)
k k j k
−
Michael J. Black - CS295-7 2005 Brown University
k k k k k
Recall:
2 2 σ
Michael J. Black - CS295-7 2005 Brown University
=
n i t t i t t n t t
1 , , , 2 , 1
) / )) ( ( 2 1 exp( 2 1 ) | (
2 2 , , , , , ,
σ σ π
t y a i t y i t x i t i t t i
a h y h x h z x z p
y
+ + + − − = L v For a single cell: What about multiple cells? If the firing rates are conditionally independent:
If we know xt, then the firing rates of the other cells tell us nothing more about zi,t
Michael J. Black - CS295-7 2005 Brown University
x y y x y x xy
x y x x x
2 2
first moment second moment
y x
yy yx xy xx T
Michael J. Black - CS295-7 2005 Brown University
−
1 2 / 1 2 /
T D
Mahalanobis distance
2
∆ Multivariate Gaussian (Normal)
Michael J. Black - CS295-7 2005 Brown University
hyperellipsoids of constant Mahalanobis distance
2
∆
Michael J. Black - CS295-7 2005 Brown University
yy yx xy xx T
If x and y are statistically independent then σxy=0. If σxy=0, then x and y are uncorrelated. Uncorrelated does not imply statistically independent. Uncorrelated and Gaussian does. PCA de-correlates the directions but unless the data is Gaussian, the coefficients are not statistically independent.
Michael J. Black - CS295-7 2005 Brown University
… …
t t j t
−
t t
Full covariance Q matrix models correlations between cells. H models how firing rates relate to full kinematic model (position, velocity, and acceleration).
Michael J. Black - CS295-7 2005 Brown University
… …
likelihood
)) ( ) ( exp( 1 ) | (
1 T 2 1 t t t t t t t
x H z Q x H z D x z p v v v v v v − − =
− −
t t
Michael J. Black - CS295-7 2005 Brown University
Poisson probability
) 1 ( 1 ~ + − + =
k k k
z mean z z
k k j k
−
We’ll come back to Poisson models…
Michael J. Black - CS295-7 2005 Brown University
⎟ ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛
− − − 42 2 1 j k j k j k
z z z M firing rate vector (zero mean, sqrt) 42 X 42 matrix
L
, 2 , 1 ,
= k k
42 X 6 matrix
⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛
k k k k k k
y x y x
a a v v y x
system state vector (zero mean) 6 X 6 matrix
6 X 6 matrix
k k k
+ 1
L
, 2 , 1 ,
= k k
k k j k
−
Michael J. Black - CS295-7 2005 Brown University
2
k k k H
2 1
+ k k k A
Linear regression:
Michael J. Black - CS295-7 2005 Brown University
T 1 1 1
k k k k k k k
+ + +
T
k k k
Centralize the training data, such that
k k
What about the covariance matrices?
Michael J. Black - CS295-7 2005 Brown University
2
k k k H
Michael J. Black - CS295-7 2005 Brown University
normalization constant (independent of mouth) Prior (a priori – before the evidence) Likelihood (evidence)
Posterior a posteriori probability (after the evidence)
We infer hand kinematics from uncertain evidence and our prior knowledge of how hands move.
Michael J. Black - CS295-7 2005 Brown University