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  December 2018

SPM December 2018

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Strange AR processes from Bayesian estimation

From:

Carsten Allefeld <[log in to unmask]>

Reply-To:

Carsten Allefeld <[log in to unmask]>

Date:

Tue, 4 Dec 2018 17:12:08 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (216 lines)

Dear Will,

thanks for the information!

> In this part of SPM the AR coefficients are estimated using a
> regression approach in which future time series values (here - the
> error time series) are regressed onto previous ones. An alternative
> approach e.g. Burg/Yule-Walker method, first computes the
> autocorrelation function of the time series and then uses the
> Yule-Walker relations to estimate the AR coefficients.

Is the regression estimation also implemented in a Bayesian way? If yes, is there a way to obtain the posterior precision of the estimates, and is any kind of (e.g. spatial smoothness) prior implemented? If not, what is the role of AR estimation in "Bayesian 1st-level"? Also, it sounds like the regression is applied to residuals – how do you make sure the deviation between error variance–covariance and residual variance–covariance doesn't bias your estimate (what's usually dealt with by ReML)? Sorry, lots of questions...

> Perhaps its the case that with higher order models (e.g. 6th order)
> there are more degrees of freedom to get less well-behaved estimates
> of the autocorrelation function (sorry to be vague). So it may be
> worth trying a lower order model (or trying some model order
> selection here - you could use spm_ar.m from the spectral toolbox to
> look at other model orders (on the GLM residuals) - with the .fm
> field returning an approximation to the model evidence).

I only looked at "Bayesian 1st-level" to have voxel-wise estimates of autocorrelation, which isn't available in "Classical 1st-level". Outside of SPM, the two approaches seem to be AR(6) and ARMA(1,1), that's why I selected order 6. Do you recommend order 3?

Best,
Carsten



