Stimulus / rate reconstruction with Wiener Kernels.

  • Thread starter Thread starter Beserra
  • Start date Start date
  • Tags Tags
    Rate
AI Thread Summary
The discussion centers on reconstructing neuron firing rates using a Volterra expansion and the Wiener Kernel. The user outlines the mathematical framework involving stimulus values and firing rates, specifically the equation for estimating firing rates through the Wiener Kernel. They describe their approach using MATLAB, detailing the steps taken to compute cross-correlations and Fourier transforms. However, they encounter an issue where the resulting estimate of firing rates resembles the original stimulus rather than the expected firing rates. The user seeks clarification on potential errors in their MATLAB implementation, particularly regarding the convolution step and the interpretation of the cross-correlation functions.
Beserra
Messages
2
Reaction score
0
Hello.

I am having some trouble trying to reconstruct my firing rates using a Volterra expansion.
Basically it is known that , if :
s(t) = the value of a given stimulus at time t
r(t) = the firing rate of a neuron at time t

then we assume that a possible estimate of the firing rate can be achieved by
rest(t) = r_0 + ∫dτ D(τ)s(t-τ) where D(τ) is the Wiener Kernel.

Then the condition for the best estimate rest(t) is achieved when
FD(ω)*FQss(ω) = FQrs(-ω) . Where FA denotes the Fourier transform of a function A.

While I understand all this mathematically I can not apply it using Matlab.
I have s as a vector of positions of a given stimulus and rg as a vector of
rates of a neuron .

Then I make
QSS = xcorr(S,S);
QrS = xcorr(rg,S);
FQSS = fft(QSS);
FQrS = fft(QrS);
G = FQrS(length(FQrS):-1:1); % G(ω) = FQrS(-ω) because xcorr seems to put the t = 0
%at the middle of the vector
FD = G./FQSS'
D = ifft(FD);

When I make 'rest' proportional to 'conv(D, S)' I obtain not my firing rates but rather
a very similar version of my own stimulus S.

What am I doing wrong? Thanks!

Beserra
 
Biology news on Phys.org
I forgot to specify that Qab denotes the cross correlation function of a and b
 
I am reading Nicholas Wade's book A Troublesome Inheritance. Please let's not make this thread a critique about the merits or demerits of the book. This thread is my attempt to understanding the evidence that Natural Selection in the human genome was recent and regional. On Page 103 of A Troublesome Inheritance, Wade writes the following: "The regional nature of selection was first made evident in a genomewide scan undertaken by Jonathan Pritchard, a population geneticist at the...

Similar threads

Replies
1
Views
12K
Replies
50
Views
9K
Replies
48
Views
11K
Back
Top