Harmonizing Multi-Site Functional Data by Rotating Shared Modes of Variation

When the same kind of curve, such as a growth trajectory, a biomarker time course, or the frequency spectrum of a brain signal, is collected at several hospitals or scanners, the curves differ for two reasons. Patients differ, and sites differ. Existing tools for summarizing curve data handle only part of this. Functional principal component analysis (FPCA) breaks a curve into an average shape plus a few "modes", typical patterns of deviation from that average, each with its own strength. Covariate-adjusted versions of FPCA let patient traits such as age shift the average curve and change how strong each mode is. Multi-site harmonization methods from neuroimaging, meanwhile, mostly align site averages and leave each site's spread alone. Neither handles the case that matters most in multi-site synthesis. A scanner's sampling rate or filtering can change the shape of the modes themselves, while the sites also enroll different patients. Correcting the site naively then erases real biology along with the artifact.

We propose a model in which every site shares one reference set of modes, and each site sees them through a small, penalized rotation. Mode strengths factor into a site multiplier times a smooth function of patient covariates. Harmonization then has a precise meaning. Each subject's mode scores are rotated back into the reference frame and the site multiplier is divided out, while the covariate-driven part of the variance is left intact. The claim we will test is that this second-order correction recovers biological covariance structure that first-order alignment, per-site standardization, and invariant-mode FPCA either miss or destroy. The advantage should be largest when site and patient covariates are confounded, as when one site scans mostly younger children.

Core Claim

Three ingredients from prior work set up the gap. The first is Eigen-Adjusted FPCA. It keeps the mode shapes $\phi_k(t)$ fixed and lets their strengths $\lambda_k(z)$ vary with covariates, estimated by weighted least squares. That keeps estimation cheap, but it was only evaluated on 40 single-protocol Human Connectome Project subjects, and by construction any site-induced shape change gets absorbed into misestimated strengths or residual error. The second is Rigid Log-Euclidean Translation (RLET). It harmonizes connectivity matrices by shifting each site's geometric mean to the global mean. This raised detected ADHD connectivity anomalies from 21 to 33 on ADHD-200, but it is first-order only and treats site as a bare label with no continuous covariates. The third is the fully flexible covariate-dependent FPCA of He et al. and the fully adjusted fFPCA of Jiang and Wang. These let the whole covariance vary with a covariate, but they are built for a single continuous covariate and become expensive in mixed site-plus-covariate designs; Jiang and Wang report fFPCA running up to 20 times slower than mean-only adjustment.

Our model sits between invariant modes and full flexibility. Write $\phi_1,\dots,\phi_K$ for the reference modes and $s$ for site. Write $R_s$ for a $K\times K$ rotation close to the identity, $\alpha_s$ for a vector of site log-multipliers, and $g(z)$ for a vector of smooth functions of patient covariates $z$. The site- and covariate-specific covariance is then

$$\Gamma_s(t,t'\mid z)=\sum_{j,k=1}^{K}\big[R_s\,\Lambda_s(z)\,R_s^{\top}\big]_{jk}\,\phi_j(t)\,\phi_k(t'),\qquad \Lambda_s(z)=\mathrm{diag}\big(\exp(\alpha_s+g(z))\big).$$

This form is positive semi-definite at every $(s,z)$ by construction, which echoes the factored parameterization of He et al. The rotation absorbs site-induced shape distortion. The log-additive strengths separate site scaling from biological scaling, and that separation is identifiable whenever covariate distributions overlap across sites. We fix the scale with the constraint $\sum_s w_s\alpha_s=0$, where $w_s$ is the site's share of subjects. Setting $R_s=I$ and $\alpha_s=0$ recovers EA-FPCA. Dropping covariates and rotations and keeping only mean shifts recovers RLET-style alignment. Both are therefore nested special cases we can ablate directly.

Research Program

Estimation proceeds in three stages. We first fit a mean surface in time, covariates and site, as in mean-adjusted FPCA. We then take reference modes from the pooled residual covariance, following the EA-FPCA recipe. Finally, we maximize a Gaussian likelihood over the site rotations, site multipliers and spline coefficients of $g$. Each rotation is parameterized as $R_s=\exp(A_s)$, with $A_s$ skew-symmetric and penalized by $\|A_s\|^2$. This shrinks small or noisy sites toward the shared frame, the way random effects shrink toward a group mean. For sparse, irregularly sampled curves, the per-curve likelihood is computed through Sherman–Morrison–Woodbury inversion in $O(K^3)$, the trick He et al. use for CD-FPCA.

Rotations confined to the leading $K$ modes cannot represent a distortion that pushes variance outside that span; a frequency shift is one example. We therefore let $R_s$ act on $K+L$ modes, with a few extra modes $L$, and report how much site variance flows into them.

Harmonization maps each subject's scores $\xi_i$ to $\exp(-\alpha_s/2)\odot R_s^{\top}\xi_i$, where $\odot$ is elementwise multiplication, and then reconstructs harmonized curves. As a by-product we get a parametric-bootstrap likelihood-ratio test of "no shape distortion" ($R_s=I$ for all $s$) under sparse sampling. The FKWC rank tests assume dense curves and do not provide this.

The main functional object is the regional resting-state BOLD log power spectrum, a curve over frequency, computed per atlas region from ABIDE and ADHD-200. We choose it because site differences in repetition time and band-pass filtering plausibly change spectral shape and not just level, which is exactly the regime where invariant-mode methods should fail. Covariates are age, sex and diagnosis.

Baselines

The naive reference point is unadjusted pooled FPCA run on all sites together. It is the analysis the field defaults to, and it shows how much site structure leaks into the leading modes; on ADHD-200, unharmonized data clustered by site in t-SNE projections (RLET). The second baseline is mean-adjusted FPCA (Jiang and Wang), with site and covariates in the mean. This is the reviewer's "just regress it out" option. The third is a first-order site translation in the spirit of RLET, which shifts each site's mean log-spectrum to the global mean; it is the published harmonization most directly comparable to ours. The fourth is per-site standardization of FPC scores, where each mode's scores are centered and rescaled within site. This is a ComBat-style location-and-scale correction; the file contains no paper we can cite for it, so we implement it ourselves.

The strongest existing statistical competitor is EA-FPCA with site indicators and covariates both entered in $z$. It already lets sites change mode strengths, so beating it isolates the value of rotations. We also include per-site FPCA followed by Procrustes alignment of each site's modes to the pooled modes. Finally, CD-FPCA serves as a flexibility ceiling in simulations with a single covariate. Ablations remove the rotation (leaving our eigenvalue model), remove the site multiplier, and remove covariate overlap, to show where identifiability breaks.

Fairness rules apply to every method. All methods receive identical preprocessed curves, the same number of modes chosen by fraction of variance explained (Jiang and Wang found this criterion more reliable than AIC or BIC), the same spline bases, and the same cross-validation budget for smoothing and penalty parameters. Every harmonizer is fit only on training sites in leave-one-site-out runs.

For context on reported numbers, the strongest diagnosis result in the file is 67% leave-one-site-out ASD accuracy on 871 ABIDE subjects using tangent-space connectivity with a linear classifier (Abraham et al.). Separately, the file reports 67.6% at the NYU site for federated adversarial alignment versus 60.1% for a single-site model (Li et al.). Those numbers come from connectivity features, not spectra. Beating them is therefore not our primary bar. A secondary check is whether adding harmonized spectral scores to the Abraham pipeline lifts accuracy above 67% under the same site splits. There is no reported result found on Lacuna for any FPCA-based harmonizer on ABIDE or ADHD-200 spectra. The primary bar is therefore relative: lower site predictability and better biological preservation than EA-FPCA and per-site standardization on the same data.

Why not just…?

Why not just apply location-and-scale correction per site to the mode scores? This is the most serious threat, because it does adjust second-order structure and is trivial to run. It has two weaknesses. Within-site scaling removes any variance difference that is really caused by covariates distributed unequally across sites. It also cannot undo a rotation of the modes, since it only rescales each mode separately. The confounded-design experiment below measures the first failure directly. If per-site standardization matches us when site and age are unconfounded and no rotation is injected, we will report that its cost is confined to the confounded and rotated regimes.

Why not just use EA-FPCA with site as a covariate? This nests our multiplier term, so it will be competitive whenever sites change only mode strengths. The ablation with $R_s=I$ is exactly this model. Our sparse-data rotation test gives a principled answer to whether rotations are needed at all. If the test rarely rejects on real ABIDE spectra, the honest conclusion is that EA-FPCA suffices for that data, and the proposal's value narrows to the confounding correction.

Why not just fit FPCA separately per site and align with Procrustes? This is the closest simple analogue of our idea. With ABIDE sites of a few dozen subjects, per-site covariance estimates are noisy, and the Procrustes rotation will fit noise. It also folds covariate-driven variance into the site frame. Our shrinkage penalty and joint covariate model target both problems. We will report results as a function of site sample size, because the advantage should vanish for large sites.

Why not just use fully adjusted fFPCA or CD-FPCA with site and covariates? These models are flexible enough, but they were designed for one continuous covariate, and the reported 20-fold slowdown of fFPCA is for the univariate case. We run CD-FPCA as a ceiling in single-covariate simulations to quantify how much accuracy the structured model gives up.

Proposed Experiments

The first experiment is a simulation with known ground truth. We vary the number of sites, site sizes, sampling sparsity, the size of injected rotations, and the correlation between site and age. Metrics are integrated squared error of the recovered covariate-dependent covariance at each site and covariate value, and type-I error and power of the rotation test.

The decisive check is semi-synthetic. We take the single-protocol subjects from one large ABIDE site and split them into pseudo-sites. We impose real acquisition transformations: temporal resampling to other sites' repetition times, and different band-pass filters. We also deliberately assign older subjects to some pseudo-sites. Ground-truth biology is then the untransformed data. A harmonizer wins if, after correction, a classifier can no longer predict pseudo-site from the curves, while the age dependence of mode strengths matches what the untransformed data shows. Our method must beat per-site standardization on the second criterion and EA-FPCA on the first. If neither margin appears, the rotation-plus-separation design is not earning its complexity.

On the real ABIDE and ADHD-200 spectra, we report leave-one-site-out site-prediction accuracy (lower is better) and leave-one-site-out age-prediction error from harmonized scores (lower is better). We also report diagnosis-group differences in mode strengths with bootstrap intervals, and compare the count of significant region-level spectral differences against the unharmonized and first-order baselines. That comparison is analogous to the 21-versus-33 anomaly comparison in RLET.

A final sparse-longitudinal check uses the Mexican fruit fly reproductive curves from Jiang and Wang, split into synthetic cohorts with different observation schedules. It tests whether the method and the rotation test behave as intended outside neuroimaging, in the irregularly sampled regime that multi-cohort clinical trajectory studies face.