> From: Carsten Allefeld <[log in to unmask]>
> Sent: 03 December 2018 18:13
> To: Guillaume Flandin
> Cc: [log in to unmask]; William Penny (PSY - Staff)
> Subject: Re: [SPM] Strange AR processes from Bayesian estimation
> 
> 
> Dear Guillaume & Will,
> 
> I noticed a minor inaccuracy in my code transforming AR coefficients
> into autocorrelation functions. According to comparison with the
> analytic solution for specific coefficient values, I the corrected
> version has an absolute error on the order of 1e-16. The updated
> results have minor changes, but the basic observations are the same.
> 
> There are 13256 in-mask voxels. Of these, 16 voxels have estimated AR
> coefficients whose roots' magnitudes are not all below 1 (describing
> nonstationary AR processes).
> 
> The autocorrelation functions of the remaining 13240 voxels are shown
> superimposed in the attached autocorrelation.png. As you notice, a
> non-neglibile number of them have autocorrelation functions that do
> not decay to 0 over the course of 128 scans (= 256 s).
> 
> autocorrelation_slice.png shows the autocorrelation over lags 0 to
> 127 in slice 13 (of 23), containing 1150 in-mask voxels. It is
> apparent that the voxels with long-range autocorrelation lie mainly
> at the edge of the brain mask.
> 
> Guillaume, you asked for time series. timeseries.png shows the
> underlying BOLD measurements, in the top panel for the 16 voxels
> with nonstationary AR, and in the lower panel for the 71 voxels
> where the autocorrelation at lag 127 is larger than 0.1. I can't say
> that I notice anything special or common to these timeseries.
> 
> For the moment I will proceed with my data analysis after excluding
> the 16 + 71 = 87 "weird" voxels. But I think it would be useful if
> you could look into this further. In particular, in my opinion an AR
> estimation method should not produce coefficients describing a
> nonstationary process. Do you agree?
> 
> Thank you!
> 
> Best,
> Carsten
> 
> 
> ----- Original Message -----
> > From: "Guillaume Flandin" <[log in to unmask]>
> > To: "Carsten Allefeld" <[log in to unmask]>
> > Cc: [log in to unmask], "William Penny (PSY)" <[log in to unmask]>
> > Sent: Wednesday, 28 November, 2018 11:35:53 AM
> > Subject: Re: [SPM] Strange AR processes from Bayesian estimation
> > 
> > Dear Carsten,
> > 
> > All the voxels exhibiting pathological behaviour seem to be at the
> > boundary of the brain mask so, as you say, simply discarding them
> > is
> > probably the easiest thing to do. To understand what is going on,
> > it
> > would be useful to extract and display their time series.
> > I copy this email to Will so that he can add any further comments
> > or
> > advice on the spatial noise prior.
> > 
> > Best regards,
> > Guillaume.
> > 
> > 
> > On 27/11/2018 19:20, Carsten Allefeld wrote:
> > > Dear Guillaume,
> > > 
> > > thanks for replying!
> > > 
> > >> These results were obtained with which spatial noise prior
> > >> option?
> > >> The
> > >> interface lists five options: UGL, GMRF, LORETA, Tissue-type and
> > >> Robust.
> > > 
> > > I used the default, "UGL". Which one would you recommend?
> > > 
> > > Options in detail:
> > > fmri_est.method.Bayesian.space.volume.block_type = 'Slices';
> > > fmri_est.method.Bayesian.signal = 'UGL';
> > > fmri_est.method.Bayesian.ARP = 6;
> > > fmri_est.method.Bayesian.noise.UGL = 1;
> > > fmri_est.method.Bayesian.LogEv = 'No';
> > > fmri_est.method.Bayesian.anova.first = 'No';
> > > fmri_est.method.Bayesian.anova.second = 'No';
> > > fmri_est.method.Bayesian.gcon = struct('name', {}, 'convec', {});
> > > 
> > >> Could you show a map of where the voxels you are concerned about
> > >> are?
> > > 
> > > Attached are plots of the absolute value of the autocorrelation
> > > at
> > > lags 0 to 127 in a middle slice (#13).
> > > Comparison with the coregistered T1 indicates that they are
> > > located
> > > mainly at the outer edge of gray matter (maybe meninges), but
> > > also
> > > frontally and posteriorly slightly into the longitudinal fissure.
> > > 
> > > That suggests I should simply exclude these voxels from further
> > > analysis.
> > > 
> > > Do you have a suggestion which criterion to use?
> > > The data-based threshold (2.02e-9) discards more than half of the
> > > brain, and any other threshold seems arbitrary.
> > > 
> > > Best,
> > > Carsten
> > > 
> > > 
> > >> 
> > >> Best regards,
> > >> Guillaume.
> > >> 
> > >> 
> > >> On 27/11/2018 17:11, Carsten Allefeld wrote:
> > >>> Hello all,
> > >>> 
> > >>> I'm interested in getting local estimates of temporal
> > >>> autocorrelation in SPM, and for that purpose used Bayesian
> > >>> 1st-level estimation.
> > >>> The fMRI data I used to test that have 3 sessions of 128 scans
> > >>> at
> > >>> a
> > >>> TR of 2 s and 64x64x23 voxels of size 4x4x4 mm, unsmoothed, of
> > >>> which approximately 13,000 are within brain.
> > >>> 
> > >>> I then extracted the AR coefficients (order 6) for the first
> > >>> session (Sess1_AR_0001.nii to Sess1_AR_0006.nii) and used the
> > >>> Yule–Walker equations iteratively to obtain the corresponding
> > >>> autocorrelation function across lags 0 to 128.
> > >>> 
> > >>> The results are strange (see attached plot):
> > >>> – In 16 voxels the AR coefficients describe a non-stationary
> > >>> process. After excluding them:
> > >>> – At lag 127, 7906 voxels have an autocorrelation > 1e-6, 1651
> > >>> voxels > 1e-3, and 113 voxels > 0.1.
> > >>> – The largest negative autocorrelation at lag 127 is -2.02e-9.
> > >>> If
> > >>> I
> > >>> take that as an indicator of numerical/estimation precision,
> > >>> there
> > >>> are 8185 voxels where the autocorrelation at lag 127 is
> > >>> different
> > >>> from 0 (> +2.02e-9).
> > >>> 
> > >>> This makes me suspect that the AR estimation in "Bayesian
> > >>> 1st-level" is not very reliable. Is there something I might
> > >>> have
> > >>> done wrong?
> > >>> 
> > >>> Is there a recommended postprocessing for the AR coefficients
> > >>> or
> > >>> autocorrelation functions?
> > >>> I thought about tapering à la FSL, or clustering as a crude
> > >>> form
> > >>> of
> > >>> spatial regularization.
> > >>> Or should I simply exclude voxels with unbelievably long-range
> > >>> autocorrelation?
> > >>> 
> > >>> Thank!
> > >>> 
> > >>> Best,
> > >>> Carsten
> > >>> 
> > >> 
> > >> --
> > >> Guillaume Flandin, PhD
> > >> Wellcome Centre for Human Neuroimaging
> > >> UCL Queen Square Institute of Neurology
> > >> London WC1N 3BG
> > >> 
> > 
> > --
> > Guillaume Flandin, PhD
> > Wellcome Centre for Human Neuroimaging
> > UCL Queen Square Institute of Neurology
> > London WC1N 3BG
> > 
> 

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