Preclude prewhitening in seed time series extraction for PPI (psychophysiological interaction) analysis

Open
#68 0 comments 0 reactions 1 assignee View on GitHub

@pzeidman is already working on this.

Since Jun 13, 2025.

Assessment

This issue has not been assessed yet.

Description

Hi all,

We've found that extracting a seed time series with prewhitening (the default option in SPM) leads to suboptimal PPI model fitting. This is because: 1) prewhitening should not be applied prior to deconvolution, and 2) prewhitening is applied again during the model fitting step, resulting in the main effect seed regressor being prewhitened twice in the design matrix.

Following discussions with Karl Friston and Peter Zeidman, we think the best solution is to preclude prewhitening when extracting seed time series for PPI analysis. Implementing this change will require input from the SPM development team, as SPM's confound-regression relies on first level beta maps.

As a temporary workaround, one can multiply the extracted seed time series by the inverse of the first whitening matrix. A detailed discussion can be found in our recent preprint: https://doi.org/10.1101/2025.05.22.655642

Thanks,
Vicky

Dominant language
MATLAB
Stars
224
Forks
63
Avg merge
1h 29m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spm/spm

All issues in spm/spm

Similar issues

More MATLAB issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.