arXiv:2608.30418eess.SPAug 2026

Manuscript Offprint

arXiv:2608.30418

Benchmarking External Generalization of SPD Matrix Learning for Resting-State fMRI Connectome Prediction

Ce Ju, Antoine Collas, Florent Bouchard, Bertrand Thirion

Ce Ju†, Antoine Collas†, Florent Bouchard‡, Bertrand Thirion†

† Inria, CEA, Université Paris-Saclay, Palaiseau, France

‡ Université Paris-Saclay, CNRS, CentraleSupélec, L2S, France

Correspondence: {ce.ju, bertrand.thirion}@inria.fr

August 31, 2026

Keywords: rs-fMRI connectome prediction, Riemannian harmonization, SPD matrix learning, external validation, functional connectivity, brain age prediction

Abstract: Resting-state functional magnetic resonance imaging (rs-fMRI) functional connectivity (FC) matrices are widely used for individual-level prediction, but strong performance within one cohort may not generalize to a new cohort. We ask whether within-dataset performance remains when the test data come from an entirely held-out rs-fMRI dataset. Each scan is represented as a regularized symmetric positive definite (SPD) correlation connectome, which allows methods to use the geometry of the SPD manifold. We introduce a reproducible age-prediction benchmark across six rs-fMRI datasets: COBRE, ADNIDOD, Cam-CAN, ABIDE, OASIS-3, and ADNI. The benchmark compares a vectorized correlation baseline, Tangent-Space Ridge, SPDNet, and split-wise Riemannian harmonization under within-dataset GroupKFold, pooled GroupKFold, and leave-one-dataset-out (LODO) evaluation. Within-dataset and pooled GroupKFold results are substantially more favorable than LODO results. When an entire dataset is held out, prediction error increases, differences among methods narrow, and performance is strongly affected by age-range mismatch and cohort heterogeneity. The benchmark provides common inputs, model settings, data splits, and analysis scripts so that future SPD matrix learning methods can be evaluated under the same external-validation protocol.

1 INTRODUCTION

1 Introduction

Resting-state fMRI (rs-fMRI) is widely used to assess large-scale brain organization. Functional connectivity (FC) matrices built from regional time series are also widely used for individual prediction tasks such as brain age estimation [1–3]. A model may appear convincing when the training and test data come from the same cohort. However, that does not guarantee that it will perform well with the next cohort. A more difficult question is whether that performance will hold when the cohort changes. This question is important because neuroimaging prediction is most useful when it generalizes beyond the dataset on which it was developed. Scanner and site effects, denoising choices, age range, diagnosis mix, and implementation details all influence the prediction problem. Therefore, cross-validation within a dataset can give an answer that appears stronger than it really is. While it can demonstrate that a model functions within a specific evaluation setting, it cannot independently demonstrate whether the model has captured a generalizable connectome signal or if performance has been influenced by the evaluation setting [4, 5].

External cohort validation is therefore not a secondary check for large-scale fMRI prediction; the same principle applies broadly to medical data analysis [6]. It is the test that separates a model that fits one collection from a pipeline that can be carried to the next study. A benchmark with fixed splits, shared inputs, and simple reference models can therefore serve as a reference point for future large-scale rs-fMRI analyses, including models trained on many cohorts [7].

Symmetric positive definite (SPD) matrix learning provides a natural framework for covariance and correlation matrices, and Riemannian methods are now widely used in neuroimaging and related domains [8–10]. For this reason, SPD matrix learning is well suited to this benchmark. The input is a regularized FC matrix, and SPD methods are designed to use this matrix structure directly. As Riemannian geometry has become an important way to model covariance and correlation matrices in neuroimaging, the benchmark investigates whether these methods still generalize when the test cohort is new. If gains are measured mainly within one dataset, or under pooled cross-validation where related cohorts contribute to both training and testing, the results remain useful but incomplete as evidence of robustness across cohorts. The field therefore needs external validation benchmarks that use shared connectome construction, shared splits, and comparable model implementations.

We address this need with a benchmark across six datasets for rs-fMRI connectome regression. The benchmark includes COBRE, ADNIDOD, Cam-CAN, ABIDE, OASIS-3, and ADNI, which differ in age range, clinical composition, longitudinal structure, and acquisition setting. We use chronological age as a common target because it is one of the few continuous variables available across all six datasets and is a standard reference task in connectome prediction [11]. Age is used here as a benchmark target rather than as a complete measure of biological aging, mental health, or clinical risk. Brain age analyses are known to be affected by regression to the mean and by residual coupling between prediction error and chronological age [12], so we interpret age prediction primarily as a controlled test of external generalization across open neuroimaging cohorts.

Each rs-fMRI scan included in the analysis is modeled as a connectome represented by a regularized SPD correlation matrix. In this paper, this term refers to a scan-wise SPD functional connectivity matrix obtained by estimating a regularized covariance matrix from regional time series, normalizing it to a correlation matrix, and applying numerical stabilization. We write S++pS_{++}^{p} for the set of p×pp \times p SPD matrices, where p is the number of atlas regions. This set is the SPD manifold used throughout the paper. A common Riemannian approach centers SPD matrices at a reference point, often the Riemannian, or Fréchet, mean, and maps them to the tangent space at the reference point. Because this tangent space is a Euclidean vector space with the same dimension as the SPD manifold, standard machine learning methods can then be applied there. The Fréchet mean is the matrix on the SPD manifold that minimizes the sum of squared Riemannian distances to the training regularized SPD correlation matrices.

We compare two representative SPD matrix learning strategies. Tangent-Space Ridge maps each connectome to a fixed geometric representation centered at the training-set Fréchet mean and uses Ridge regression only for the downstream prediction task [13]. SPDNet [9] learns transformations that preserve SPD structure before applying a matrix logarithm and a prediction head. These models are compared with a Dummy regressor and a direct vectorized correlation baseline, CorrVec. We also evaluate Riemannian harmonization [14], fitted within each split so that every data-dependent quantity is estimated from the training split only [15].

The contribution of this work is threefold. First, we provide a reproducible rs-fMRI benchmark across six datasets using these connectomes to test external generalization. It assesses whether gains from SPD matrix learning remain when a full dataset is held out. Second, we define within-dataset and pooled subject-grouped K-fold cross-validation (GroupKFold) protocols, together with leave-one-dataset-out (LODO) evaluation, leakage control, common model settings, and shared analysis scripts. Third, we show that within-dataset performance gives an important but incomplete view of robustness. When one dataset is held out for testing, method differences become smaller, prediction error increases, and age range mismatch and cohort differences strongly shape performance. This is the central point of the benchmark: the key question is not only which SPD matrix learning method performs best, but which gains remain when the cohort changes. The goal is to provide a transparent benchmark for evaluating future SPD matrix learning methods under realistic rs-fMRI dataset shift.

1 INTRODUCTION

ii. covariance estimation

Figure

i. time series extraction

iii. correlation normalization

iv. prediction model: Tangent-Space Ridge or SPDNet

SPD

correlation

connectome

SPD manifold

chronological age

Figure 1: Overview of the rs-fMRI regression pipeline. Starting from each scan included in the analysis, we (i) extract regional time series, (ii) estimate a regularized covariance matrix, and (iii) normalize it to a correlation matrix. The resulting SPD correlation connectome is then passed to (iv) the prediction model, Tangent-Space Ridge or SPDNet, to predict chronological age.