JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  January 2008

SPM January 2008

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Question on sampling rates, aliasing, noise and jitter

From:

Ken Roberts <[log in to unmask]>

Reply-To:

Ken Roberts <[log in to unmask]>

Date:

Wed, 30 Jan 2008 14:17:46 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (246 lines)

Hi Linda,

I read through your question, and as far as I can tell with my somewhat 
limited
background in signal processing, most of your reasoning about sampling rates
and so on is correct, but I think that in some ways, steering the 
discussion in
a different direction somewhat might be more helpful.

In short, one of the things to remember is that much of the models that are
built rely on assumptions that were made from empirical data.  So, for 
example,
no one really knows what the high-frequency components of a "true" hrf 
actually
are.  (by "true" I mean to refer to what the hrf might look like if we could
record it in the brain from a single trial with zero noise and super-high
sampling rate) The only way we know the shape of the hrf is by doing
event-related fMRI studies, and since those studies tend not to go any faster
than having a 1 second TR, we lack the high-frequency information that might
alias into a 1Hz sampling of the hrf.  However, the hrf does look 
pretty smooth
if a large number of averages are taken, so it is extremely reasonable 
to assume
that it is bandwidth-limited.

(there are also good physiological reasons that the "true" hrf is probably
smooth, but for most people designing cognitive er-fmri studies, the "why" of
the smoothness of the hrf isn't important)

Another thing to point out is that the essential problem of analyzing 
ER-fMRI is
how to separate the signal of interest from noise, which is much larger 
than the
relatively weak functional BOLD signal.  If there were high frequency 
components
in the "true" hrf that aliased into the signal, they will be indistinguishable
from noise.

The hrf function provided by SPM is referred to as "canonical"-- that 
is, it may
not match the "true" hrf of your subjects perfectly, but it can 
probably capture
most of the signal, and if the time-derivative and dispersion derivatives are
modelled as well, you catch even more.  Just as important as 
considering how to
appropriately model the hrf is the consideration of how to appropriately model
the noise as well.  This is indeed the essential problem of imaging: 
the GLM is
used to attribute the variance in the measured signal to regressors of 
interest
(like hrf-convolved onset trains); regressors not of interest (like regressors
used for head motion); and random noise.

Below the signature, I list a few papers that I have found really 
helpful, and I
also comment on your original letter.

Ken

AM Dale, Human Brain Mapping 8:109-114, 1999.
This paper develops the GLM in a concise manner, and, the thing about it that
was helpful to me, explicitly connects it to the earlier framework of
time-locked selective averaging.

MA Burock, ... AM Dale. NeuroReport 9, 3735-3739, 1998.
Great article on why jitter is important and what it does, with very intuitive
figures.

Design Efficiency in fMRI by Rik Henson
http://imaging.mrc-cbu.cam.ac.uk/imaging/DesignEfficiency
Great article on jittering, uses somewhat of a signal-processing perspective.


R.N.A. Henson, M.D. Rugg, and K.J. Friston. The choice of basis functions in
event-related fMRI. NeuroImage, 13(6):127, June 2001. Note: Supplement 1.
Keyword(s): event-related.
Good paper on how well different choices of basis expansion model the hrf.


Quoting Linda Seltzer <[log in to unmask]>:

> Signal processing discussion:
> This is what I have been looking into so far.  Please let me know whether
> this is correct.  I have seen the functions which Dr. Fromm has mentioned.
>     Consider a function of the amplitude of one voxel vs. time.  That is a
> time domain function with a sampling rate of 1/TR.  Before considering any
> upsampling, the onset vector will be a stream of delta functions and zeros,
> at the sampling rate 1/TR.  The hemodynamic response function (hrf) must
> also be at the same sampling rate.  The hrf acts as a filter which is
> convolved with the delta stream.  Now consider passing just one delta
> function through the filter.  Then the hrf is an impulse response of a
> finite-length digital filter.  The output of the convolution has to be band
> limited to half the sampling rate, i.e., half of 1/TR.  Otherwise there
> will be aliasing. Since I don't see any low pass filters accomplishing
> this, then the filter hrf itself has to have a frequency response whose
> passband has energy only below half the sampling rate.  I tried the
> function spm_hrf, and the filter it makes does appear to have a frequency
> response with this property.

Yes, but spm_hrf is only a pretty-good guess of what your particular subject's
hrf might look like, so consider it a rough approximation.


I ran spm_hrf with an input RT and then freqz
> in Matlab with a sampling rate of 1/TR.  So it seems that the way the basis
> function combinations are designed for spm_hrf, they create a filter with
> the right properties.  If anyone has more details on how this filter design
> works, I would like to read about it, since it is impressive that the blood
> response and filtering properties can be taken care of in one filter
> design.  Next, I am considering the upsampling.  I tried the hrf obtained
> in spm_hrf before the downsampling occurs. This means that the hrf has been
> upsampled by L=16.  Now the repetition of the spectrum occurs at L*Fs,
> where Fs is the sampling rate.  I looked at the output in Matlab and the
> bandlimiting was such that there was only a tiny bit of energy out of the
> original band, so that there is still no aliasing except for some possible
> tiny amount of noise.

Convolution in the time domain is straight multiplication in the frequency
domain.  So, after the convolution, the resulting signal cannot have any
frequencies that are not present in _both_ input signals.


This is why the hrf can be downsampled at the end of
> spm_hrf without requiring a decimation filter.  The next question is the
> jitter.  spm_hrf allows for delaying the filter's response.

I don't follow here-- are you referring to the use of the 
time-derivative of the
canonical hrf when you mention "delaying", or modification of the hrf 
using the
"params" argument of spm_hrf(TR, params)?

My question,
> which I will also look into independently, is how this affects the spectrum
> of the output of the convolution, or does it affect the phase only and not
> the magnitude?  I would also like to know how this is related to the idea
> of parametric modulation, which I am going to begin studying.
> Linda Seltzer
> [log in to unmask]
>
>> SPM mostly does things on the time side, not the frequency side, so a lot
>> of what you're describing isn't directly there but rather implicit only.
>> The viewpoint is conceptually linear models (from statistics), rather than
>> dsp, though the usual mathematical equivalences still exist of course, and
>> in the literature people look at things both ways.
>>
>> Upsampling/downsampling occurs when the model is specified.  The canonical
>> hemodynamic response function and the onset times are specified at a
>> relatively fine time scale, and that scale is used in the convolution you
>> refer to, then downsampled to the true experimental sampling rate.  In
>> spm_fMRI_design.m (SPM2, version % @(#)spm_fMRI_design.m 2.34 Karl Friston
>> 03/01/30), the code is
>>
>> % create convolved stimulus functions or inputs
>> %=======================================================
>> % Get inputs, neuronal causes or stimulus functions U
>> %-------------------------------------------------------
>>         U = spm_get_ons(SPM,s);
>> % Convolve stimulus functions with basis functions
>> %-------------------------------------------------------
>> [X,Xn,Fc] = spm_Volterra(U,bf,V);
>> % Resample regressors at acquisition times (32 bin offset)
>> %-------------------------------------------------------
>> try
>>         X = X([0:(k - 1)]*fMRI_T + fMRI_T0 + 32,:);
>> end
>>
>> Best,
>>
>> Stephen J. Fromm, PhD
>> Contractor, NIMH/MAP
>> (301) 451--9265
>>
>>
>>
>>
>> From: Linda Seltzer
>> Sent: Thu 2008-01-17 6:56 PM
>> To: Stephen J. Fromm; [log in to unmask]
>> Subject: Re: [SPM] Question on sampling rates, aliasing, noise and jitter
>>
>>
>> I'm also talking about where in the code each step is handled in SPM.
>> > On Wed, 16 Jan 2008 12:31:57 -0800, Linda Seltzer
>> > <[log in to unmask]>
>> > wrote:
>> >
>> > >Does anyone written a paper or tutorial applying the well-known
>> concepts
>> >
>> > of
>> > >sampling, aliasing, Nyquist theorem, etc. to data analysis in SPM?
>> > >Specifically, TR and sampling rate; spectrum of voxel data vs time,
>> the
>> > >same with noise; how the concept of jitter relates to this; upsampling
>> > to
>> > >convolve the delta fns with hemodynamic response (for the regressors)
>> > and
>> > >then downsampling the signal back, when each step is done.  I would
>> like
>> >
>> > to
>> > >see a description from a signal processing engineering viewpoint of how
>>
>> > all
>> > >of the sampling rates and bandwidths are handled.  If there is nothing
>> > >formal, but someone has made some notes deriving all of this, I would
>> > like
>> > >to read them and learn more.  I would like to have an overview of all
>> of
>> > >the sampling rates and spectrums involved.
>> > >Linda Seltzer
>> > >[log in to unmask]
>> > >[log in to unmask]
>> >
>> >=========================================================================
>> >
>> > IMHO a useful way to look at this is to not restrict consideration to
>> SPM,
>> >
>> > but think about fMRI analysis in general (restricted to the case of
>> > univariate statistics, as opposed to multivariate methods).  Then look
>> for
>> >
>> > articles in the published literature via Google or PubMed.  There's
>> quite
>> >
>> > a bit out there.
>> >
>> > Just to take an interesting an relevant example, the problems of aliased
>>
>> > noise from cardiac and respiratory cycles is discussed quite
>> frequently.
>> >
>>
>



----------------------------------------------------
Ken Roberts
Woldorff Laboratory
Center for Cognitive Neuroscience, Duke University
(919) 668-1334
----------------------------------------------------

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager