2026-08-27
This slide deck is available at this address:
https://olivier.amacker.dev/bachelor-thesis/site/presentations/cbi_presentation.html
Figure 2: fMRI processing pipeline overview (generated with ChatGPT).
fMRI pipelines are computationally heavy with high-dimensional calculations.
Sources of numerical instability:
A way to test numerical variability is actually introducing controlled numerical variability in pipelines of interest, at steps of interest, and see how that variability cascades downstream and in the final results.
One such approach is Monte Carlo Arithmetic (MCA) (Parker and Langley (1997)), which applies controlled random perturbations to floating-point operations.
Available libraries for pipeline instrumentation:
Numerical instability confirmed across modalities:
Controlled numerical perturbations can also expand training datasets and improve deep learning generalization (Gonzalez-Pepe et al. (2026))
Heterogeneous methodologies prevent direct comparisons between studies.
Collaboration with ATR to investigate numerical stability of fMRI connectivity biomarkers.
Three complementary analyses:
Two goals:
\[NPVR = \frac{\sigma_{num}}{\sigma_{pop}}\]
\(\sigma_{num}\) is numerical variability. \(\sigma_{pop}\) is population variability.
Broadly replicated the artificial NPVR simulation results.
Found an error in the original code: the Cohen \(d\) plot used hardcoded NPVR values instead of computed ones. Hard to confirm as it was unclear whether the replication was wrong. Fix submitted and merged (PR).
FC matrices: Schaefer 2018 parcellation (100 regions, 7 networks) with and without confound regression
Local metrics:
Global metrics:
Global signal regression has been a contentious point in the field, with no settled agreement on whether it should or shouldn’t be done.
PCA-based feature selection for robust FC biomarkers (MDD, SCZ, ASD) across datasets and sites.
Graph metrics NPVR: consistent trends with original study, but higher values using 15 confounds. Confound regression effect more variable across thresholds.
Edge-wise FC matrix NPVR: mean of 11 percent across 4950 edges. Doubles without global signal confound.
PCA feature extraction: fully robust under MCA perturbation and 32-bit precision.
Future work:
| Acronym | Definition |
|---|---|
| fMRI | functional Magnetic Resonance Imaging |
| OS | Operating System |
| MCA | Monte Carlo Arithmetic |
| LLVM | Low Level Virtual Machine |
| NPVR | Numerical to Population Variability Ratio |
| FC | Functional Connectivity |
| ATR | Advanced Telecommunications Research Institute International |
| PCA | Principal Component Analysis |
| PR | Pull Request |
| BMB | Brain Minds Beyond Dataset |
| Acronym | Definition |
|---|---|
| CSF | Cerebrospinal Fluid |
| MDD | Major Depressive Disorder |
| SCZ | Schizophrenia |
| ASD | Autism Spectrum Disorder |
| ANOVA | Analysis of Variance |
| FDR-BH | False Discovery Rate - Benjamini-Hochberg |
| SRPB | SRPB Dataset |
Here is how the NPVR is calculated in details:
\[ \sigma_{num}^2 = \frac{1}{m} \sum_{j=1}^m \left[ \frac{1}{n-1} \sum_{i=1}^n \left( x_{i,j} - \bar x_{.,j}\right)^2\right] \]
\[ \sigma_{pop}^2 = \frac{1}{n} \sum_{i=1}^n \left[ \frac{1}{m-1} \sum_{j=1}^m \left( x_{i,j} - \bar x_{i,.}\right)^2\right] \]
\[ NPVR = \frac{\sigma_{num}}{\sigma_{pop}} \]
where \(n\) is the number of MCA repetitions, \(m\) is the number of subjects, \(x_{i,j}\) is the FC edge value for subject \(j\) in MCA run \(i\), \(\bar{x}_{.,j}\) is the mean across runs for subject \(j\), and \(\bar{x}_{i,.}\) is the mean across subjects for run \(i\).