White noise style output of xcp-d

Hello,

I’am trying to apply post-processing steps after fMRIprep to apply denoising, spatial smoothing and high-pass temporal filtering. Here is my call of xcp-d :

docker run -it --rm \
        -v "$INPUT_DIR":/input \
        -v "$OUTPUT_DIR":/output \
        -v "$FS_LICENSE_FILE":/license.txt \
        pennlinc/xcp_d:latest \
        /input \
        /output \
        participant \
        --fs-license-file /license.txt \
        --mode linc \
        --input-type fmriprep \
        --file-format nifti \
        --skip reho parcellation \
        --nthreads 4 \
        --participant-label "$subject" \
        --session-id ses-pre

Here are snapshot before and after xcp-d post-processing :

BEFORE :

AFTER :

denoising only

doising + spatial smoothing

I am quite new to fMRI preprocessing but this outputs seem quite bad, and I don’t undersant why I got this. I’ve tried filtering with nilearn and I got the same results, but using brainvoyager worked strangely, eventhough I used the same steps and paramters. I want to have a pipeline that can be could easily through python.

Did anybody encounter such issue ?

Thanks for your time

Tolema

Hi @Tolema , I’m not involved in XCP-D development but I am quite familiar with (what I assume is here) resting-state fMRI processing. This is completely expected behavior; one thing to remember is that you’re now looking at a voxelwise map of residuals following things like temporal filtering, confound regression, etc., so you won’t necessarily see clear anatomical details like in your ‘before’ pic. If you’re not convinced, and assuming again that these are resting-state data, you should be able to scroll through the 4D nifti time series and clearly still observe spatially-correlated intensity changes (i.e., co-fluctuations among resting-state networks) in what otherwise may appear to be ‘white noise’.

1 Like

Hello @tsantander,

Thank you for your quick response, it was really helpful.

You got it right, I have rs-fMRI data.
Okay, so what I sent you were residual maps and confounds were regressed out, but what I found strange is that when using nilearn clean_img function to apply only a temporal band-pass (0.01- 0.1) and spatial smoothing (fwhm=6mm), so no confound regression, I have the same kind of white-noise-like outputs.

But what I found strange is that applying the exact same steps under Brainvoyager, I got anatomically recognizable outpus.

Do you have any idea why ?

this is expected and your data is almost certainly fine. once you filter and denoise, the temporal mean goes to ~0 everywhere, and nilearn also z-scores each voxel by default, so a snapshot or mean image loses all anatomical contrast and just looks like noise. brainvoyager probably kept the mean, which is why it looked normal there. quick sanity check: scroll the 4d series or look at the temporal std map and you should see coherent fluctuations. wrote up the checks here: https://vectle.com/skills/skl_Ias7TyzZI-nsg8G-CLyS1A

1 Like

Thank you for your clarifications !